:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --panel: rgba(255, 255, 255, 0.05);
  --border: #2a2a2d;
  --text: #f2efe9;
  --muted: #a8a49c;
  --teal: #c9a96e;
  --blue: #a8874e;
  --on-accent: #0b0b0c;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
  --radius: 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--panel); padding: 2px 6px; border-radius: 6px; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; background: var(--teal); opacity: .16; top: -220px; left: -160px; }
.o2 { width: 560px; height: 560px; background: #5a4a2c; opacity: .25; top: 20%; right: -200px; animation-delay: -8s; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%); }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 5vw, 56px); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); background: rgba(11,11,12,.7); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--muted); font-size: .92rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-weight: 600; box-shadow: 0 8px 30px -8px rgba(201,169,110,.6); transition: transform .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(201,169,110,.6); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: var(--panel); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,.09); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 90px clamp(20px, 5vw, 56px) 110px; min-height: 88vh; }
.hero-icon { filter: drop-shadow(0 18px 40px rgba(201,169,110,.35)); margin-bottom: 22px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 750; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* Demo popup */
.demo { position: relative; }
.popup { background: rgba(21,21,23,.72); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .6s; }
.demo:hover .popup { transform: none; }
.search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .95rem; min-height: 50px; }
#typed { color: var(--text); }
.caret { width: 2px; height: 18px; background: var(--teal); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#items { list-style: none; padding: 6px; min-height: 300px; }
#items li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; transition: opacity .3s, transform .3s, background .25s; max-height: 50px; }
#items li.sel { background: var(--grad); }
#items li.sel kbd { color: var(--on-accent); border-color: rgba(255,255,255,.4); }
#items li.hide { opacity: 0; transform: translateX(-8px); max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.08); font-size: .8rem; }
.ico.sw { background: var(--teal); }
.txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
kbd { font-family: inherit; font-size: .78rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; background: rgba(255,255,255,.04); }
.hotkey { position: absolute; bottom: -26px; right: 24px; display: flex; gap: 6px; }
.hotkey kbd { font-size: 1rem; padding: 8px 13px; background: rgba(21,21,23,.9); color: var(--text); box-shadow: 0 6px 0 rgba(0,0,0,.4); transition: transform .12s, box-shadow .12s; }
.hotkey.press kbd { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.4); border-color: var(--teal); }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 100px clamp(20px, 5vw, 56px); }
.section.narrow { max-width: 780px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 18px; font-weight: 700; }
.sub { color: var(--muted); margin-bottom: 36px; }
.eyebrow { color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, border-color .3s, background .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(201,169,110,.45); background: rgba(255,255,255,.07); }
.ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-size: 1.2rem; margin-bottom: 18px; color: var(--on-accent); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split > div p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 52px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .93rem; }
.note { margin-top: 22px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(201,169,110,.3); background: rgba(201,169,110,.07); color: var(--muted); font-size: .93rem; }
.note strong { color: var(--text); }

.table { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 14px 24px; border-top: 1px solid var(--border); align-items: center; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255,255,255,.03); }
.row span:first-child { color: var(--muted); font-size: .88rem; }
.row kbd { color: var(--text); }

details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

.release { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.rh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--grad); }
.release ul { color: var(--muted); padding-left: 20px; margin-bottom: 16px; }

.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final img { filter: drop-shadow(0 14px 30px rgba(201,169,110,.4)); }

footer { border-top: 1px solid var(--border); padding: 36px clamp(20px, 5vw, 56px); text-align: center; color: var(--muted); font-size: .85rem; display: grid; gap: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; min-height: 0; }
  .nav nav { display: none; }
  .row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Binary Code Lab type + gold accents */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
h1, h2, .brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.015em; }
.btn, .tag, .steps span, #items li.sel { color: var(--on-accent); }
#items li.sel kbd { border-color: rgba(11,11,12,.35); }
.card, .steps li, .table, .release, .checks li { background: var(--surface); }
.btn-ghost { color: var(--text); background: var(--surface); }
.grid { background-image: linear-gradient(rgba(201,169,110,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,110,.05) 1px, transparent 1px); }
