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

:root {
    /* New Color Palette */
    --color-white: #ffffff;
    --color-bg: #f8fafc;
    --color-ink-black: #00171F;        /* Use sparingly - small elements/text */
    --color-deep-space: #003459;       /* Dark blue - headers, strong elements */
    --color-cerulean: #007EA7;         /* Medium blue - secondary accents */
    --color-fresh-sky: #00A7E1;        /* Bright blue - primary accent, CTAs */

    /* Semantic colors */
    --color-text-primary: #003459;     /* Deep Space Blue for main text */
    --color-text-secondary: #4a6a82;   /* Softer blue-gray */
    --color-text-muted: #6b8a9e;       /* Muted for helper text */
    --color-accent: #00A7E1;           /* Fresh Sky - primary */
    --color-accent-hover: #007EA7;     /* Cerulean - hover state */
    --color-accent-light: #00A7E1;
    --color-accent-subtle: #e6f6fc;    /* Very light sky blue */
    --color-accent-gradient-start: #00A7E1;  /* Fresh Sky */
    --color-accent-gradient-end: #007EA7;    /* Cerulean */
    --color-border: #d4e5ed;
    --color-card-bg: #ffffff;
    --color-card-shadow: rgba(0, 167, 225, 0.1);

    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --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;

    --max-width: 1200px;
    --container-padding: 1.5rem;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

/* ========================================
   TYPOGRAPHY - Golden Ratio Scale (1.618)
   Base: 1rem = 16px
   H1: 4.236rem (67.77px) - φ^3
   H2: 2.618rem (41.89px) - φ^2
   H3: 1.618rem (25.89px) - φ^1
   H4: 1rem (16px) - base
   H5: 0.618rem (9.89px) - 1/φ
   H6: 0.382rem (6.11px) - 1/φ^2
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.618rem, 6vw, 4.236rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.618rem, 4vw, 2.618rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.618rem);
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.618rem;
}

h6 {
    font-size: 0.382rem;
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

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

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

/* ========================================
   GLOBAL 3D CANVAS
======================================== */
#global-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(0, 167, 225, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(0, 126, 167, 0.08) 0%, transparent 50%);
    display: none;
}

.hero-fallback.active {
    display: block;
}

/* ========================================
   ANIMATIONS & SCROLL REVEALS
======================================== */

/* Text reveal - slide up from behind mask */
.split-text {
    display: block;
    overflow: hidden;
}

.split-text .text-reveal-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em; /* Prevent text clipping */
}

.split-text .text-reveal-inner {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.visible .text-reveal-inner {
    transform: translateY(0);
}

/* Section reveal - slide up with fade */
.reveal-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from below - subtle version */
.reveal-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale reveal - for cards */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Clip reveal - text reveals from behind a mask */
.reveal-clip {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-clip.visible {
    clip-path: inset(0 0 0% 0);
}

/* Horizontal line reveal */
.reveal-line {
    position: relative;
}

.reveal-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-line.visible::after {
    transform: scaleX(1);
}

/* Staggered children with more dramatic timing */
.stagger-children > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 120ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 360ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 480ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 600ms; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger from left */
.stagger-left > * {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-left.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-left.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-left.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-left.visible > *:nth-child(4) { transition-delay: 300ms; }

.stagger-left.visible > * {
    opacity: 1;
    transform: translateX(0);
}

/* Counter animation for numbers */
.counter {
    display: inline-block;
}

/* Blur reveal */
.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Mask reveal - content slides up from behind mask */
.reveal-mask {
    overflow: hidden;
}

.reveal-mask-inner {
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-mask.visible .reveal-mask-inner {
    transform: translateY(0);
}

/* Legacy support */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(8, 145, 178, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(8, 145, 178, 0.8)); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .split-text .text-reveal-inner,
    .reveal-section,
    .reveal-fade,
    .reveal-scale,
    .reveal-clip,
    .reveal-blur,
    .reveal-mask-inner,
    .animate-on-scroll,
    .stagger-children > *,
    .stagger-left > * {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

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

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-card-shadow);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

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

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

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

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 0.9375rem;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero h1.split-text {
    display: block;
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    /* Reveal handled by JS */
}

.hero-helper {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    max-width: 400px;
}

/* 3D Visual Container */
.hero-3d-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 31.5%;
    height: 56%;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .hero-3d-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        transform: none;
        opacity: 0.4;
    }
}

/* ========================================
   EMAIL FORM
======================================== */
.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.email-form input[type="email"] {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.email-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

@media (min-width: 480px) {
    .email-form {
        flex-direction: row;
    }

    .email-form input[type="email"] {
        flex: 1;
    }
}

/* ========================================
   SECTION STYLES
======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.125rem;
}

.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: 2px;
}

/* ========================================
   INDUSTRY REALITY SECTION
======================================== */
.reality-section {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.reality-content {
    display: grid;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 768px) {
    .reality-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.reality-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-fresh-sky);
    background: var(--color-accent-subtle);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.reality-text h2 {
    margin-bottom: var(--space-lg);
}

.reality-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.reality-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(145deg, var(--color-deep-space) 0%, #004a77 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.stat-number {
    display: block;
    font-size: clamp(2.618rem, 5vw, 4.236rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-fresh-sky), var(--color-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.stats-source {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-xl);
    font-style: italic;
}

/* ========================================
   DETECTION GAP SECTION
======================================== */
.detection-gap-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
    position: relative;
}

.detection-gap-section .section-header {
    margin-bottom: var(--space-3xl);
}

.gap-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cerulean);
    background: var(--color-accent-subtle);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.gap-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

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

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

.gap-card:hover {
    transform: translateY(-4px);
}

.gap-card-rule {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: none;
}

.gap-card-rule:hover {
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.4);
}

.gap-card-rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gap-card-ai {
    background: linear-gradient(145deg, var(--color-deep-space) 0%, #004a77 100%);
    border: none;
}

.gap-card-ai:hover {
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.3);
}

.gap-card-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.gap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.gap-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gap-card-rule .gap-card-label {
    color: rgba(255, 255, 255, 0.6);
}

.gap-card-ai .gap-card-label {
    color: rgba(255, 255, 255, 0.7);
}

.gap-card-title {
    font-size: 1.618rem;
    margin-bottom: var(--space-md);
}

.gap-card-rule .gap-card-title {
    color: var(--color-white);
}

.gap-card-ai .gap-card-title {
    color: var(--color-white);
}

.gap-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.gap-card-rule .gap-card-status {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.gap-card-ai .gap-card-status {
    background: rgba(0, 167, 225, 0.3);
    color: var(--color-fresh-sky);
}

.gap-card-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.gap-card-rule .gap-card-description {
    color: rgba(255, 255, 255, 0.75);
}

.gap-card-ai .gap-card-description {
    color: rgba(255, 255, 255, 0.85);
}

.gap-limitations,
.gap-capabilities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gap-limitations li,
.gap-capabilities li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.gap-limitations li::before,
.gap-capabilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.gap-limitations li {
    color: rgba(255, 255, 255, 0.7);
}

.gap-limitations li::before {
    background: rgba(255, 107, 107, 0.6);
}

.gap-capabilities li {
    color: rgba(255, 255, 255, 0.9);
}

.gap-capabilities li::before {
    background: var(--color-fresh-sky);
}

.gap-stat-card {
    text-align: center;
    background: linear-gradient(145deg, var(--color-cerulean) 0%, var(--color-fresh-sky) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gap-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.gap-stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.618rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.gap-stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* ========================================
   PAINS SECTION
======================================== */
.pains-section {
    background: var(--color-bg);
}

.pains-grid {
    display: grid;
    gap: var(--space-xl);
}

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

    .pains-grid.pains-grid-two {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

.pain-card {
    text-align: left;
}

.pain-card h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

/* ========================================
   CORE PROBLEM SECTION
======================================== */
.problem-section {
    background: linear-gradient(135deg, var(--color-deep-space) 0%, #004a77 100%);
    overflow: hidden;
    position: relative;
}

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

.problem-content h2 {
    margin-bottom: var(--space-xl);
    color: var(--color-white);
}

.problem-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.85);
}

.problem-content p:last-child {
    margin-bottom: 0;
}

/* 3D Background for Problem Section */
.problem-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
}

/* ========================================
   WHAT OPTOZ DOES SECTION
======================================== */
.solution-section {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.solution-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    position: relative;
    z-index: 1;
}

.solution-intro h2 {
    margin-bottom: var(--space-lg);
}

.solution-intro p {
    font-size: 1.125rem;
}

.solution-grid {
    display: grid;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

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

/* Interactive 3D Element */
.solution-3d-wrapper {
    position: relative;
    margin-bottom: var(--space-3xl);
}

#solution-canvas {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    cursor: grab;
}

#solution-canvas:active {
    cursor: grabbing;
}

.canvas-hint {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========================================
   HOW IT HELPS SECTION
======================================== */
.helps-section {
    background: var(--color-white);
}

.helps-grid {
    display: grid;
    gap: var(--space-xl);
}

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

.helps-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Card 1: Deep Space Blue */
.helps-card:nth-child(1) {
    background: linear-gradient(145deg, var(--color-deep-space) 0%, #004a77 100%);
}

/* Card 2: Cerulean */
.helps-card:nth-child(2) {
    background: linear-gradient(145deg, var(--color-cerulean) 0%, #006080 100%);
}

/* Card 3: Fresh Sky */
.helps-card:nth-child(3) {
    background: linear-gradient(145deg, var(--color-fresh-sky) 0%, var(--color-cerulean) 100%);
}

.helps-card h3 {
    color: var(--color-white);
}

.helps-card p {
    color: rgba(255, 255, 255, 0.85);
}

.helps-card .card-icon {
    margin: 0 auto var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.helps-card .card-icon svg {
    stroke: var(--color-white);
}

.helps-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.3);
}

.helps-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   AI GATEWAY SECTION
======================================== */
.gateway-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
    position: relative;
    overflow: hidden;
}

.gateway-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.gateway-badge svg {
    width: 20px;
    height: 20px;
}

.gateway-intro {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: var(--space-lg) auto 0;
}

.gateway-visual {
    position: relative;
    margin-bottom: var(--space-3xl);
}

#gateway-canvas {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-ink-black) 0%, var(--color-deep-space) 100%);
}

.gateway-features {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

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

@media (min-width: 1024px) {
    .gateway-features {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.gateway-feature {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.gateway-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 52, 89, 0.1);
    border-color: var(--color-fresh-sky);
}

.gateway-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-white);
}

.gateway-feature h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

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

.gateway-highlight {
    background: linear-gradient(135deg, var(--color-ink-black) 0%, var(--color-deep-space) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.gateway-highlight p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   REAL & SYNTHETIC DATA SECTION
======================================== */
.data-section {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.data-visual-wrapper {
    position: relative;
    margin-bottom: var(--space-3xl);
}

#data-canvas {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-deep-space) 0%, #004a77 100%);
}

.data-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

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

.data-card {
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.data-card-real {
    background: linear-gradient(145deg, var(--color-deep-space) 0%, #004a77 100%);
    border: none;
}

.data-card-synthetic {
    background: linear-gradient(145deg, var(--color-cerulean) 0%, var(--color-fresh-sky) 100%);
    border: none;
}

.data-card h3,
.data-card p {
    color: var(--color-white);
}

.data-card p {
    color: rgba(255, 255, 255, 0.85);
}

.data-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.data-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
}

.data-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.data-card h3 {
    margin-bottom: var(--space-sm);
}

.data-features {
    list-style: none;
    margin-top: var(--space-lg);
    padding: 0;
}

.data-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.data-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
    opacity: 0.6;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.data-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.3);
}

.data-transparency {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
    text-align: center;
    border: 2px solid var(--color-fresh-sky);
    position: relative;
    overflow: hidden;
}

.data-transparency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-fresh-sky), var(--color-cerulean));
}

.data-transparency h3 {
    color: var(--color-deep-space);
    margin-bottom: var(--space-md);
}

.data-transparency p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .data-transparency {
        padding: var(--space-xl);
    }

    #data-canvas {
        height: 220px;
    }
}

/* ========================================
   DIFFERENTIATORS SECTION
======================================== */
.diff-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.diff-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

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

.diff-card {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.diff-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-accent-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-accent);
}

.diff-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.diff-card p {
    font-size: 0.9375rem;
}

/* ========================================
   FINAL CTA SECTION
======================================== */
.final-cta-section {
    background: linear-gradient(135deg, var(--color-fresh-sky) 0%, var(--color-cerulean) 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

.final-cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.final-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.final-cta-section .email-form {
    margin: 0 auto;
}

.final-cta-section .email-form input[type="email"] {
    background: var(--color-white);
    border-color: transparent;
}

.final-cta-section .email-form input[type="email"]:focus {
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.final-cta-section .btn-primary {
    background: var(--color-deep-space);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.final-cta-section .btn-primary:hover {
    background: var(--color-ink-black);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.final-cta-section .btn-primary::before {
    display: none;
}

.spam-notice {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--color-text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl) 0;
    text-align: center;
    font-size: 0.875rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--color-white);
}

.footer-links {
    margin-top: var(--space-md);
}

.footer-links a {
    margin: 0 var(--space-md);
}

/* ========================================
   HEADER & NAV
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    gap: var(--space-xl);
}

.site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* ========================================
   FLOATING ELEMENTS
======================================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

/* Tablet styles */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero-3d-container {
        opacity: 0.3;
    }

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

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

    .reality-stats {
        flex-direction: row;
        justify-content: center;
    }

    .stat-item {
        flex: 1;
        max-width: 250px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
    }

    section {
        padding: var(--space-3xl) 0;
    }

    /* Header & Nav */
    .site-header {
        padding: var(--space-md);
    }

    .site-nav {
        gap: var(--space-md);
    }

    .site-nav a {
        font-size: 0.8125rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--space-4xl) + var(--space-lg));
        padding-bottom: var(--space-3xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .hero-3d-container {
        opacity: 0.2;
    }

    /* Section headers */
    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-header p {
        font-size: 1rem;
    }

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

    /* Industry Reality */
    .reality-stats {
        flex-direction: column;
    }

    .stat-item {
        max-width: 100%;
    }

    .reality-label,
    .gap-label {
        font-size: 0.6875rem;
    }

    /* Detection Gap */
    .gap-grid {
        gap: var(--space-md);
    }

    .gap-card {
        padding: var(--space-lg);
    }

    .gap-card-title {
        font-size: 1.25rem;
    }

    .gap-stat-number {
        font-size: 1.75rem;
    }

    /* Pains */
    .pain-card h3 {
        font-size: 1rem;
    }

    /* Problem section */
    .problem-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .problem-content p {
        font-size: 1rem;
    }

    /* Solution */
    .solution-intro p {
        font-size: 1rem;
    }

    #solution-canvas {
        height: 200px;
    }

    .canvas-hint {
        font-size: 0.75rem;
    }

    /* How it helps */
    .helps-card {
        padding: var(--space-xl) var(--space-lg);
    }

    /* AI Gateway */
    .gateway-content {
        margin-bottom: var(--space-2xl);
    }

    .gateway-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

    .gateway-badge svg {
        width: 16px;
        height: 16px;
    }

    .gateway-intro {
        font-size: 1rem;
    }

    .gateway-visual {
        margin-bottom: var(--space-2xl);
    }

    #gateway-canvas {
        height: 180px;
    }

    .gateway-features {
        gap: var(--space-md);
        margin-bottom: var(--space-2xl);
    }

    .gateway-feature {
        padding: var(--space-lg);
    }

    .gateway-feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-md);
    }

    .gateway-feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .gateway-feature h3 {
        font-size: 1rem;
    }

    .gateway-feature p {
        font-size: 0.875rem;
    }

    .gateway-highlight {
        padding: var(--space-xl);
    }

    .gateway-highlight p {
        font-size: 1rem;
    }

    /* Data section */
    #data-canvas {
        height: 180px;
    }

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

    .data-transparency {
        padding: var(--space-lg);
    }

    .data-transparency p {
        font-size: 0.9375rem;
    }

    /* Differentiators */
    .diff-card {
        gap: var(--space-md);
    }

    .diff-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .diff-card h3 {
        font-size: 0.9375rem;
    }

    .diff-card p {
        font-size: 0.875rem;
    }

    /* Final CTA */
    .final-cta-section p {
        font-size: 1rem;
    }

    .email-form {
        max-width: 100%;
    }

    .email-form input[type="email"] {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Footer */
    footer {
        padding: var(--space-lg) 0;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-links a {
        margin: 0;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .site-header {
        padding: var(--space-sm) var(--space-md);
    }

    .site-nav a {
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.125rem;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.375rem, 6vw, 1.75rem);
    }

    .hero {
        padding-top: calc(var(--space-3xl) + var(--space-lg));
    }

    .hero-subheadline {
        font-size: 0.9375rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gap-card-title {
        font-size: 1.125rem;
    }

    .gap-card-description {
        font-size: 0.875rem;
    }

    .gap-stat-number {
        font-size: 1.5rem;
    }

    .gap-stat-label {
        font-size: 0.75rem;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form input[type="email"],
    .email-form .btn {
        width: 100%;
    }
}

/* ========================================
   GLOW EFFECTS
======================================== */
.glow-accent {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   LEGAL PAGES STYLES
======================================== */
.legal-page {
    padding-top: calc(var(--space-4xl) + var(--space-xl));
    padding-bottom: var(--space-4xl);
    min-height: 100vh;
    background: var(--color-white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: var(--space-md);
    color: var(--color-deep-space);
}

.legal-content .last-updated {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-3xl);
}

.legal-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-deep-space);
    font-size: 1.618rem;
}

.legal-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent-hover);
}
