/* ══════════════════════════════════════════════
   ClipGenius Landing — Dark Control Room
   Accent palette from the app itself
   ══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    /* backgrounds */
    --bg:       #08080a;
    --bg-2:     #0f0f13;
    --surface:  #161619;
    --surface-2:#1e1e24;
    --surface-3:#252529;

    /* borders */
    --border:   rgba(255,255,255,0.06);
    --border-2: rgba(255,255,255,0.10);

    /* text */
    --text:     #e2e2ea;
    --text-2:   #9898a8;
    --text-3:   #52525e;

    /* accent — exact VS Code blue from the app */
    --accent:      #007acc;
    --accent-h:    #0090f0;
    --accent-glow: rgba(0,122,204,0.22);
    --accent-dim:  rgba(0,122,204,0.08);

    /* secondary — exact teal from app --success */
    --teal:      #4ec9b0;
    --teal-dim:  rgba(78,201,176,0.12);

    /* semantic — same as app */
    --amber: #ce9178;
    --red:   #f48771;
    --green: #4ec9b0;

    /* spacing */
    --container: 1220px;
    --nav-h:      60px;

    /* easing */
    --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ── Fonts ── */
h1, h2, h3 { font-family: 'Syne', sans-serif; }

.mono {
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: .8em;
    letter-spacing: -.01em;
}

/* ── Noise overlay ── */
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Container ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Section shared ── */
.section { padding: 7rem 0; }

.section-head { margin-bottom: 4rem; }
.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
    margin-top: .75rem;
}

.label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .4rem;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.navbar.scrolled {
    background: rgba(8,8,10,.8);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: .875rem;
    color: var(--text-2);
    font-weight: 500;
    transition: color .2s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    font-size: .825rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s, background .2s, transform .2s;
}
.nav-cta:hover {
    border-color: rgba(0,122,204,.4);
    background: var(--surface-3);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background layers */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 85% 90% at 68% 50%, black 0%, transparent 75%);
}
.hero-glow-l {
    position: absolute;
    left: -200px;
    top: 40%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,122,204,.06) 0%, transparent 60%);
    transform: translateY(-50%);
}
.hero-glow-r {
    position: absolute;
    right: -80px;
    top: 50%;
    width: 680px; height: 680px;
    background: radial-gradient(circle, rgba(0,122,204,.12) 0%, transparent 60%);
    transform: translateY(-50%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr minmax(0, 560px);
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* ── Hero content (left) ── */
.hero-content { max-width: 520px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    font-size: .72rem;
    color: var(--text-2);
    margin-bottom: 1.75rem;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
    animation: blink 2.5s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, var(--teal) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 440px;
}

/* Hero buttons */
.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 0 0 1px rgba(0,122,204,.3), 0 4px 16px rgba(0,122,204,.25);
}
.btn-primary:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0,144,240,.4), 0 8px 24px rgba(0,122,204,.35);
}
.btn-primary.btn-lg {
    padding: .85rem 1.85rem;
    font-size: .95rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .2s, color .2s, transform .2s;
}
.btn-ghost:hover {
    border-color: var(--border-2);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .85rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .2s, color .2s, transform .2s;
}
.btn-outline:hover {
    border-color: var(--border-2);
    color: var(--text);
    transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-row {
    display: flex;
    align-items: baseline;
    gap: .05rem;
}
.stat-num {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    letter-spacing: -.04em;
}
.stat-suf { color: var(--teal); }
.stat-label {
    font-size: .72rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.stat-sep {
    width: 1px; height: 36px;
    background: var(--border-2);
    flex-shrink: 0;
}

/* ── Hero visual (right) ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ════════════════════════════════════════
   APP WINDOW MOCKUP
   ════════════════════════════════════════ */
.app-window {
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background: #1e1e1e; /* exact app --bg color */
    box-shadow:
        0 0 0 1px rgba(0,0,0,.6),
        0 24px 80px rgba(0,0,0,.8),
        0 0 60px rgba(0,122,204,.12);
    transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform .6s var(--ease), box-shadow .6s;
    will-change: transform;
}
.hero-visual:hover .app-window {
    transform: perspective(1600px) rotateY(-2deg) rotateX(.5deg);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.6),
        0 32px 100px rgba(0,0,0,.8),
        0 0 80px rgba(0,122,204,.18);
}

/* Titlebar */
.aw-titlebar {
    height: 32px;
    background: #323233; /* exact app --titlebar-bg */
    border-bottom: 1px solid #3e3e42;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}
.aw-dots {
    display: flex;
    gap: 5px;
}
.aw-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #555;
}
.aw-dots span:nth-child(1) { background: #ff5f57; }
.aw-dots span:nth-child(2) { background: #febc2e; }
.aw-dots span:nth-child(3) { background: #28c840; }

.aw-title {
    flex: 1;
    text-align: center;
    font-size: .68rem;
    color: #858585;
}
.aw-live {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .65rem;
    color: #858585;
}
.aw-pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 5px var(--teal);
    animation: blink 2s ease-in-out infinite;
}

/* App body */
.aw-body {
    display: flex;
    height: 280px;
}

/* Sidebar */
.aw-sidebar {
    width: 148px;
    flex-shrink: 0;
    background: #252526; /* exact app --bg-secondary */
    border-right: 1px solid #3e3e42;
    padding: 10px 0;
    overflow: hidden;
}
.aw-sb-label {
    font-size: .6rem;
    color: #585858;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 10px 8px;
}
.aw-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    cursor: default;
    border-left: 2px solid transparent;
    transition: background .2s;
}
.aw-nav-item.aw-done { opacity: .7; }
.aw-nav-item.aw-active {
    background: #37373d;
    border-left-color: var(--accent);
}
.aw-nav-item.aw-dim { opacity: .35; }

.aw-nav-icon {
    font-size: .72rem;
    color: #858585;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.aw-check { color: var(--teal) !important; }
.aw-spin {
    display: inline-block;
    color: var(--accent) !important;
    animation: spin 1.5s linear infinite;
}

.aw-nav-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.aw-nav-title {
    font-size: .7rem;
    color: #cccccc;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aw-nav-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: .58rem;
    color: #858585;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main area */
.aw-main {
    flex: 1;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aw-generate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    width: 100%;
}

/* Progress ring */
.aw-ring-wrap {
    position: relative;
    width: 80px; height: 80px;
    flex-shrink: 0;
}
.aw-ring {
    width: 100%; height: 100%;
    overflow: visible;
}
.aw-ring-track {
    stroke: #2d2d30;
    fill: none;
}
.aw-ring-fill {
    stroke: var(--accent);
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset .05s linear;
    filter: drop-shadow(0 0 4px rgba(0,122,204,.6));
}
.aw-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}
.aw-ring-icon { font-size: .9rem; line-height: 1; }
.aw-ring-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}
.aw-ring-sym { font-size: .6rem; }

.aw-status-text {
    font-size: .78rem;
    color: #cccccc;
    font-weight: 600;
    text-align: center;
}
.aw-substatus {
    font-family: 'JetBrains Mono', monospace;
    font-size: .62rem;
    color: #858585;
    text-align: center;
}
.aw-blink {
    animation: blink 1.1s step-end infinite;
    color: var(--accent);
}

/* Step pills */
.aw-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
.aw-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: .56rem;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid #3e3e42;
    background: #2d2d30;
    color: #555562;
    white-space: nowrap;
}
.aw-pill-done {
    border-color: rgba(78,201,176,.3);
    background: rgba(78,201,176,.06);
    color: var(--teal);
}
.aw-pill-active {
    border-color: rgba(0,122,204,.4);
    background: rgba(0,122,204,.1);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0,122,204,.2);
}

/* ── Floating clip cards ── */
.fc {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    min-width: 190px;
    animation: float 4s ease-in-out infinite;
}
.fc-1 {
    top: -24px;
    right: -24px;
    animation-delay: 0s;
}
.fc-2 {
    bottom: 20px;
    right: -36px;
    animation-delay: 1.6s;
}

.fc-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-body { flex: 1; overflow: hidden; }
.fc-name {
    font-size: .7rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--surface-3);
    overflow: hidden;
}
.fc-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .4s var(--ease);
}
.fc-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* Done badge */
.fc-done {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(78,201,176,.1);
    border: 1px solid rgba(78,201,176,.25);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    animation: floatCentered 4.5s ease-in-out .8s infinite;
    box-shadow: 0 0 20px rgba(78,201,176,.1);
}
.fc-done-title {
    font-size: .75rem;
    font-weight: 600;
    color: var(--teal);
}
.fc-done-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: .62rem;
    color: rgba(78,201,176,.6);
}

/* ── Scroll hint ── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .35;
    pointer-events: none;
}
.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, var(--text-3));
    animation: scrollPulse 2.2s ease-in-out infinite;
}
.scroll-hint .mono {
    font-size: .6rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .15em;
}

/* ════════════════════════════════════════
   TICKER
   ════════════════════════════════════════ */
.ticker-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    padding: .75rem 0;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
}
.ticker-inner {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    flex-shrink: 0;
    animation: ticker 28s linear infinite;
    will-change: transform;
}
.ticker-inner span {
    font-size: .8rem;
    color: var(--text-2);
    font-weight: 500;
}
.tick-sep { color: var(--text-3) !important; }

/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step-item {
    flex: 1;
    position: relative;
    padding: 0 1.5rem;
}
.step-item:first-child { padding-left: 0; }
.step-item:last-child  { padding-right: 0; }

.step-wm {
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: 'Syne', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255,255,255,.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -.06em;
}
.step-item:first-child .step-wm { left: 0; }

.step-icon-lg {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.step-item p {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.65;
}

.step-arrow {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--text-3);
    padding-top: 2.5rem;
    flex-shrink: 0;
}
.step-arrow svg:first-child { width: 48px; }
.step-chevron { width: 10px; height: 16px; margin-left: -1px; }

/* ════════════════════════════════════════
   COMPARE
   ════════════════════════════════════════ */
.compare-section {
    padding: 7rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.compare-card {
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, box-shadow .3s;
}
.compare-bad {
    opacity: .6;
}
.compare-good {
    opacity: 1;
    border-color: rgba(0,122,204,.25);
    box-shadow: 0 0 40px rgba(0,122,204,.07), inset 0 0 40px rgba(0,122,204,.02);
}
.compare-good:hover {
    border-color: rgba(0,122,204,.4);
    box-shadow: 0 0 60px rgba(0,122,204,.12);
}

.compare-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.compare-badge {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.compare-badge.bad  { background: rgba(244,135,113,.1); color: var(--red); }
.compare-badge.good { background: rgba(78,201,176,.1);  color: var(--teal); }

.compare-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: .2rem;
}
.compare-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    font-weight: 500;
}
.bad-time  { color: var(--red); }
.good-time { color: var(--teal); }

.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.compare-list li {
    font-size: .875rem;
    color: var(--text-2);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.45;
}
.compare-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-3);
}
.compare-good .compare-list li::before { color: var(--teal); content: '✓'; font-size: .7rem; }

.compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
}
.compare-vs .mono {
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: .08em;
}

/* ════════════════════════════════════════
   FEATURES BENTO
   ════════════════════════════════════════ */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 14px;
}

/* layout map:
   b-privacy    : col 1, row 1
   b-sm (GPU)   : col 2, row 1
   b-sm (AI)    : col 3, row 1
   b-sm (Captions): col 1, row 2
   b-free       : cols 2–3, row 2
*/
.b-free { grid-column: 2 / 4; }

.bento-card {
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,122,204,.3), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.bento-card:hover {
    border-color: rgba(0,122,204,.2);
    box-shadow: 0 0 30px rgba(0,122,204,.07);
    transform: translateY(-2px);
}
.bento-card:hover::before { opacity: 1; }

.bento-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform .3s;
}

.bento-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .45rem;
    letter-spacing: -.02em;
}
.bento-card p {
    font-size: .84rem;
    color: var(--text-2);
    line-height: 1.6;
}

.bento-tag {
    margin-top: 1.25rem;
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 4px;
    border: 1px solid rgba(78,201,176,.25);
    background: rgba(78,201,176,.06);
    font-size: .65rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* ════════════════════════════════════════
   PERSONAS
   ════════════════════════════════════════ */
.personas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.persona {
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.persona::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,122,204,.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.persona:hover {
    border-color: rgba(0,122,204,.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 30px rgba(0,122,204,.06);
}
.persona:hover::after { opacity: 1; }

.persona-emoji {
    font-size: 1.8rem;
    line-height: 1;
}
.persona h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}
.persona p {
    font-size: .84rem;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
}
.persona-metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    font-weight: 500;
    color: var(--accent);
    padding: .3rem .65rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0,122,204,.2);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin-top: .2rem;
}

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.cta-section {
    position: relative;
    padding: 9rem 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cta-orb-1 {
    position: absolute;
    top: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,122,204,.08) 0%, transparent 60%);
}
.cta-orb-2 {
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(78,201,176,.07) 0%, transparent 60%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.cta-inner .label { margin-bottom: 1.25rem; }

.cta-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.05em;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.cta-em {
    background: linear-gradient(100deg, var(--accent) 10%, var(--teal) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-brand p {
    font-size: .8rem;
    color: var(--text-3);
    margin-top: .45rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 500;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1rem 0;
    font-size: .72rem;
    color: var(--text-3);
}

/* ════════════════════════════════════════
   THEME TOGGLE BUTTON
   ════════════════════════════════════════ */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    color: var(--text-2);
    flex-shrink: 0;
    transition: border-color .2s, background .2s, color .2s;
}
.nav-theme-toggle:hover {
    border-color: rgba(0,122,204,.35);
    color: var(--text);
}
.nav-theme-toggle svg { pointer-events: none; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ════════════════════════════════════════
   LIGHT MODE
   ════════════════════════════════════════ */
[data-theme="light"] {
    --bg:          #f4f4f8;
    --bg-2:        #eaeaef;
    --surface:     #ffffff;
    --surface-2:   #f2f2f7;
    --surface-3:   #e5e5ec;
    --border:      rgba(0,0,0,0.07);
    --border-2:    rgba(0,0,0,0.11);
    --text:        #18182a;
    --text-2:      #56566e;
    --text-3:      #9090a8;
    --accent-glow: rgba(0,122,204,0.13);
    --accent-dim:  rgba(0,122,204,0.07);
    --teal-dim:    rgba(78,201,176,0.10);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--surface-3); }

/* Noise — plus discret sur fond clair */
[data-theme="light"] .noise { opacity: .012; }

/* Navbar scrolled */
[data-theme="light"] .navbar.scrolled {
    background: rgba(244,244,248,.92);
}

/* Hero grid — points sombres sur fond clair */
[data-theme="light"] .hero-grid {
    background-image: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px);
}

/* Step watermarks */
[data-theme="light"] .step-wm { color: rgba(0,0,0,.04); }

/* Persona hover shadow */
[data-theme="light"] .persona:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.08), 0 0 30px rgba(0,122,204,.06);
}

/* App window mockup — light mode */
[data-theme="light"] .app-window {
    background: #f5f5f7;
    border-color: rgba(0,0,0,.1);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.08),
        0 24px 80px rgba(0,0,0,.14),
        0 0 60px rgba(0,122,204,.08);
}
[data-theme="light"] .hero-visual:hover .app-window {
    box-shadow:
        0 0 0 1px rgba(0,0,0,.1),
        0 32px 100px rgba(0,0,0,.18),
        0 0 80px rgba(0,122,204,.12);
}
[data-theme="light"] .aw-titlebar {
    background: #e8e8ec;
    border-bottom-color: #d4d4da;
}
[data-theme="light"] .aw-title,
[data-theme="light"] .aw-live { color: #8888a0; }
[data-theme="light"] .aw-sidebar {
    background: #ededf2;
    border-right-color: #d8d8e0;
}
[data-theme="light"] .aw-sb-label { color: #9090a8; }
[data-theme="light"] .aw-nav-item.aw-active { background: #e0e0ea; }
[data-theme="light"] .aw-nav-icon { color: #8888a0; }
[data-theme="light"] .aw-nav-title { color: #2a2a3e; }
[data-theme="light"] .aw-nav-sub { color: #8888a0; }
[data-theme="light"] .aw-main { background: #f5f5f7; }
[data-theme="light"] .aw-ring-track { stroke: #d8d8e2; }
[data-theme="light"] .aw-ring-pct { color: #18182a; }
[data-theme="light"] .aw-status-text { color: #2a2a3e; }
[data-theme="light"] .aw-substatus { color: #8888a0; }
[data-theme="light"] .aw-pill {
    border-color: #d4d4da;
    background: #e8e8ec;
    color: #9090a8;
}

/* Floating cards shadow */
[data-theme="light"] .fc {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════ */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes floatCentered {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: .4; transform: scaleY(1); }
    50%       { opacity: .8; transform: scaleY(1.1); }
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-content { max-width: 600px; }
    .hero-visual {
        justify-content: center;
        padding-bottom: 3rem; /* space for floating done badge */
    }
    .hero-glow-r { right: -200px; }
    .hero-grid {
        mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 80%);
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }
    .b-free { grid-column: 1 / 3; }

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

@media (max-width: 768px) {
    .section { padding: 5rem 0; }

    .steps-row {
        flex-direction: column;
        gap: 2rem;
    }
    .step-arrow { display: none; }
    .step-item { padding: 0; }
    .step-wm { font-size: 4rem; left: -0.5rem; }

    .compare-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .compare-vs {
        justify-self: center;
        margin: -.5rem 0;
    }

    .bento {
        grid-template-columns: 1fr;
    }
    .b-free { grid-column: 1; grid-row: auto; flex-direction: column; gap: .5rem; }

    .personas { grid-template-columns: 1fr 1fr; }

    .cta-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .cta-actions { flex-direction: column; align-items: center; }

    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .nav-links .nav-link { display: none; }

    .fc-1 { top: -18px; right: -12px; min-width: 160px; }
    .fc-2 { display: none; }
    .fc-done { display: none; }
}

@media (max-width: 480px) {
    .personas { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 1.4rem; }
    .app-window { transform: none; }
    .hero-visual:hover .app-window { transform: none; }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}
