/* ==========================================================================
   Yeoman Ops — coming-soon site
   Tokens, reset, layout, sections.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0F233F;
  --navy-deep:   #081628;
  --navy-darker: #050E1A;
  --navy-lift:   #15304F;
  --navy-line:   #1F3D66;
  --orange:      #FF6700;
  --orange-hot:  #FF7A1F;
  --orange-soft: #FF8A3D;
  --paper:       #F8FAFC;
  --paper-dim:   rgba(248, 250, 252, 0.72);
  --paper-mute:  rgba(248, 250, 252, 0.55);
  --paper-faint: rgba(248, 250, 252, 0.12);
  --paper-line:  rgba(248, 250, 252, 0.08);

  /* Type */
  --font-ui:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --max:       1240px;
  --pad:       clamp(20px, 4vw, 48px);
  --r-sm:      8px;
  --r-md:      14px;
  --r-lg:      22px;
  --r-pill:    999px;

  /* Shadows tuned for dark surfaces */
  --shadow-1:  0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px rgba(0,0,0,0.35);
  --shadow-2:  0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px rgba(255,103,0,0.30), 0 18px 50px rgba(255,103,0,0.20);

  /* Motion */
  --ease:      cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-feature-settings: 'ss01','cv11';
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: var(--orange); color: var(--navy); }

.container { width: 100%; max-width: var(--max); padding: 0 var(--pad); margin: 0 auto; }
.mono      { font-family: var(--font-mono); }
.muted     { color: var(--paper-dim); }
.accent    { color: var(--orange); }

.skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 16px;
  background: var(--orange); color: var(--navy); font-weight: 700; z-index: 1000;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  background: rgba(8, 22, 40, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--paper-line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.01em; }
.nav__mark  { width: 30px; height: 30px; }
.nav__word  { display: flex; flex-direction: column; line-height: 0.96; font-size: 13px; letter-spacing: 0.16em; }
.nav__word span:first-child { color: var(--orange); }
.nav__word span:last-child  { color: var(--paper); }

.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__links a { color: var(--paper-dim); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--paper); }
.nav__cta {
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--orange); color: var(--navy) !important;
  font-weight: 700; letter-spacing: -0.005em;
  box-shadow: 0 6px 22px rgba(255,103,0,0.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { background: var(--orange-hot); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,103,0,0.45); }

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px);
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(255,103,0,0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 120%, rgba(31, 61, 102, 0.55), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--paper-line);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__glow {
  position: absolute; right: -200px; top: -200px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,103,0,0.30) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--paper-line);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--paper-dim);
  font-family: var(--font-mono);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,103,0,0.20);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,103,0,0.20); }
  50%      { box-shadow: 0 0 0 8px rgba(255,103,0,0.05); }
}

.hero__h {
  margin: 22px 0 24px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero__h-1 { display: block; color: var(--paper); }
.hero__h-2 { display: block; color: var(--paper-dim); }
.hero__h-2 em {
  font-style: normal;
  color: var(--orange);
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  max-width: 60ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--paper-dim);
  margin: 0 0 36px;
}

/* CTA form */
.cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 22px;
  max-width: 720px;
  box-shadow: var(--shadow-2);
}
.cta__label {
  display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-mute); margin-bottom: 14px; font-weight: 600;
}
.cta__row {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px;
}
.cta__row input {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--paper-line);
  color: var(--paper);
  padding: 14px 16px;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cta__row input::placeholder { color: var(--paper-mute); }
.cta__row input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,103,0,0.18);
}
.cta__row button {
  background: var(--orange); color: var(--navy); border: 0;
  padding: 0 22px; border-radius: var(--r-md);
  font-weight: 700; letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 6px 22px rgba(255,103,0,0.35);
}
.cta__row button:hover  { background: var(--orange-hot); transform: translateY(-1px); }
.cta__row button:active { transform: translateY(0); }
.cta__fine { font-size: 12.5px; color: var(--paper-mute); margin: 12px 0 0; }
.cta__success {
  margin: 12px 0 0; font-size: 14px; color: var(--orange); font-weight: 600;
}
/* Honeypot — visible to bots, hidden from humans (and from screen readers
   via aria-hidden on the label itself). Keep it out of the layout entirely
   rather than display:none, which some bots check for. */
.cta__hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
@media (max-width: 720px) {
  .cta__row { grid-template-columns: 1fr; }
  .cta__row button { padding: 14px 22px; justify-content: center; }
}

/* Hero stats */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin: 56px 0 0; padding: 0;
  border-top: 1px solid var(--paper-line);
  padding-top: 28px;
}
.hero__stats > div {
  padding: 6px 0;
  border-right: 1px solid var(--paper-line);
}
.hero__stats > div:last-child { border-right: 0; }
.hero__stats dt {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-mute); margin-bottom: 6px; font-weight: 600;
}
.hero__stats dd {
  margin: 0; font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 24px); color: var(--paper);
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div:nth-child(2) { border-right: 0; }
  .hero__stats > div { padding: 14px 0; border-bottom: 1px solid var(--paper-line); border-right: 0; }
  .hero__stats > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ==========================================================================
   Section primitives
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.section-h {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.section-h .muted { color: var(--paper-mute); font-weight: 700; }
.lede {
  max-width: 64ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--paper-dim);
  margin: 0 0 56px;
}

/* ==========================================================================
   STAKES
   ========================================================================== */

.stakes {
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
}
.stakes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.stake {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.stake:hover {
  transform: translateY(-3px);
  border-color: rgba(255,103,0,0.40);
  background: linear-gradient(180deg, rgba(255,103,0,0.06), rgba(255,255,255,0.012));
}
.stake__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,103,0,0.12);
  color: var(--orange);
  margin-bottom: 18px;
}
.stake__icon svg { width: 22px; height: 22px; }
.stake h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.stake p  { margin: 0; color: var(--paper-dim); font-size: 15.5px; }
.stake em { color: var(--paper); font-style: normal; font-weight: 600; }
@media (max-width: 900px) { .stakes__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PLATFORM
   ========================================================================== */

.platform {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--navy-darker);
  border-top: 1px solid var(--paper-line);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.feature::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(255,103,0,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255,103,0,0.35);
}
.feature:hover::before { opacity: 1; }

.feature--wide { grid-column: span 3; }
.feature--wide .feature__head h3 { font-size: 28px; }

.feature__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.10em;
  color: var(--orange);
  padding: 4px 8px;
  border: 1px solid rgba(255,103,0,0.30);
  border-radius: var(--r-sm);
  background: rgba(255,103,0,0.06);
}
.feature h3 {
  margin: 0; font-size: 21px; line-height: 1.2;
  font-weight: 700; letter-spacing: -0.012em;
}
.feature p {
  margin: 0 0 18px; color: var(--paper-dim); font-size: 15px;
}
.feature code {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(255,103,0,0.10);
  color: var(--orange);
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--paper-line);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: span 1; }
}

/* ==========================================================================
   TRUST
   ========================================================================== */

.trust {
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(31, 61, 102, 0.45), transparent 60%),
    var(--navy-deep);
  border-top: 1px solid var(--paper-line);
}
.trust__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(8, 22, 40, 0.5);
}
.trust__cell {
  padding: 28px;
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.trust__cell:nth-child(3n) { border-right: 0; }
.trust__cell:nth-last-child(-n+3) { border-bottom: 0; }
.trust__cell h4 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
  color: var(--paper); letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 10px;
}
.trust__cell h4::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.trust__cell p { margin: 0; color: var(--paper-dim); font-size: 14.5px; }
@media (max-width: 1000px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__cell:nth-child(3n) { border-right: 1px solid var(--paper-line); }
  .trust__cell:nth-child(2n) { border-right: 0; }
  .trust__cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--paper-line); }
  .trust__cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__cell { border-right: 0 !important; }
  .trust__cell:not(:last-child) { border-bottom: 1px solid var(--paper-line) !important; }
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--navy-darker);
  border-top: 1px solid var(--paper-line);
}
.rail {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  position: relative;
}
.rail::before {
  content: '';
  position: absolute; left: 28px; right: 28px; top: 28px;
  height: 1px; background: linear-gradient(to right, var(--orange), var(--paper-line) 30%);
  z-index: 0;
}
.rail__step {
  position: relative; z-index: 1;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
}
.rail__step::before {
  content: '';
  position: absolute; top: 22px; left: 28px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy-darker);
  border: 2px solid var(--paper-line);
}
.rail__step--done::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px rgba(255,103,0,0.20); }
.rail__step h4 { margin: 14px 0 8px; font-size: 19px; font-weight: 700; }
.rail__step p  { margin: 0; color: var(--paper-dim); font-size: 14.5px; }
.rail__tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em;
  border-radius: var(--r-pill);
  background: rgba(255,103,0,0.10); color: var(--orange);
  border: 1px solid rgba(255,103,0,0.30);
  margin-left: 24px;
}
@media (max-width: 880px) {
  .rail { grid-template-columns: 1fr; gap: 14px; }
  .rail::before { display: none; }
}

/* ==========================================================================
   CLOSING
   ========================================================================== */

.closing {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(255,103,0,0.18), transparent 60%),
    var(--navy);
  border-top: 1px solid var(--paper-line);
}
.closing__h {
  margin: 0 auto 18px; max-width: 22ch;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05; font-weight: 900; letter-spacing: -0.03em;
}
.closing__sub {
  max-width: 56ch; margin: 0 auto 32px;
  font-size: clamp(16px, 1.5vw, 19px); color: var(--paper-dim);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: -0.005em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary {
  background: var(--orange); color: var(--navy);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background: var(--orange-hot); transform: translateY(-2px); }
.closing__tester {
  margin: 26px 0 0; font-size: 13.5px; color: var(--paper-mute);
}
.closing__tester a {
  color: var(--paper-dim);
  border-bottom: 1px dashed var(--paper-faint);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.closing__tester a:hover { color: var(--orange); border-color: rgba(255,103,0,0.50); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 36px 0 48px;
  background: var(--navy-darker);
  border-top: 1px solid var(--paper-line);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.01em;
}
.footer__mark { width: 26px; height: 26px; }
.footer__links {
  display: flex; gap: 22px; font-size: 14px;
}
.footer__links a { color: var(--paper-dim); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--orange); }
.footer__legal {
  font-size: 12.5px; color: var(--paper-mute);
  display: flex; gap: 14px; margin: 0;
  font-family: var(--font-mono);
}
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; }
}

/* ==========================================================================
   Reveal animations (set on .is-revealed by main.js)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
