/* ============================================================
   COMMIT — landing page
   "NASA meets Apple" — light-first, dark opt-in.
   Layers on tokens.css (tokens/reset/.wrap) + site.css (brand,
   buttons, .row). Everything here is landing-page-specific.
   ============================================================ */

/* ambient glow — dark mode only (light keeps a flat white canvas) */
.glow-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
html.dark .glow-field { display: block; }
.glow-field::before {
  content: ""; position: absolute; top: -10%; right: -5%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--primary-20), transparent 62%);
  filter: blur(30px);
}
.page { position: relative; z-index: 1; }

/* mono comet in the CTA card + the always-light phone dial (the brand-lockup
   mark is themed in site.css). */
.cta-card .comet { filter: brightness(0); }
html.dark .cta-card .comet { filter: brightness(0) invert(1); }
.dial .center img { filter: brightness(0); }

/* ---- nav ---- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  /* vertical padding lives here; .wrap owns the sides; .row carries none.
     (See the padding convention in site.css.) */
  padding-top: 18px; padding-bottom: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--chrome);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav.top.scrolled { border-bottom-color: var(--border); background: var(--chrome-solid); }
nav.top .brand img { width: 36px; height: 36px; }
nav.top .brand .wm { font-size: 20px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 13px; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-link:hover { color: var(--text); }

/* ---- hero ---- */
.hero { position: relative; }
.hero .grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 96px; min-height: 86vh;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.07; letter-spacing: 0.005em;
  margin: 0 0 24px;
}
.hero h1 .hl {
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lede { font-size: clamp(15px, 1.4vw, 18px); color: var(--muted); max-width: 520px; margin: 0 0 34px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 12px; color: var(--muted); }
.trust .t { display: inline-flex; align-items: center; gap: 8px; }
.trust .t svg { width: 15px; height: 15px; color: var(--accent); }

/* ---- phone (always shows the app's light default — a product shot) ---- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage .halo {
  position: absolute; width: 116%; height: 116%; top: -8%; left: -8%;
  background: radial-gradient(circle, var(--accent-12), transparent 60%); filter: blur(20px); pointer-events: none;
}
.device {
  position: relative; width: 312px; height: 642px; flex: none;
  background: #0b0b0d; border-radius: 52px; padding: 11px;
  border: 1px solid #26262b;
  box-shadow: 0 30px 80px rgba(10,10,10,0.22);
  /* Promote to its own GPU layer so the float animates on the compositor
     (no per-frame re-raster) — keeps the bob smooth, not jumpy. */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: float 7s ease-in-out infinite;
}
html.dark .device { box-shadow: 0 0 0 2px #0b0e14, 0 40px 90px rgba(0,0,0,0.7), 0 0 50px rgba(136,92,246,0.32); }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-14px,0); } }
@media (prefers-reduced-motion: reduce) { .device { animation: none; } }
.device .island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 30px; background: #000; border-radius: 16px; z-index: 5;
}
/* the screen re-scopes the tokens to the LIGHT palette so the device always
   shows the app in its default light look, regardless of the site theme. */
.screen {
  --bg: #FFFFFF; --surface: #FAFAFA; --surface-2: #F2F2F3; --surface-3: #ECECEE;
  --border: #E5E5E5; --text: #0A0A0A; --muted: #6B7280; --primary: #885CF6; --accent: #D946EF;
  position: relative; width: 100%; height: 100%; background: #FFFFFF;
  border-radius: 42px; overflow: hidden; display: flex; flex-direction: column;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-family: var(--font-display); font-size: 12px; font-weight: 500; position: relative; z-index: 2; color: var(--text); }
.statusbar .si { display: flex; gap: 5px; align-items: center; color: var(--text); }
.scr-body { position: relative; z-index: 2; padding: 18px 22px 0; flex: 1; }
.scr-head { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .22em; padding-left: .22em; color: var(--text); }
.scr-overview { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.scr-today { font-family: var(--font-ui); font-weight: 600; font-size: 24px; margin: 0; color: var(--text); }
.scr-sub { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.scr-sub b { color: var(--accent); font-weight: 600; }

.dial { position: relative; width: 186px; height: 186px; margin: 14px auto 6px; }
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
/* goal met (8,142 of 8,000) — the ring closes fully and the node returns to top */
.dial .arc { stroke-dasharray: 540.4; stroke-dashoffset: 0; animation: draw 2s cubic-bezier(0.4,0,0.2,1) .4s forwards; }
@keyframes draw { from { stroke-dashoffset: 540.4; } to { stroke-dashoffset: 0; } }
.dial .node { opacity: 1; filter: drop-shadow(0 0 6px rgba(217,70,239,0.8)); }
.dial .node-travel { transform-origin: 93px 93px; transform: rotate(360deg); }
@keyframes node-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.dial .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.dial .center img { width: 46px; height: 46px; }
.dial .num { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--text); }
.dial .nlab { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .dial .node-travel { animation: node-sweep 2s cubic-bezier(0.4,0,0.2,1) .4s forwards; }
}

.stake-tag { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.stake-tag .amt { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.scr-rows { border-top: 1px solid var(--border); }
.scr-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--border); font-size: 12px; }
.scr-row .k { color: var(--muted); }
.scr-row .v { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.scr-tabbar { display: flex; justify-content: space-around; align-items: center; padding: 12px 0 18px; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.scr-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scr-tabbar .tab svg { width: 17px; height: 17px; }
.scr-tabbar .tab.active { color: var(--primary); }

/* ---- section scaffold ---- */
section { position: relative; padding: 96px 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.sec-head { max-width: 640px; margin: 0 0 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { color: var(--muted); margin-bottom: 16px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.16; margin: 0 0 18px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.6; }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), border-color .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--primary-40); box-shadow: var(--shadow-card); }
.step .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-08); border: 1px solid var(--primary-20); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.step .ic svg { width: 22px; height: 22px; color: var(--primary); }
.step .num { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--border); letter-spacing: .1em; }
.step h3 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---- why ---- */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.compare { display: grid; gap: 16px; }
.col { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; background: var(--surface); }
.col.commit { border-color: var(--primary); box-shadow: var(--shadow-card); }
.col .label { font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.col.usual .label { color: var(--muted); }
.col.commit .label { color: var(--accent); }
.col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.col li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.col li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.col.usual li { color: var(--muted); }
.col.usual li svg { color: var(--muted); opacity: 0.7; }
.col.commit li svg { color: var(--primary); }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 28px; background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 72px 32px;
}
.cta-card .glow { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 480px; height: 280px; background: radial-gradient(ellipse at top, var(--primary-12), transparent 70%); pointer-events: none; }
.cta-card .inner { position: relative; z-index: 2; }
.cta-card .comet { width: 60px; height: 60px; margin: 0 auto 24px; }
.cta-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.8vw, 42px); line-height: 1.12; margin: 0 0 18px; }
.cta-card p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }
.cta-card .fine { margin-top: 22px; font-size: 12px; color: var(--muted); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-ui); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); }
.foot-bottom span { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; gap: 8px; padding-top: 48px; padding-bottom: 64px; text-align: center; min-height: 0; }
  .hero .eyebrow, .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .phone-stage { order: 0; margin-top: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.top .nav-link { display: none; }
  nav.top .nav-right { gap: 10px; }
}
@media (max-width: 560px) {
  nav.top { padding-top: 14px; padding-bottom: 14px; }
}
