:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-primary: 'Inter', sans-serif;
    --font-premium: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Default core theme variables */
    --grad-1: #9d50bb;
    /* Purple */
    --grad-2: #00d4ff;
    /* Cyan */
    --grad-3: #38ef7d;
    /* Green */
    --grad-4: #FFD700;
    /* Yellow */
    --grad-5: #ff9800;
    /* Orange */

    --accent: var(--grad-2);
    --accent-purple: var(--grad-1);
    --accent-orange: var(--grad-5);
}

/* ── Rotating Neural Themes ── */

/* Theme 1: Core Chronos (Purple/Cyan/Green) */
html.theme-rotate-1 {
    --grad-1: #9d50bb;
    --grad-1-rgb: 157, 80, 187;
    --grad-2: #00d4ff;
    --grad-2-rgb: 0, 212, 255;
    --grad-3: #38ef7d;
    --grad-3-rgb: 56, 239, 125;
    --grad-4: #FFD700;
    --grad-4-rgb: 255, 215, 0;
    --grad-5: #ff9800;
    --grad-5-rgb: 255, 152, 0;
    --accent: #00d4ff;
}

/* Theme 2: Sunday Beach (Oceanic/Sand) */
html.theme-rotate-2 {
    --grad-1: #264653;
    --grad-1-rgb: 38, 70, 83;
    --grad-2: #2A9D8F;
    --grad-2-rgb: 42, 157, 143;
    --grad-3: #E9C46A;
    --grad-3-rgb: 233, 196, 106;
    --grad-4: #F4A261;
    --grad-4-rgb: 244, 162, 97;
    --grad-5: #E76F51;
    --grad-5-rgb: 231, 111, 81;
    --accent: #2A9D8F;
}

/* Theme 3: Cherry Blossom (Rose/Pastel) */
html.theme-rotate-3 {
    --grad-1: #C9184A;
    --grad-1-rgb: 201, 24, 74;
    --grad-2: #FF4D6D;
    --grad-2-rgb: 255, 77, 109;
    --grad-3: #FF8FA3;
    --grad-3-rgb: 255, 143, 163;
    --grad-4: #FFB3C1;
    --grad-4-rgb: 255, 179, 193;
    --grad-5: #FFCCD5;
    --grad-5-rgb: 255, 204, 213;
    --accent: #FF4D6D;
}

/* Theme 4: Vibrant Sunset (Amethyst/Amber) */
html.theme-rotate-4 {
    --grad-1: #240046;
    --grad-1-rgb: 36, 0, 70;
    --grad-2: #5A189A;
    --grad-2-rgb: 90, 24, 154;
    --grad-3: #FF7900;
    --grad-3-rgb: 255, 121, 0;
    --grad-4: #FF9100;
    --grad-4-rgb: 255, 145, 0;
    --grad-5: #FF9E00;
    --grad-5-rgb: 255, 158, 0;
    --accent: #FF7900;
}

html.theme-jarvi {
    --accent: #00d4ff;
}

html.theme-grim {
    --accent: #70e000;
}

html.theme-murphy {
    --accent: #ff9800;
}

html.theme-forge {
    --accent: #FFD700;
}

html.theme-chronicles {
    --accent: #9d50bb;
}

/* Atmospheric Resonators (Persistent Gradient Themes) */
html.theme-chronos {
    --grad-1: #9d50bb;
    --grad-1-rgb: 157, 80, 187;
    --grad-2: #00d4ff;
    --grad-2-rgb: 0, 212, 255;
    --grad-3: #38ef7d;
    --grad-3-rgb: 56, 239, 125;
    --grad-4: #FFD700;
    --grad-4-rgb: 255, 215, 0;
    --grad-5: #ff9800;
    --grad-5-rgb: 255, 152, 0;
    --accent: #00d4ff;
    --accent-rgb: 0, 212, 255;
    --accent-secondary: #9d50bb;
}

html.theme-ocean {
    --grad-1: #264653;
    --grad-1-rgb: 38, 70, 83;
    --grad-2: #2A9D8F;
    --grad-2-rgb: 42, 157, 143;
    --grad-3: #E9C46A;
    --grad-3-rgb: 233, 196, 106;
    --grad-4: #F4A261;
    --grad-4-rgb: 244, 162, 97;
    --grad-5: #E76F51;
    --grad-5-rgb: 231, 111, 81;
    --accent: #2A9D8F;
    --accent-rgb: 42, 157, 143;
    --accent-secondary: #264653;
}

html.theme-blossom {
    --grad-1: #C9184A;
    --grad-1-rgb: 201, 24, 74;
    --grad-2: #FF4D6D;
    --grad-2-rgb: 255, 77, 109;
    --grad-3: #FF8FA3;
    --grad-3-rgb: 255, 143, 163;
    --grad-4: #FFB3C1;
    --grad-4-rgb: 255, 179, 193;
    --grad-5: #FFCCD5;
    --grad-5-rgb: 255, 204, 213;
    --accent: #FF4D6D;
    --accent-rgb: 255, 77, 109;
    --accent-secondary: #C9184A;
}

html.theme-sunset {
    --grad-1: #240046;
    --grad-1-rgb: 36, 0, 70;
    --grad-2: #5A189A;
    --grad-2-rgb: 90, 24, 154;
    --grad-3: #FF7900;
    --grad-3-rgb: 255, 121, 0;
    --grad-4: #FF9100;
    --grad-4-rgb: 255, 145, 0;
    --grad-5: #FF9E00;
    --grad-5-rgb: 255, 158, 0;
    --accent: #FF7900;
    --accent-rgb: 255, 121, 0;
    --accent-secondary: #5A189A;
}

html.theme-forge {
    --accent: #FFD700;
}

html.theme-chronicles {
    --accent: #9d50bb;
}

/* Agent-Specific Themes */
.jarvi-card {
    --agent-color-1: #0088ff;
    --agent-color-2: #00d4ff;
}

.grim-card {
    --agent-color-1: #70e000;
    --agent-color-2: #9eff33;
}

.murphy-card {
    --agent-color-1: #ff7b00;
    --agent-color-2: #ffae00;
}

.historian-card {
    --agent-color-1: #6200ea;
    --agent-color-2: #ffd700;
}

.forge-card {
    --agent-color-1: #ff9800;
    --agent-color-2: #ffc107;
}

.future-card {
    --agent-color-1: #333333;
    --agent-color-2: #666666;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 10px;
    background: linear-gradient(to right, var(--grad-1), var(--grad-2), var(--grad-3));
    z-index: 1000;
    /* box-shadow removed as per request */
    transition: width 0.1s ease-out;
}


/* Custom Scrollbar (Dashboard Match) */
::-webkit-scrollbar {
    width: 0;
    display: none;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--grad-2), var(--grad-3), var(--grad-4));
    /* Neon Gradient */
    border-radius: 4px;
    border: 2px solid var(--bg-color);
    /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--grad-2), var(--grad-3), var(--grad-4));
    opacity: 0.85;
    /* Slightly Darker on Hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    /* Premium Thickness */
    height: 3px;
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3), var(--grad-4));
    /* Agent Neon Gradient */
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: width 0.1s ease-out;
}

#blob {
    background-color: white;
    height: 12.5vmax;
    /* 50% Smaller */
    aspect-ratio: 1;
    position: fixed;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, var(--grad-2), var(--grad-1));
    animation: rotate-blob 20s infinite;
    opacity: 0.35;
    z-index: -2;
    pointer-events: none;
    left: 50%;
    top: 50%;
}

/* Pricing Section */
/* Consolidated Pricing Styles */
.pricing-section {
    padding: 3rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on desktop */
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

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

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    height: 100%;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: visible;
    /* Allow tags to show at the top */
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(var(--grad-2-rgb, 0, 212, 255), 0.15);
}

.pricing-card.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(var(--grad-2-rgb, 0, 212, 255), 0.05) 0%, rgba(10, 10, 10, 0.8) 100%);
    box-shadow: 0 0 40px rgba(var(--grad-2-rgb, 0, 212, 255), 0.1);
    transform: scale(1.05);
    padding-top: 2.5rem;
}

.pricing-card.popular:hover {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 20px 50px rgba(var(--grad-2-rgb, 0, 212, 255), 0.25);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    background: var(--accent);
    color: #000;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(var(--grad-2-rgb), 0.3);
}

.tier-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-card.popular .tier-name {
    color: #fff;
}

.tier-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.tier-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.feature-list {
    text-align: left;
    margin: 1rem 0;
    flex-grow: 1;
}

.feature-item {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.feature-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.feature-item.agent-highlight {
    color: var(--accent);
    font-weight: 700;
}

.feature-item.locked {
    color: #444;
}

.feature-item.locked svg {
    color: #333;
}

.feature-item.dimmed {
    color: #888;
    font-weight: 500;
}

.feature-item.sub-item {
    margin-left: 1.5rem;
    font-size: 0.75rem;
    margin-top: -0.2rem;
    opacity: 0.8;
    font-weight: 400;
}

.feature-item {
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.2;
}

.feature-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.feature-item.agent-highlight {
    color: var(--accent);
    font-weight: 700;
}

.feature-item.locked {
    color: rgba(255, 255, 255, 0.2);
}

.feature-item.locked svg {
    color: rgba(255, 255, 255, 0.1);
}

.feature-item.sub-item {
    margin-left: 1.5rem;
    font-size: 0.7rem;
    margin-top: -0.2rem;
    opacity: 0.7;
    font-weight: 400;
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-top: 1rem;
}

.btn-pricing:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-pricing.primary {
    background: var(--accent);
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(var(--grad-2-rgb, 0, 212, 255), 0.3);
}

.btn-pricing.primary:hover {
    box-shadow: 0 8px 25px rgba(var(--grad-2-rgb, 0, 212, 255), 0.5);
    background: #fff;
}

/* Features Section */
.features-section {
    padding: 5rem 10%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Diamond Grid Layout (1-2-1) */
.features-grid-diamond {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
    justify-items: center;
}

.features-grid-diamond .feature-card {
    width: 100%;
    max-width: 350px;
}

.features-grid-diamond> :nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
}

.features-grid-diamond> :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

.features-grid-diamond> :nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
}

.features-grid-diamond> :nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
}

@media (max-width: 768px) {
    .features-grid-diamond {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .features-grid-diamond>* {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: center !important;
    }
}


/* Infrastructure Section */
.infrastructure-section {
    padding: 8rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#blur {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: -1;
    backdrop-filter: blur(12vmax);
    pointer-events: none;
    top: 0;
    left: 0;
}

@keyframes rotate-blob {
    from {
        rotate: 0deg;
    }

    50% {
        scale: 1 1.5;
    }

    to {
        rotate: 360deg;
    }
}

/* Background Glows */
.glow-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--grad-2-rgb, 0, 212, 255), 0.1) 0%, rgba(var(--grad-1-rgb, 157, 80, 187), 0.1) 30%, rgba(5, 5, 5, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(100px);
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-45%, -55%) scale(1.1);
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    background: linear-gradient(45deg, var(--grad-2), var(--grad-1), var(--grad-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--grad-2-rgb, 0, 212, 255), 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3), var(--grad-4));
    /* Neon Scrollbar Gradient */
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    color: #000;
    /* Contrast text */
    box-shadow: 0 4px 15px rgba(var(--grad-2-rgb, 0, 212, 255), 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--grad-2-rgb, 0, 212, 255), 0.6);
    background: linear-gradient(90deg, var(--grad-4), var(--grad-3), var(--grad-2));
    /* Reverse on hover */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
}

/* Hero CTA Fade In */
/* Hero CTA Fade In */
.hero-cta {
    opacity: 0;
    animation: fadeIn 1s ease forwards 5.8s;
    /* Appears after typing finishes (2.3 + 2 + 1.5) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.are-you-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #555;
    /* Greyed out */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    /* Hidden initially */
    animation: fadeIn 1s ease forwards 7.8s;
    /* 5.8s (CTA) + 2s delay */
}

/* H1 Glitch/Text */
.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hacker-text {
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
    min-height: 6rem;
    /* Prevents vertical jumping */
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 3rem;
    line-height: 1.3;
    opacity: 0;
    animation: fadeIn 0.5s ease-in 2.3s forwards;
}

/* Typewriter Effect - Simplified & Robust */
.hero-subtitle .typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    /* Agent Neon Gradient Text */
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3), var(--grad-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    font-family: var(--font-premium);
    vertical-align: bottom;
    letter-spacing: -0.01em;
}

.hero-subtitle .typewriter-line1 {
    width: 0;
    border-right: 2px solid transparent;
    /* Starts hidden until 2.3s */
    /* 1. Types 2s (2.3s to 4.3s). 2. Cursor is solid during typing, then disappears immediately at 4.3s. */
    animation: typing1 2s steps(41, end) 2.3s forwards, solid-caret 2s step-end 2.3s forwards;
}

.hero-subtitle .typewriter-line2 {
    width: 0;
    border-right: 2px solid transparent;
    margin-top: 5px;
    /* 1. Types 1.5s (4.3s to 5.8s). 2. Solid cursor while typing. 3. Blinks 5x for 4s total, 4. Disappears forever at 9.8s. */
    animation: typing2 1.5s steps(23, end) 4.3s forwards, solid-caret 1.5s step-end 4.3s forwards, blink-caret 0.8s step-end 5.8s 5 forwards;
}

@keyframes solid-caret {

    0%,
    99% {
        border-right-color: var(--accent);
    }

    100% {
        border-right-color: transparent;
    }
}

@keyframes blink-caret {

    0%,
    49% {
        border-right-color: var(--accent);
    }

    50%,
    100% {
        border-right-color: transparent;
    }
}

@keyframes typing1 {
    from {
        width: 0;
    }

    to {
        width: 35ch;
        /* Reduced another 1.5ch to sit tight against the period */
    }
}

@keyframes typing2 {
    from {
        width: 0;
        border-right-color: var(--accent);
    }

    to {
        width: 22ch;
        /* Added ~3ch to push right of "JARVIS." */
        border-right-color: transparent;
    }
}

@keyframes blink-caret {

    0%,
    100% {
        border-right-color: transparent;
    }

    50% {
        border-right-color: var(--accent);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes typing-line1 {
    to {
        width: 46ch;
    }
}

@keyframes typing-line2 {
    to {
        width: 26ch;
        /* Increased to show full "JARVIS." */
    }
}

@keyframes stopCaret {
    to {
        border-right-color: transparent;
    }
}

@keyframes showCaret {
    to {
        border-right-color: var(--accent-blue);
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle span {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-in 6s forwards;
}

.btn-glitch {
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.btn-glitch:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(157, 80, 187, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(157, 80, 187, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(157, 80, 187, 0);
    }
}

/* Agents Section */
.agents-section {
    padding: 8rem 10%;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    scroll-margin-top: 120px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Neural Pyramid Layout */
.neural-pyramid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
}

.pyramid-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .pyramid-row {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .neural-pyramid {
        gap: 2rem;
    }

    .pyramid-row {
        flex-direction: column;
        align-items: center;
    }
}

/* Neural Card Base & Perspective */
.neural-card {
    min-width: 260px;
    max-width: 320px;
    height: 340px;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    scroll-snap-align: start;
    cursor: pointer;
}

.neural-content {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Desktop only: 3D hover flip ───────────────────────────── */
@media (pointer: fine) {
    .neural-card:hover .neural-content {
        transform: rotateY(180deg);
    }
}

/* ── Touch/tablet: Scroll-driven rotateY flip ──────────────────────────────
   JS drives rotateY on .neural-content proportionally to scroll position.
   Face swap (back→front) is handled via opacity at the 0° crossing —
   no backface-visibility needed, avoids all iOS Safari 3D quirks.        */
@media (pointer: coarse) {

    /* Keep perspective so the Y rotation looks 3D */
    .neural-card {
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }

    /* Flat transform-style: JS applies rotateY as a flat-card tilt      */
    /* The card rotates like a door, not an actual two-sided flip.        */
    /* We swap what's SHOWN via opacity at the rotation midpoint (0°).   */
    .neural-content {
        -webkit-transform-style: flat;
        transform-style: flat;
        will-change: transform;
        /* Pre-promote to GPU layer for jank-free rotation */
        /* No default transform — JS sets it at 60fps via inline style   */
    }

    /* Back face is flat (0deg), front face is flipped (180deg) so it reads forwards when parent hits 180 */
    .neural-back {
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        position: absolute;
        inset: 0;
    }

    .neural-front {
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        -webkit-transform: rotateY(180deg) !important;
        transform: rotateY(180deg) !important;
        position: absolute;
        inset: 0;
    }

    /* Default: back face visible, front hidden */
    .neural-back {
        opacity: 1;
    }

    .neural-front {
        opacity: 0;
        pointer-events: none;
    }

}



/* Back Face (Initial View - Logo) */
.neural-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes rotation_border {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes rotation_481 {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

.neural-back::before,
.neural-front::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    /* Double-sided sweeping conic gradient perfectly paints the borders without cutoffs */
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 150deg,
            var(--agent-color-1) 170deg,
            var(--agent-color-2) 180deg,
            var(--agent-color-1) 190deg,
            transparent 210deg,
            transparent 330deg,
            var(--agent-color-1) 350deg,
            var(--agent-color-2) 360deg);
    animation: rotation_border 4000ms infinite linear;
    z-index: 1;
    opacity: 0.6;
    transform-origin: center center;
}

.neural-back-content {
    position: absolute;
    z-index: 2;
    inset: 2px;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 19px;
    gap: 1.2rem;
}

.neural-back-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 15px var(--agent-color-1));
    transition: var(--transition);
}

.neural-back-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name-front {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: var(--font-primary);
    margin-top: 5px;
}

.hover-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    font-weight: 600;
    font-family: var(--font-primary);
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

/* Front Face (Visible on hover/flip) */
.neural-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    color: white;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.neural-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.neural-front .circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(var(--agent-color-1), var(--agent-color-2));
    filter: blur(40px);
    opacity: 0.2;
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -30px;
}

.neural-front-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.description-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.2rem;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.agent-name-flip {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
}

.agent-role-flip {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.agent-code-flip {
    font-size: 0.7rem;
    color: var(--agent-color-1);
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.info-tag {
    display: inline-block;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--agent-color-1);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: auto;
}

.info-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.neural-card:hover .info-tag::before {
    left: 100%;
    transition: 1.5s 0.8s;
}

/* Status Pill */
.status-pill {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.status-active {
    background: rgba(0, 0, 0, 0.3);
    color: var(--agent-color-2);
    border: 1px solid var(--agent-color-1);
    box-shadow: 0 0 15px var(--agent-color-1), inset 0 0 5px var(--agent-color-1);
    animation: statusPulse 3s infinite ease-in-out;
}

.status-pending {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-maintenance {
    background: rgba(255, 153, 102, 0.1);
    color: #ff9966;
    border: 1px solid rgba(255, 153, 102, 0.3);
    box-shadow: 0 0 10px rgba(255, 153, 102, 0.1);
}

@keyframes statusPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 25px var(--agent-color-1), inset 0 0 10px var(--agent-color-1);
    }
}

/* Console Section */
.manifestation-console {
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.console-box {
    width: 100%;
    max-width: 800px;
    background: #0d0d0d;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.console-header {
    background: #1a1a1a;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot:nth-child(1) {
    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.console-header p {
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
    margin-left: 1rem;
}

.console-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.line {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.green {
    color: #27c93f;
}

.blue {
    color: #00d2ff;
    font-weight: bold;
}

.found {
    color: #ffbd2e;
    text-decoration: underline;
}

/* Roadmap Section */
/* Roadmap Timeline Section */
/* ═══════════════════════════════════════════════
   GENESIS ROADMAP  —  Fully Responsive Timeline
   Single source of truth via CSS custom properties:
     --line-x        : horizontal centre of the timeline line
     --dot-size      : diameter of the connector dot
     --card-indent   : left padding for cards in single-column mode
   ═══════════════════════════════════════════════ */

.roadmap-section {
    padding: 8rem 5%;
    text-align: center;
}

/* ─── Timeline Container ─────────────────────── */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0;

    /* Desktop defaults */
    --line-x: 50%;
    /* centre of the two-column layout          */
    --line-w: 4px;
    /* line thickness                           */
    --dot-size: 20px;
    /* connector dot diameter                   */
    --dot-half: calc(var(--dot-size) / 2);
    --card-indent: 56px;
    /* single-column: content starts here       */
    --card-gutter: 40px;
    /* desktop: padding towards the centre line */
}

/* ─── The Vertical Line ─────────────────────── */
.timeline-line,
.timeline-progress {
    position: absolute;
    width: var(--line-w);
    top: 35px;
    bottom: 0;
    left: var(--line-x);
    margin-left: calc(var(--line-w) / -2);
    border-radius: 2px;
}

.timeline-line {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.timeline-progress {
    background: linear-gradient(to bottom, var(--grad-2), var(--grad-3), var(--grad-4));
    height: 0;
    /* driven by JS scroll */
    z-index: 1;
    box-shadow: 0 0 15px rgba(var(--grad-2-rgb, 0, 212, 255), 0.8);
    transition: height 0.1s linear;
}

/* ─── Cards ──────────────────────────────────── */
.roadmap-card {
    position: relative;
    width: 50%;
    padding: 10px var(--card-gutter);
    box-sizing: border-box;
    margin-bottom: 3rem;
    border: none;
    border-radius: 0;
    overflow: visible;
    text-align: left;
    backdrop-filter: none;
    background: inherit;
    transition: none;
}

/* Left column (odd) */
.roadmap-card:nth-child(odd) {
    left: 0;
    padding-right: var(--card-gutter);
}

/* Right column (even) */
.roadmap-card:nth-child(even) {
    left: 50%;
    padding-left: var(--card-gutter);
}

/* ─── Connector Dots ─────────────────────────── */
.roadmap-card::after {
    content: '';
    position: absolute;
    width: var(--dot-size);
    height: var(--dot-size);
    background: #0a0a0a;
    border: 3px solid var(--grad-2);
    border-radius: 50%;
    top: 25px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(var(--grad-2-rgb, 0, 212, 255), 0.8);
    /* Desktop: odd cards — dot on right edge (touching the centre line) */
    right: calc(var(--dot-half) * -1 - 3px);
    left: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-card:nth-child(even)::after {
    /* Even cards — dot on left edge */
    left: calc(var(--dot-half) * -1 - 3px);
    right: auto;
}

/* Active state triggered by JS IntersectionObserver */
.roadmap-card.active::after {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    box-shadow: 0 0 20px rgba(var(--grad-2-rgb, 0, 212, 255), 0.9), inset 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: #fff;
    transform: scale(1.1);
}

/* ─── Card Inner Content ─────────────────────── */
.roadmap-card .content-box {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-card.active .content-box,
.roadmap-card:hover .content-box {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 20px rgba(var(--grad-2-rgb, 0, 212, 255), 0.2),
        inset 0 0 10px rgba(var(--grad-2-rgb, 0, 212, 255), 0.05);
}

.card-header h3 {
    font-family: var(--font-heading);
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.card-body {
    max-height: none;
    padding: 0;
    overflow: visible;
}

/* ─── TABLET  (≤ 960px) ──────────────────────── */
/* Switch to single-column. Update --line-x and derive everything else. */
@media screen and (max-width: 960px) {
    .timeline {
        --line-x: 48px;
        /* line sits near the left edge */
        --card-indent: calc(var(--line-x) + 24px);
    }

    /* Collapse ALL cards to full-width single-column */
    .roadmap-card,
    .roadmap-card:nth-child(odd),
    .roadmap-card:nth-child(even) {
        width: 100%;
        left: 0 !important;
        padding: 10px 20px 10px var(--card-indent);
    }

    /* Sync all dots to the line — use transform to centre perfectly on --line-x */
    .roadmap-card::after,
    .roadmap-card:nth-child(odd)::after,
    .roadmap-card:nth-child(even)::after {
        left: var(--line-x);
        right: auto;
        transform: translateX(-50%);
    }
}

/* ─── MOBILE  (≤ 520px) ─────────────────────── */
/* Tighten the line x-position and section padding for small phones. */
@media screen and (max-width: 520px) {
    .roadmap-section {
        padding: 4rem 3%;
    }

    .timeline {
        --line-x: 28px;
    }
}


/* Mobile Responsiveness */
/* Agent Pyramid Layout */
.agent-pyramid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
}

.agent-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

.agent-row.apex .agent-card {
    max-width: 320px;
}

@media (max-width: 1024px) {
    .agent-row {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .agent-pyramid {
        gap: 3rem;
    }

    .agent-row {
        flex-direction: column;
        align-items: center;
    }
}

.cta-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3), var(--grad-4));
    /* Full Agent Gradient */
    color: #000;
    /* Dark text for contrast against bright gradient */
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 0, 212, 255), 0.4);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(var(--accent-rgb, 0, 212, 255), 0.6);
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-family: 'Space Mono', monospace;
    color: #fff;
}

.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.toggle-label {
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: #666;
    font-family: var(--font-heading);
}

.toggle-label.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--grad-2-rgb, 0, 212, 255), 0.3);
}

.save-badge {
    background: rgba(var(--grad-2-rgb, 0, 212, 255), 0.1);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
    border: 1px solid rgba(var(--grad-2-rgb, 0, 212, 255), 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.discount-badge {
    background: var(--accent);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.amount,
.period {
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(56, 239, 125, 0.6);
}

/* Unified Pricing Primary Button handled at top */




/* Unified Terminal Simulation */
.terminal-window {
    width: 100%;
    max-width: 900px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    margin-top: 3rem;
    text-align: left;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
}

.terminal-body {
    padding: 2rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
    opacity: 0;
    /* Animated via JS */
    animation: fadeInLog 0.3s forwards;
}

@keyframes fadeInLog {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Agent Identities in Terminal */
.agent-tag {
    font-weight: 700;
    min-width: 100px;
    text-transform: uppercase;
    text-align: right;
}

.agent-msg {
    color: #eee;
}

.agent-system {
    color: #666;
}

.agent-jarvis {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(var(--grad-2-rgb, 0, 212, 255), 0.3);
}

.agent-grim {
    color: #38ef7d;
    text-shadow: 0 0 5px rgba(56, 239, 125, 0.3);
}

.agent-murphy {
    color: #ffae00;
    text-shadow: 0 0 5px rgba(255, 174, 0, 0.3);
}

.agent-chronicles {
    color: #b388ff;
    text-shadow: 0 0 5px rgba(98, 0, 234, 0.3);
}

.sub-milestone {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-milestone:last-child {
    margin-bottom: 0;
}

.sub-milestone h4 {
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.sub-milestone p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.sub-milestone strong {
    color: #fff;
}

/* Features */
.features-section {
    padding: 8rem 10%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Legal Customizations inside Roadmap Card */
.legal-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.legal-tab {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-tab:hover,
.legal-tab.active {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.legal-tab.active {
    position: relative;
}

.legal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.legal-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.legal-content.active {
    display: block;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Custom Scrollbar for Legal Content */
.legal-content.active::-webkit-scrollbar {
    width: 4px;
}

.legal-content.active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.legal-content.active::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--grad-1), var(--grad-2), var(--grad-3));
    border-radius: 10px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1rem;
    margin: 1.5rem 0 0.8rem;
}

.legal-content h4 {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 0.9rem;
    margin: 1.2rem 0 0.5rem;
}

.legal-content p {
    color: #888;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.accent-link:hover {
    opacity: 0.8;
}

/* Footer Enhancement */
footer {
    padding: 3rem 10%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

footer p {
    color: #444;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Legal Pages Specific */
.legal-page-container {
    padding: 120px 10% 80px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.back-link:hover {
    opacity: 0.7;
    color: var(--accent);
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

.accent-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .legal-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .legal-tab.active::after {
        display: none;
    }
}

/* Responsive Design */

/* Tablet and smaller desktops (1200px and below) */
@media (max-width: 1200px) {
    .pyramid-row {
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (900px and below) */
@media (max-width: 900px) {
    .neural-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin: 1.5rem 0;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px) scale(1);
    }

    .glitch {
        font-size: 3rem;
    }

    .hacker-text {
        min-height: 4rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    nav {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jarvis-card,
    .grim-card,
    .murphy-card,
    .future-card {
        grid-column: span 1;
    }

    .agent-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .roadmap-cards {
        padding: 0 1rem;
    }

    .features-section {
        padding: 4rem 5%;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 3.2vw;
    }

    .btn-glitch {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .agent-card {
        height: 400px;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}