/* home_v1.css — Pass-2 page styles (generated by tools/pass2-css.mjs) */

/* ===== inline design block #0 (from home_v1.student.html) ===== */
:root {
    --bg: #fbfaf7;
    --bg-elev: #ffffff;
    --bg-sunk: #f3f1ec;
    --ink: #1a1a1a;
    --ink-2: #4a4a4a;
    --ink-3: #8a8780;
    --ink-4: #c4c1b8;
    --line: rgba(20,18,12,0.08);
    --line-2: rgba(20,18,12,0.04);
    --accent: #4f5eed;
    --accent-2: #6b7afa;
    --accent-soft: rgba(79,94,237,0.10);
    --accent-ink: #2b3aa8;
    --ok: #1f8a5a;
    --ok-soft: rgba(31,138,90,0.10);
    --gold: #d6a017;
    --warm: #c75a3a;
    --warn: #c75a3a;
    --shadow-card: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 2px rgba(20,18,12,0.04), 0 8px 20px rgba(20,18,12,0.05);
    --shadow-card-lg: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 3px rgba(20,18,12,0.04), 0 24px 60px rgba(20,18,12,0.10);
    --font-display: 'Heebo', system-ui, sans-serif;
    --font-body: 'Heebo', system-ui, sans-serif;
    --font-serif: 'Frank Ruhl Libre', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* IDE syntax palette (tomorrow-night-ish) */
    --sx-bg: #1e1f26;
    --sx-bg-2: #15161b;
    --sx-bg-3: #1a1b22;
    --sx-kw: #cc99cc;
    --sx-str: #b5bd68;
    --sx-fn: #81a2be;
    --sx-num: #de935f;
    --sx-tag: #cc6666;
    --sx-attr: #f0c674;
    --sx-com: #6a7080;
    --sx-txt: #c5c8d3;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; display: block; }
  .wrap { max-width: 1180px; margin: 0 auto; padding-inline: 32px; }

  /* ── Shared section heads ─────────────────────────────────────── */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .eyebrow.on-dark { color: var(--accent-2); }
  .eyebrow svg { width: 14px; height: 14px; }
  h2.sec {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700; letter-spacing: -0.022em; line-height: 1.07;
    margin: 0 0 18px; text-wrap: balance;
  }
  h2.sec em { font-style: normal; color: var(--accent); }
  .lead {
    font-size: 18px; color: var(--ink-2); max-width: 62ch; line-height: 1.6;
    margin: 0 0 40px; text-wrap: pretty;
  }

  /* ── Hero ─────────────────────────────────────────────────────── */
  .hero { position: relative; overflow: hidden; padding: 76px 0 60px; }
  .hero::before {
    content: ""; position: absolute; inset-inline-end: -160px; top: -120px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent), transparent 62%);
    pointer-events: none; z-index: 0;
  }
  .hero::after {
    content: ""; position: absolute; inset-inline-start: -180px; bottom: -200px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, color-mix(in oklab, var(--gold) 14%, transparent), transparent 62%);
    pointer-events: none; z-index: 0;
  }
  .hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  }
  @media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 12px; border-radius: 999px;
    background: var(--accent-soft);
    border: 0.5px solid color-mix(in oklab, var(--accent) 22%, transparent);
    color: var(--accent-ink);
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 22px;
  }
  .hero-eyebrow svg { width: 13px; height: 13px; }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.6vw, 66px);
    font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
    margin: 0 0 20px; text-wrap: balance; color: var(--ink);
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent), var(--ok));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero-sub { font-size: 18.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 28px; max-width: 52ch; text-wrap: pretty; }
  .hero-sub b { color: var(--ink); font-weight: 700; }
  .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
  .btn-primary {
    appearance: none; border: 0; cursor: pointer;
    background: var(--ink); color: var(--bg-elev);
    padding: 16px 30px; border-radius: 999px;
    font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 16px 36px color-mix(in oklab, var(--ink) 28%, transparent);
    transition: transform .15s ease, background .15s ease;
  }
  .btn-primary:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--ink) 88%, var(--accent)); text-decoration: none; }
  .btn-primary svg { width: 16px; height: 16px; }
  .btn-ghost {
    appearance: none; border: 0.5px solid var(--line); cursor: pointer;
    background: var(--bg-elev); color: var(--ink);
    padding: 15px 24px; border-radius: 999px;
    font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px;
    transition: background .15s ease;
  }
  .btn-ghost:hover { background: var(--bg-sunk); text-decoration: none; }
  .btn-ghost svg { width: 15px; height: 15px; color: var(--accent); }

  .hero-chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .hero-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--bg-elev); border: 0.5px solid var(--line);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  }
  .hero-chip svg { width: 13px; height: 13px; color: var(--ok); }

  /* Hero — floating mini IDE preview */
  .hero-ide {
    position: relative;
    border-radius: 18px; overflow: hidden;
    background: var(--sx-bg);
    box-shadow: var(--shadow-card-lg), 0 40px 80px rgba(20,18,12,0.18);
    transform: rotate(-1.2deg);
    direction: ltr;
  }
  .hero-ide-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px; background: var(--sx-bg-2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .tl { width: 11px; height: 11px; border-radius: 50%; }
  .tl.r { background: #ec6a5e; } .tl.y { background: #f4bf4f; } .tl.g { background: #61c454; }
  .hero-ide-name {
    margin-inline-start: 10px; color: #8a90a0;
    font-family: var(--font-mono); font-size: 11.5px;
  }
  .hero-ide-live {
    margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px;
    color: #6fcf97; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  }
  .hero-ide-live .d { width: 6px; height: 6px; border-radius: 50%; background: #6fcf97; animation: blink 1.6s infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
  .hero-ide-body { display: grid; grid-template-columns: 1fr; }
  .code {
    font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85;
    color: var(--sx-txt); padding: 16px 18px; white-space: pre;
    counter-reset: ln;
  }
  .code .ln { display: block; position: relative; padding-inline-start: 30px; }
  .code .ln::before {
    counter-increment: ln; content: counter(ln);
    position: absolute; inset-inline-start: 0; width: 20px; text-align: right;
    color: #41454f; font-size: 11px;
  }
  .kw { color: var(--sx-kw); } .str { color: var(--sx-str); } .fn { color: var(--sx-fn); }
  .num { color: var(--sx-num); } .tag { color: var(--sx-tag); } .attr { color: var(--sx-attr); }
  .com { color: var(--sx-com); font-style: italic; } .pn { color: #8a90a0; }
  .hero-ide-foot {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; background: var(--sx-bg-2);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono); font-size: 10.5px; color: #6a7080;
  }
  .hero-ide-foot .pill { padding: 1px 7px; border-radius: 4px; background: rgba(255,255,255,0.05); color: #aab0bd; }
  .hero-ide-foot .ok { color: #6fcf97; }
  .hero-ide-foot .sp { flex: 1; }
  /* Noam tooltip bubble floating over hero IDE */
  .hero-ide-noam {
    position: absolute; bottom: -18px; inset-inline-start: -18px;
    direction: rtl;
    background: var(--bg-elev); border: 0.5px solid var(--line);
    border-radius: 14px; padding: 11px 14px;
    box-shadow: var(--shadow-card-lg);
    display: flex; align-items: center; gap: 10px;
    max-width: 250px;
    transform: rotate(1.2deg);
  }
  .hero-ide-noam .pic {
    width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--ok)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
  }
  .hero-ide-noam .t { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
  .hero-ide-noam .t b { color: var(--ink); }

  /* ── Logos / trust strip ──────────────────────────────────────── */
  .trust-strip {
    border-block: 0.5px solid var(--line);
    background: color-mix(in oklab, var(--bg-elev) 60%, var(--bg));
  }
  .trust-inner {
    max-width: 1180px; margin: 0 auto; padding: 20px 32px;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    justify-content: center;
    font-size: 13px; color: var(--ink-3);
  }
  .trust-inner b { color: var(--ink); font-weight: 700; }
  .trust-inner .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

  /* ── AI hook (early emphasis) ─────────────────────────────────── */
  .aihook-band {
    background:
      radial-gradient(720px 300px at 85% 0%, color-mix(in oklab, var(--accent) 13%, transparent), transparent 62%),
      linear-gradient(135deg, color-mix(in oklab, var(--accent) 7%, var(--bg-elev)), var(--bg-elev));
    border-bottom: 0.5px solid var(--line);
  }
  .aihook-inner { display: flex; align-items: center; gap: 24px; padding-block: 30px; }
  @media (max-width: 760px) { .aihook-inner { flex-direction: column; align-items: flex-start; gap: 16px; } }
  .aihook-ic { width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px color-mix(in oklab, var(--accent) 28%, transparent); }
  .aihook-ic svg { width: 26px; height: 26px; }
  .aihook-text { flex: 1; min-width: 0; }
  .aihook-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
  .aihook-text h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 31px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 8px; text-wrap: balance; }
  .aihook-text h2 em { font-style: normal; color: var(--accent); }
  .aihook-text p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 66ch; text-wrap: pretty; }
  .aihook-text p b { color: var(--ink); font-weight: 700; }
  .aihook-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--bg-elev); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px color-mix(in oklab, var(--ink) 22%, transparent); transition: transform .15s ease, background .15s ease; white-space: nowrap; }
  .aihook-cta:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--ink) 86%, var(--accent)); text-decoration: none; }
  .aihook-cta svg { width: 15px; height: 15px; }

  /* ── Learning loop (6 modalities) ─────────────────────────────── */
  .loop { padding: 90px 0 40px; }
  .loop-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  }
  @media (max-width: 880px) { .loop-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .loop-grid { grid-template-columns: 1fr; } }
  .mod {
    background: var(--bg-elev); border: 0.5px solid var(--line);
    border-radius: 18px; padding: 24px 22px;
    box-shadow: var(--shadow-card); position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
  }
  .mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); border-color: color-mix(in oklab, var(--accent) 26%, var(--line)); }
  .mod-step {
    position: absolute; top: 20px; inset-inline-end: 22px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--ink-4); letter-spacing: 0.04em;
  }
  .mod-ic {
    width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px; color: #fff;
  }
  .mod-ic svg { width: 23px; height: 23px; }
  .mod-ic.c1 { background: linear-gradient(135deg, #4f5eed, #6b7afa); }
  .mod-ic.c2 { background: linear-gradient(135deg, #1f8a5a, #2fb074); }
  .mod-ic.c3 { background: linear-gradient(135deg, #d6a017, #e8b93a); }
  .mod-ic.c4 { background: linear-gradient(135deg, #2b3aa8, #4f5eed); }
  .mod-ic.c5 { background: linear-gradient(135deg, #c75a3a, #e07b54); }
  .mod-ic.c6 { background: linear-gradient(135deg, #7a3fb8, #a565e0); }
  .mod h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0 0 7px; letter-spacing: -0.012em; }
  .mod p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
  .mod-tag {
    display: inline-block; margin-top: 12px;
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
    color: var(--ink-3);
    padding: 3px 9px; border-radius: 6px; background: var(--bg-sunk);
  }

  /* ── IDE Showcase (centerpiece) ───────────────────────────────── */
  .ide-show {
    background: #101116; color: #fff; position: relative; overflow: hidden;
    padding: 92px 0;
  }
  .ide-show::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(900px 460px at 78% 18%, rgba(79,94,237,0.20), transparent 60%),
      radial-gradient(620px 320px at 12% 86%, rgba(31,138,90,0.13), transparent 60%);
    pointer-events: none;
  }
  .ide-show-inner { position: relative; max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
  .ide-show-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
  .ide-show-head .eyebrow { justify-content: center; }
  .ide-show h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.6vw, 54px);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.024em;
    margin: 0 0 16px; text-wrap: balance;
  }
  .ide-show h2 em { font-style: normal; color: var(--accent-2); }
  .ide-show-head p { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; max-width: 56ch; margin-inline: auto; }

  /* The big IDE window */
  .bigide {
    border-radius: 16px; overflow: hidden; direction: ltr;
    background: var(--sx-bg);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 50px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  }
  .bigide-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: var(--sx-bg-2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap; row-gap: 8px;
  }
  .bigide-bar .name {
    margin-inline-start: 12px; color: #8a90a0; font-family: var(--font-mono); font-size: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto;
  }
  .bigide-bar .right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .bigide-run {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 7px;
    background: var(--ok); color: #fff;
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
  }
  .bigide-run svg { width: 12px; height: 12px; }
  .bigide-submit {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 7px;
    background: rgba(255,255,255,0.07); color: #cdd2dd;
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap; line-height: 1;
  }
  .bigide-submit svg { width: 13px; height: 13px; flex-shrink: 0; }
  .bigide-body {
    display: grid; grid-template-columns: 188px 1.25fr 1fr;
    min-height: 440px;
  }
  @media (max-width: 1040px) { .bigide-body { grid-template-columns: 160px 1fr; } .bigide-preview { display: none; } }
  @media (max-width: 680px) { .bigide-body { grid-template-columns: 1fr; } .bigide-rail { display: none; } .bigide-bar .name { display: none; } .bigide-bar .right { margin-inline-start: auto; } }

  /* rail */
  .bigide-rail { background: var(--sx-bg-3); border-right: 1px solid rgba(255,255,255,0.05); padding: 12px 8px; }
  .bigide-rail .head {
    padding: 4px 8px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: #6a7080; display: flex; align-items: center; gap: 7px;
  }
  .bigide-rail .head svg { width: 12px; height: 12px; }
  .bigide-rail .head .count { margin-inline-start: auto; font-family: var(--font-mono); font-size: 10.5px; color: #4a4e58; letter-spacing: 0; }
  .rfile {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 9px; border-radius: 6px; margin-bottom: 1px;
    color: #9aa0ac; font-family: var(--font-mono); font-size: 12px; cursor: default;
  }
  .rfile:hover { background: rgba(255,255,255,0.04); color: #e6e9f0; }
  .rfile.active { background: rgba(79,94,237,0.20); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
  .rfile .fic { width: 16px; height: 16px; border-radius: 4px; color: #fff; font-size: 9px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .rfile .dirty { width: 6px; height: 6px; border-radius: 50%; background: #f5b91e; margin-inline-start: auto; box-shadow: 0 0 6px rgba(245,185,30,0.6); }
  .bigide-rail .folder { padding: 7px 9px 4px; color: #6a7080; font-family: var(--font-mono); font-size: 11px; display: flex; align-items: center; gap: 6px; }
  .bigide-rail .folder svg { width: 11px; height: 11px; }

  /* editor */
  .bigide-edit { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid rgba(255,255,255,0.05); }
  .bigide-tabs { display: flex; background: var(--sx-bg-2); border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
  .btab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; color: #aab0bd; font-family: var(--font-mono); font-size: 11.5px;
    border-inline-end: 1px solid rgba(255,255,255,0.04); white-space: nowrap; position: relative;
  }
  .btab .fic { width: 13px; height: 13px; border-radius: 3px; color: #fff; font-size: 8px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; }
  .btab.active { background: var(--sx-bg); color: #fff; }
  .btab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
  .btab .dirty { width: 5px; height: 5px; border-radius: 50%; background: #f5b91e; }
  .bigide-code { flex: 1; padding: 14px 16px; overflow: hidden; }
  .bigide-code .code { padding: 0; font-size: 12.5px; line-height: 1.95; }
  .bigide-status {
    display: flex; align-items: center; gap: 12px; padding: 6px 14px;
    background: var(--sx-bg-2); border-top: 1px solid rgba(255,255,255,0.06);
    font-family: var(--font-mono); font-size: 10.5px; color: #6a7080;
  }
  .bigide-status .pill { padding: 1px 7px; border-radius: 4px; background: rgba(255,255,255,0.05); color: #aab0bd; }
  .bigide-status .sp { flex: 1; }
  .bigide-status .ok { color: #6fcf97; }

  /* preview + AI column */
  .bigide-preview { display: flex; flex-direction: column; background: var(--sx-bg-2); min-width: 0; }
  .bigide-prev-head {
    display: flex; align-items: center; gap: 8px; padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: var(--font-mono); font-size: 10.5px; color: #6a7080;
  }
  .bigide-prev-head .url { flex: 1; padding: 3px 9px; border-radius: 5px; background: rgba(255,255,255,0.05); color: #aab0bd; }
  .bigide-prev-head .refresh { width: 12px; height: 12px; }
  .bigide-prev-render {
    flex: 1; background: #fbfaf7; padding: 18px; direction: rtl; color: var(--ink);
    display: flex; flex-direction: column; gap: 12px; min-height: 150px;
  }
  .prev-card {
    background: #fff; border: 1px solid rgba(20,18,12,0.08); border-radius: 12px;
    padding: 14px; box-shadow: 0 6px 16px rgba(20,18,12,0.06);
  }
  .prev-card .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
  .prev-card .s { font-size: 11.5px; color: var(--ink-3); }
  .prev-btn {
    margin-top: 10px; display: inline-block; padding: 7px 16px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  }
  .prev-counter {
    display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2);
  }
  .prev-counter b { font-family: var(--font-mono); font-size: 18px; color: var(--accent); min-width: 22px; text-align: center; }
  .prev-counter .pm { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-sunk); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); }

  /* AI feedback panel inside the bigide preview column */
  .bigide-ai {
    border-top: 1px solid rgba(255,255,255,0.07);
    background: var(--sx-bg-3); padding: 14px;
    direction: rtl;
  }
  .bigide-ai-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a90a0;
  }
  .bigide-ai-head .sparkic {
    width: 20px; height: 20px; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .bigide-ai-head .sparkic svg { width: 12px; height: 12px; }
  .ai-msg {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: #cdd2dd; line-height: 1.55;
    margin-bottom: 9px;
  }
  .ai-msg b { color: #fff; }
  .ai-msg.good { border-inline-start: 3px solid #6fcf97; }
  .ai-msg.tip { border-inline-start: 3px solid var(--accent-2); }
  .ai-msg .h { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; font-size: 12px; }
  .ai-msg.good .h { color: #6fcf97; }
  .ai-msg.tip .h { color: var(--accent-2); }
  .ai-msg .h svg { width: 13px; height: 13px; }

  /* IDE feature ticks under window */
  .ide-feats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px;
  }
  @media (max-width: 880px) { .ide-feats { grid-template-columns: 1fr 1fr; } }
  .ide-feat { display: flex; gap: 12px; align-items: flex-start; }
  .ide-feat .fic {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center;
  }
  .ide-feat .fic svg { width: 18px; height: 18px; }
  .ide-feat h4 { margin: 2px 0 3px; font-size: 14.5px; font-weight: 700; color: #fff; }
  .ide-feat p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }

  /* ── Noam behind it ───────────────────────────────────────────── */
  .noam { padding: 92px 0; }
  .noam-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
  @media (max-width: 920px) { .noam-grid { grid-template-columns: 1fr; gap: 36px; } }
  .noam-col { margin: 0; display: flex; flex-direction: column; }
  .noam-cap { max-width: 300px; margin: 18px auto 0; text-align: center; display: flex; flex-direction: column; gap: 4px; }
  .noam-cap-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
  .noam-cap-role { font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .noam-cap-loc { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-top: 2px; }
  .noam-cap-loc svg { width: 14px; height: 14px; opacity: 0.8; }
  .noam-portrait {
    width: 100%; max-width: 300px; margin-inline: auto;
    aspect-ratio: 4/5; border-radius: 26px; overflow: hidden; position: relative;
    background:
      radial-gradient(circle at 30% 26%, var(--accent) 0%, transparent 58%),
      radial-gradient(circle at 72% 74%, var(--ok) 0%, transparent 58%),
      linear-gradient(135deg, #1a1a1a, #2a2a2a);
    box-shadow: var(--shadow-card-lg); color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  .noam-portrait::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 26px 26px;
  }
  .noam-initial { font-family: var(--font-display); font-size: 180px; font-weight: 700; position: relative; z-index: 1; text-shadow: 0 8px 30px rgba(0,0,0,0.3); }
  .noam-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; z-index: 1; }
  .noam-badge {
    position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 2;
    background: rgba(255,255,255,0.95); color: var(--ink);
    padding: 9px 15px; border-radius: 14px; font-size: 12.5px; font-weight: 600;
    display: flex; gap: 8px; align-items: center; backdrop-filter: blur(8px);
  }
  .noam-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 32%, transparent);} 50%{ box-shadow: 0 0 0 7px color-mix(in oklab, var(--ok) 0%, transparent);} }
  .noam-tag {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-ink);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px;
  }
  .noam-text h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; line-height: 1.05; letter-spacing: -0.022em; margin: 0 0 20px; text-wrap: balance; }
  .noam-text h2 em { font-style: normal; color: var(--accent); }
  .noam-text p { font-size: 16.5px; color: var(--ink-2); line-height: 1.65; margin: 0 0 16px; text-wrap: pretty; }
  .noam-text p b { color: var(--ink); font-weight: 700; }
  .noam-creds { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; margin-top: 22px; border-top: 0.5px solid var(--line); }
  .noam-cred b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 4px; letter-spacing: -0.014em; }
  .noam-cred span { font-size: 12.5px; color: var(--ink-3); }

  /* live class strip inside noam */
  .liveband {
    margin-top: 26px; display: flex; align-items: center; gap: 14px;
    background: var(--bg-elev); border: 0.5px solid var(--line); border-radius: 16px;
    padding: 14px 18px; box-shadow: var(--shadow-card);
  }
  .liveband .badge {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: color-mix(in oklab, var(--warm) 14%, var(--bg-elev));
    color: var(--warm); border: 0.5px solid color-mix(in oklab, var(--warm) 30%, transparent);
    padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  }
  .liveband .badge .d { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); animation: blink 1.5s infinite; }
  .liveband .t { flex: 1; font-size: 13.5px; color: var(--ink-2); }
  .liveband .t b { color: var(--ink); }
  .liveband a { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

  /* ── Projects ─────────────────────────────────────────────────── */
  .projects { padding: 40px 0 92px; }
  .proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 880px) { .proj-grid { grid-template-columns: 1fr; } }
  .proj {
    border-radius: 18px; overflow: hidden; background: var(--bg-elev);
    border: 0.5px solid var(--line); box-shadow: var(--shadow-card);
    transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column;
  }
  .proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }
  .proj-shot {
    aspect-ratio: 16/10; position: relative; overflow: hidden;
    background: repeating-linear-gradient(135deg, var(--bg-sunk) 0 14px, color-mix(in oklab, var(--bg-sunk) 60%, var(--bg-elev)) 14px 28px);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 0.5px solid var(--line);
  }
  .proj-shot .ph {
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    background: var(--bg-elev); border: 0.5px solid var(--line);
    padding: 5px 11px; border-radius: 999px;
  }
  .proj-shot .tagtl { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 5px; }
  .proj-shot .tagtl .t { width: 9px; height: 9px; border-radius: 50%; }
  .proj-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
  .proj-kind { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
  .proj h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.012em; }
  .proj p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; flex: 1; }
  .proj-stack { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 0.5px solid var(--line-2); }
  .proj-stack span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); background: var(--bg-sunk); padding: 3px 9px; border-radius: 6px; }

  /* ── AI understanding (climax) ────────────────────────────────── */
  .ai { background: #14151a; color: #fff; position: relative; overflow: hidden; padding: 96px 0; }
  .ai::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(820px 420px at 80% 26%, rgba(107,122,250,0.18), transparent 60%),
      radial-gradient(620px 320px at 8% 82%, rgba(214,160,23,0.10), transparent 60%);
    pointer-events: none;
  }
  .ai-inner { position: relative; max-width: 1180px; margin: 0 auto; padding-inline: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  @media (max-width: 920px) { .ai-inner { grid-template-columns: 1fr; gap: 38px; } }
  .ai-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 22px;
  }
  .ai-eyebrow svg { width: 13px; height: 13px; color: var(--accent-2); }
  .ai h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 22px; text-wrap: balance; }
  .ai h2 em { font-style: normal; color: var(--accent-2); }
  .ai p { font-size: 16.5px; color: rgba(255,255,255,0.78); line-height: 1.65; margin: 0 0 16px; max-width: 52ch; }
  .ai p b { color: #fff; }
  .ai-chat { background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 22px; padding: 22px; backdrop-filter: blur(8px); }
  .ai-prompt { background: rgba(0,0,0,0.32); border-radius: 12px; padding: 13px 15px; margin-bottom: 12px; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.55; }
  .ai-prompt .lbl { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 5px; direction: rtl; text-align: right; }
  .ai-prompt.bad { border-inline-start: 3px solid #e36e54; } .ai-prompt.bad .lbl { color: #e36e54; }
  .ai-prompt.good { border-inline-start: 3px solid #4dc586; } .ai-prompt.good .lbl { color: #4dc586; }
  .ai-tip { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.55; padding: 12px 15px; background: rgba(107,122,250,0.10); border-radius: 10px; border-inline-start: 3px solid var(--accent-2); }
  .ai-tip b { color: #fff; }

  /* ── Final CTA ────────────────────────────────────────────────── */
  .final { background: linear-gradient(135deg, #1a1a1a 0%, #2a2030 100%); color: #fff; padding: 92px 32px; text-align: center; position: relative; overflow: hidden; }
  .final::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(820px 420px at 28% 28%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%),
      radial-gradient(620px 320px at 82% 82%, color-mix(in oklab, var(--gold) 20%, transparent), transparent 60%);
  }
  .final-inner { position: relative; max-width: 800px; margin: 0 auto; }
  .final h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.024em; margin: 0 0 20px; text-wrap: balance; }
  .final h2 em { font-style: normal; background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .final p { font-size: 18px; color: rgba(255,255,255,0.78); line-height: 1.55; margin: 0 auto 34px; max-width: 52ch; }
  .final-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .final-btn { appearance: none; border: 0; cursor: pointer; padding: 17px 36px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s ease; }
  .final-btn:hover { transform: translateY(-2px); text-decoration: none; }
  .final-btn.primary { background: #fff; color: var(--ink); box-shadow: 0 14px 30px rgba(255,255,255,0.16); }
  .final-btn.ghost { background: rgba(255,255,255,0.08); color: #fff; border: 0.5px solid rgba(255,255,255,0.14); }
  .final-btn svg { width: 16px; height: 16px; }
  .final-foot { margin-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
