:root {
    --bg: #090b10;
    --bg-elevated: #0f131c;
    --bg-card: rgba(17, 22, 33, 0.78);
    --bg-card-solid: #111621;
    --border: rgba(255, 255, 255, 0.09);
    --border-bright: rgba(255, 255, 255, 0.22);
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --primary: #4f46e5;
    --primary-bright: #a5b4fc;
    --cyan: #93c5fd;
    --violet: #a5b4fc;
    --emerald: #34d399;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 70px -18px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BACKGROUND AMBIENT AURORA + ARCHITECTURAL GRID */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 45% at 85% 10%, rgba(148, 163, 184, 0.08), transparent 55%),
        var(--bg);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
}

.bg-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 74px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.04rem;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f8fafc, #cbd5e1);
    color: #090b10;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.brand-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-soft);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    text-decoration: none;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.btn:hover { text-decoration: none; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 13px; }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; }

.btn-primary {
    background: #f8fafc;
    color: #090b10;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.75);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-bright);
    transform: translateY(-1px);
}

.btn-cyan {
    background: rgba(99, 102, 241, 0.14);
    color: #e0e7ff;
    border-color: rgba(165, 180, 252, 0.28);
}

.btn-cyan:hover {
    background: rgba(99, 102, 241, 0.22);
    transform: translateY(-1px);
}

/* HERO */
.hero {
    padding: 88px 0 64px;
    position: relative;
}

.hero-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.84rem;
    margin-bottom: 26px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulseRing 2.6s infinite;
}

@keyframes pulseRing {
    0% { opacity: 1; }
    50% { opacity: 0.45; }
    100% { opacity: 1; }
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero h1 .gradient-text {
    background: linear-gradient(120deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-sub {
    font-size: 1.18rem;
    color: var(--text-soft);
    margin: 0 auto 34px;
    max-width: 710px;
}

.hero-sub strong { color: #fff; }

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* CORE WEB VITALS BAR */
.vitals-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.vital-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vital-ring {
    width: 58px;
    height: 58px;
    position: relative;
    display: grid;
    place-items: center;
}

.vital-ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.vital-ring circle.track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.09);
    stroke-width: 3.5;
}

.vital-ring circle.fill {
    fill: none;
    stroke: #34d399;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 150.8;
    stroke-dashoffset: 0;
}

.vital-num {
    font-weight: 800;
    font-size: 0.92rem;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.vital-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

/* SECTIONS */
.section {
    padding: 92px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 10px;
}

.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* INTERACTIVE STUDIO DEMO */
.studio-frame {
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-glow);
}

.studio-inner {
    background: #0d111a;
    border-radius: 21px;
    padding: 24px;
}

.studio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.scenario-tabs,
.theme-switcher {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
}

.scenario-btn,
.theme-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.scenario-btn:hover,
.theme-btn:hover { color: var(--text); }

.scenario-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.theme-btn.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* DEMO WIDGET (4 PRESETS REELS) */
.demo-widget {
    --d-bg: #ffffff;
    --d-surface: #f8fafc;
    --d-border: #e2e8f0;
    --d-text: #0f172a;
    --d-muted: #64748b;
    --d-primary: #4f46e5;
    --d-primary-soft: #eef2ff;
    --d-radius: 16px;
    --d-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);

    background: var(--d-bg);
    color: var(--d-text);
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    padding: 28px;
    box-shadow: var(--d-shadow);
    display: grid;
    grid-template-columns: 1.38fr 0.92fr;
    gap: 28px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.demo-widget.preset-minimal {
    --d-bg: #ffffff;
    --d-primary: #111827;
    --d-primary-soft: #f3f4f6;
    --d-radius: 8px;
}

.demo-widget.preset-bordered {
    --d-border: #0f172a;
    --d-primary: #0f172a;
    --d-primary-soft: #f1f5f9;
    --d-radius: 4px;
    border-width: 2px;
    box-shadow: 8px 8px 0 #818cf8;
}

.demo-widget.preset-dark {
    --d-bg: #0f172a;
    --d-surface: #1e293b;
    --d-border: #334155;
    --d-text: #f8fafc;
    --d-muted: #94a3b8;
    --d-primary: #818cf8;
    --d-primary-soft: rgba(99, 102, 241, 0.22);
}

.demo-controls { display: flex; flex-direction: column; gap: 22px; }
.demo-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: 0.94rem; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.demo-card {
    text-align: left;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--d-border);
    background: var(--d-surface);
    color: var(--d-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.14s, border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.demo-card:hover { transform: translateY(-2px); border-color: var(--d-primary); }
.demo-card.active {
    border-color: var(--d-primary);
    background: var(--d-primary-soft);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.demo-card strong { font-size: 0.92rem; }
.demo-card span { font-size: 0.79rem; color: var(--d-muted); }
.demo-card .card-price { color: var(--d-primary); font-weight: 800; margin-top: 6px; font-size: 0.92rem; }

.demo-bubble {
    background: var(--d-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.demo-slider {
    width: 100%;
    height: 8px;
    accent-color: var(--d-primary);
    cursor: pointer;
}

.demo-hint {
    font-size: 0.8rem;
    color: var(--d-muted);
    margin-top: 6px;
}

.demo-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--d-border);
    background: var(--d-surface);
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.15s;
}

.demo-toggle.is-hidden { display: none; }

.cond-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #d97706;
    margin-left: 6px;
}

.demo-summary {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-summary h3 { margin: 0 0 14px; font-size: 1.08rem; }
.demo-lines {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--d-border);
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 0.88rem;
}
.demo-lines li { display: flex; justify-content: space-between; gap: 10px; }
.demo-lines li span:first-child { color: var(--d-muted); }
.demo-lines li span:last-child { font-weight: 700; text-align: right; }

.demo-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--d-muted);
    font-variant-numeric: tabular-nums;
}

.demo-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1.5px solid var(--d-border);
    font-weight: 800;
    font-size: 1rem;
}

.demo-grand-total strong {
    font-size: 2rem;
    color: var(--d-primary);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

/* LIVE FORMULA BAR UNDER DEMO */
.live-formula-bar {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
}

.live-formula-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.formula-status {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.formula-status.ok {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.formula-status.err {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
}

.live-formula-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(129, 140, 248, 0.32);
    background: #020617;
    color: #a5b4fc;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88rem;
    outline: none;
}

.live-formula-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* PERFORMANCE COMPARISON */
.perf-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.perf-bars { display: flex; flex-direction: column; gap: 18px; }
.perf-bar-head { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.perf-track { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.perf-fill { height: 100%; border-radius: 999px; }
.perf-fill.iq { width: 5%; min-width: 34px; background: #34d399; }
.perf-fill.other { width: 92%; background: rgba(148, 163, 184, 0.45); }

.perf-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.perf-stat {
    padding: 18px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border);
}

.perf-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.perf-stat span { font-size: 0.82rem; color: var(--muted); }

/* BENTO FEATURES WITH SPOTLIGHT */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.bento-card {
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

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

.bento-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(129, 140, 248, 0.3);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.bento-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.bento-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.mini-code-chip {
    margin-top: 16px;
    padding: 10px 13px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: #67e8f9;
    overflow-x: auto;
}

/* INSTALL TABS */
.install-box {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.install-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.install-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.install-tab.active {
    background: rgba(99, 102, 241, 0.22);
    border-color: var(--primary-bright);
    color: #fff;
}

.install-pane { display: none; }
.install-pane.active { display: block; }

/* PRICING */
.pricing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    font-weight: 600;
    font-size: 0.92rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(15, 23, 42, 0.92));
    border: 1.5px solid var(--primary-bright);
    box-shadow: var(--shadow-glow);
}

.featured-tag {
    position: absolute;
    top: -13px;
    right: 22px;
    background: #f8fafc;
    color: #090b10;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.price-amount {
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 10px 0 4px;
    font-variant-numeric: tabular-nums;
}

.price-period { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.price-list li::before {
    content: "✓ ";
    color: var(--emerald);
    font-weight: 900;
}

/* FAQ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 16px 20px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    color: var(--primary-bright);
    font-size: 1.3rem;
}

.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 0.94rem; }

/* DOCS LAYOUT (DARK PREMIUM) */
.docs-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 38px;
    padding: 42px 0 90px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 94px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.docs-sidebar-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin: 0 0 12px;
}

.docs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-nav a {
    display: block;
    padding: 8px 11px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.docs-nav a:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
    text-decoration: none;
}

.docs-content { min-width: 0; }

.docs-section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.docs-section:last-child { border-bottom: none; }
.docs-section h1 { margin: 0 0 12px; font-size: 2.3rem; letter-spacing: -0.03em; }
.docs-section h2 { margin: 0 0 12px; font-size: 1.55rem; letter-spacing: -0.02em; }
.docs-section h3 { margin: 22px 0 8px; font-size: 1.1rem; color: #e2e8f0; }
.docs-section p, .docs-section li { color: var(--text-soft); }

.code-block {
    position: relative;
    background: #020617;
    color: #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 14px 0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.22);
    color: #e0e7ff;
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 7px;
    padding: 4px 11px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover { background: rgba(99, 102, 241, 0.38); }

.callout {
    padding: 15px 18px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-bright);
    background: rgba(99, 102, 241, 0.12);
    font-size: 0.93rem;
    margin: 16px 0;
    color: #e0e7ff;
}

.callout-success {
    border-left-color: var(--emerald);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
}

.docs-table th {
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--cyan);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.87em;
    background: rgba(99, 102, 241, 0.16);
    padding: 2px 6px;
    border-radius: 5px;
    color: #c7d2fe;
}

pre code { background: transparent; padding: 0; color: inherit; }

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 960px) {
    .demo-widget,
    .perf-panel,
    .pricing-grid,
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .bento-card,
    .bento-card.span-6,
    .bento-card.span-8 {
        grid-column: span 12;
    }
    .vitals-strip { grid-template-columns: repeat(2, 1fr); }
    .demo-cards { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
    .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot, .hero h1 .gradient-text { animation: none; }
}

/* ==========================================================================
   ANIMATIONS AVANCÉES (60 FPS GPU)
   ========================================================================== */

@property --studio-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Barre de progression de scroll sobre */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 200;
    background: linear-gradient(90deg, #94a3b8, #f8fafc);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Lueurs atmosphériques douces (non néon) */
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.22;
    will-change: transform;
}

.aurora-orb-1 {
    width: 540px;
    height: 540px;
    top: -180px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
    animation: floatOrb1 22s ease-in-out infinite alternate;
}

.aurora-orb-2 {
    width: 480px;
    height: 480px;
    top: 80px;
    right: -140px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.35), transparent 70%);
    animation: floatOrb2 26s ease-in-out infinite alternate;
}

.aurora-orb-3 {
    width: 520px;
    height: 520px;
    bottom: -200px;
    left: 35%;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.4), transparent 70%);
    animation: floatOrb3 24s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(90px, 70px, 0) scale(1.18); }
}

@keyframes floatOrb2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-110px, 90px, 0) scale(1.15); }
}

@keyframes floatOrb3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(80px, -90px, 0) scale(1.2); }
}

/* Entrée chorégraphiée du Hero */
.hero-kicker,
.hero h1,
.hero-sub,
.hero-actions {
    opacity: 0;
    transform: translateY(22px);
    animation: heroRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-kicker { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero-sub { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.4s; }

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

/* Reflet lumineux glissant sur les boutons primaires */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 55%;
    height: 180%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-22deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 145%;
}

/* Animation des anneaux SVG Core Web Vitals */
.vital-ring circle.fill {
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vitals-strip.is-visible .vital-ring circle.fill {
    stroke-dashoffset: 0;
}

/* Cadre sobre du Studio Démo (sans bordure néon) */
.studio-frame {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    animation: none;
}

@keyframes spinStudioBorder {
    to { --studio-angle: 360deg; }
}

/* Pop tactile lors d'un changement de total ou de bulle */
@keyframes popScale {
    0% { transform: scale(1); }
    45% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

.is-popping {
    animation: popScale 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Transition fluide du champ conditionnel */
.demo-toggle {
    animation: fadeSlideIn 0.28s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Barres de performance animées à l'entrée dans le viewport */
.perf-fill.iq,
.perf-fill.other {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.perf-panel.is-visible .perf-fill.iq {
    transform: scaleX(1);
    transition-delay: 0.15s;
}

.perf-panel.is-visible .perf-fill.other {
    transform: scaleX(1);
    transition-delay: 0.35s;
}

/* Effet Tilt 3D fluide sur les cartes Bento et Pricing */
.bento-card,
.price-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Révélations échelonnées (stagger) */
.bento-grid .bento-card:nth-child(2) { transition-delay: 0.06s; }
.bento-grid .bento-card:nth-child(3) { transition-delay: 0.12s; }
.bento-grid .bento-card:nth-child(4) { transition-delay: 0.18s; }
.bento-grid .bento-card:nth-child(5) { transition-delay: 0.24s; }
.bento-grid .bento-card:nth-child(6) { transition-delay: 0.30s; }
.bento-grid .bento-card:nth-child(7) { transition-delay: 0.36s; }

/* Transition fluide FAQ */
.faq-item {
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.faq-item:hover {
    border-color: var(--border-bright);
    transform: translateX(3px);
}
.faq-item[open] p {
    animation: fadeSlideIn 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-orb,
    .studio-frame,
    .hero-kicker,
    .hero h1,
    .hero-sub,
    .hero-actions {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .vital-ring circle.fill,
    .perf-fill.iq,
    .perf-fill.other {
        stroke-dashoffset: 0 !important;
        transform: scaleX(1) !important;
        transition: none !important;
    }
}

/* ==========================================================================
   BACK-OFFICE VENDEUR, SUPPORT & CHECKOUT MODAL
   ========================================================================== */
.bo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bo-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bo-kpi span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.bo-kpi strong { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bo-kpi small { font-size: 0.8rem; color: var(--text-soft); }

.bo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bo-span-2 { grid-column: span 2; }

.bo-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.bo-input {
    width: 100%;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #060911;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
}

.bo-input:focus {
    outline: none;
    border-color: var(--border-bright);
}

.bo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.bo-badge-active { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.bo-badge-trial { background: rgba(165, 180, 252, 0.16); color: #c7d2fe; }
.bo-badge-progress { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.bo-badge-expired { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.bo-badge-revoked { background: rgba(244, 63, 94, 0.16); color: #fda4af; }

.bo-mini-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
    font-family: inherit;
}

.bo-mini-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.bo-mini-btn.danger:hover { background: rgba(244, 63, 94, 0.22); color: #fda4af; border-color: rgba(244, 63, 94, 0.4); }

.bo-ticket {
    padding: 18px;
    border-radius: 14px;
    background: rgba(6, 9, 17, 0.75);
    border: 1px solid var(--border);
}

.iq-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(2, 6, 15, 0.78);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.iq-modal-box {
    width: 100%;
    max-width: 500px;
    background: #111621;
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
}

.trial-pill {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .bo-kpis { grid-template-columns: repeat(2, 1fr); }
    .bo-form-grid { grid-template-columns: 1fr; }
    .bo-span-2 { grid-column: span 1; }
}

/* Sélecteur de langue FR / EN */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.lang-btn.active {
    background: #f8fafc;
    color: #090b10;
}
