/* Palette taken from the README banner: near-black warm ground, crumb ambers. */
:root {
  --bg: #14100C;
  --bg-2: #1C1712;
  --bg-3: #241D16;
  --line: rgba(240, 195, 132, .14);
  --text: #F4EEE6;
  --muted: rgba(244, 238, 230, .68);
  --amber-dark: #B0762F;
  --amber: #DBA24F;
  --amber-light: #F0C384;
  --good: #8FCB8B;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 Lato, "DejaVu Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-light); }
code { font-family: var(--mono); font-size: .88em; color: var(--amber-light); }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 900; letter-spacing: -1px; margin: 0 0 14px; }
h3 { margin: 0; font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 96px 24px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--amber); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 40px; font-size: 19px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  color: #1A120A; font-weight: 900; text-decoration: none;
  box-shadow: 0 8px 30px rgba(219, 162, 79, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(219, 162, 79, .35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--amber); box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(20, 16, 12, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { color: var(--text); font-weight: 900; font-size: 22px; letter-spacing: -.5px; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 860px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px 72px; text-align: center;
  background:
    radial-gradient(900px 460px at 20% 115%, rgba(219, 162, 79, .20), transparent 62%),
    radial-gradient(700px 360px at 86% -15%, rgba(232, 178, 104, .10), transparent 60%),
    var(--bg);
}
#crumbs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero > *:not(svg) { position: relative; z-index: 2; }
.word { margin: 0; font-weight: 900; font-size: clamp(76px, 13vw, 156px); line-height: 1; letter-spacing: -.035em; }
.tag { margin: 26px 0 0; font-weight: 300; font-size: clamp(19px, 2.4vw, 28px); color: rgba(255, 255, 255, .82); }
.tag b { font-weight: 700; color: #fff; }
.lede { max-width: 620px; margin: 22px auto 0; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.facts { display: flex; gap: 34px; justify-content: center; list-style: none; padding: 0; margin: 44px 0 0; color: var(--muted); font-size: 16px; }
.facts b { display: block; color: var(--amber-light); font-size: 30px; font-weight: 900; line-height: 1.1; }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.col h3 { font-size: 20px; margin-bottom: 14px; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { position: relative; padding: 9px 0 9px 32px; color: var(--muted); border-top: 1px solid var(--line); }
.col li:first-child { border-top: 0; }
.col li::before { position: absolute; left: 0; top: 9px; font-weight: 900; }
.col-before li::before { content: "✕"; color: #C97A6A; }
.col-after { border-color: rgba(219, 162, 79, .45); background: linear-gradient(180deg, rgba(219, 162, 79, .08), transparent 70%), var(--bg); }
.col-after li { color: var(--text); }
.col-after li::before { content: "✓"; color: var(--amber); }

/* Screenshot */
.toggle, .tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); }
.toggle { margin-bottom: 22px; }
.toggle button, .tabs button {
  border: 0; background: transparent; color: var(--muted);
  font: 700 14px Lato, sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-selected="true"], .tabs button[aria-selected="true"] { background: var(--amber); color: #1A120A; }
.window {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #2A231C; color: var(--muted); font-size: 13px; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4A3F33; }
.window-bar span { margin-left: 12px; }
.window img { display: block; width: 100%; height: auto; }
.term {
  margin: 0; padding: 28px; background: #0E0B08; color: #D9D2C8;
  font: 14px/1.7 var(--mono); overflow-x: auto; min-height: 340px;
}
.term .prompt { color: var(--amber); }
.term b { color: var(--amber-light); }

/* Setup */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 34px; }
.picker label { font-weight: 700; }
.picker select {
  font: 700 16px Lato, sans-serif; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer;
}
.picker-note { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-head h3 { font-size: 19px; flex: 1; }
.num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber); color: #1A120A; font-weight: 900;
}
.code { position: relative; border-radius: var(--radius); background: #0E0B08; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 22px 88px 22px 24px; overflow-x: auto; font: 15px/1.7 var(--mono); color: #D9D2C8; }
.code .k { color: #9CC3E6; }
.code .s { color: var(--amber-light); }
.code .c { color: #8A7F72; font-style: italic; }
.code .t { color: #C79BE0; }
.code mark { background: rgba(219, 162, 79, .16); color: inherit; border-left: 3px solid var(--amber); margin-left: -24px; padding-left: 21px; display: inline-block; width: calc(100% + 48px); }
.copy {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font: 700 13px Lato, sans-serif; color: var(--muted);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; cursor: pointer;
}
.copy:hover { color: var(--text); }
.copy.done { color: var(--good); border-color: var(--good); }
.note { color: var(--muted); margin: 26px 0 0; }

/* How it works */
.flow { display: flex; align-items: stretch; gap: 0; margin: 40px 0 44px; }
.node {
  flex: 1; padding: 20px 16px; text-align: center; font-weight: 900;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.node small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--muted); }
.node-hi { border-color: var(--amber); background: linear-gradient(180deg, rgba(219, 162, 79, .16), rgba(219, 162, 79, .04)); color: var(--amber-light); }
.arrow { flex: 0 0 38px; position: relative; }
.arrow::before { content: ""; position: absolute; top: 50%; left: 6px; right: 10px; border-top: 2px dashed var(--amber-dark); }
.arrow::after { content: ""; position: absolute; top: calc(50% - 5px); right: 4px; border: 6px solid transparent; border-left-color: var(--amber); border-right: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards article { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.cards h3 { font-size: 18px; margin-bottom: 8px; color: var(--amber-light); }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }

/* Final */
.final {
  text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(800px 380px at 50% 120%, rgba(219, 162, 79, .22), transparent 65%), var(--bg);
}
.compat { color: var(--muted); margin: 0 0 18px; }
.compat b { color: var(--amber-light); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 26px 24px; border-top: 1px solid var(--line); color: rgba(244, 238, 230, .45); font-size: 13px;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .flow { flex-direction: column; }
  .arrow { flex-basis: 30px; }
  .arrow::before { top: 6px; bottom: 10px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--amber-dark); }
  .arrow::after { top: auto; bottom: 2px; right: auto; left: calc(50% - 5px); border: 6px solid transparent; border-top-color: var(--amber); border-bottom: 0; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding: 68px 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.btn) { display: none; }
  .compare, .cards { grid-template-columns: 1fr; }
  .facts { gap: 22px; }
  .hero { min-height: 0; padding: 72px 16px 60px; }
  .code pre { font-size: 13px; padding: 48px 16px 20px; }
  .code mark { margin-left: -16px; padding-left: 13px; width: calc(100% + 32px); }
  .copy { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
