/**
 * Vera - Light Mode Design System
 * Professional, cool, finance-focused - Hyperbots inspired
 * Primary: #0891b2 (Vibrant Cyan), Secondary: #f97316 (Orange)
 * Enhanced: Coral, Rose, Violet accents for vibrancy
 */

/* ===== Color System (CSS Custom Properties) ===== */
:root {
    /* Primary Cyan Palette - ONE accent color only */
    --color-cyan-500: #06b6d4;
    --color-cyan-600: #0891b2;
    --color-cyan-700: #0e7490;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);

    /* Subtle, layered shadows - Stripe-inspired */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl:
        0 8px 10px rgba(0, 0, 0, 0.04),
        0 20px 40px rgba(0, 0, 0, 0.1);

    /* Card-specific shadows with subtle ring */
    --shadow-card:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-card-hover:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-cyan: 0 4px 14px rgba(8, 145, 178, 0.25);

    /* Hierarchical border system */
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-accent: rgba(8, 145, 178, 0.2);
    --border-accent-hover: rgba(8, 145, 178, 0.35);
    --border-accent-strong: rgba(8, 145, 178, 0.4);

    /* Sharp but not harsh radius system */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Premium glass effects */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-bg-strong: rgba(255, 255, 255, 0.95);
    --glass-blur: 16px;

    /* Focus ring */
    --ring-width: 2px;
    --ring-color: rgba(8, 145, 178, 0.4);

    /* Semantic surface/text/border tokens for theming */
    --surface-primary: #ffffff;
    --surface-secondary: #f8fafc;
    --surface-tertiary: #f1f5f9;
    --surface-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #1e293b;    /* Darker for better contrast */
    --text-tertiary: #475569;     /* Darker for better contrast */
    --text-muted: #94a3b8;

    /* Component-specific tokens */
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --card-bg: #ffffff;
    --demo-header-bg: #e0f2fe;
    --footer-bg-start: #f8fafc;
    --footer-bg-end: #f1f5f9;
    --scrollbar-track: #f1f5f9;

    /* Theme-aware accent colors */
    --accent-primary: #0891b2;      /* Main cyan */
    --accent-secondary: #0e7490;    /* Darker cyan */
    --accent-light: #06b6d4;        /* Lighter cyan */
    --accent-subtle: #0e7490;       /* Terminal/pill text */
    --accent-clay: #0f172a;         /* Dark navy for gradients */
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --surface-primary: #0f172a;
    --surface-secondary: #1e293b;
    --surface-tertiary: #334155;
    --surface-card: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;    /* Brighter for better contrast */
    --text-tertiary: #cbd5e1;     /* Brighter for better contrast */
    --text-muted: #94a3b8;        /* Medium gray - visible on dark bg */

    /* Hierarchical border system - dark mode */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(34, 211, 238, 0.2);
    --border-accent-hover: rgba(34, 211, 238, 0.35);
    --border-accent-strong: rgba(34, 211, 238, 0.5);

    --nav-bg: rgba(15, 23, 42, 0.92);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.98);
    --card-bg: #1e293b;
    --demo-header-bg: #164e63;
    --footer-bg-start: #1e293b;
    --footer-bg-end: #0f172a;
    --scrollbar-track: #1e293b;

    /* Subtle, layered shadows - dark mode */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg:
        0 4px 6px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-xl:
        0 8px 10px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.35);

    /* Card-specific shadows - dark mode */
    --shadow-card:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.35);
    --shadow-cyan: 0 4px 14px rgba(34, 211, 238, 0.35);

    /* Glass effect for dark */
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-bg-strong: rgba(30, 41, 59, 0.95);

    /* Accent ring for dark mode */
    --ring-color: rgba(34, 211, 238, 0.5);

    /* Lighter accents for dark mode visibility */
    --accent-primary: #22d3ee;      /* Brighter cyan */
    --accent-secondary: #06b6d4;    /* Medium cyan */
    --accent-light: #67e8f9;        /* Very light cyan */
    --accent-subtle: #22d3ee;       /* Terminal/pill text - much brighter */
    --accent-clay: #f1f5f9;         /* Light color for gradients on dark bg */
}

/* Smooth theme transition */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html.theme-transitioning,
    html.theme-transitioning *,
    html.theme-transitioning *::before,
    html.theme-transitioning *::after {
        transition: none !important;
    }
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    cursor: auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Typography System (Linear/Stripe-inspired) ===== */

/* Hero headline - commanding presence, tighter tracking */
.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

/* Hero word animation - GSAP handles the animation */
.hero-word,
.hero-line {
    display: inline-block;
}

/* Section labels - sharper pill treatment */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-accent);
}

/* Section titles - tighter, bolder */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

/* Body text - better readability */
.body-text {
    font-size: 1.125rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}

/* Lead paragraph - larger intro text */
.lead-text {
    font-size: 1.3125rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}

/* ===== Spacing & Rhythm ===== */

/* Section spacing - generous whitespace for breathing room */
.section-spacing {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

@media (min-width: 1024px) {
    .section-spacing {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* Vertical Progress Indicator */
.scroll-progress-dots {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-progress-dots.visible {
    opacity: 1;
}

.scroll-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-progress-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.scroll-progress-dot:hover::before {
    opacity: 1;
}

.scroll-progress-dot:hover {
    background: var(--text-tertiary);
    transform: scale(1.2);
}

.scroll-progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.2);
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .scroll-progress-dots {
        display: none;
    }
}

/* Section reveal animation classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Parallax background shapes */
.section-parallax-bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    border-radius: 50%;
    filter: blur(80px);
}

.parallax-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 10%;
    left: -10%;
}

.parallax-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: 20%;
    right: -5%;
}

/* Feature cards stagger effect */
@media (min-width: 1024px) {
    .feature-card:nth-child(2) {
        transform: translateY(-1.5rem);
    }

    .feature-card:nth-child(2):hover {
        transform: translateY(calc(-1.5rem - 3px));
    }
}

/* Pricing cards - make featured more prominent */
@media (min-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1.02);
        z-index: 1;
    }

    .pricing-card.featured:hover {
        transform: scale(1.02) translateY(-4px);
    }
}

/* ===== Visual Accents ===== */


/* Enhanced badge styling */
.badge-gradient {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

/* Input focus glow */
input:focus,
.input-focus:focus {
    border-color: rgba(8, 145, 178, 0.5) !important;
    box-shadow:
        0 0 0 4px rgba(8, 145, 178, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Subtle background pattern for alternating sections */
.bg-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}


/* ===== Canvas Background ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== Navigation ===== */
.nav-glass {
    background:
        linear-gradient(90deg,
            rgba(8, 145, 178, 0.04) 0%,
            var(--nav-bg) 15%,
            var(--nav-bg) 85%,
            rgba(6, 182, 212, 0.04) 100%
        );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-glass.scrolled {
    background:
        linear-gradient(90deg,
            rgba(8, 145, 178, 0.06) 0%,
            var(--nav-bg-scrolled) 12%,
            var(--nav-bg-scrolled) 88%,
            rgba(6, 182, 212, 0.06) 100%
        );
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border-radius: 6px;
    transition: color 0.15s ease;
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: #0891b2;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Logo Animation */
.logo-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.logo-link:hover .logo-icon {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 0 24px -4px rgba(8, 145, 178, 0.5);
}

.logo-text {
    transition: color 0.25s ease;
}

.logo-link:hover .logo-text {
    color: var(--accent-primary);
}

/* Hyperbots Logo */
.hyperbots-logo {
    color: #0e7490; /* cyan-700 for light mode */
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .hyperbots-logo {
    color: #22d3ee; /* cyan-300 for dark mode - bright and visible */
}

.logo-link:hover .hyperbots-logo {
    color: var(--accent-primary);
    transform: rotate(-5deg) scale(1.08);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 47, 64, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.2),
                0 0 0 1px var(--border-light);
    transform: translateY(-1rem);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    transform: translateX(-0.5rem);
    opacity: 0;
}

.mobile-menu.open .mobile-nav-link {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--text-primary);
    background: rgba(8, 145, 178, 0.1);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1rem 0;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.mobile-menu.open .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-signin {
    display: block;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-signin:hover {
    color: var(--text-primary);
    border-color: rgba(8, 145, 178, 0.4);
    background: rgba(8, 145, 178, 0.06);
}

/* Mobile menu button icon toggle */
.mobile-menu-btn .menu-icon-close {
    display: none;
}

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

.mobile-menu-btn.open .menu-icon-close {
    display: block;
}

/* ===== Buttons (Linear/Stripe-inspired) ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(8, 145, 178, 0.2);
}

/* Shine effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(8, 145, 178, 0.3);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--shadow-sm), 0 0 0 var(--ring-width) var(--ring-color);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 12px -2px rgba(8, 145, 178, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cyan variant for secondary prominence */
.btn-primary.btn-cyan {
    background: var(--gradient-primary);
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 8px 20px -4px rgba(8, 145, 178, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary.btn-cyan:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 12px 28px -6px rgba(8, 145, 178, 0.5),
        0 0 0 1px rgba(8, 145, 178, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary span, .btn-primary svg, .btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-primary.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
    border-radius: 0.875rem;
    gap: 0.75rem;
}

/* Form submission states */
.btn-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-primary.success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark mode: Neon glow buttons */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow:
        0 0 20px -5px rgba(34, 211, 238, 0.5),
        0 0 40px -10px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow:
        0 0 25px -5px rgba(34, 211, 238, 0.7),
        0 0 50px -10px rgba(6, 182, 212, 0.5),
        0 0 80px -20px rgba(34, 211, 238, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 15px -3px rgba(34, 211, 238, 0.6),
        0 0 30px -8px rgba(6, 182, 212, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: var(--surface-secondary);
    border-color: rgba(8, 145, 178, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }


/* ===== CTA Pulse Animation ===== */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 8px 20px -4px rgba(14, 116, 144, 0.5);
    }
    50% {
        box-shadow: 0 8px 30px -4px rgba(14, 116, 144, 0.7);
    }
}

.btn-pulse {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* ===== Demo Window (Stripe-style, Primary) ===== */
.demo-window {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Glowing border effect */
.demo-window::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(167, 139, 250, 0.2), rgba(244, 114, 182, 0.3));
    border-radius: calc(1rem + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-window:hover::before {
    opacity: 1;
}

.demo-window:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-accent-hover);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--demo-header-bg);
    border-bottom: 1px solid var(--border-accent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.demo-header .terminal-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(8, 145, 178, 0.18);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent-subtle);
}

.demo-header .terminal-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.demo-header .terminal-path {
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-tertiary);
}

.demo-header .terminal-pills {
    display: flex;
    gap: 0.375rem;
    margin-left: auto;
}

.demo-header .terminal-pill {
    padding: 0.25rem 0.5rem;
    background: rgba(8, 145, 178, 0.15);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent-subtle);
    transition: all 0.2s ease;
}

.demo-header .terminal-pill:hover {
    background: rgba(8, 145, 178, 0.12);
    color: var(--accent-primary);
}

.demo-content {
    padding: 1.75rem;
    background: var(--card-bg);
}

.demo-chat {
    margin-bottom: 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.user {
    font-family: 'IBM Plex Mono', monospace;
}

.chat-message.user .chat-prompt {
    color: var(--accent-primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.chat-message.user .chat-text {
    display: inline;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.chat-message.ai {
    display: flex;
    gap: 0.75rem;
}

.ai-avatar {
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar i {
    font-size: 0.75rem;
}

.ai-content {
    flex: 1;
}

.ai-content > p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: rgba(8, 145, 178, 0.04);
    border: 1px solid rgba(8, 145, 178, 0.12);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.metric-change.up { color: var(--accent-primary); }
.metric-change.down { color: #10b981; }
.metric-change.neutral { color: var(--text-muted); }

/* Dark mode: More visible metric card backgrounds */
[data-theme="dark"] .metric-card {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
}

.insight-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(8, 145, 178, 0.06);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 0.375rem 0.375rem 0;
}

.insight-box span {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.insight-box i {
    color: var(--accent-primary);
}

/* Dark mode: More visible insight box background */
[data-theme="dark"] .insight-box {
    background: rgba(8, 145, 178, 0.12);
}

.demo-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: rgba(8, 145, 178, 0.04);
    border: 1px solid rgba(8, 145, 178, 0.15);
    border-radius: 0.5rem;
}

.demo-prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.demo-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-primary);
}

.demo-input input::placeholder {
    color: var(--text-muted);
}

.demo-send {
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-send:hover {
    background: #0891b2;
    color: #fff;
}

.demo-input:focus-within {
    border-color: rgba(8, 145, 178, 0.4);
    background: var(--card-bg);
}

/* Dark mode: More visible demo input background */
[data-theme="dark"] .demo-input {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.25);
}


/* ===== Feature Cards (Stripe-style, Tier 1 - Primary) ===== */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-accent-hover);
}

.feature-card-large {
    padding: 2.75rem;
}

.feature-card .feature-visual,
.feature-card > .grid {
    margin-top: auto;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(6, 182, 212, 0.08));
    border: 1.5px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(6, 182, 212, 0.12));
    border-color: var(--border-accent-strong);
    box-shadow: var(--shadow-md);
}

.feature-icon.large {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
}

.feature-visual {
    margin-top: 2rem;
    background: var(--surface-secondary);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
    aspect-ratio: 1 / 1;
}

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

.doc-stack {
    position: relative;
    width: 160px;
    height: 200px;
}

.doc {
    position: absolute;
    width: 120px;
    height: 150px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.doc:nth-child(1) { top: 0; left: 0; transform: rotate(-8deg); }
.doc:nth-child(2) { top: 15px; left: 20px; transform: rotate(-3deg); }
.doc:nth-child(3) { top: 30px; left: 40px; transform: rotate(3deg); }

.doc.highlighted {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.08));
    border-color: rgba(8, 145, 178, 0.35);
}

.feature-card:hover .doc:nth-child(1) { transform: rotate(-12deg) translateY(-5px); }
.feature-card:hover .doc:nth-child(2) { transform: rotate(-5deg) translateX(5px); }
.feature-card:hover .doc:nth-child(3) { transform: rotate(8deg) translateY(5px); }

/* ===== Integration Icons ===== */
.integration-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.integration-icon:hover {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.35);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.integration-icon.more {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.08));
    border-color: rgba(8, 145, 178, 0.25);
    color: var(--accent-primary);
}

.integration-icon.more:hover {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(6, 182, 212, 0.14));
}

.integration-icon-large {
    aspect-ratio: 1;
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.integration-icon-large:hover {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.35);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.integration-icon-large.more {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.08));
    border-color: rgba(8, 145, 178, 0.25);
    color: var(--accent-primary);
}

/* ===== Capability Tags ===== */
.capability-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.capability-tag:hover {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.3);
    color: var(--accent-primary);
}

/* ===== Excel Visual ===== */
.excel-visual {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
}

.excel-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}

.excel-row:last-of-type {
    border-bottom: none;
}

.excel-row span {
    padding: 0.625rem 0.75rem;
    color: var(--text-tertiary);
    border-right: 1px solid var(--border-light);
}

.excel-row span:last-child {
    border-right: none;
}

.excel-row span:first-child {
    background: var(--surface-secondary);
    font-weight: 500;
    color: var(--text-primary);
}

.excel-row.header {
    background: var(--surface-tertiary);
}

.excel-row.header span {
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.05em;
}

.excel-row span.highlight {
    background: rgba(8, 145, 178, 0.12);
    color: var(--accent-primary);
    font-weight: 600;
}

.excel-cursor {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2px;
    height: 1rem;
    background: #0891b2;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== Step Cards ===== */
/* Legacy connector (kept for fallback) */
.step-connector {
    background: linear-gradient(90deg, #0891b2 0%, rgba(8, 145, 178, 0.4) 50%, #0891b2 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: 0% 0; }
}

/* SVG connector line with draw animation */
.step-connector-svg {
    overflow: visible;
    z-index: 0;
}

.step-connector-line {
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

/* Respect reduced motion for SVG */
@media (prefers-reduced-motion: reduce) {
    .step-connector-line {
        stroke-dashoffset: 0;
    }
}

.step-card {
    text-align: center;
    padding: 2rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 3.25rem;
    height: 3.25rem;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px -2px rgba(8, 145, 178, 0.4);
}

.step-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(8, 145, 178, 0.08);
    border: 1.5px solid var(--border-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin: -1.5rem auto 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    transform: scale(1.1);
    box-shadow: 0 8px 20px -4px rgba(8, 145, 178, 0.5);
}

.step-card:hover .step-icon {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 8px 20px -4px rgba(8, 145, 178, 0.25);
}

/* Step tags */
.step-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-tag {
    padding: 0.25rem 0.75rem;
    background: var(--surface-secondary);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.step-card:hover .step-tag {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.3);
    color: var(--accent-primary);
}

/* Step example quote */
.step-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-secondary);
    border-radius: 0.75rem;
    border: 1px solid rgba(8, 145, 178, 0.15);
}

/* Step result visualization */
.step-result {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface-secondary);
    border-radius: 0.75rem;
    border: 1px solid rgba(8, 145, 178, 0.15);
}

.step-result-bar {
    height: 0.5rem;
    background: #0891b2;
    border-radius: 0.25rem;
    width: 100%;
    transition: all 0.3s ease;
}

.step-result-bar.short {
    width: 60%;
    background: #06b6d4;
}

.step-result-bar.medium {
    width: 80%;
    background: rgba(8, 145, 178, 0.5);
}

.step-card:hover .step-result-bar {
    animation: growBar 0.6s ease-out;
}

@keyframes growBar {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* ===== Security Section (Tier 2 - Secondary) ===== */
.security-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.security-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(8, 145, 178, 0.25);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ===== Security Visual ===== */
.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.security-graphic {
    position: relative;
    width: 380px;
    height: 380px;
}

.shield-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.shield-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(8, 145, 178, 0.35);
    animation: rotate 20s linear infinite;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px -2px rgba(8, 145, 178, 0.5);
}

.orbit-1 {
    inset: 50px;
    animation-duration: 15s;
}

.orbit-2 {
    inset: 15px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.orbit-2::before {
    background: linear-gradient(135deg, #f97316, #06b6d4);
    box-shadow: 0 2px 8px -2px rgba(249, 115, 22, 0.5);
}

.orbit-3 {
    inset: -20px;
    animation-duration: 25s;
}

.orbit-3::before {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    width: 8px;
    height: 8px;
    top: -4px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Pricing Section (Stripe-style, Tier 1 - Primary) ===== */
.pricing-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
}

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

/* Featured pricing card - shadow glow instead of gradient border */
.pricing-card.featured {
    border: 1px solid var(--border-accent);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(8, 145, 178, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--shadow-xl),
        0 0 0 1px rgba(8, 145, 178, 0.15),
        0 0 40px -10px rgba(8, 145, 178, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px -2px rgba(8, 145, 178, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 12px -2px rgba(8, 145, 178, 0.5); }
    50% { box-shadow: 0 4px 20px -2px rgba(8, 145, 178, 0.7); }
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.pricing-features {
    flex: 1;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-feature i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pricing-feature.disabled {
    color: var(--text-muted);
}

.pricing-feature.disabled span {
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.15);
}

.pricing-cta {
    margin-top: auto;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--surface-secondary);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xs);
}

.btn-pricing:hover {
    color: var(--accent-primary);
    background: var(--card-bg);
    border-color: rgba(8, 145, 178, 0.4);
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-md),
        0 0 0 3px rgba(8, 145, 178, 0.1);
}

.btn-pricing-primary {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(8, 145, 178, 0.2);
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(8, 145, 178, 0.3);
}

/* Billing Toggle */
.billing-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--surface-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-toggle:hover {
    background: var(--surface-secondary);
    border-color: var(--border-medium);
}

.billing-toggle.active {
    background: #0891b2;
    border-color: transparent;
}

.billing-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.billing-toggle.active .billing-toggle-knob {
    left: calc(100% - 23px);
}

/* ===== FAQ Grid (Tier 3 - Tertiary) ===== */

/* Search Bar */
.faq-search-wrapper {
    display: flex;
    justify-content: center;
}

.faq-search-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: 9999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search-input::placeholder {
    color: var(--text-tertiary);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

/* FAQ Grid Layout */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* FAQ Card */
.faq-card {
    padding: 1.5rem;
    background: transparent;
}

.faq-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.faq-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.faq-card-title {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.faq-card-answer {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    padding-left: 2.5rem;
}

/* Hide non-matching FAQ cards during search */
.faq-card.hidden {
    display: none;
}

/* ===== Form Styles ===== */
input:focus {
    outline: none;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 0 16px -4px rgba(8, 145, 178, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle-icons {
    position: relative;
    width: 20px;
    height: 20px;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon.sun {
    color: #f59e0b;
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
    opacity: 0;
}

.theme-icon.moon {
    color: #6366f1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon.sun {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

[data-theme="dark"] .theme-icon.moon {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
    opacity: 0;
}

/* Mobile theme toggle */
.theme-toggle-mobile {
    width: 100%;
    height: auto;
    padding: 0.875rem 1.25rem;
    justify-content: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
}

.theme-toggle-mobile .theme-toggle-icons {
    width: 24px;
    height: 24px;
}

.theme-toggle-mobile .theme-icon {
    font-size: 1.5rem;
}

.theme-toggle-mobile::after {
    content: 'Switch to dark mode';
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle-mobile::after {
    content: 'Switch to light mode';
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .floating-card { animation: none; }
    .orbit { animation: none; }
    .orbit::before { display: none; }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .metric-card {
        padding: 0.5rem;
    }

    .metric-label {
        font-size: 0.5rem;
    }

    .metric-value {
        font-size: 0.875rem;
    }

    .security-visual {
        padding: 2rem;
    }

    .security-graphic {
        width: 200px;
        height: 200px;
    }

    .shield-inner {
        width: 80px;
        height: 80px;
    }

    .shield-inner i {
        font-size: 2rem;
    }

    .demo-window {
        border-radius: 0.75rem;
    }

    .demo-content {
        padding: 1rem;
    }

    .chat-message.user .chat-text {
        font-size: 0.8125rem;
    }

    .ai-content > p {
        font-size: 0.8125rem;
    }

    .insight-box {
        padding: 0.75rem;
    }

    .insight-box span {
        font-size: 0.75rem;
    }

    .demo-header {
        padding: 0.625rem 0.75rem;
    }

    .terminal-path {
        display: none;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: rgba(8, 145, 178, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 145, 178, 0.55);
}

/* ===== Selection ===== */
::selection {
    background: rgba(8, 145, 178, 0.25);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(8, 145, 178, 0.25);
    color: var(--text-primary);
}

/* ===== Footer ===== */
.footer-gradient-bg {
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    position: relative;
}

.footer-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(8, 145, 178, 0.2) 50%,
        transparent 100%
    );
}

/* ===== GSAP Phase 2 Animations ===== */

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    transform-origin: left;
    will-change: width;
}

/* Parallax Background Orbs */
.parallax-container {
    z-index: 0;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    will-change: transform;
}

.parallax-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.parallax-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
}

.parallax-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: 50%;
    right: 20%;
}

/* 3D Card Tilt Effect */
.card-tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

.card-tilt-inner {
    transform: translateZ(20px);
}

/* Magnetic Button Effect */
.magnetic-btn {
    will-change: transform;
}

/* Text Highlight Animation */
.highlight-text {
    position: relative;
    display: inline;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    right: 0;
    height: 0.25em;
    background: var(--accent-primary);
    opacity: 0.15;
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-text.active::after {
    transform: scaleX(1);
}

/* Text Scramble Effect */
.scramble-char {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: inherit;
}

/* Staggered Card Fly-in */
.feature-card,
.pricing-card,
.step-card {
    will-change: transform, opacity;
}

/* ========================================
   Privacy Policy Section
   ======================================== */

.privacy-section {
    text-align: left;
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-block h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.privacy-block h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.privacy-block p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.privacy-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-block ul li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.privacy-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-copper);
    opacity: 0.6;
}

.privacy-block a {
    color: var(--accent-copper);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.privacy-block a:hover {
    opacity: 0.8;
}

.privacy-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Enhanced hover states for tiltable cards */
.feature-card.tilt-enabled:hover,
.pricing-card.tilt-enabled:hover,
.step-card.tilt-enabled:hover {
    box-shadow:
        var(--shadow-lg),
        0 20px 40px -15px rgba(8, 145, 178, 0.15);
}

/* Disable tilt/magnetic on touch devices */
@media (hover: none) and (pointer: coarse) {
    .card-tilt,
    .magnetic-btn {
        transform: none !important;
    }
}

/* Reduced motion support for Phase 2 animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress-bar {
        transition: none;
    }

    .parallax-orb {
        transform: none !important;
    }

    .highlight-text::after {
        transform: scaleX(1);
        transition: none;
    }

    .card-tilt,
    .magnetic-btn {
        transform: none !important;
        transition: none !important;
    }
}
