/* landing.css — geëxternaliseerd uit landing.php (INT-938) */

/* ============================================================
   CSS CUSTOM PROPERTIES - THEME SYSTEM
   ============================================================ */
:root {
    --landing-primary: #2563eb;
    --landing-primary-dark: #1d4ed8;
    --landing-primary-light: #3b82f6;
    --landing-accent: #7c3aed;
    --landing-accent-light: #a78bfa;
    --landing-gradient-start: #0f172a;
    --landing-gradient-mid: #1e1b4b;
    --landing-gradient-end: #312e81;
    --landing-bg: #ffffff;
    --landing-bg-alt: #f8fafc;
    --landing-bg-card: #ffffff;
    --landing-text: #1e293b;
    --landing-text-muted: #64748b;
    --landing-text-light: #94a3b8;
    --landing-text-hero: #ffffff;
    --landing-text-hero-muted: #cbd5e1;
    --landing-border: #e2e8f0;
    --landing-border-light: #f1f5f9;
    --landing-radius: 16px;
    --landing-radius-sm: 10px;
    --landing-radius-xs: 6px;
    --landing-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --landing-shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.15);
    --landing-shadow-xl: 0 25px 60px -12px rgba(0,0,0,0.25);
    --landing-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-pricing-popular-border: var(--landing-primary);
    --landing-pricing-popular-bg: linear-gradient(135deg, #eff6ff, #f5f3ff);
    --landing-cta-gradient: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    --landing-hero-gradient: linear-gradient(135deg, var(--landing-gradient-start) 0%, var(--landing-gradient-mid) 50%, var(--landing-gradient-end) 100%);
    --landing-btn-radius: 12px;
}

/* Dark mode: override background/text variables to dark colors */
[data-theme="dark"] {
    --landing-primary: #3b82f6;
    --landing-primary-dark: #2563eb;
    --landing-primary-light: #60a5fa;
    --landing-accent: #8b5cf6;
    --landing-accent-light: #a78bfa;
    --landing-gradient-start: #0f172a;
    --landing-gradient-mid: #1e1b4b;
    --landing-gradient-end: #312e81;
    --landing-bg: #0f172a;
    --landing-bg-alt: #1e293b;
    --landing-bg-card: #1e293b;
    --landing-text: #f1f5f9;
    --landing-text-muted: #94a3b8;
    --landing-text-light: #64748b;
    --landing-text-hero: #ffffff;
    --landing-text-hero-muted: #cbd5e1;
    --landing-border: #334155;
    --landing-border-light: #1e293b;
    --landing-radius: 16px;
    --landing-radius-sm: 10px;
    --landing-radius-xs: 6px;
    --landing-shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --landing-shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.5);
    --landing-shadow-xl: 0 25px 60px -12px rgba(0,0,0,0.6);
    --landing-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-pricing-popular-border: var(--landing-primary);
    --landing-pricing-popular-bg: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.15));
    --landing-cta-gradient: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    --landing-hero-gradient: linear-gradient(135deg, var(--landing-gradient-start) 0%, var(--landing-gradient-mid) 50%, var(--landing-gradient-end) 100%);
    --landing-btn-radius: 12px;
}

[data-theme="light"] {
    --landing-primary: #2563eb;
    --landing-primary-dark: #1d4ed8;
    --landing-primary-light: #3b82f6;
    --landing-accent: #7c3aed;
    --landing-accent-light: #a78bfa;
    --landing-gradient-start: #eef2ff;
    --landing-gradient-mid: #e0e7ff;
    --landing-gradient-end: #c7d2fe;
    --landing-bg: #ffffff;
    --landing-bg-alt: #f8fafc;
    --landing-bg-card: #ffffff;
    --landing-text: #1e293b;
    --landing-text-muted: #64748b;
    --landing-text-light: #94a3b8;
    --landing-text-hero: #1e293b;
    --landing-text-hero-muted: #475569;
    --landing-border: #e2e8f0;
    --landing-border-light: #f1f5f9;
    --landing-radius: 16px;
    --landing-radius-sm: 10px;
    --landing-radius-xs: 6px;
    --landing-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --landing-shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.1);
    --landing-shadow-xl: 0 25px 60px -12px rgba(0,0,0,0.15);
    --landing-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-pricing-popular-border: var(--landing-primary);
    --landing-pricing-popular-bg: linear-gradient(135deg, #eff6ff, #f5f3ff);
    --landing-cta-gradient: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    --landing-hero-gradient: linear-gradient(135deg, var(--landing-gradient-start) 0%, var(--landing-gradient-mid) 50%, var(--landing-gradient-end) 100%);
    --landing-btn-radius: 12px;
}

/* elegant theme removed — unified to light/dark only */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--landing-font-body);
    color: var(--landing-text);
    background: var(--landing-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--landing-font-heading); line-height: 1.2; }

/* ============================================================
   UTILITIES
   ============================================================ */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.landing-section {
    padding: 100px 0;
}
.landing-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.landing-section-subtitle {
    text-align: center;
    color: var(--landing-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 60px;
}
.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--landing-btn-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.landing-btn-primary {
    background: var(--landing-cta-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}
.landing-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.landing-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}
.landing-btn-outline {
    background: transparent;
    color: var(--landing-primary);
    border: 2px solid var(--landing-primary);
}
.landing-btn-outline:hover {
    background: var(--landing-primary);
    color: #fff;
}

/* Scroll reveal animations */
.landing-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.landing-reveal-delay-1 { transition-delay: 0.1s; }
.landing-reveal-delay-2 { transition-delay: 0.2s; }
.landing-reveal-delay-3 { transition-delay: 0.3s; }
.landing-reveal-delay-4 { transition-delay: 0.4s; }
.landing-reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    min-height: 130px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,#f0f9ff,#ecfeff);
    border-bottom: 2px solid #0ea5e9;
    transition: all 0.35s ease;
}
[data-theme="dark"] .landing-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2)) !important;
    border-bottom-color: #0ea5e9 !important;
}
.landing-header-inner { width: 100%; }
.landing-header.is-scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    min-height: 130px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.landing-header.is-scrolled .landing-logo-img { height: 100px; }
.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.landing-logo-img {
    height: 100px;
    width: auto;
    flex-shrink: 0;
}
.landing-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.landing-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.landing-nav a:hover { color: #fff; }
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.landing-nav-login {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.9) !important;
}
.landing-nav-cta {
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
}
.landing-lang-selector {
    display: flex !important;
    align-items: center;
    gap: 2px;
    order: 90;
}
.landing-lang-btn {
    padding: 4px 6px;
    font-size: 1.1rem;
    border-radius: 6px;
    line-height: 1;
    opacity: 0.85;
    transition: all 0.2s;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}
.landing-lang-btn:hover { opacity: 1; background: rgba(255,255,255,0.35); }
.landing-lang-btn.active { opacity: 1; transform: scale(1.1); background: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.4); }
[data-theme="light"] .landing-lang-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .landing-lang-btn:hover { background: rgba(0,0,0,0.1); }
[data-theme="light"] .landing-lang-btn.active { background: rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.15); }
.landing-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-left: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.landing-theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(30deg);
}

/* Mobile menu - hidden by default on ALL screen sizes */
.landing-mobile-menu {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.99);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.landing-mobile-menu.is-open {
    display: flex !important;
}
.landing-mobile-tester-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e !important;
    border: 1.5px solid #fcd34d;
    padding: 0.7rem 1.25rem !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    white-space: nowrap;
}
.landing-mobile-menu a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}
.landing-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.landing-mobile-lang {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.landing-mobile-lang .landing-lang-btn {
    font-size: 1.75rem !important;
    opacity: 0.75;
    background: rgba(255,255,255,0.12) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    cursor: pointer;
    min-width: 56px;
    line-height: 1;
}
.landing-mobile-lang .landing-lang-btn.active {
    opacity: 1;
    background: rgba(255,255,255,0.25) !important;
    border-color: #fff !important;
}
.landing-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    /* Header is a light gradient (#f0f9ff→#ecfeff) — use dark ink + visible
       border so the hamburger is actually visible. Previous white-on-white
       made the toggle invisible on Samsung S23 and other phones. */
    color: #0f172a;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.08);
    border: 1.5px solid rgba(15,23,42,0.25);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}
.landing-menu-toggle:hover {
    background: rgba(37,99,235,0.12);
    border-color: #2563eb;
    color: #2563eb;
}
@media (max-width: 960px) {
    .landing-menu-toggle { display: flex !important; }
}
@media (max-width: 960px) {
    .landing-nav { display: none !important; }
    .landing-nav-actions { display: none !important; }
    .landing-menu-toggle { display: flex; }
    /* Mobile menu styles handled globally above */
    .landing-mobile-lang {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }
    .landing-mobile-lang .landing-lang-btn { font-size: 1.5rem; opacity: 0.7; }
    .landing-mobile-lang .landing-lang-btn.active { opacity: 1; }
}

/* ============================================================
   HERO
   ============================================================ */
.landing-hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    background: var(--landing-hero-gradient);
    overflow: hidden;
    padding-bottom: 80px;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.1) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -3%) scale(1.05); }
}
.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--landing-bg), transparent);
    z-index: 1;
}
/* Grid pattern overlay */
.landing-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.landing-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 160px;
}
.landing-hero-tagline {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--landing-accent-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
}
.landing-hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 900;
    color: var(--landing-text-hero);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.landing-hero-highlight {
    background: linear-gradient(135deg, var(--landing-accent-light), var(--landing-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .landing-hero-highlight {
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .landing-hero-tagline {
    color: var(--landing-primary);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .landing-header {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--landing-border);
}
[data-theme="light"] .landing-logo span,
[data-theme="light"] .landing-nav a {
    color: var(--landing-text);
}
[data-theme="light"] .landing-nav a:hover {
    color: var(--landing-primary);
}
[data-theme="light"] .landing-btn-secondary {
    background: rgba(0,0,0,0.05);
    color: var(--landing-text);
    border-color: var(--landing-border);
}
[data-theme="light"] .landing-btn-secondary:hover {
    background: rgba(0,0,0,0.08);
    border-color: var(--landing-text-muted);
}
[data-theme="light"] .landing-nav-login {
    color: var(--landing-text) !important;
    border-color: var(--landing-border);
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .landing-hero-stats {
    border-top-color: var(--landing-border);
}
[data-theme="light"] .landing-particle {
    background: rgba(37, 99, 235, 0.15);
}
[data-theme="light"] .landing-hero-stat-value {
    color: var(--landing-text);
}
[data-theme="light"] .landing-hero-stat-label {
    color: var(--landing-text-muted);
}
[data-theme="light"] .landing-chat-demo {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.landing-hero-text p {
    font-size: 1.2rem;
    color: var(--landing-text-hero-muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 520px;
}
.landing-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.landing-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.landing-hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}
.landing-hero-stat-label {
    font-size: 0.85rem;
    color: var(--landing-text-hero-muted);
    margin-top: 4px;
}

/* Chat widget preview */
.landing-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.landing-chat-preview {
    width: 380px;
    background: var(--landing-bg-card);
    border-radius: 20px;
    box-shadow: var(--landing-shadow-xl);
    overflow: hidden;
    animation: chatFloat 5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes chatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.landing-chat-header {
    background: var(--landing-cta-gradient);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.landing-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.landing-chat-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.landing-chat-status {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.landing-chat-messages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 260px;
}
.landing-chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    animation: msgFadeIn 0.5s ease forwards;
}
.landing-chat-msg-bot {
    background: var(--landing-bg-alt);
    color: var(--landing-text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.landing-chat-msg-user {
    background: var(--landing-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
/* Hero chat: JS controls timing via setTimeout, no CSS nth-child delays */
@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-chat-input {
    padding: 16px 24px;
    border-top: 1px solid var(--landing-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}
.landing-chat-input-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--landing-border);
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--landing-text-muted);
    background: var(--landing-bg-alt);
}
.landing-chat-input-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--landing-cta-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Floating particles */
.landing-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 900px) {
    .landing-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 150px;
        padding-bottom: 40px;
    }
    .landing-hero-text p { margin-left: auto; margin-right: auto; }
    .landing-hero-buttons { justify-content: center; }
    .landing-hero-buttons .landing-btn { white-space: normal; }
    .landing-hero-stats { justify-content: center; }
    .landing-hero-visual { margin-top: 20px; }
    .landing-chat-preview { width: 100%; max-width: 360px; }
}

/* Mobile (≤640px): shrink logo + hero so everything fits, keep toggle visible */
@media (max-width: 640px) {
    .landing-container { padding: 0 16px; }
    .landing-header-inner { gap: 8px; }
    .landing-logo-img { height: 56px !important; flex-shrink: 1; max-width: 60vw; }
    .landing-header.is-scrolled .landing-logo-img { height: 48px !important; }
    .landing-header { min-height: 80px; padding: 10px 0; }
    .landing-header.is-scrolled { min-height: 70px; }
    .landing-menu-toggle { flex-shrink: 0; margin-left: auto; width: 40px; height: 40px; font-size: 1.3rem; }
    .landing-hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 24px;
        gap: 20px;
    }
    .landing-hero { padding-bottom: 40px; }
    .landing-hero-text h1 { font-size: 2rem; line-height: 1.15; word-break: break-word; }
    .landing-hero-text p { font-size: 1rem; margin-left: auto; margin-right: auto; }
    .landing-hero-buttons { justify-content: center; }
    .landing-hero-buttons .landing-btn { white-space: normal; text-align: center; }
    .landing-hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .landing-hero-stat-value { font-size: 1.4rem; }
    .landing-hero-visual { margin-top: 0; }
    .landing-chat-preview { width: 100%; max-width: 340px; }
    .landing-chat-messages { min-height: 280px; max-height: 320px; padding: 14px; }
    .landing-chat-msg { font-size: 0.85rem; }
    /* Prevent any overflow killers */
    body, html { overflow-x: hidden; }
}
@media (max-width: 400px) {
    .landing-logo-img { height: 48px !important; max-width: 55vw; }
    .landing-hero-content { padding-top: 90px; gap: 16px; }
    .landing-hero { padding-bottom: 30px; }
    .landing-hero-text h1 { font-size: 1.7rem; }
    .landing-chat-preview { max-width: 300px; }
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.landing-social-proof {
    padding: 40px 0;
    background: var(--landing-bg);
    text-align: center;
}
.landing-social-proof p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--landing-text-light);
    font-weight: 600;
    margin-bottom: 28px;
}
.landing-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.35;
}
.landing-logo-item {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--landing-text-muted);
    letter-spacing: -0.02em;
}

/* ============================================================
   FEATURES
   ============================================================ */
.landing-features {
    background: var(--landing-bg);
}
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.landing-feature-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border-light);
    border-radius: var(--landing-radius);
    padding: 36px 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--landing-cta-gradient);
    opacity: 0;
    transition: opacity 0.35s;
}
.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    border-color: transparent;
}
.landing-feature-card:hover::before { opacity: 1; }
.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--landing-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
}
.landing-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.landing-feature-card p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .landing-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .landing-features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.landing-how {
    background: var(--landing-bg-alt);
}
.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.landing-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--landing-primary), var(--landing-accent));
    opacity: 0.2;
}
.landing-step {
    text-align: center;
    position: relative;
}
.landing-step-number {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--landing-bg-card);
    border: 2px solid var(--landing-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--landing-primary);
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}
.landing-step:hover .landing-step-number {
    background: var(--landing-cta-gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37,99,235,0.25);
}
.landing-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.landing-step p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .landing-steps { grid-template-columns: 1fr; gap: 48px; }
    .landing-steps::before { display: none; }
}

/* ============================================================
   PRICING
   ============================================================ */
.landing-pricing {
    background: var(--landing-bg);
}
.landing-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.landing-pricing-toggle span {
    font-size: 0.95rem;
    color: var(--landing-text-muted);
    font-weight: 500;
}
.landing-pricing-toggle span.active { color: var(--landing-text); font-weight: 600; }
.landing-toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--landing-border);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.landing-toggle-switch.active {
    background: var(--landing-primary);
}
.landing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.landing-toggle-switch.active::after {
    transform: translateX(24px);
}
.landing-pricing-save {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    background: #ecfdf5;
    padding: 2px 10px;
    border-radius: 12px;
}
.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}
.landing-pricing-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 36px 28px;
    position: relative;
    transition: all 0.35s;
}
.landing-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
}
.landing-pricing-card.is-popular {
    border: 2px solid var(--landing-pricing-popular-border);
    background: var(--landing-pricing-popular-bg);
    transform: scale(1.04);
    box-shadow: var(--landing-shadow-lg);
}
.landing-pricing-card.is-popular:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: var(--landing-shadow-xl);
}
.landing-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--landing-cta-gradient);
    color: #fff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.landing-pricing-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.landing-pricing-desc {
    color: var(--landing-text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.landing-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.landing-pricing-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--landing-text);
}
.landing-pricing-amount {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--landing-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.landing-pricing-period {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    margin-bottom: 24px;
}
.landing-pricing-features {
    list-style: none;
    margin-bottom: 28px;
}
.landing-pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.landing-pricing-check {
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.landing-pricing-cross {
    color: var(--landing-text-light);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.landing-pricing-features li.disabled {
    opacity: 0.4;
}
.landing-pricing-soon {
    color: #f59e0b !important;
    font-size: 0.75rem;
}
.landing-pricing-card .landing-btn {
    width: 100%;
    justify-content: center;
}
@media (max-width: 1000px) {
    .landing-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-pricing-card.is-popular { transform: scale(1); }
    .landing-pricing-card.is-popular:hover { transform: translateY(-4px); }
}
@media (max-width: 600px) {
    .landing-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.landing-testimonials {
    background: var(--landing-bg-alt);
}
.landing-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.landing-testimonial-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border-light);
    border-radius: var(--landing-radius);
    padding: 32px 28px;
    transition: all 0.35s;
}
.landing-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
}
.landing-testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.landing-testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--landing-text);
    margin-bottom: 24px;
    font-style: italic;
}
.landing-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.landing-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.landing-testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.landing-testimonial-role {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
}
@media (max-width: 900px) {
    .landing-testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* ============================================================
   FAQ
   ============================================================ */
.landing-faq {
    background: var(--landing-bg);
}
.landing-faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.landing-faq-item {
    border: 1px solid var(--landing-border-light);
    border-radius: var(--landing-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.landing-faq-item:hover {
    border-color: var(--landing-border);
}
.landing-faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--landing-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--landing-bg-card);
    cursor: pointer;
}
.landing-faq-question:hover {
    color: var(--landing-primary);
}
.landing-faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--landing-text-muted);
}
.landing-faq-item.is-open .landing-faq-icon {
    transform: rotate(45deg);
}
.landing-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}
.landing-faq-item.is-open .landing-faq-answer {
    max-height: 300px;
}
.landing-faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.landing-cta-section {
    background: var(--landing-hero-gradient);
    position: relative;
    overflow: hidden;
}
.landing-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.15) 0%, transparent 60%);
}
.landing-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
}
.landing-cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.landing-cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 36px;
}
.landing-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
    background: var(--landing-gradient-start);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.landing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.landing-footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.landing-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.landing-footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.landing-footer-col a {
    display: block;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.landing-footer-col a:hover { color: #fff; }
.landing-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.landing-footer-copy {
    font-size: 0.85rem;
}
.landing-footer-langs {
    display: flex;
    gap: 8px;
}
.landing-footer-langs .landing-lang-btn {
    opacity: 0.5;
}
.landing-footer-langs .landing-lang-btn.active {
    opacity: 1;
}
@media (max-width: 700px) {
    .landing-footer-grid { grid-template-columns: 1fr 1fr; }
    .landing-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 450px) {
    .landing-footer-grid { grid-template-columns: 1fr; }
}

/* Product overview cards */
.landing-products a:hover {
    border-color: var(--landing-primary) !important;
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg) !important;
}

/* ============================================================
   RETRO OPS TERMINAL (Pacman-style live stats)
   ============================================================ */
.ops-terminal {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(96,165,250,0.2);
    border-bottom: 1px solid rgba(96,165,250,0.2);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #60a5fa;
}
.ops-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(96,165,250,0.12), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(167,139,250,0.12), transparent 50%),
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(96,165,250,0.025) 2px, rgba(96,165,250,0.025) 4px);
    pointer-events: none;
}
.ops-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.ops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.ops-header-title { color: #60a5fa; font-weight: 700; }
.ops-status-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #34d399;
}
.ops-status-light::before {
    content: '';
    width: 10px; height: 10px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: ops-blink 1.5s infinite;
}
@keyframes ops-blink {
    0%, 50%, 100% { opacity: 1; }
    75% { opacity: 0.3; }
}
.ops-counter {
    text-align: center;
    padding: 2.5rem 0;
    border: 2px solid #60a5fa;
    border-radius: 8px;
    background: rgba(96,165,250,0.02);
    position: relative;
    box-shadow: 0 0 40px rgba(96,165,250,0.15), inset 0 0 20px rgba(96,165,250,0.05);
}
.ops-counter-label {
    font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #34d399;
    margin-bottom: 1rem;
}
.ops-counter-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96,165,250,0.6);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ops-counter-sub {
    font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-top: 0.75rem;
}
.ops-historical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.ops-hist-card {
    background: rgba(96,165,250,0.04);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}
.ops-hist-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #34d399;
    margin-bottom: 0.4rem;
}
.ops-hist-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 640px) {
    .ops-historical { grid-template-columns: 1fr; }
}
.ops-data-source {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-left: 1rem;
}
.ops-data-source.live { color: #34d399; }
.ops-data-source.demo { color: #fbbf24; }
.ops-roadmap-link {
    font-family: 'Press Start 2P','JetBrains Mono',monospace;
    font-size: 0.6rem;
    color: #fcd34d;
    text-decoration: none;
    letter-spacing: 1.5px;
    margin-left: 0.85rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(252,211,77,0.4);
    border-radius: 4px;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.ops-roadmap-link:hover {
    background: rgba(252,211,77,0.12);
    color: #fde68a;
    border-color: #fcd34d;
}
@media (max-width: 720px) {
    .ops-roadmap-link {
        display: inline-block;
        margin: 0.4rem 0 0;
    }
}

/* Bots on platform */
.ops-bots {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 8px;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(8px);
}
.ops-bots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.ops-bots-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #60a5fa;
}
.ops-bots-growth {
    font-size: 0.85rem;
    font-weight: 800;
    color: #34d399;
    padding: 0.4rem 0.8rem;
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.3);
    border-radius: 99px;
    letter-spacing: 1px;
}
.ops-bots-growth.negative { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }
.ops-bots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.ops-bot-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(96,165,250,0.04);
    border: 1px solid rgba(96,165,250,0.15);
    border-radius: 6px;
}
.ops-bot-label {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}
.ops-bot-num {
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}
@media (max-width: 640px) {
    .ops-bots-grid { grid-template-columns: 1fr; }
}

/* Pacman animation */
.ops-pacman-lane {
    margin: 2rem auto;
    max-width: 700px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ops-dots {
    display: flex;
    gap: 30px;
    padding-left: 60px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ops-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167,139,250,0.5);
    animation: ops-dot-eat 4s infinite linear;
}
@keyframes ops-dot-eat {
    0%, 10% { opacity: 1; }
    15% { opacity: 0; transform: scale(0); }
    100% { opacity: 0; transform: scale(0); }
}
.ops-dot:nth-child(1) { animation-delay: 0s; }
.ops-dot:nth-child(2) { animation-delay: 0.3s; }
.ops-dot:nth-child(3) { animation-delay: 0.6s; }
.ops-dot:nth-child(4) { animation-delay: 0.9s; }
.ops-dot:nth-child(5) { animation-delay: 1.2s; }
.ops-dot:nth-child(6) { animation-delay: 1.5s; }
.ops-dot:nth-child(7) { animation-delay: 1.8s; }
.ops-dot:nth-child(8) { animation-delay: 2.1s; }
.ops-dot:nth-child(9) { animation-delay: 2.4s; }
.ops-dot:nth-child(10) { animation-delay: 2.7s; }
.ops-pacman {
    position: absolute;
    left: 0;
    width: 40px; height: 40px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(96,165,250,0.6);
    animation: ops-pacman-move 4s infinite linear, ops-chomp 0.3s infinite;
    clip-path: polygon(100% 74%, 44% 48%, 100% 21%, 100% 0, 0 0, 0 100%, 100% 100%);
}
@keyframes ops-pacman-move {
    0% { left: 0; }
    100% { left: calc(100% - 100px); }
}
@keyframes ops-chomp {
    0%, 100% { clip-path: polygon(100% 74%, 44% 48%, 100% 21%, 100% 0, 0 0, 0 100%, 100% 100%); }
    50% { clip-path: polygon(100% 50%, 44% 50%, 100% 50%, 100% 0, 0 0, 0 100%, 100% 100%); }
}
.ops-ghosts {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
}
.ops-ghost {
    width: 26px; height: 30px;
    border-radius: 14px 14px 0 0;
    position: relative;
    animation: ops-ghost-float 1s ease-in-out infinite alternate;
}
.ops-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 83% 50%, 67% 100%, 50% 50%, 33% 100%, 17% 50%, 0 100%);
}
.ops-ghost::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    width: 5px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 9px 0 0 #fff;
}
.ops-ghost.pink { background: #f472b6; }
.ops-ghost.cyan { background: #22d3ee; }
.ops-ghost.orange { background: #a78bfa; }
@keyframes ops-ghost-float {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* Provider board */
.ops-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #60a5fa;
    border-radius: 8px;
    background: rgba(96,165,250,0.02);
}
.ops-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 4px;
}
.ops-led {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ops-blink 2s infinite;
}
.ops-led.online { background: #34d399; box-shadow: 0 0 8px #34d399; }
.ops-led.standby { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.ops-led.offline { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.ops-provider-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa;
    flex: 1;
}
.ops-provider-status {
    font-size: 0.65rem;
    color: #34d399;
    letter-spacing: 1px;
}
.ops-provider-status.standby { color: #fbbf24; }
.ops-provider-time {
    font-size: 0.7rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.ops-ticker {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 2px;
    padding: 0.75rem;
    border-top: 1px dashed rgba(96,165,250,0.2);
}
.ops-ticker span { color: #60a5fa; }

@media (max-width: 768px) {
    .ops-header { font-size: 0.6rem; }
    .ops-providers { grid-template-columns: 1fr; }
}

/* InterAIP logo force-render */
.landing-header, .landing-header.is-scrolled { min-height: 160px !important; overflow: visible !important; }
.landing-logo { display: flex !important; align-items: center !important; text-decoration: none !important; }
.landing-logo img, .landing-logo-img { display: block !important; height: 100px !important; width: auto !important; max-width: none !important; }

        /* Force nav items to stay on one line */
        .nav-links a, .landing-nav a { white-space: nowrap !important; }
        /* Keep nav links readable in both themes */
        [data-theme="dark"] .site-header .nav-links a,
        [data-theme="dark"] .landing-header .landing-nav a { color: #f1f5f9; }
        [data-theme="dark"] .site-header .nav-links a:hover,
        [data-theme="dark"] .landing-header .landing-nav a:hover { color: #93c5fd; }
    
/* Force visible theme toggle + lang buttons on light header */
.landing-theme-toggle {
    background: rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    color: #1e293b !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1.3rem !important;
}
.landing-theme-toggle:hover { background: rgba(37,99,235,0.1) !important; }
.landing-lang-btn {
    background: rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    color: #1e293b !important;
}
.landing-lang-btn:hover { background: rgba(37,99,235,0.1) !important; }
.landing-lang-btn.active { background: rgba(37,99,235,0.15) !important; border-color: #2563eb !important; }
.landing-lang-selector { display: flex !important; flex-shrink: 0 !important; }
.landing-nav-actions { flex-shrink: 0 !important; }

/* Compact header to fit logo + nav + toggles + CTA */
.landing-header-inner { gap: 12px !important; padding: 0 1rem !important; max-width: 100% !important; }
.landing-nav { gap: 14px !important; }
.landing-nav a { font-size: 0.82rem !important; }
.landing-logo-img { height: 100px !important; }
.landing-nav-cta { padding: 8px 14px !important; font-size: 0.85rem !important; }
.landing-nav-login { padding: 8px 12px !important; font-size: 0.85rem !important; }
.landing-lang-btn { padding: 3px 5px !important; font-size: 0.95rem !important; }
.landing-theme-toggle { width: 40px !important; height: 40px !important; font-size: 1.2rem !important; }

/* Mobile override (MUST come after the force-render rules above which lack
   media queries). Shrinks logo + header so the hamburger toggle fits. */
@media (max-width: 640px) {
    .landing-header, .landing-header.is-scrolled { min-height: 80px !important; padding: 10px 0 !important; }
    .landing-header .landing-logo img,
    .landing-header .landing-logo-img { height: 54px !important; max-width: 58vw !important; }
    .landing-header.is-scrolled .landing-logo img,
    .landing-header.is-scrolled .landing-logo-img { height: 46px !important; }
    .landing-header-inner { padding: 0 14px !important; gap: 8px !important; }
    .landing-menu-toggle { flex-shrink: 0 !important; width: 42px !important; height: 42px !important; }
}
@media (max-width: 400px) {
    .landing-header .landing-logo img,
    .landing-header .landing-logo-img { height: 46px !important; max-width: 52vw !important; }
}

        /* AI-themed nav font: Space Grotesk — self-hosted via /css/fonts.css (GDPR-compliant) */
        .nav-links a, .landing-nav a {
            font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif !important;
            font-size: 0.92rem !important;
            font-weight: 600 !important;
            letter-spacing: 0.02em !important;
        }
        .nav-links a:hover, .landing-nav a:hover {
            letter-spacing: 0.04em !important;
            transition: letter-spacing 0.2s, color 0.2s !important;
        }
    
.landing-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.15);
    color: #2563eb;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 4px;
}
.landing-search-btn:hover { background: rgba(37,99,235,0.15); transform: scale(1.08); }
/* Hero chat slider — one Q&A pair visible at a time, JS controls timing */
.landing-chat-messages { min-height: 320px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; scrollbar-width: thin; }
.landing-chat-messages::-webkit-scrollbar { width: 4px; }
.landing-chat-messages::-webkit-scrollbar-thumb { background: var(--landing-border); border-radius: 2px; }
/* NOTE: no animation override here — use base .landing-chat-msg rule
   (msgFadeIn 0.5s forwards) so bubbles stay visible after fade-in.
   A previous override dropped `forwards` and bubbles reverted to opacity:0. */
/* Extra contrast for hero bot bubble — make sure it's visible against the
   white preview card background */
#heroChatMessages .landing-chat-msg-bot {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] #heroChatMessages .landing-chat-msg-bot {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}
.landing-chat-examples-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 12px 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff !important; text-decoration: none;
    border-radius: 10px; font-weight: 600; font-size: 0.88rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.landing-chat-examples-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }

/* ── Hero chat theme rotation ───────────────────────────────────────────────── */
/* Smooth transition when branch/theme changes */
#heroChatPreview {
    transition: background 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}
#heroChatPreview .landing-chat-header {
    transition: background 0.3s ease, border-radius 0.3s ease;
}
#heroChatPreview .landing-chat-msg-user {
    transition: background 0.3s ease, border-radius 0.3s ease;
}
#heroChatPreview .landing-chat-msg-bot {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Bakkerij — warm/friendly (orange) */
#heroChatPreview.chat-theme-bakkerij { background: #fff8f0; }
#heroChatPreview.chat-theme-bakkerij .landing-chat-header { background: linear-gradient(135deg, #f97316, #ea580c); }
#heroChatPreview.chat-theme-bakkerij .landing-chat-msg-user { background: #f97316; border-bottom-right-radius: 20px; }
#heroChatPreview.chat-theme-bakkerij .landing-chat-msg-bot { background: #fef3e2; color: #7c2d12; border-color: #fed7aa; }
[data-theme="dark"] #heroChatPreview.chat-theme-bakkerij { background: #2c1a0e; }
[data-theme="dark"] #heroChatPreview.chat-theme-bakkerij .landing-chat-msg-bot { background: #431d06; color: #fed7aa; border-color: #7c2d12; }

/* Webshop — modern (blue gradient) */
#heroChatPreview.chat-theme-webshop { background: #f8faff; }
#heroChatPreview.chat-theme-webshop .landing-chat-header { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-radius: 0; }
#heroChatPreview.chat-theme-webshop .landing-chat-msg-user { background: #2563eb; border-bottom-right-radius: 4px; }
#heroChatPreview.chat-theme-webshop .landing-chat-msg-bot { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
[data-theme="dark"] #heroChatPreview.chat-theme-webshop { background: #0f1d3a; }
[data-theme="dark"] #heroChatPreview.chat-theme-webshop .landing-chat-msg-bot { background: #172554; color: #bfdbfe; border-color: #1e3a8a; }

/* Vastgoed — corporate (dark navy, sharp) */
#heroChatPreview.chat-theme-vastgoed { background: #f8f9fb; border-radius: 8px; }
#heroChatPreview.chat-theme-vastgoed .landing-chat-header { background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 0; }
#heroChatPreview.chat-theme-vastgoed .landing-chat-msg { border-radius: 4px; }
#heroChatPreview.chat-theme-vastgoed .landing-chat-msg-user { background: #334155; border-bottom-right-radius: 2px; }
#heroChatPreview.chat-theme-vastgoed .landing-chat-msg-bot { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }
[data-theme="dark"] #heroChatPreview.chat-theme-vastgoed { background: #0d1117; }
[data-theme="dark"] #heroChatPreview.chat-theme-vastgoed .landing-chat-msg-bot { background: #1e293b; color: #e2e8f0; border-color: #334155; }

/* Zorgpraktijk — healthcare (teal/green, soft) */
#heroChatPreview.chat-theme-zorgpraktijk { background: #f0fdf9; }
#heroChatPreview.chat-theme-zorgpraktijk .landing-chat-header { background: linear-gradient(135deg, #0d9488, #059669); }
#heroChatPreview.chat-theme-zorgpraktijk .landing-chat-msg-user { background: #0d9488; border-bottom-right-radius: 20px; }
#heroChatPreview.chat-theme-zorgpraktijk .landing-chat-msg-bot { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
[data-theme="dark"] #heroChatPreview.chat-theme-zorgpraktijk { background: #022c22; }
[data-theme="dark"] #heroChatPreview.chat-theme-zorgpraktijk .landing-chat-msg-bot { background: #064e3b; color: #d1fae5; border-color: #065f46; }

/* Garage — industrial (slate, clean) */
#heroChatPreview.chat-theme-garage { background: #f8fafc; }
#heroChatPreview.chat-theme-garage .landing-chat-header { background: linear-gradient(135deg, #475569, #334155); }
#heroChatPreview.chat-theme-garage .landing-chat-msg-user { background: #475569; border-bottom-right-radius: 6px; }
#heroChatPreview.chat-theme-garage .landing-chat-msg-bot { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
[data-theme="dark"] #heroChatPreview.chat-theme-garage { background: #0f1923; }
[data-theme="dark"] #heroChatPreview.chat-theme-garage .landing-chat-msg-bot { background: #1e293b; color: #f1f5f9; border-color: #334155; }

/* Restaurant — elegant (dark header, gold accent, warm beige) */
#heroChatPreview.chat-theme-restaurant { background: #fdf8f0; }
#heroChatPreview.chat-theme-restaurant .landing-chat-header { background: linear-gradient(135deg, #1c1410, #2d1f14); }
#heroChatPreview.chat-theme-restaurant .landing-chat-header .landing-chat-name { color: #fbbf24; }
#heroChatPreview.chat-theme-restaurant .landing-chat-header .landing-chat-status { color: rgba(251,191,36,0.6); }
#heroChatPreview.chat-theme-restaurant .landing-chat-msg-user { background: #92400e; border-bottom-right-radius: 18px; }
#heroChatPreview.chat-theme-restaurant .landing-chat-msg-bot { background: #fef3c7; color: #78350f; border-color: #fde68a; }
[data-theme="dark"] #heroChatPreview.chat-theme-restaurant { background: #1c1208; }
[data-theme="dark"] #heroChatPreview.chat-theme-restaurant .landing-chat-msg-bot { background: #292009; color: #fef3c7; border-color: #78350f; }

/* ── Hero live demo CTA button ──────────────────────────────────────────────── */
.landing-hero-demo-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.landing-hero-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
    animation: demoPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.landing-hero-demo-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(124,58,237,0.55);
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}
@keyframes demoPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
    50%       { box-shadow: 0 4px 32px rgba(124,58,237,0.65), 0 0 0 6px rgba(124,58,237,0.12); }
}

/* ── Landing-page header overrides (applied on top of site-header.css) ────── */
/* Light mode header */
.site-header { background: linear-gradient(135deg,#f0f9ff,#ecfeff) !important; }
/* Dark mode header — override the landing !important with an equally specific rule */
[data-theme="dark"] .site-header {
    background:    rgba(15,23,42,0.95) !important;
    border-bottom-color: #334155 !important;
}

/* Mobile hamburger: dark ink on light header, light ink on dark header */
.site-header .mobile-toggle {
    color: #0f172a !important;
    background: rgba(15,23,42,0.08) !important;
    border: 1.5px solid rgba(15,23,42,0.25) !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: none;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .site-header .mobile-toggle {
    color: #f1f5f9 !important;
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
@media (max-width: 780px) {
    .site-header .mobile-toggle {
        display: inline-flex !important;
    }
}
.site-header .mobile-toggle:hover {
    background: rgba(37,99,235,0.12) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* Force dark text in light header — overrides dark-mode color rules */
.site-header .nav-link,
.site-header .nav-btn-outline,
.site-header .lang-dropdown-trigger,
.site-header .theme-toggle {
    color: #1e293b !important;
}
/* Dark mode: restore light text */
[data-theme="dark"] .site-header .nav-link,
[data-theme="dark"] .site-header .nav-btn-outline,
[data-theme="dark"] .site-header .lang-dropdown-trigger,
[data-theme="dark"] .site-header .theme-toggle {
    color: #f1f5f9 !important;
}
.site-header .nav-btn-outline,
.site-header .theme-toggle {
    border-color: #cbd5e1 !important;
}
[data-theme="dark"] .site-header .nav-btn-outline,
[data-theme="dark"] .site-header .theme-toggle {
    border-color: #334155 !important;
}
/* Pill trigger: light background on light header */
.site-header .lang-dropdown-trigger {
    background: rgba(15,23,42,0.07) !important;
}
[data-theme="dark"] .site-header .lang-dropdown-trigger {
    background: rgba(255,255,255,0.10) !important;
}
.site-header .lang-dropdown-trigger:hover,
.site-header .lang-dropdown.open .lang-dropdown-trigger {
    background: rgba(37,99,235,0.1) !important;
    color: #2563eb !important;
}
[data-theme="dark"] .site-header .lang-dropdown-trigger:hover,
[data-theme="dark"] .site-header .lang-dropdown.open .lang-dropdown-trigger {
    background: rgba(124,58,237,0.22) !important;
    color: #a78bfa !important;
}
/* Dropdown menu: follows theme */
.site-header .lang-dropdown-menu {
    background:   #fff !important;
    border-color: #e2e8f0 !important;
    box-shadow:   0 12px 32px rgba(15,23,42,0.12) !important;
}
[data-theme="dark"] .site-header .lang-dropdown-menu {
    background:   #1e293b !important;
    border-color: #334155 !important;
    box-shadow:   0 12px 32px rgba(0,0,0,0.5) !important;
}
.site-header .lang-dropdown-menu .landing-lang-btn {
    color: #1e293b !important;
}
[data-theme="dark"] .site-header .lang-dropdown-menu .landing-lang-btn {
    color: #f1f5f9 !important;
}
.site-header .lang-dropdown-menu .landing-lang-btn:hover {
    background: rgba(37,99,235,0.07) !important;
    color: #2563eb !important;
}
.site-header .lang-dropdown-menu .landing-lang-btn.active {
    background: rgba(37,99,235,0.1) !important;
    color: #2563eb !important;
    font-weight: 600 !important;
}
[data-theme="dark"] .site-header .lang-dropdown-menu .landing-lang-btn.active {
    color: #93c5fd !important;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-btn-outline:hover {
    color: #2563eb !important;
    border-color: rgba(37,99,235,0.35) !important;
}
[data-theme="dark"] .site-header .nav-link:hover,
[data-theme="dark"] .site-header .nav-link.active,
[data-theme="dark"] .site-header .nav-btn-outline:hover {
    color: #93c5fd !important;
    border-color: rgba(147,197,253,0.35) !important;
}

/* Beta CTA button — secondary style next to Login */
.btn-cta-secondary {
    background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
    color: #fff !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
}
.btn-cta-secondary:hover { opacity: 0.92; }

/* ============================================================
   ORIGIN STORY — "Niet zomaar een chatbot" (deep brand section)
   ============================================================ */
.origin-section {
    position: relative;
    padding: 110px 0 130px;
    background: linear-gradient(180deg, #050816 0%, #0a0e2a 45%, #0f1330 100%);
    color: #e2e8f0;
    overflow: hidden;
    isolation: isolate;
}
[data-theme="light"] .origin-section {
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 100%);
    color: #e2e8f0;
}
/* Decorative grid + nebula */
.origin-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 35%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
.origin-section::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(124,58,237,0.30), transparent 55%),
        radial-gradient(ellipse at 88% 82%, rgba(37,99,235,0.30), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.20), transparent 55%);
    z-index: 0;
    pointer-events: none;
}
.origin-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.origin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.30);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.origin-eyebrow::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: origin-pulse 1.6s ease-in-out infinite;
}
@keyframes origin-pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.45;transform:scale(.85);} }

.origin-headline {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 18ch;
    margin: 0 0 18px;
    color: #ffffff;
}
.origin-headline .origin-strike {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.origin-lede {
    max-width: 62ch;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 56px;
}

/* Stats row */
.origin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 80px;
}
.origin-stat {
    background: linear-gradient(140deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}
.origin-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), transparent);
}
.origin-stat-num {
    font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}
.origin-stat-num .origin-stat-plus { color: #60a5fa; }
.origin-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 600;
}
@media (max-width: 860px) {
    .origin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Two-column: copy + multi-channel illustration */
.origin-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 90px;
}
@media (max-width: 980px) {
    .origin-grid { grid-template-columns: 1fr; gap: 40px; }
}
.origin-copy h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}
.origin-copy p {
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 1rem;
}
.origin-copy p strong { color: #ffffff; font-weight: 600; }

/* Multi-channel converging illustration */
.origin-channels {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.origin-channels svg {
    width: 100%; height: 100%;
    display: block;
    overflow: visible;
}
.origin-channels-line {
    stroke: rgba(96,165,250,0.45);
    stroke-width: 1.2;
    fill: none;
    stroke-dasharray: 4 4;
    animation: origin-dash 12s linear infinite;
}
@keyframes origin-dash { to { stroke-dashoffset: -200; } }
.origin-channels-pulse {
    fill: #60a5fa;
    filter: drop-shadow(0 0 6px #60a5fa);
}
.origin-channel-node {
    fill: rgba(15,23,42,0.85);
    stroke: rgba(96,165,250,0.5);
    stroke-width: 1.5;
}
.origin-channel-node-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    fill: #cbd5e1;
    text-anchor: middle;
    font-weight: 600;
}
.origin-channel-icon { fill: #93c5fd; }
.origin-channel-core {
    fill: url(#originCoreGrad);
    filter: drop-shadow(0 0 24px rgba(124,58,237,0.6));
}
.origin-channel-core-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    fill: #ffffff;
    text-anchor: middle;
    letter-spacing: 1px;
}
.origin-channel-core-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    fill: rgba(255,255,255,0.7);
    text-anchor: middle;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Pull quote */
.origin-pullquote {
    margin: 0 0 80px;
    padding: 50px 56px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(37,99,235,0.10));
    border: 1px solid rgba(167,139,250,0.30);
    position: relative;
    overflow: hidden;
}
.origin-pullquote::before {
    content: '\201C';
    position: absolute;
    top: -10px; left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(167,139,250,0.25);
    pointer-events: none;
}
.origin-pullquote-text {
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.015em;
    max-width: 28ch;
    margin: 0 auto 12px;
}
.origin-pullquote-text em {
    font-style: italic;
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.origin-pullquote-cite {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@media (max-width: 640px) {
    .origin-pullquote { padding: 36px 24px; }
}

/* Privacy proof — three guarantee cards */
.origin-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 80px;
}
@media (max-width: 1080px) {
    .origin-proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .origin-proof { grid-template-columns: 1fr; }
}
.origin-proof-card {
    padding: 28px 26px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(148,163,184,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.origin-proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52,211,153,0.5);
}
.origin-proof-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(52,211,153,0.15);
    border: 1px solid rgba(52,211,153,0.4);
    color: #34d399;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 800;
}
.origin-proof-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}
.origin-proof-body {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Closing block + slogan ribbon */
.origin-closing {
    text-align: center;
    margin-bottom: 50px;
}
.origin-closing p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 56ch;
    margin: 0 auto 12px;
}
.origin-closing strong { color: #ffffff; }
.origin-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 28px;
    margin-top: 36px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37,99,235,0.18), rgba(124,58,237,0.18), rgba(236,72,153,0.18), rgba(124,58,237,0.18), rgba(37,99,235,0.18));
    background-size: 200% 100%;
    animation: origin-ribbon-flow 14s linear infinite;
    border: 1px solid rgba(167,139,250,0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
}
@keyframes origin-ribbon-flow { to { background-position: 200% 0; } }
.origin-ribbon-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f472b6;
    flex-shrink: 0;
}
.origin-ribbon-logo {
    height: 28px;
    width: auto;
    margin-right: 4px;
    filter: brightness(1.1);
}
.origin-issuer {
    margin-top: 26px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}
.origin-issuer strong { color: #cbd5e1; font-style: normal; }

/* Light-mode slight tweaks (we keep dark-style canvas; lighten text-edge) */
[data-theme="light"] .origin-headline,
[data-theme="light"] .origin-copy h3,
[data-theme="light"] .origin-proof-title,
[data-theme="light"] .origin-pullquote-text,
[data-theme="light"] .origin-ribbon { color: #ffffff; }
[data-theme="light"] .origin-stat-num { color: #ffffff; }
[data-theme="light"] .origin-section { color: #e2e8f0; }
