:root {
  --ground: #15120f;
  --band: #1a1612;
  --card: #1c1814;
  --ink: #0d0b09;
  --rule: #2c2620;
  --rule-strong: #4a4238;
  --text: #efe7d6;
  --bright: #f6efe0;
  --soft: #c9bfae;
  --muted: #a89f8f;
  --accent: #e0623f;
  --free: #9fd09a;
  --serif: 'Shippori Mincho', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* One font for every glyph, so box-drawing art stays aligned. */
  --art: ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --gutter: clamp(16px, 6.5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--text); }
a:hover { color: #fff; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; color: var(--bright); margin: 0; }
h1 { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); max-width: 62ch; }
.accent { color: var(--accent); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.bright { color: var(--bright); }
.yellow { color: #e2b93b; }
.gap { margin-top: 10px; }

/* Layout */
.section { padding: clamp(64px, 8vw, 112px) var(--gutter); }
.ruled { border-top: 1px solid var(--rule); }
.band { background: var(--band); }
.heading { display: flex; flex-direction: column; gap: 18px; }
.heading-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.heading-split > div { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.heading-split > .lede { max-width: 420px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.centered { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.centered > .heading { align-items: center; text-align: center; max-width: 760px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--accent); color: var(--ground);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 18px;
}
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: 0.04em; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); font-size: 16px; }
.nav-link { color: var(--soft); text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px;
  border-radius: 4px; border: 1px solid transparent;
  font-weight: 600; font-size: 18px; text-decoration: none; text-align: center;
}
.button-small { min-height: 44px; padding: 8px 22px; font-size: 16px; }
.button-solid { background: var(--accent); color: var(--ground); }
.button-solid:hover { background: #ec7250; color: var(--ground); }
.button-outline { border-color: var(--rule-strong); font-weight: 500; }
.button-outline:hover { border-color: var(--soft); }
.button-accent-outline { border-color: var(--accent); flex-shrink: 0; }

/* Launch pricing: see the script in index.html */
.price-regular { display: none; }
.post-launch .price-launch, .post-launch .launch-only { display: none; }
.post-launch .price-regular { display: inline; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.download {
  display: flex; align-items: center; gap: 14px;
  max-width: 560px; padding: 16px 20px;
  background: var(--ink); border: 1px solid var(--rule); border-radius: 4px;
  font-family: var(--mono); font-size: 16px;
}
.download svg { color: var(--accent); flex-shrink: 0; }
.download-note { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }

.terminal { background: var(--ink); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.terminal-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--rule); }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a332b; }
.terminal-bar b { margin-left: 12px; font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); }
.terminal-body { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.6vw, 36px); font-family: var(--mono); font-size: clamp(13px, 1.15vw, 16px); line-height: 1.8; }
.terminal-body hr { width: 100%; margin: 0; border: 0; border-top: 1px dashed #3a332b; }
.terminal-body b { color: var(--bright); }
.row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.buffer { background: var(--band); border-radius: 4px; padding: 16px 20px; }
.cursor { background: var(--text); color: var(--ground); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 4.5vw, 64px); }
.steps .card { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 2.8vw, 40px) clamp(24px, 2.5vw, 36px); color: var(--soft); }
.steps svg { color: var(--accent); }
.step-number { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* Belts */
.belts { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.belt { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--ground); border: 1px solid #3a332b; border-radius: 6px; }
.belt-black { border-color: var(--accent); }
.belt h3 { font-size: 24px; }
.belt p { font-size: 15px; line-height: 1.4; color: var(--soft); }
.strip { display: block; height: 18px; border-radius: 2px; }
.strip-black { background: #050404; border: 1px solid #5a5046; }
.strip-gold { background: linear-gradient(90deg, #050404 0 68%, #d4a72c 68% 80%, #050404 80%); border: 1px solid #5a5046; }
.tag { margin-top: auto; font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: var(--accent); }
.tag-free { color: var(--free); }

/* Terminal-style panels */
.panel { background: var(--ink); border: 1px solid var(--rule); border-radius: 8px; }
.certificate { padding: clamp(16px, 2.4vw, 32px) 8px; overflow-x: auto; }
.certificate pre { width: max-content; margin: 0 auto; font-family: var(--art); font-size: clamp(9px, 1.02vw, 14px); line-height: 1.3; color: var(--text); }
.kata { padding: clamp(24px, 2.6vw, 36px); font-family: var(--mono); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.9; color: var(--soft); }
.install { padding: clamp(20px, 2.4vw, 32px); font-family: var(--mono); font-size: 14px; line-height: 1.8; }
.install pre { margin: 8px 0 0; font: inherit; color: var(--text); overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 1040px; }
.plan { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 3.3vw, 48px) clamp(24px, 3vw, 44px); color: var(--soft); }
.plan-featured { border: 2px solid var(--accent); }
.plan h3 { font-size: 28px; margin-bottom: 10px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { background: var(--accent); color: var(--ground); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; border-radius: 3px; white-space: nowrap; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.price b { font-family: var(--serif); font-size: clamp(56px, 5vw, 72px); line-height: 1; color: var(--bright); }
.price s { font-size: 28px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: '✓'; color: var(--accent); }
.plan .button { margin-top: auto; }
.fine { font-size: 15px; color: var(--muted); text-align: center; }

/* Tip */
.tip { display: flex; justify-content: space-between; align-items: center; gap: clamp(32px, 5vw, 72px); }
.tip h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.15; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 40px var(--gutter); border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.footer b { font-family: var(--serif); font-size: 20px; color: var(--text); margin-right: 10px; }
.footer a { color: var(--soft); }
.footer code { font-family: var(--mono); }

@media (max-width: 1100px) {
  .belts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-link { display: none; }
  .hero, .split, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .heading { order: -1; }
  .heading-split, .tip { flex-direction: column; align-items: flex-start; }
  /* 60 columns must fit the panel: one column is about 0.61em wide. */
  .certificate pre { font-size: min(14px, calc((100vw - 2 * var(--gutter) - 36px) / 36.6)); }
}

@media (max-width: 560px) {
  .belts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .belt { padding: 20px; }
  .belt h3 { font-size: 21px; }
  .brand-name { font-size: 22px; }
  .actions .button, .tip .button { width: 100%; }
  .download { font-size: 14px; }
  .download-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
