/* Base & Typography */
:root {
    /* Colors */
    --bg-ink: #080B0E;
    --bg-off-black: #131415;
    --text-snow: #FCFCFC;
    --text-faded: rgba(252, 252, 252, 0.5);

    --cta-primary: #7E7BFF;
    --cta-hover: #8F8DFF;
    --cta-active: #6D6AFF;

    --success: #00FF9B;
    --error: #FF4F4F;

    /* Gradients */
    --grad-violet-blue: linear-gradient(135deg, #D15AD8 0%, #2138C3 100%);
    --grad-purple-surface: linear-gradient(135deg, #2D1C40 0%, #361E4C 100%);
    --grad-teal-glow: linear-gradient(135deg, #1F4660 0%, #295A72 100%);
    --grad-ai-highlighter: linear-gradient(to right, #4DF6FF, #7E7BFF, #FF64F9, #7E7BFF, #4DF6FF);

    /* Dimensions */
    --radius-btn: 12px;
    --radius-card: 16px;
    --radius-glass: 24px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

/* Light Mode Override */
.light-mode {
    --bg-ink: #F9FAFB;
    --bg-off-black: #FFFFFF;
    --text-snow: #111827;
    --text-faded: rgba(17, 24, 39, 0.6);
    --cta-primary: #6366F1;
    --grad-purple-surface: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    --grad-teal-glow: linear-gradient(135deg, #E0F2FE 0%, #BAe6FD 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    background-color: var(--bg-ink);
    color: var(--text-snow);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.1;
    letter-spacing: -0.02em;
}


/* --- STYLE UPDATES --- */

/* 1. H1 Size Reduction */
h1 {
    font-size: 45px;
    font-weight: 700;
}

/* 2. Team Card Hover Fix */
.card-face.card-back .card-body {
    margin-top: 0;
    /* Reset negative margin from front */
    justify-content: center;
    /* Center content vertically */
    padding: 30px;
}

/* 3. Solutions Slider Image Fix */
/* 3. Solutions Slider Image Fix - Removed to rely on parent clipping */
/* 3. Solutions Slider Image Fix - Explicit radius and contain */
.solution-card .solution-image {
    height: 100%;
    border-radius: 0 40px 40px 0;
    background: #111;
    overflow: hidden;
}

.solution-card .solution-image img {
    object-fit: contain;
    /* Fix header cutoff */
    border-radius: 0 40px 40px 0;
}

/* 4. Frosted Apple FX (Talk to Dave) */
.frosted-apple {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.frosted-apple::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    opacity: 0.15;
    pointer-events: none;
}

/* 5. Sub-box Variants */

/* Variant 1: Standard (OperatorX Clean) */
.sub-variant-1 .os-submodule {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Variant 2: Glass/Frosted (HelloHandsome Research) */
.sub-variant-2 .os-submodule {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    /* Slightly larger padding */
}

.sub-variant-2 .os-submodule:hover {
    background: rgba(126, 123, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
}

/* Variant 3: Tech/Minimal (ExoEngine Execution) - Slightly Larger */
.sub-variant-3 .os-submodule {
    background: #0F1115;
    border-left: 3px solid var(--cta-primary);
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 18px 24px;
    /* Larger */
    border-radius: 4px;
    /* Sharper */
}

.sub-variant-3 .os-submodule:hover {
    background: #15181E;
    transform: translateX(5px);
}

/* Ensure variants fit */
.os-submodule-group.sub-variant-3 {
    gap: 16px;
    /* Increases spacing for larger feel */
}

/* Mobile fix for solution card */
@media (max-width: 1024px) {

    /* Adjust radius for stacked mobile view */
    .solution-content {
        border-radius: 40px 40px 0 0;
    }

    .solution-card .solution-image {
        border-radius: 0 0 40px 40px;
    }

    .solution-card .solution-image img {
        border-radius: 0 0 40px 40px;
        max-height: 400px;
        /* Limit height on mobile */
    }

    .frosted-apple {
        flex-direction: column;
        text-align: center;
    }
}


h2 {
    font-size: 40px;
    font-weight: 600;
}

h3 {
    font-size: 28px;
    font-weight: 500;
}

h4 {
    font-size: 20px;
    font-weight: 400;
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: inline-block;
    color: var(--cta-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--cta-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(126, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--cta-primary);
    color: var(--cta-primary);
}

.btn-secondary:hover {
    background-color: rgba(126, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Glass & Boxes */
.frosted-glass {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.off-black-box {
    background: var(--bg-off-black);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.off-black-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* AI Highlighter Text */
.ai-highlighter {
    background: var(--grad-ai-highlighter);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(8, 11, 14, 0.85);
    backdrop-filter: blur(15px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: var(--text-snow);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    color: var(--text-snow);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-snow);
    display: flex;
    align-items: center;
    padding: 8px;
    opacity: 0.8;
}

.theme-toggle:hover {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hide for now, can add mobile menu later if requested */
    .mobile-menu-btn {
        display: block;
    }

    /* Placeholder */
}


/* --- BOARDROOM SLIDER (C-Suite) --- */
.boardroom-slider {
    width: 100%;
    overflow: hidden;
}

.boardroom-slider .slider-section {
    position: relative;
    padding: 0;
    /* Align with container logic */
}

.boardroom-slider .slider-container {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

/* Gradient fade sides */
.boardroom-slider .slider-container::before,
.boardroom-slider .slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.boardroom-slider .slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-ink) 0%, rgba(8, 11, 14, 0) 100%);
}

.boardroom-slider .slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-ink) 0%, rgba(8, 11, 14, 0) 100%);
}

.boardroom-slider .slider-track {
    /* No padding here, handled by wrapper positioning */
}

.boardroom-slider .slider-wrapper {
    display: flex;
    gap: 24px;
    will-change: transform;
    /* Transformation handled by JS */
}

.boardroom-slider .leader-card {
    flex: 0 0 380px;
    width: 380px;
    height: 600px;
    background: var(--bg-off-black);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.boardroom-slider .leader-card.inactive {
    opacity: 0.5;
    transform: scale(0.95);
    filter: grayscale(0.6);
}

.boardroom-slider .leader-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(126, 123, 255, 0.3);
    z-index: 10;
}

.boardroom-slider .card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boardroom-slider .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 120px 24px 32px;
}

.boardroom-slider .leader-name {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.boardroom-slider .leader-role {
    color: var(--cta-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.boardroom-slider .leader-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hire-button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.hire-button:hover {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
}

/* Nav Buttons (Shared style) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 35, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--cta-primary);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.boardroom-slider .prev {
    left: 20px;
}

.boardroom-slider .next {
    right: 20px;
}

@media (max-width: 768px) {
    .boardroom-slider .leader-card {
        flex: 0 0 300px;
        width: 300px;
        height: 500px;
    }

    .boardroom-slider .nav-btn {
        display: none;
    }

    /* Use swipe on mobile */
    .boardroom-slider .slider-container::before,
    .boardroom-slider .slider-container::after {
        width: 40px;
    }
}


/* --- SPECIALIST TEAM (Flip Cards) --- */
.team-grid {
    width: 100%;
    perspective: 1000px;
}

.op-card-wrapper {
    height: 440px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.op-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.op-card-wrapper:hover .op-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-card);
    background: var(--bg-off-black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background: #0F1115;
}

.card-banner {
    height: 100px;
    background: linear-gradient(180deg, rgba(126, 123, 255, 0.15) 0%, transparent 100%);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    flex: 1;
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-off-black);
    background: #000;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.op-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.op-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-faded);
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}

.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}


/* --- SOLUTIONS SLIDER --- */
.solutions-section {
    width: 100%;
    min-height: 900px;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050505;
}

.solutions-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solutions-track {
    display: flex;
    height: 100%;
    cursor: grab;
    will-change: transform;
}

.solutions-track:active {
    cursor: grabbing;
}

.solution-slide {
    flex-shrink: 0;
    width: 80vw;
    max-width: 1100px;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
    opacity: 0.4;
    transform: scale(0.9);
}

.solution-slide.active {
    opacity: 1;
    transform: scale(1);
}

.solution-card {
    width: 100%;
    height: 600px;
    /* Fixed height for uniformity */
    background: #111;
    border-radius: 40px;
    overflow: hidden;
    /* Force GPU to fix border-radius clipping on some browsers */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111;
    border-radius: 40px 0 0 40px;
}

.solution-image {
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain */
    object-position: center;
    transition: transform 0.8s ease;
}

.solution-slide.active img {
    transform: scale(1.05);
}

.sol-tag {
    color: var(--cta-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 24px;
}

.sol-title {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.sol-desc {
    font-size: 18px;
    color: var(--text-faded);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .solution-card {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
        height: auto;
        /* Allow growing on mobile */
    }

    .solution-slide {
        width: 90vw;
    }

    .solution-content {
        padding: 40px;
    }

    .sol-title {
        font-size: 32px;
    }
}


/* --- SITUATION ROOM (Lanyard) --- */
.lanyard-section {
    background: radial-gradient(circle at center, #1a1d26 0%, #080B0E 70%);
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.situation-room-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-2xl);
    perspective: 1200px;
}

.sr-dashboard {
    width: 900px;
    height: 500px;
    background: rgba(19, 20, 21, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow: 0 0 80px rgba(126, 123, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(10deg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.sr-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 123, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 123, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.sr-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
}

.sr-status {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--success);
    font-family: monospace;
}

.sr-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.sr-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: calc(100% - 60px);
}

.sr-main-feed {
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;

    /* Hide scrollbar for Chrome/Safari/Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sr-feed-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* RevarkOS Grid Polish */
.revarkos-grid .off-black-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sr-feed-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
}

.sr-feed-text {
    font-size: 13px;
    color: var(--text-faded);
}

.sr-feed-text strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.sr-sidebar {
    padding: 24px;
}

.sr-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
}

.sr-agent.active {
    background: rgba(126, 123, 255, 0.1);
    border: 1px solid rgba(126, 123, 255, 0.2);
}

.sr-agent-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.sr-agent-role {
    font-size: 10px;
    color: var(--text-faded);
    text-transform: uppercase;
}

/* Floating Cards Effect */
.sr-card-float {
    position: absolute;
    width: 180px;
    padding: 12px;
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid var(--cta-primary);
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.sr-card-1 {
    top: 20%;
    left: -60px;
    animation-delay: 0s;
}

.sr-card-2 {
    bottom: 20%;
    right: -60px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- FOOTER --- */
footer {
    padding: var(--space-4xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-4xl);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text-snow) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* --- LOGO TICKER --- */
.logo-ticker-section {
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: transparent;
    opacity: 0.7;
    margin-top: -60px;
    /* Pull up into hero slightly or just below */
    position: relative;
    z-index: 10;
}

.logo-ticker-section {
    width: 100%;
    overflow: hidden;
    /* Force hide overflow here */
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker-wrapper {
    display: flex;
    gap: var(--space-4xl);
    width: max-content;
    animation: ticker 40s linear infinite;
}

.logo-item {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.5;
    transition: all 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 5-PHASE METHOD (Vertical/Horizontal Flow) --- */
.method-container {
    padding: var(--space-4xl) 0;
}

.method-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.method-step:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.method-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.method-number {
    font-size: 14px;
    color: var(--cta-primary);
    font-weight: 700;
    min-width: 120px;
    letter-spacing: 0.1em;
}

.method-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

.method-content p {
    font-size: 16px;
    color: var(--text-faded);
    line-height: 1.6;
    max-width: 800px;
}

/* --- REVIEWS GRID --- */
.review-card {
    background: var(--bg-off-black);
    padding: var(--space-lg);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-quote {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.review-info strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.review-info span {
    font-size: 12px;
    color: var(--text-faded);
}

/* --- REVARKOS ARCHITECTURE VISUAL (NEW) --- */
.revarkos-section {
    background: radial-gradient(circle at center, #1a1d26 0%, #080B0E 70%);
    padding: var(--space-4xl) 0;
    overflow: hidden;
    position: relative;
}

.revarkos-visual-wrapper {
    perspective: 1200px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xl);
}

.revarkos-board {
    width: 1000px;
    height: 550px;
    background: rgba(19, 20, 21, 0.8);
    border-radius: 32px;
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow:
        0 0 100px rgba(126, 123, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(20deg) scale(0.9);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    transition: transform 0.5s ease;
}

.revarkos-board:hover {
    transform: rotateX(10deg) scale(0.95);
}

/* Core Node (Top) */
.os-core-node {
    width: 320px;
    background: linear-gradient(135deg, rgba(8, 11, 14, 0.9), rgba(126, 123, 255, 0.1));
    border: 1px solid var(--cta-primary);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(126, 123, 255, 0.2);
    z-index: 2;
    margin-bottom: 20px;
}

.os-core-logo {
    width: 56px;
    height: 56px;
    background: var(--cta-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 0 20px rgba(126, 123, 255, 0.5);
}

.os-core-node h3 {
    font-size: 24px;
    margin: 0;
}

.os-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 155, 0.1);
    border: 1px solid rgba(0, 255, 155, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: #00FF9B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
}

.os-pulse-dot {
    width: 8px;
    height: 8px;
    background: #00FF9B;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF9B;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Connector Lines */
.os-connectors {
    flex: 1;
    width: 80%;
    position: relative;
    /* Drawing lines using borders */
}

/* Central vertical trunk */
.os-line-trunk {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, var(--cta-primary), rgba(255, 255, 255, 0.1));
    transform: translateX(-50%);
}

/* Horizontal branch */
.os-line-branch {
    position: absolute;
    top: 50%;
    left: 10%;
    /* Connects left module center to right module center roughly */
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Drop lines to modules */
.os-line-drop-left,
.os-line-drop-right,
.os-line-drop-center {
    position: absolute;
    top: 50%;
    width: 2px;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.os-line-drop-left {
    left: 10%;
}

.os-line-drop-right {
    right: 10%;
}

.os-line-drop-center {
    left: 50%;
    transform: translateX(-50%);
}


/* Modules Grid (Bottom) */
.os-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.os-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.os-module:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(126, 123, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.os-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cta-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-module h4 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #fff;
}

.os-module p {
    font-size: 13px;
    color: var(--text-faded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.os-module .module-desc {
    font-size: 14px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .revarkos-board {
        width: 95vw;
        height: auto;
        transform: none;
        margin-top: 40px;
    }

    .revarkos-board:hover {
        transform: none;
    }

    .revarkos-visual-wrapper {
        height: auto;
        perspective: none;
    }

    .os-modules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .os-connectors {
        display: none;
    }

    .os-core-node {
        width: 100%;
        max-width: 320px;
    }
}

/* Animated Data Particles */
.data-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    z-index: 5;
    opacity: 0;
}

/* Animations for particles */
/* Center Flow Down */
.p-center {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: flow-down-center 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Branch Left Flow */
.p-left {
    top: 50%;
    left: 50%;
    animation: flow-branch-left 3s infinite cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

/* Branch Right Flow */
.p-right {
    top: 50%;
    left: 50%;
    animation: flow-branch-right 3s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.5s;
}

@keyframes flow-down-center {
    0% {
        top: 0;
        opacity: 1;
    }

    45% {
        top: 50%;
        opacity: 1;
    }

    /* Hit branch */
    55% {
        top: 50%;
        opacity: 1;
    }

    /* Pause slightly/turn */
    100% {
        top: 100%;
        opacity: 0;
    }

    /* Go to center bottom */
}

@keyframes flow-branch-left {
    0% {
        left: 50%;
        opacity: 0;
    }

    10% {
        left: 50%;
        opacity: 1;
    }

    50% {
        left: 10%;
        opacity: 1;
    }

    /* Travel to left node horiz */
    100% {
        left: 10%;
        top: 100%;
        opacity: 0;
    }

    /* Drop down */
}

@keyframes flow-branch-right {
    0% {
        left: 50%;
        opacity: 0;
    }

    10% {
        left: 50%;
        opacity: 1;
    }

    50% {
        right: 10%;
        left: auto;
        opacity: 1;
    }

    /* Travel to right node horiz */
    100% {
        right: 10%;
        left: auto;
        top: 100%;
        opacity: 0;
    }
}

/* COMPACT MODE & LAYERS */
.revarkos-board.compact {
    padding: 30px;
    height: auto;
    min-height: 600px;
}

.os-layer-1 {
    margin-bottom: 30px;
}

/* Core */
.os-layer-2 {
    margin-bottom: 40px;
}

/* Modules */
.os-layer-3 {}

/* Benefits */

/* Benefit Nodes */
.os-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.os-benefit-node {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px dashed rgba(0, 255, 155, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.os-benefit-node:hover {
    border-color: #00FF9B;
    background: rgba(0, 255, 155, 0.05);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #00FF9B;
    text-shadow: 0 0 10px rgba(0, 255, 155, 0.4);
}

.os-benefit-node h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.os-benefit-node p {
    font-size: 11px;
    color: var(--text-faded);
    line-height: 1.3;
}

/* Connectors Layer 2 to 3 */
.os-connectors-lower {
    position: absolute;
    top: auto;
    bottom: 120px;
    /* Adjust based on benefit node height */
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
}

.os-line-drop-lower {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 255, 155, 0.2));
}

/* Positions for lower drops corresponding to grid columns */
.drop-l2-1 {
    left: 16.66%;
}

.drop-l2-2 {
    left: 50%;
}

.drop-l2-3 {
    left: 83.33%;
}

/* Compact Adjustments */
.revarkos-board.compact .os-core-node {
    padding: 16px;
    width: 260px;
    margin-bottom: 10px;
}

.revarkos-board.compact .os-core-logo {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.revarkos-board.compact .os-module {
    padding: 20px 16px;
}

.revarkos-board.compact .os-module-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
}

.revarkos-board.compact .os-module h4 {
    font-size: 16px;
}

.revarkos-board.compact .os-module p {
    font-size: 11px;
}

/* REVARKOS VISUAL REFINEMENTS */
.revarkos-visual-wrapper {
    perspective: none !important;
    /* Flattened */
    height: auto;
    min-height: 500px;
    padding: 20px 0;
}

.revarkos-board.flat {
    transform: none !important;
    /* No rotation */
    width: 100%;
    max-width: 900px;
    background: transparent;
    /* Remove heavy board background for cleaner look */
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Connectors for Flat Layout */
.os-connectors-flat {
    position: relative;
    height: 60px;
    width: 60%;
    margin: 0 auto;
}

.os-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--cta-primary), rgba(255, 255, 255, 0.1));
}

.os-line-v.center {
    left: 50%;
}

.os-line-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Animation Classes */
.os-anim-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.os-anim-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Integrations Layer */
.os-integrations-layer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
}

.os-integrations-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faded);
    margin-bottom: 20px;
    display: block;
}

.os-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.os-logo-item {
    width: 32px;
    height: 32px;
    fill: currentColor;
    color: white;
}

.os-logo-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
}

/* Refined Modules */
.os-module.flat-mode {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

/* REVARKOS TREE EXPANSION */

/* LAYER 3 - The Branches underneath modules */
.os-submodule-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 20px;
    /* Increased to allow line visibility */
    position: relative;
    width: 100%;
}

/* Connectors from module to submodules */
.os-line-drop-sub {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 20px;
    /* Connects module bottom to first submodule top */
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.os-submodule {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    max-width: 280px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.os-submodule:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(126, 123, 255, 0.3);
    transform: translateX(5px);
}

.os-sub-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--cta-primary);
    flex-shrink: 0;
}

.os-submodule h5 {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    color: #eee;
}

.os-submodule span {
    display: block;
    font-size: 11px;
    color: var(--text-faded);
    margin-top: 2px;
}

/* Fix overlaps by spacing grid columns better or scrolling */
.os-modules-grid.expanded {
    align-items: start;
    gap: 10px;
    /* Reduce gap between columns if screen space is tight, or rely on responsive grid */
}

/* Connector tweaks */
.os-anim-element {
    transition-duration: 0.6s;
}

/* Responsive Grid to avoid overlap */
@media (min-width: 1024px) {
    .os-modules-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal cols */
        gap: 0;
        /* REMOVE GAP for alignment */
    }

    .revarkos-visual-wrapper {
        padding: 0 40px;
        overflow-x: visible;
    }

    .os-column {
        padding: 0 15px;
        /* Use padding for spacing instead of gap */
    }
}

/* REVARKOS FIXES - REMOVE IFRAME SCROLL */
.revarkos-visual-wrapper {
    overflow: visible !important;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Fix grid alignment and spacing */
.os-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* REMOVE GAP */
    width: 100%;
    margin-top: 0;
    justify-content: center;
}

/* Ensure column wrapper centers content */
.os-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 10px;
    /* Default padding for mobile/desktop base */
}

/* Prevent connector overflow by adjusting z-index and position */
.os-connectors-flat {
    position: relative;
    z-index: 0;
    /* Behind modules */
    margin-bottom: -1px;
    /* Slight tuck to ensure line touches */
    width: 100% !important;
    max-width: none !important;
}

.os-connectors-flat .os-line-v {
    z-index: 0;
}

.os-module {
    position: relative;
    z-index: 1;
    /* Above connectors */
    background: #080B0E;
    /* Ensure background covers lines */
    width: 100%;
    /* Fill column width */
}

/* Submodule alignment fixes */
.os-submodule-group {
    width: 100%;
    align-items: center;
    margin-top: 20px;
}

.os-submodule {
    z-index: 1;
    background: #0a0f14;
    /* Solid background */
    width: 100%;
}

/* Remove side padding on core node to ensure center */
.os-core-node {
    margin: 0 auto 0 auto;
    /* Remove bottom margin here as handled by connector height */
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .os-modules-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .os-connectors-flat {
        display: none;
    }

    /* Hide complex connectors on mobile */
    .os-line-drop-sub {
        display: block;
        height: 20px;
        position: static;
        margin: 0 auto;
    }
}

/* FINAL REVARKOS ALIGNMENT FIXES */
@media (min-width: 1024px) {
    .revarkos-visual-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
    }

    .revarkos-board.flat {
        max-width: 100% !important;
        /* Allow full width of wrapper */
    }
}

.revarkos-board.flat {
    margin: 0 auto;
    width: 100%;
    height: auto !important;
    /* Allow growth */
}

/* Ensure background color for modules to hide connector overlap */
.os-module {
    background: var(--bg-card, #080B0E);
}