/* ============================================================
   PixelPrizm - AI Visual Intelligence
   Cinematic dark theme with prismatic light refraction motifs
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --bg-primary: #06060e;
    --bg-secondary: #0a0a16;
    --bg-tertiary: #0e0e1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --color-violet: #7c3aed;
    --color-violet-dark: #5b21b6;
    --color-violet-light: #a78bfa;
    --color-cyan: #06b6d4;
    --color-cyan-dark: #0891b2;
    --color-cyan-light: #22d3ee;
    --color-amber: #f59e0b;
    --color-amber-dark: #d97706;
    --color-amber-light: #fbbf24;
    --color-green: #22c55e;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-violet: rgba(124, 58, 237, 0.3);

    /* Gradients */
    --gradient-prism: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
    --gradient-prism-wide: linear-gradient(135deg, var(--color-violet), var(--color-cyan), var(--color-amber));
    --gradient-amber: linear-gradient(135deg, var(--color-amber), var(--color-amber-light));
    --gradient-bg-section: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
    --text-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
    --text-3xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
    --text-5xl: clamp(2.8rem, 2rem + 3vw, 4.5rem);

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

    /* Layout */
    --max-width: 1280px;
    --nav-height: 72px;

    /* Effects */
    --blur-card: blur(20px);
    --blur-nav: blur(16px);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-violet: 0 0 40px rgba(124, 58, 237, 0.15);
    --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.15);
    --shadow-glow-amber: 0 0 40px rgba(245, 158, 11, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

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

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-violet-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-violet);
}

/* Selection */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: var(--text-primary);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-violet);
    outline-offset: 2px;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

.gradient-text {
    background: var(--gradient-prism);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.required {
    color: var(--color-amber);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.nav--scrolled {
    background: rgba(6, 6, 14, 0.9);
    backdrop-filter: var(--blur-nav);
    -webkit-backdrop-filter: var(--blur-nav);
    box-shadow: 0 1px 0 var(--border-subtle);
    padding: var(--space-sm) var(--space-lg);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.nav__logo-icon {
    flex-shrink: 0;
}

.nav__logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-prism);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--gradient-amber);
    color: var(--bg-primary) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-amber);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav__hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav__hamburger {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 6, 14, 0.98);
        backdrop-filter: var(--blur-card);
        -webkit-backdrop-filter: var(--blur-card);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
    }

    .nav__links--open {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: var(--text-2xl);
    }
}

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

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: var(--space-3xl) var(--space-lg);
}

.hero__headline {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.hero__ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero__trust {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.hero__scroll-arrow {
    color: var(--text-muted);
    animation: fade-pulse 2s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), filter var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--gradient-amber);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.25);
}

.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.35);
    filter: brightness(1.1);
}

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

.btn--outline:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.05);
}

.btn--full {
    width: 100%;
}

.btn--loading .btn__text {
    opacity: 0;
}

.btn--loading .btn__loader {
    display: flex;
}

.btn__loader {
    display: none;
    position: absolute;
    gap: 6px;
    align-items: center;
}

.btn__loader-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: btn-loader-bounce 1.4s infinite ease-in-out both;
}

.btn__loader-dot:nth-child(1) { animation-delay: -0.32s; }
.btn__loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes btn-loader-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

.section__divider {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), var(--color-violet-dark), var(--border-subtle), transparent);
    opacity: 0.5;
}

.section__headline {
    font-size: var(--text-4xl);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section__subheadline {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    line-height: 1.6;
}

/* ===== PROBLEM SECTION ===== */
.section--problem {
    background: var(--gradient-bg-section);
}

.problem__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .problem__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem__card {
    padding: var(--space-2xl);
    text-align: center;
}

.problem__card:hover {
    box-shadow: var(--shadow-glow-violet);
}

.problem__icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.problem__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.problem__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

.problem__transition {
    text-align: center;
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: var(--space-xl);
}

/* ===== PIPELINE SECTION ===== */
.section--pipeline {
    overflow: hidden;
}

.pipeline {
    margin: var(--space-3xl) 0;
    position: relative;
}

.pipeline__track {
    display: none;
}

@media (min-width: 1024px) {
    .pipeline__track {
        display: block;
        position: absolute;
        top: 32px;
        left: 10%;
        right: 10%;
        height: 2px;
        z-index: 0;
    }

    .pipeline__line {
        width: 100%;
        height: 100%;
        background: var(--border-subtle);
        border-radius: 1px;
    }

    .pipeline__line-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0;
        background: var(--gradient-prism);
        border-radius: 1px;
        transition: width 2s ease-out;
        box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
    }

    .pipeline__line-fill--active {
        width: 100%;
    }
}

.pipeline__stages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

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

@media (min-width: 1024px) {
    .pipeline__stages {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-md);
    }
}

.pipeline__stage {
    text-align: center;
}

.pipeline__node {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--text-muted);
    transition: all var(--transition-slow);
}

.pipeline__stage--active .pipeline__node {
    border-color: var(--color-violet);
    color: var(--color-cyan);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.3), 0 0 48px rgba(6, 182, 212, 0.1);
    background: rgba(124, 58, 237, 0.1);
}

.pipeline__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-base);
}

.pipeline__stage--active .pipeline__label {
    color: var(--color-cyan-light);
}

.pipeline__desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

.pipeline__summary {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 800px;
    margin: var(--space-3xl) auto 0;
    line-height: 1.7;
}

/* ===== FEATURES SECTION ===== */
.section--features {
    background: var(--gradient-bg-section);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

@media (min-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }

    .feature-block--reverse {
        direction: rtl;
    }

    .feature-block--reverse > * {
        direction: ltr;
    }
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.feature-block__badge {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-violet-light);
    background: rgba(124, 58, 237, 0.15);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(124, 58, 237, 0.25);
    margin-bottom: var(--space-md);
}

.feature-block__badge--cyan {
    color: var(--color-cyan-light);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.25);
}

.feature-block__badge--amber {
    color: var(--color-amber-light);
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
}

.feature-block__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.feature-block__tier {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.feature-block__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.feature-block__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.pill {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-violet-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
    white-space: nowrap;
}

.pill--cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--color-cyan-light);
    border-color: rgba(6, 182, 212, 0.2);
}

.pill--amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-amber-light);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Spectrum Visual */
.feature-visual--spectrum {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: var(--space-md);
}

.spectrum-bar {
    flex: 1;
    background: var(--bar-color);
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: spectrum-rise 1.5s ease-out forwards;
    animation-delay: var(--bar-delay);
    opacity: 0.8;
    position: relative;
    min-width: 16px;
}

.spectrum-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 4px 4px 0 0;
}

@keyframes spectrum-rise {
    0% { height: 0; }
    100% { height: var(--bar-height); }
}

/* Sentiment Visual */
.feature-visual--sentiment {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
}

.sentiment-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--platform-delay);
}

.sentiment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.sentiment-wave {
    width: 40px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.sentiment-wave::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        var(--color-cyan) 25%,
        transparent 50%
    );
    animation: wave-scroll 2s linear infinite;
    animation-delay: var(--platform-delay);
    opacity: 0.6;
    border-radius: 2px;
}

@keyframes wave-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Filmstrip Visual */
.feature-visual--filmstrip {
    width: 100%;
    padding: var(--space-md);
}

.filmstrip {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-subtle);
}

.filmstrip__holes {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 4px 0;
}

.filmstrip__holes span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.filmstrip__frames {
    display: flex;
    gap: 4px;
    padding: var(--space-sm) 0;
}

.filmstrip__frame {
    flex: 1;
    height: 60px;
    border-radius: 4px;
    background: var(--frame-color);
    opacity: 0;
    animation: filmstrip-fade 3s ease-in-out infinite;
    animation-delay: var(--frame-delay);
}

@keyframes filmstrip-fade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

/* ===== STATS SECTION ===== */
.section--stats {
    background: linear-gradient(180deg, var(--bg-primary), rgba(124, 58, 237, 0.03), var(--bg-primary));
}

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

@media (min-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.stat__number {
    display: block;
    font-size: var(--text-5xl);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--space-md);
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== VIDEO SECTION ===== */
.section--video {
    background: var(--gradient-bg-section);
}

.video-filmstrip {
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    position: relative;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.video-filmstrip__strip {
    display: flex;
    gap: 4px;
}

.video-filmstrip__frame {
    flex: 1;
    height: 80px;
    border-radius: 4px;
    background: var(--vf-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.video-filmstrip__scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-cyan), transparent);
    box-shadow: 0 0 12px var(--color-cyan), 0 0 24px rgba(6, 182, 212, 0.3);
    animation: scanline-move 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes scanline-move {
    0% { left: 0; }
    100% { left: 100%; }
}

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

@media (min-width: 768px) {
    .video-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-card {
    padding: var(--space-2xl);
    text-align: center;
}

.video-card:hover {
    box-shadow: var(--shadow-glow-cyan);
}

.video-card__icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.video-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.video-card__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PRICING SECTION ===== */
.section--pricing {
    overflow: hidden;
}

.pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    align-items: start;
}

@media (min-width: 768px) {
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pricing-card--popular {
    border-color: transparent;
    background: var(--bg-card);
    position: relative;
}

.pricing-card--popular::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-prism);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: gradient-rotate 4s linear infinite;
    background-size: 200% 200%;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-card--popular:hover {
    box-shadow: var(--shadow-glow-violet), var(--shadow-glow-cyan);
}

.pricing-card__popular-badge {
    position: absolute;
    top: 0;
    right: var(--space-xl);
    background: var(--gradient-prism);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: var(--space-xs) var(--space-md);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.pricing-card__amount {
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pricing-card__period {
    font-size: var(--text-base);
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card__annual {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.pricing-card__subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.pricing-card__features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding-left: var(--space-xl);
    position: relative;
    line-height: 1.5;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-prism);
    opacity: 0.7;
}

/* Pilot */
.pricing__pilot {
    max-width: 800px;
    margin: 0 auto;
}

.pricing__pilot-inner {
    padding: var(--space-2xl) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing__pilot-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-prism-wide);
}

.pricing__pilot-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.pricing__pilot-price {
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-lg);
    background: var(--gradient-amber);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing__pilot-price span {
    font-size: var(--text-lg);
    font-weight: 500;
}

.pricing__pilot-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== USE CASES SECTION ===== */
.section--usecases {
    background: var(--gradient-bg-section);
}

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

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

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

.usecase-card {
    padding: var(--space-2xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.usecase-card__icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    opacity: 0.9;
}

.usecase-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.usecase-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TECHNOLOGY SECTION ===== */
.section--tech {
    overflow: hidden;
}

.terminal {
    max-width: 800px;
    margin: var(--space-2xl) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0c0c14;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg), var(--shadow-glow-violet);
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

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

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: var(--space-md);
}

.terminal__body {
    padding: var(--space-lg) var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 2;
    overflow-x: auto;
}

.terminal__line {
    white-space: nowrap;
}

.terminal__line--blank {
    height: var(--space-md);
}

.terminal__prompt {
    color: var(--color-green);
    margin-right: var(--space-sm);
}

.terminal__cmd {
    color: var(--text-primary);
}

.terminal__key {
    color: var(--color-cyan);
    display: inline-block;
    min-width: 140px;
}

@media (max-width: 640px) {
    .terminal__key {
        min-width: 100px;
        font-size: var(--text-xs);
    }

    .terminal__val {
        font-size: var(--text-xs);
    }

    .terminal__body {
        padding: var(--space-md);
    }
}

.terminal__val {
    color: var(--text-secondary);
}

.terminal__val--highlight {
    color: var(--color-green);
}

.terminal__val--amber {
    color: var(--color-amber);
}

.terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--color-green);
    animation: cursor-blink 1s step-end infinite;
    vertical-align: middle;
}

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

.tech__note {
    text-align: center;
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-top: var(--space-2xl);
    font-style: italic;
}

/* ===== CONTACT SECTION ===== */
.section--contact {
    background: var(--gradient-bg-section);
}

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

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

.contact-form {
    padding: var(--space-2xl);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.contact-form__group {
    margin-bottom: var(--space-lg);
}

.contact-form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.contact-form__input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form__input::placeholder {
    color: var(--text-dim);
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--color-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), var(--shadow-glow-violet);
}

.contact-form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form__select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__input--small {
    max-width: 200px;
}

.contact-form__captcha {
    display: flex;
    flex-direction: column;
}

.contact-form__error {
    color: #ef4444;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-md);
    min-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.contact-form__error:empty {
    margin-bottom: 0;
}

.contact-form__success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.contact-form__success--visible {
    display: block;
}

.success-checkmark {
    margin: 0 auto var(--space-lg);
    width: 52px;
    height: 52px;
}

.success-checkmark__circle {
    stroke-dasharray: 150.79;
    stroke-dashoffset: 150.79;
    animation: checkmark-circle 0.6s ease-in-out forwards;
}

.success-checkmark__check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: checkmark-check 0.3s ease-in-out 0.4s forwards;
}

@keyframes checkmark-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
    to { stroke-dashoffset: 0; }
}

.success-text {
    font-size: var(--text-lg);
    color: var(--color-green);
    font-weight: 600;
}

.contact-form__submit {
    margin-top: var(--space-md);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info__card {
    padding: var(--space-2xl);
}

.contact-info__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.contact-info__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-info__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.contact-info__item a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.contact-info__item a:hover {
    color: var(--color-cyan);
}

.contact-info__item svg {
    flex-shrink: 0;
}

.contact-info__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-info__link {
    font-size: var(--text-base);
    color: var(--text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.contact-info__link:hover {
    color: var(--color-violet-light);
    padding-left: var(--space-sm);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

.footer__brand .nav__logo-text {
    font-size: var(--text-lg);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer__meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .footer__meta {
        text-align: right;
    }
}

.footer__powered {
    color: var(--text-dim);
}

/* ===== ANIMATIONS ===== */

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fade pulse */
@keyframes fade-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.1); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.25), 0 0 60px rgba(6, 182, 212, 0.1); }
}

/* Scroll-triggered animation base states */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

.animate-on-scroll[data-animation="fade-in-left"] {
    transform: translateX(-40px);
}

.animate-on-scroll[data-animation="fade-in-right"] {
    transform: translateX(40px);
}

.animate-on-scroll[data-animation="scale-in"] {
    transform: scale(0.9);
}

.animate-on-scroll[data-animation="fade-in"] {
    transform: none;
}

/* Animated state */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Success particles (added via JS) */
.success-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particle-burst 1s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--px), var(--py)) scale(0);
    }
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .hero__content {
        padding: var(--space-2xl) var(--space-md);
    }

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

    .hero__ctas .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .pricing-card {
        padding: var(--space-xl);
    }

    .contact-form {
        padding: var(--space-xl);
    }

    .terminal__body {
        font-size: var(--text-xs);
        line-height: 1.8;
    }

    .terminal__key {
        min-width: 80px;
    }
}

@media (min-width: 1280px) {
    .hero__headline {
        font-size: 4.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero__canvas,
    .nav,
    .hero__scroll-indicator,
    .section__divider {
        display: none !important;
    }

    body {
        background: white;
        color: #111;
    }

    .gradient-text {
        -webkit-text-fill-color: #7c3aed;
    }

    .glass-card {
        border: 1px solid #ddd;
        backdrop-filter: none;
    }
}
