/* ============================================================
   CodeMani — landing page styles
   Design language: near-black canvas, warm-white type, one
   gold accent, frost-white hairlines, mono as structural voice.

   Proportion system: spacing and geometry sit on a Fibonacci
   ladder — 8 · 13 · 21 · 34 · 55 · 89 · 144 px — with doubles
   (16, 26, 42) permitted as half-steps. Consecutive rungs
   approach φ (1.618…), so adjacent measures keep the golden
   ratio wherever two of them meet. Buttons are the signature:
   padding 13×34 makes each one a φ² rectangle of breathing
   room around its label. Body line-height is φ itself.
   Exact-ratio arithmetic is the company's product; the layout
   observes the same discipline.

   Color: the five chromatic roles sit at the vertices of a
   regular pentagon on the OKLCH hue circle, 72 deg apart,
   anchored on the brand gold (H=84.9): red 12.9, gold 84.9,
   green 156.9, blue 228.9, purple 300.9. Each keeps its
   original lightness/chroma; only the hues are snapped.
   ============================================================ */

@font-face {
  font-family: "Coxeter Display";
  src: url("font/CoxeterDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #070708;
  --bg-band: #0b0b0d;
  --panel: #0d0d0f;
  --panel-2: #101013;
  --text: #f5f4f0;
  --text-2: #b9b8b1;
  --muted: #8f8e88;
  --faint: #64635d;
  --gold: #d4a843;
  --gold-hi: #e6c063;
  --gold-dim: rgba(212, 168, 67, 0.14);
  --green: #48bf80;
  --red: #d86d7b;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --frost: rgba(214, 235, 253, 0.13);
  --radius: 12px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(212, 168, 67, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }

section { padding: 89px 0; }
.band {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- typography ---------- */

h1 {
  font-family: "Coxeter Display", var(--sans);
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h2 {
  font-family: "Coxeter Display", var(--sans);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 34px;
}

h3 {
  font-family: "Coxeter Display", var(--sans);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 540px;
}

.lede-sm {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 16px;
}
.lede-sm:last-child { margin-bottom: 0; }
.lede-sm.dim { color: var(--muted); font-size: 0.9375rem; }
.dim { color: var(--muted); }

.overline {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.mono-inline {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-name {
  font-family: "Coxeter Display", var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(1px);
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Coxeter Display", var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 34px; /* φ² rectangle — the signature measure */
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: #131208;
}
.btn-gold:hover { background: var(--gold-hi); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--frost);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }

.btn-sm { padding: 8px 21px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero { padding: 144px 0 89px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -260px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.09) 0%, rgba(212, 168, 67, 0.028) 42%, transparent 68%);
  pointer-events: none;
}

#icosian {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 55px;
  align-items: center;
  position: relative;
}

.hero-copy h1 { margin-bottom: 21px; }
.hero-copy .lede { margin-bottom: 34px; }

.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-proof { list-style: none; display: grid; gap: 10px; }
.hero-proof li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.tick {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
}
.tick-gold { background: var(--gold); box-shadow: 0 0 8px rgba(212, 168, 67, 0.5); }
.tick-green { background: var(--green); }
.tick-red { background: var(--red); }

/* ---------- receipt windows ---------- */

.receipt-window {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,0,0,0.4);
  overflow: hidden;
}

.rw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.rw-file {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.rw-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--green);
  background: rgba(72, 191, 128, 0.09);
  border: 1px solid rgba(72, 191, 128, 0.22);
  border-radius: 999px;
  padding: 3px 11px;
}
.rw-seal-red {
  color: var(--red);
  background: rgba(216, 109, 123, 0.09);
  border-color: rgba(216, 109, 123, 0.25);
}

.receipt {
  padding: 21px 13px 21px 18px;
  overflow-x: auto;
}
.receipt code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--text-2);
}

.j-key { color: #e3b95f; }
.j-str { color: #c9bb93; }
.j-num { color: #77b7d4; }
.j-pass { color: var(--green); font-weight: 500; }
.j-reject { color: var(--red); font-weight: 500; }
.j-com { color: var(--faint); font-style: italic; }
.j-keyword { color: #ae91dd; }

.rw-note {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--faint);
}
.rw-note em { color: var(--muted); font-style: normal; }

/* ---------- demo video + flow diagram ---------- */

.demo-frame {
  margin-top: 21px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  max-width: 960px;
}
.demo-frame video { display: block; width: 100%; height: auto; }

.flow {
  display: block;
  width: 100%;
  max-width: 1064px;
  height: auto;
  margin: 13px 0 34px;
}

/* ---------- split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: start;
}
.split > div:first-child h2 { margin-bottom: 0; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 55px 0 34px;
}

.step {
  background: var(--bg-band);
  padding: 34px 26px;
}

.step-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: var(--gold-dim);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.875rem; line-height: 1.65; color: var(--muted); }

.cli-strip {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.cli-prompt { color: var(--gold); margin-right: 10px; user-select: none; }

/* ---------- annotations ---------- */

.annot { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.annot li { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); padding-left: 18px; position: relative; }
.annot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.annot strong { color: var(--text); font-weight: 600; }

/* ---------- coverage ---------- */

.cov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin-top: 55px;
}

.cov-card {
  border-radius: var(--radius);
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.cov-in { border-color: rgba(72, 191, 128, 0.22); }
.cov-out { border-color: rgba(216, 109, 123, 0.18); }

.cov-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cov-in .cov-label { color: var(--green); }
.cov-out .cov-label { color: var(--red); }

.cov-card ul { list-style: none; display: grid; gap: 14px; }
.cov-card li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- deliverables ---------- */

.deliver {
  list-style: none;
  counter-reset: d;
  display: grid;
  gap: 13px;
  margin-bottom: 28px;
}
.deliver li {
  counter-increment: d;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
}
.deliver li::before {
  content: counter(d, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  flex: none;
}
.deliver li em { color: var(--text); font-style: normal; font-weight: 500; }

/* ---------- pricing ---------- */

.free-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 55px;
  background: var(--panel);
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: var(--radius);
  padding: 21px 34px;
}
.free-strip h3 { margin-bottom: 5px; }
.free-strip p {
  font-size: 0.875rem;
  line-height: 1.618;
  color: var(--muted);
  max-width: 680px;
}
.free-strip .btn { flex: none; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
  margin-top: 21px;
}

.tier {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.tier-featured {
  border-color: rgba(212, 168, 67, 0.45);
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.05) 0%, var(--panel) 46%);
}

.tier-flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-band);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}

.tier h3 { font-size: 1.125rem; margin-bottom: 14px; }

.price {
  font-family: "Coxeter Display", var(--sans);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.price span {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.tier-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 22px;
}

.tier-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.tier-list li {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.tier .btn { margin-top: auto; }

.pricing-note {
  margin-top: 28px;
  font-size: 0.8125rem;
  color: var(--faint);
  max-width: 640px;
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); margin-top: 55px; }
.qa {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.qa h3 { font-size: 1.02rem; color: var(--text); }
.qa p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 55px 0 34px;
  background: var(--bg-band);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 55px;
}

.foot-tag { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.foot-h {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.foot-col a:hover { color: var(--text); }

.foot-boundary {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--faint);
  max-width: 760px;
  border-left: 2px solid rgba(212, 168, 67, 0.4);
  padding-left: 16px;
  margin-bottom: 28px;
}

.foot-legal { font-size: 0.75rem; color: var(--faint); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .cov-grid, .tiers { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .hero { padding: 89px 0 55px; }
  section { padding: 55px 0; }
  .free-strip { flex-direction: column; align-items: flex-start; gap: 21px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .qa { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 2.4rem; }
  .receipt code { font-size: 0.75rem; }
}
