/* Sunstone marketing site — dark-only.
   Token names deliberately mirror the product's brand-substrate role
   vocabulary (primary / accent / surface / on-primary / font-heading /
   font-body / radius …) so the product's brand read extracts this site
   cleanly when it's pointed at its own domain. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #0f0d0b;
  --surface: #171410;
  --surface-raised: #1e1a15;
  --line: rgba(244, 241, 236, 0.09);
  --line-strong: rgba(244, 241, 236, 0.16);
  --text: #f4f1ec;
  --text-soft: #d9d4cc;
  --muted: #a79e93;
  --faint: #746c61;
  --primary: #f1410c;
  --primary-hover: #ff5a26;
  --accent: #f1703f;
  --on-primary: #fff6f1;
  --success: #4fae72;
  --font-heading: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --max-width: 1080px;
  --section-gap: clamp(96px, 14vh, 160px);
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(241, 65, 12, 0.35); color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.site-header .wordmark { display: flex; align-items: center; }
.site-header .wordmark svg { display: block; }

/* ---------- buttons & pills ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 160ms var(--motion-ease), transform 160ms var(--motion-ease);
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px 1px rgba(241, 65, 12, 0.7);
}

/* ---------- hero: the half-risen sun ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 11vh, 130px) 0 0;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 28px 0 22px;
}
.hero h1 .quiet { color: var(--muted); }

.hero .lead {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero .cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero .cta-hint { font-size: 14px; color: var(--muted); }

/* The horizon: a hairline the sun rises behind. */
.horizon {
  position: relative;
  margin-top: clamp(56px, 9vh, 110px);
  height: 220px;
  overflow: hidden;
}
.horizon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, rgba(241, 112, 63, 0.55) 50%, var(--line-strong) 82%, transparent);
}
/* The dome: flat bottom on the horizon, round top — the brand mark itself, rising. */
.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 340px;
  height: 170px;
  border-radius: 170px 170px 0 0;
  background: radial-gradient(170px 170px at 50% 100%, #ffb289 0%, #f96a2e 34%, var(--primary) 62%, #a12703 100%);
  animation: sun-breathe 7s var(--motion-ease) infinite alternate;
}
.sun::before {
  content: "";
  position: absolute;
  inset: -80px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 65, 12, 0.35), transparent 70%);
  pointer-events: none;
}
@keyframes sun-breathe {
  from { filter: brightness(1); }
  to { filter: brightness(1.14); }
}

/* Full sun for the closing CTA — the reunion. */
.sun-full {
  width: 128px;
  height: 128px;
  margin: 0 auto 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #ffc9a3 0%, #f96a2e 40%, var(--primary) 72%, #b12d05 100%);
  box-shadow: 0 0 70px 12px rgba(241, 65, 12, 0.35), 0 0 180px 40px rgba(241, 65, 12, 0.12);
  animation: sun-breathe 7s var(--motion-ease) infinite alternate;
}

/* ---------- sections ---------- */

section.band { padding-top: var(--section-gap); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  max-width: 620px;
  margin-bottom: 18px;
}
.band .band-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 620px;
}

.positioning {
  margin-top: var(--section-gap);
  text-align: center;
}
.positioning p {
  font-size: clamp(18px, 2.4vw, 24px);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto;
}
.positioning p strong { color: var(--text); font-weight: 600; }

/* ---------- the loop (three beats) ---------- */

.beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 8vh, 96px);
}
.beat:nth-child(even) .beat-copy { order: 2; }
.beat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 10px;
}
.beat h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin-bottom: 14px; }
.beat p { color: var(--muted); font-size: 15.5px; }
.beat p + p { margin-top: 12px; }
.beat p strong { color: var(--text-soft); font-weight: 600; }
.beat .kicker { color: var(--text-soft); font-weight: 500; }

/* ---------- product-shaped mock cards ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 13.5px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 600;
}
.mock-head .tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(241, 65, 12, 0.12);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.mock-head .tag.neutral { color: var(--muted); background: rgba(244, 241, 236, 0.06); }
.mock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  color: var(--muted);
}
.mock-row + .mock-row { border-top: 1px solid var(--line); }
.mock-row .what { color: var(--text-soft); }
.mock-row .meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.mock-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}
.mock-actions { display: flex; gap: 10px; margin-top: 16px; }
.mock-actions .btn { font-size: 13px; padding: 8px 14px; }
.mock figcaption, .mock-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}
figure.mock-figure { margin: 0; }
figure.mock-figure > figcaption { margin-top: 12px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* brain map */
.brainmap svg { display: block; width: 100%; height: auto; }

/* ---------- ask anything ---------- */

.ask {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: 48px;
}
.ask-copy p { color: var(--muted); font-size: 15.5px; }
.ask-copy p + p { margin-top: 12px; }
.ask-copy p strong { color: var(--text-soft); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.chip.more { color: var(--faint); border-style: dashed; }

.query-bubble {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius-lg);
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 90%;
  margin-left: auto;
}
.query-bubble .who { display: block; font-size: 11px; color: var(--faint); margin-bottom: 4px; }

/* bar chart mock: single series, thin marks, rounded data-ends, labels in ink */
.barchart { display: grid; gap: 10px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 12px; }
.bar-row .bar-label {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-row .bar-track { height: 14px; display: flex; align-items: center; }
.bar-row .bar-fill {
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: rgba(241, 112, 63, 0.55);
  min-width: 3px;
}
.bar-row.top .bar-fill { background: var(--accent); }
.bar-row.top .bar-label, .bar-row.top .bar-value { color: var(--text-soft); font-weight: 600; }
.bar-row .bar-value { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- two-up moat cards ---------- */

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card p strong { color: var(--text-soft); font-weight: 600; }
.card .mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--faint);
  display: block;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- governance facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 44px;
}
.fact { background: var(--background); padding: 26px 24px; }
.fact h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text-soft); }
.fact p { font-size: 13.5px; color: var(--muted); }

/* ---------- closing CTA ---------- */

.closing {
  margin-top: var(--section-gap);
  padding: clamp(72px, 11vh, 130px) 0;
  text-align: center;
  position: relative;
}
.closing h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto 16px; max-width: 640px; }
.closing p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }

.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.waitlist-form input[type="email"]::placeholder { color: var(--faint); }
.waitlist-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.form-success {
  display: none;
  font-size: 16px;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
  max-width: 460px;
  margin: 0 auto;
}
.form-success .tick { color: var(--success); margin-right: 6px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-gap);
  padding: 40px 0 56px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid .brand-line { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text-soft); }

/* ---------- prose pages (privacy / terms) ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; margin: 40px 0 10px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; font-weight: 700; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-soft); font-size: 15.5px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--motion-ease), transform 700ms var(--motion-ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .sun-full { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .beat { grid-template-columns: 1fr; gap: 28px; }
  .beat:nth-child(even) .beat-copy { order: 0; }
  .ask { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .bar-row { grid-template-columns: 96px 1fr 40px; }
  .sun { width: 240px; height: 120px; border-radius: 120px 120px 0 0; background: radial-gradient(120px 120px at 50% 100%, #ffb289 0%, #f96a2e 34%, var(--primary) 62%, #a12703 100%); }
  .horizon { height: 150px; }
}
