:root {
  --bg: #0B1220;
  --bg-alt: #0F182B;
  --surface: #131D33;
  --line: #243049;
  --text: #F3EEE4;
  --muted: #B3B9C6;
  --accent: #FF7A1A;
  --accent-ink: #0B1220;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1100px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: #FF7A1A; color: #0B1220; }
input { caret-color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }
p.center { margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.92); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-menu { display: none; }
.nav-menu.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
}
.nav-menu a:not(.btn) { padding: 12px 0; text-decoration: none; color: var(--muted); }
.nav-menu a:not(.btn):hover { color: var(--text); }
.nav-menu .btn { margin-top: 8px; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; position: relative; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

/* Backdrop blur only when the mobile menu is closed (a blur would trap the fixed scrim) */
.site-header:not(:has(.nav-menu.is-open)) { backdrop-filter: blur(10px); }
.nav-menu.is-open::before { content: ""; position: fixed; inset: 0; top: 65px; background: rgba(11, 18, 32, .6); z-index: -1; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  padding: 16px 24px; border-radius: 8px; border: 2px solid var(--accent);
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #FF8F3F; border-color: #FF8F3F; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { padding: 11px 18px; font-size: .95rem; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.label, .tag { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--accent); margin-bottom: 16px; }
h1 { font-size: clamp(2.3rem, 8vw, 4rem); }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 20px; max-width: 34ch; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; }
.hero-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); max-width: 22ch; }
.cards { display: grid; gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 1.5rem; font-weight: 500; }
.card p { color: var(--muted); }
.card .tag { color: var(--accent); }
.card .meta { color: var(--text); font-weight: 500; }
.more { margin-top: auto; padding-top: 6px; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); align-self: flex-start; }
.more:hover { color: var(--accent); }
.more.soon, .more.soon:hover { color: var(--muted); font-weight: 500; border-bottom: 0; cursor: default; }
.tier.featured { border-color: var(--accent); }
.tier ul { display: grid; gap: 10px; }
.tier li { padding-left: 22px; position: relative; color: var(--text); }
.tier li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }

/* Six-step strip */
.strip-intro { margin-top: 48px; max-width: 52ch; font-size: 1.1rem; color: var(--text); }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.strip li { border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: .85rem; line-height: 1.3; background: var(--bg); position: relative; min-width: 0; overflow-wrap: anywhere; }

/* Pills */
.prose { color: var(--muted); font-size: 1.15rem; margin-top: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.pills li { border: 1px solid var(--accent); color: var(--text); border-radius: 999px; cursor: default; padding: 10px 18px; font-family: var(--font-mono); font-size: .85rem; line-height: 1.3; }

/* Subscribe */
.subscribe { padding: 88px 0; background: linear-gradient(180deg, var(--bg) 0%, #121c33 100%); border-top: 1px solid var(--line); }
.subscribe h2 { margin-inline: auto; }
.form { display: flex; flex-direction: column; gap: 12px; margin: 28px auto 0; max-width: 520px; }
.form input { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 2px solid #6B7690; border-radius: 8px; padding: 15px 16px; }
.form input::placeholder { color: #8A93A6; }
.form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .35); }
.form[hidden] { display: none; }
.fineprint { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.form-status { min-height: 1.6em; margin-top: 14px; color: var(--muted); }
.form-status.ok { color: #7EE0A3; }
.form-status.err { color: #FFB4A2; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.foot-text { display: grid; gap: 4px; }
.foot-note { font-size: .85rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--text); }
.social a:hover { color: var(--accent); }

/* Larger screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(6, 1fr); column-gap: 20px; }
  .strip li { font-size: .95rem; }
  .form { flex-direction: row; }
  .form input { flex: 1; }
  .form .btn { flex-shrink: 0; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.is-open { display: flex; flex-direction: row; align-items: center; gap: 28px; position: static; background: none; border: 0; padding: 0; }
  .nav-menu a:not(.btn) { padding: 6px 0; }
  .nav-menu .btn { margin: 0; }
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 104px 0; }
  .hero + .section { padding-top: 72px; }
  .nav-menu.is-open::before { display: none; }
  .strip li:not(:last-child)::after { content: "\203A"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; line-height: 1; }
}
@media (min-width: 720px) and (max-width: 959px) { .cards.three { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
