/* ============================================
   CRUVIXAI V2 - DARK PREMIUM THEME
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #0f1419;
    --color-bg-tertiary: #141420;
    --color-bg-card: #1a1a2e;

    /* Fresh Energetic Gradient (Violet to Orange/Sunset) */
    --color-accent-primary: #8b5cf6;
    --color-accent-secondary: #f97316;
    --color-accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);

    --color-text-primary: #ffffff;
    --color-text-secondary: #e2e8f0;
    --color-text-muted: #9ca3af;
    --color-text-accent: #8b5cf6;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(59, 130, 246, 0.5);

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-accent: 'Cinzel', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === UTILITIES === */
.font-display {
    font-family: var(--font-display);
}

.font-accent {
    font-family: var(--font-accent);
}

.text-gradient {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-pink-orange {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-logo {
    background: linear-gradient(to right, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-accent-primary);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Double protect */
    width: 100%;
}

/* Ensure content sits above particles */
.header,
.section,
.footer,
.hero {
    position: relative;
    z-index: 2;
}

/* Particle canvas should be fixed but accessible visually */
#particles-canvas {
    z-index: 0 !important;
}

/* ... existing code ... */

/* Link Styling */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ... existing code ... */

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* ... existing code ... */

/* Cleaned up duplicate logo rules */


img,
svg {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SVG ICON STYLING
   ============================================ */
/* Size rules only - let native gradient colors show */
.logo img,
.logo svg {
    /* No filter needed for new full-color logo */
}

.product-icon,
.product-icon img,
.product-icon svg {
    /* No filter needed for new full-color icons */
    /* No filter needed for new full-color icons */
    filter: none;
    /* Removed subtle glow */
}

/* Feature icons - preserve native colors */
img[src*="icon-"],
svg[src*="icon-"] {
    /* No filter needed */
}

/* Icon containers with background */
.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    font-size: 2rem;
}

.card-icon img,
.card-icon svg {
    /* No filter needed */
}

/* Standalone icons on dark background */
.icon-accent {
    /* No filter needed */
}

.icon-white {
    filter: brightness(0) invert(1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* Standard Full Width Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Header Inner - Grid Layout for True Centering */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    justify-self: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-self: end;
}

.logo {
    justify-self: start;
}

/* Responsiveness */
@media (max-width: 1400px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
    }

    .hidden-mobile {
        display: none !important;
    }

    .header-inner {
        position: relative;
    }

    .nav {
        display: none;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 280px !important;
        margin: 0 !important;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav.is-open {
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        position: relative;
    }

    /* Fix highlight deviation: Align underline to left for dropdown */
    .nav-link::after {
        left: 0 !important;
        transform: none !important;
        width: 0;
        bottom: 0;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        /* Match bottom corners */
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100% !important;
        /* Wholly cover */
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Ensure actions container is visible and right-aligned */
    .header-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: var(--space-sm);
    }

    .mobile-menu-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
}

/* Force Mobile Menu on Touch Devices (large tablets vs laptops) */
/* Force Mobile Menu on Touch Devices (large tablets vs laptops) */
@media (hover: none) and (pointer: coarse) {

    .nav,
    .hidden-mobile {
        display: none !important;
    }

    /* Ensure actions container is visible and right-aligned */
    .header-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: var(--space-sm);
    }

    .mobile-menu-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .header-inner {
        justify-content: space-between;
        position: relative;
    }
}


/* ============================================
   TYPING & FADE ANIMATIONS
   ============================================ */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent-primary);
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink 1s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

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

.fade-up-word {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    display: inline-block;
    margin-right: 0.25em;
}

/* Stagger delays for words */
.fade-up-word:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-up-word:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-up-word:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-up-word:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-up-word:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-up-word:nth-child(6) {
    animation-delay: 0.6s;
}

.fade-up-word:nth-child(7) {
    animation-delay: 0.7s;
}

.fade-up-word:nth-child(8) {
    animation-delay: 0.8s;
}


.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    width: 40px;
    height: 40px;
    /* Remove color filter if needed, but it's already removed in SVG section */
}

.logo span {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}



.nav-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    /* Create context for glow */
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.03);
    /* More subtle background */
}

/* Premium Glow Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-accent-primary);
    box-shadow: 0 0 8px var(--color-accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    opacity: 1;
}

.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    /* Violet to Orange (Original "Before Red") */
    background: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    opacity: 0.9;
}

/* Header CTA Pulsing Glow */
.nav .btn-primary {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), 0 0 50px rgba(249, 115, 22, 0.3);
    }
}

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

.btn-secondary:hover {
    border-color: var(--color-accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    /* Use Outfit for Hero */
}


.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    /* Reduced from 3xl for tighter layout */
}

.section-badge {
    display: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Alternating section with gradient overlay */
.section-alt {
    background: var(--color-bg-secondary);
    position: relative;
}

/* Top gradient divider for section-alt */
.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), var(--color-accent-secondary), transparent);
    opacity: 0.3;
}

/* Bottom gradient divider for section-alt */
.section-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-secondary), var(--color-accent-primary), transparent);
    opacity: 0.3;
}

/* Every other alt section gets a different gradient */
.section-alt:nth-of-type(even)::before {
    background: linear-gradient(90deg, transparent, var(--color-accent-secondary), var(--color-accent-primary), transparent);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: rgba(17, 24, 39, 0.6);
    /* Glass effect base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* Architecture Cards */
.arch-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.arch-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px -10px rgba(139, 92, 246, 0.25);
}

.arch-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.arch-icon img {
    width: 100%;
    height: 100%;
}

.arch-card:hover .arch-icon {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.arch-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.card-icon img {
    width: 28px;
    height: 28px;
    color: white;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.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);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(20, 20, 32, 0.5) 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}

.product-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    color: var(--color-accent-primary);
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.product-card .description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--color-accent-gradient);
    border-radius: 2px;
    opacity: 0.6;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.stat-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-secondary);
    border-top: none;
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-gradient);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.team-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-social-bottom {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
    transition: all var(--transition-fast);
    margin-right: var(--space-md);
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.footer-social-bottom .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-bottom .social-icon svg {
    fill: currentColor;
    transition: fill var(--transition-fast);
}

.footer-social-bottom .social-icon:hover {
    background: var(--color-accent-gradient);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.footer-social-bottom .social-icon:hover svg {
    fill: white;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

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

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
    }

    .footer-brand {
        grid-column: span 3;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Better Tablet Response for Grids */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on small laptops */
    }
}

@media (max-width: 900px) {

    /* iPad Portrait & Large Phones: Force Stack */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 500px;
        /* Limit width when stacked */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation & Header */
    .header {
        background: rgba(10, 10, 15, 0.95);
        /* Ensure contrast on mobile */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav {
        display: none;
        position: fixed;
        top: 70px;
        /* Below header */
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-xl);
        flex-direction: column;
        gap: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-20px);
        opacity: 0;
        transition: all var(--transition-normal);
        pointer-events: none;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav.is-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .nav-link:active {
        background: rgba(139, 92, 246, 0.1);
    }

    .mobile-menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--color-text-primary);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .mobile-menu-btn.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .mobile-reverse {
        display: flex !important;
        flex-direction: column-reverse;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Fixed Functionality for Mobile Menu */
    .mobile-menu-btn {
        display: flex !important;
        /* Force display */
        z-index: 1002;
        /* Above nav */
    }

    /* Ensure header stays on top */
    .header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1001;
        background: rgba(10, 10, 15, 0.8) !important;
        /* Always semi-transparent background on mobile */
        backdrop-filter: blur(10px);
    }
}

/* ============================================
   BROWSER FRAME SCREENS
   ============================================ */
.browser-frame {
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    background: var(--color-bg-tertiary);
    transition: transform var(--transition-normal);
}

.browser-frame:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.browser-header {
    background: #171725;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Helper for plans image grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@import "story-tree.css";

/* Footer Override for Red/White Theme */
/* Footer Override for Red/White Theme */
.footer {
    background: var(--color-bg-tertiary) !important;
    border-top: 1px solid var(--color-border);
    overflow: visible !important;
    /* Allow popovers to escape */
}

/* ... existing styles ... */

/* --- Footer Location Cards --- */
.location-item {
    cursor: pointer;
    position: relative;
    padding: 10px;
    /* Increased clickable area */
    border-radius: 8px;
    transition: background 0.3s ease;
    display: inline-block;
    width: 100%;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.location-card-popover {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    /* Move ABOVE (Safest for footer visibility) */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    /* Max Z-Index */
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    text-align: left;
    margin-bottom: 10px;
}

.location-item:hover .location-card-popover {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* Arrow for popover (Pointing DOWN) */
.location-card-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(20, 20, 30, 0.95) transparent transparent transparent;
    /* Pointing down */
}

/* Process Grid (Replaces Story Tree) */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.process-card {
    flex: 1 1 300px;
    max-width: 350px;
    /* Existing styles continue... */
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-3xl) var(--space-xl);
    /* Increased top/bottom padding */
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
}

.process-card .card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    background: transparent;
    border: none;
}

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

/* Enhanced Hero Tagline (Title Quote) */
/* Enhanced Hero Tagline (Title Quote) */
.hero-tagline {
    font-size: 2.4rem !important;
    /* Force update + 5% increase */
    font-weight: 500;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
    color: var(--color-text-primary);
    position: relative;
    padding: 0 var(--space-xl);
    letter-spacing: -0.02em;
    /* Tighten for title feel */
}

/* Symmetrical Icon Sizing */
.process-card .card-icon,
.card .card-icon {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-card .card-icon img,
.card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Hide original H1 Title to remove void */
.hero h1 {
    display: none !important;
}

/* Massive Hero Tagline (New Title) */
.hero-tagline {
    font-size: 3.5rem !important;
    line-height: 1.6 !important;
    /* More space between lines */
    margin-top: 0 !important;
    padding-top: 80px !important;
    /* Added space above (Standardized to Platform) */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2.2rem !important;
    }
}

/* --- FINAL POLISH (Step 1045+) --- */

/* 1. Add Padding to Product Suite Cards */
.product-card {
    padding: var(--space-3xl) var(--space-xl) !important;
}

/* 2. Add Padding to Tools Cards */
.card {
    padding: var(--space-3xl) var(--space-xl) !important;
}

/* 3. Force Process Grid to Single Row (Desktop) */
/* 3. Revert Process Grid to Wrap & Shrink Cards */
.process-card {
    padding: var(--space-2xl) var(--space-lg) !important;
    /* Smaller padding */
    flex: 1 1 250px !important;
    max-width: 280px !important;
    /* Force small width */
}

/* 4. Remove Gradient Background from Tool Icons */
.card .card-icon {
    background: transparent !important;
    width: 120px !important;
    height: 120px !important;
}

.card .card-icon img {
    /* Ensure icon fills the container */
    width: 100% !important;
    height: 100% !important;
}

/* Platform Hero Override (further reduced) */
.platform-hero .hero-tagline {
    font-size: 2.8rem !important;
    padding-top: 80px !important;
}

/* --- Pricing Section Styles (Bento Glass) --- */
.pricing-card {
    /* Enhanced Glassmorphism */
    background: rgba(20, 25, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Premium Shape */
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;

    /* Inner light hit */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 35, 45, 0.7);
    border-color: rgba(139, 92, 246, 0.4);
    /* Violet tint on hover */
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
}

.pricing-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
    height: 120px;
    /* Allocated space */
}

.plan-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.price-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge/Chip Style for Plan Name */
.plan-name {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* New price class for the big number */
.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan-tag {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    padding: 8px 18px;
    border-radius: 99px;
    /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Orbit: Cool Blue */
.tag-orbit {
    color: #60a5fa;
    /* Blue-400 */
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.08);
}

.tag-orbit:hover {
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    border-color: #60a5fa;
}

/* Nova: Energetic Orange */
.tag-nova {
    color: #f97316;
    /* Orange-500 */
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.08);
}

.tag-nova:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    border-color: #f97316;
}

/* Cosmos: Deep Purple */
.tag-cosmos {
    color: #a78bfa;
    /* Violet-400 */
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}

.tag-cosmos:hover {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    border-color: #a78bfa;
}

.plan-tag:hover {
    transform: translateY(-2px);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.check-icon {
    color: white;
    /* Clean white check */
    width: 16px;
    height: 16px;
    background: #10b981;
    /* Solid green circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.cross-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.resource-limits {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-top: 16px;
}

.limit-item {
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.limit-label {
    color: rgba(255, 255, 255, 0.5);
}





/* --- Status & Time Styles --- */
.loc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    /* Default closed */
    display: inline-block;
}

.status-dot.open {
    background-color: #10B981;
    /* Emerald Green */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
}

.live-clock {
    font-family: monospace;
    color: var(--color-text-secondary);
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.loc-title {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.loc-address {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   ABOUT PAGE: CORE CARDS PREMIUM
   ============================================ */
.core-card {
    background: linear-gradient(145deg, rgba(20, 20, 32, 0.8) 0%, rgba(10, 10, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.core-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.core-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.core-card:hover::before {
    opacity: 1;
}

/* Profile Image Enhanced */
.profile-glow-container {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-lg);
    position: relative;
    z-index: 2;
}

.profile-glow-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(139, 92, 246, 0.4);
    transition: all 0.4s ease;
}

.core-card:hover .profile-glow-img {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
}

/* AI Core Icon Enhanced */
.ai-core-container {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
    transition: all 0.4s ease;
}

.ai-core-container img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    transition: all 0.4s ease;
}

.core-card:hover .ai-core-container {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.2);
    transform: scale(1.1) rotate(5deg);
}

/* Archon Icon Pulse Animation */
@keyframes archonPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
        transform: scale(1.05);
    }
}

.archon-tech-glow {
    animation: archonPulse 3s infinite ease-in-out;
}

/* Archon Node Animation */
@keyframes nodeFloat {

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

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.archon-node-1 {
    animation: nodeFloat 2s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}

.archon-node-2 {
    animation: nodeFloat 2s infinite ease-in-out 0.6s;
    /* Staggered */
    transform-box: fill-box;
    transform-origin: center;
}

.archon-node-3 {
    animation: nodeFloat 2s infinite ease-in-out 1.2s;
    /* Staggered */
    transform-box: fill-box;
    transform-origin: center;
}

/* FAQ Accordion Styles */
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-text-secondary);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-lg);
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-primary);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 var(--space-lg);
}

.faq-answer p {
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-bottom: var(--space-lg);
    margin: 0;
}

/* Active State */
.faq-item.active {
    border-color: var(--color-accent-primary);
    background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--color-accent-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate max height */
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: var(--color-bg-card);
    z-index: 10;
}

.modal-title h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.modal-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: var(--space-xl);
    color: var(--color-text-secondary);
}

.modal-section {
    margin-bottom: var(--space-xl);
}

.modal-section h4 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.modal-section ul {
    list-style-type: disc;
    padding-left: var(--space-lg);
}

.modal-section li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet & Smaller (Max 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
        --space-2xl: 2rem;
        --space-xl: 1.5rem;
    }

    /* Header & Nav */
    .header-inner {
        position: relative;
    }

    .nav {
        display: none;
        /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        gap: var(--space-sm);
    }

    .nav.is-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        /* Show hamburger */
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: var(--space-xl);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .card,
    .product-card,
    .core-card {
        padding: var(--space-lg);
    }

    /* Process Steps (Horizontal to Vertical) */
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing Cards Mobile */
    .pricing-card {
        padding: var(--space-lg);
        border-radius: 16px;
    }

    .plan-price {
        font-size: 2rem;
    }

    .pricing-features li {
        font-size: 0.9rem;
    }

    .plan-tokens .token-amount {
        font-size: 1.2rem;
    }

    /* --- Mobile Enhancements --- */
    /* Scale down large core icons */
    .profile-glow-container,
    .ai-core-container,
    .collective-core-container {
        width: 120px !important;
        height: 120px !important;
    }

    /* Adjust specific inner images/icons */
    .collective-core-container img {
        width: 96px !important;
        height: 96px !important;
    }

    .ai-core-container img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ============================================
   NEW CLASSES (Refactored from Inline)
   ============================================ */
.collective-core-container {
    margin: 0 auto var(--space-lg);
    width: 150px;
    height: 150px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.collective-core-container img {
    width: 120px;
    height: 120px;
    transition: all 0.4s ease;
}

.core-card:hover .collective-core-container {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

/* ============================================
   VIDEO GALLERY & MODAL
   ============================================ */
.video-gallery-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.video-carousel {
    display: flex;
    justify-content: center;
    /* Center items if few */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-lg);
    padding: var(--space-md) 0 var(--space-xl) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.video-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.video-card {
    flex: 0 0 350px;
    /* Card Width */
    scroll-snap-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-md);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
    position: relative;
}

/* Play Icon Overlay */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-accent-primary);
}

.video-title {
    padding: var(--space-md);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    text-align: center;
}

/* Empty State */
.video-empty-state {
    width: 100%;
    text-align: center;
    padding: var(--space-2xl);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
}

/* MODAL STYLES */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-modal.active {
    display: flex;
    /* Flex to center */
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .video-card {
        flex: 0 0 280px;
    }
}

/* Grid-5 for Process Steps */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

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

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