/* ═══════════════════════════════════════════════════════════════════════════
   NURU HURU — coming-soon placeholder
   Palette and structure lifted from the product's "Stage" design language:
   bone paper, pine, saffron; outlined controls at a 100px radius, 8px cards
   with no elevation, hairline rules, { curly-brace } section annotations.

   Light is the base theme on :root. Dark is defined twice on purpose —
   once for the system preference, once for the explicit [data-theme] the
   toggle writes — so both directions win over the other.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --paper:   #f4f0e6;
  --paper-2: #eae4d5;
  --card:    #fffdf7;

  /* Ink & text */
  --ink:   #14110d;
  --muted: #6d6558;
  --faint: #9a9083;

  /* Rules */
  --rule:        #14110d1a;
  --rule-strong: #14110d2e;

  /* Panels that must stay dark in both editions */
  --inverse-bg: #14110d;
  --inverse-fg: #f4f0e6;
  --accent-bg:  #dfa326;
  --accent-fg:  #14110d;

  /* Brand */
  --pine:    #0b3b2e;
  --saffron: #dfa326;
  --growth:  #0d7a56;

  --radius-card: 8px;
  --radius-pill: 100px;
  --maxw: 1120px;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #15120d;
    --paper-2: #1d1912;
    --card:    #1b1711;
    --ink:     #ece6d9;
    --muted:   #a19885;
    --faint:   #8d8471;
    --rule:        #ece6d91f;
    --rule-strong: #ece6d938;
    --inverse-bg: #201b14;
    --inverse-fg: #ece6d9;
    --accent-bg:  #c99422;
    --pine:    #4bb891;
    --saffron: #e3aa33;
    --growth:  #34c08b;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:   #15120d;
  --paper-2: #1d1912;
  --card:    #1b1711;
  --ink:     #ece6d9;
  --muted:   #a19885;
  --faint:   #8d8471;
  --rule:        #ece6d91f;
  --rule-strong: #ece6d938;
  --inverse-bg: #201b14;
  --inverse-fg: #ece6d9;
  --accent-bg:  #c99422;
  --pine:    #4bb891;
  --saffron: #e3aa33;
  --growth:  #34c08b;
  color-scheme: dark;
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0;
  height: 1px; background: var(--rule);
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark__mark { width: 28px; height: 28px; flex: none; }
.wordmark__mark rect { fill: var(--pine); }
.wordmark__mark path {
  fill: none; stroke: var(--saffron);
  stroke-width: 11; stroke-linecap: square;
}

.site-header__right { display: flex; align-items: center; gap: 12px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--growth);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--growth) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--growth) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.icon-btn svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn .icon-moon { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: block; }
:root[data-theme="dark"] .icon-btn .icon-sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .icon-sun  { display: none; }
}

/* ── shared bits ───────────────────────────────────────────────────────── */
.annot {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 18px;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px;
  border-top: 1px solid var(--rule);
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: 44px;
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 24px clamp(48px, 7vw, 80px);
}
.hero__title {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero__title em { font-style: normal; color: var(--pine); }

.rotator {
  display: inline-block;
  color: var(--saffron);
}
.rotator > span {
  display: inline-block;
  transition: opacity .28s ease, transform .28s ease;
}
.rotator > span.is-out { opacity: 0; transform: translateY(-0.25em); }

.hero__lede {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin-bottom: 36px;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ── waitlist form ─────────────────────────────────────────────────────── */
.waitlist {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 540px;
}
.waitlist input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 20px;
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  transition: border-color .2s;
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:hover { border-color: var(--ink); }
.waitlist input[aria-invalid="true"] { border-color: #b04328; }

/* The single gradient-stroked CTA — the maximum chromatic escalation the
   system allows. Stroke via a padded gradient wrapper, fill stays paper. */
.btn-primary {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.5px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, var(--pine), var(--saffron));
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }
.btn-primary__label {
  display: block;
  padding: 12.5px 26px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
}
.btn-primary--onaccent .btn-primary__label { background: var(--accent-bg); color: var(--accent-fg); }

.form-msg {
  flex: 1 0 100%;
  min-height: 20px;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.form-msg.is-ok    { color: var(--growth); font-weight: 500; }
.form-msg.is-error { color: #b04328; }
:root[data-theme="dark"] .form-msg.is-error { color: #dd6f57; }

/* ── countdown ─────────────────────────────────────────────────────────── */
.countdown {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 44px;
}
.countdown__cell {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 92px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.countdown__num {
  font-size: 30px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.countdown__lbl {
  font-size: 12px; color: var(--faint);
  letter-spacing: 0.04em;
}

/* ── ticker ────────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; width: max-content;
  animation: scroll-x 38s linear infinite;
}
.ticker__group {
  display: flex; align-items: center; gap: 40px;
  padding: 0 20px; margin: 0; list-style: none;
}
.ticker__group li {
  display: flex; align-items: center; gap: 40px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.ticker__group li::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--saffron); opacity: .7;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ── cards ─────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  padding: 28px 26px 30px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.card__num {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: 14px;
}
.card h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.card p { font-size: 14.5px; color: var(--muted); }

/* ── stats ─────────────────────────────────────────────────────────────── */
.stats { background: var(--inverse-bg); color: var(--inverse-fg); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--saffron);
}
.stat__lbl {
  font-size: 13.5px;
  color: color-mix(in srgb, var(--inverse-fg) 68%, transparent);
}

/* ── roadmap ───────────────────────────────────────────────────────────── */
.road { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.road__item {
  position: relative;
  display: grid; grid-template-columns: 26px 1fr; gap: 18px;
  padding: 0 0 30px 0;
}
.road__item:last-child { padding-bottom: 0; }
.road__item::before {
  content: ""; position: absolute;
  left: 12px; top: 20px; bottom: -4px;
  width: 1px; background: var(--rule-strong);
}
.road__item:last-child::before { display: none; }
.road__marker {
  position: relative; z-index: 1;
  width: 13px; height: 13px; margin: 6px 0 0 6px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
}
.road__item.is-done .road__marker { background: var(--growth); border-color: var(--growth); }
.road__item.is-active .road__marker {
  background: var(--saffron); border-color: var(--saffron);
  animation: pulse-marker 2s ease-out infinite;
}
@keyframes pulse-marker {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--saffron) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.road__item h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.road__item p { font-size: 14.5px; color: var(--muted); }

.tag {
  padding: 3px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.03em;
  color: var(--muted);
}
.tag--done   { color: var(--growth);  border-color: color-mix(in srgb, var(--growth) 40%, transparent); }
.tag--active { color: var(--saffron); border-color: color-mix(in srgb, var(--saffron) 45%, transparent); }

/* ── cta ───────────────────────────────────────────────────────────────── */
.cta { background: var(--accent-bg); color: var(--accent-fg); }
.cta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.cta__inner h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.cta__inner p { margin-bottom: 26px; opacity: .8; }
.cta .btn-primary { background: var(--accent-fg); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.site-footer__row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.site-footer__brand { font-weight: 700; letter-spacing: -0.02em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.site-footer__links a:hover { color: var(--ink); }
.site-footer__legal {
  max-width: 70ch;
  font-size: 12.5px; line-height: 1.7; color: var(--faint);
  margin-bottom: 8px;
}

/* ── reveal-on-scroll ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── small screens ─────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .status-pill { display: none; }
  .section { padding: 64px 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .waitlist { flex-direction: column; }
  .waitlist input, .btn-primary { width: 100%; }
  .btn-primary__label { text-align: center; }
  .countdown__cell { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .form-msg { padding-left: 4px; }
}

/* ── reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
