/* TimeStop — site styles. Extends the app's design language:
   near-black stage, letterspaced caps, mono digits, outlined cards. */

:root {
  --bg: #0a0b10;
  --surface: #15161f;
  --outline: #262838;
  --text: #f2f3f7;
  --dim: #7e8195;
  --cyan: #22d3ee;
  --gold: #ffc940;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --orange: #fb923c;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'Chivo Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
}

/* Atmosphere: two faint glows anchoring the corners of the stage. */
.stage::before,
.stage::after {
  content: '';
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.stage::before {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07), transparent 65%);
}
.stage::after {
  bottom: -35vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(255, 201, 64, 0.05), transparent 65%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 0;
}
header.site .brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
header.site nav a {
  font-size: 11px;
  text-decoration: none;
  margin-left: 26px;
  transition: color 0.2s;
}
header.site nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(56px, 11vw, 116px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
}
.hero h1 .tick { color: var(--cyan); }
.hero .tagline {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.34em;
}
.hero .sub {
  margin: 26px auto 0;
  max-width: 54ch;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
}

/* staggered page-load reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- playable demo ---------- */

.demo {
  margin: 64px auto 0;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 22px;
  padding: 42px 30px 38px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.25s, transform 0.25s;
}
.demo:hover { border-color: #3a3d52; }
.demo:active { transform: scale(0.995); }
.demo .target-line { font-size: 11px; letter-spacing: 0.3em; }
.demo .target-line b { color: var(--gold); font-weight: 600; }
.demo .readout {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(52px, 9vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 26px 0 22px;
  font-variant-numeric: tabular-nums;
}
.demo .readout .unit { font-size: 0.38em; color: var(--dim); letter-spacing: 0; }
.demo .hint { font-size: 10px; letter-spacing: 0.26em; }
.demo .verdict {
  display: none;
  margin-top: 6px;
}
.demo .verdict .rank {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.22em;
}
.demo .verdict .diff {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 13px;
  margin-top: 8px;
}

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

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}
.pill {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pill.solid {
  background: var(--cyan);
  color: #062a31;
}
.pill.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.25);
}
.pill.ghost {
  border: 1px solid var(--outline);
  color: var(--dim);
}
.pill.ghost:hover { border-color: var(--dim); color: var(--text); }

/* ---------- features ---------- */

.features { padding: 110px 0 20px; }
.features .head { text-align: center; font-size: 12px; }
.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 26px 24px 28px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: #3a3d52; }
.card .icon {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text);
}
.card p {
  margin-top: 12px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 500;
}
.card.wide { grid-column: span 3; text-align: center; padding: 40px 30px; }
.card.wide h3 { color: var(--gold); }
.card.wide p { max-width: 58ch; margin-left: auto; margin-right: auto; }

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

footer.site {
  margin-top: 120px;
  border-top: 1px solid var(--outline);
  padding: 40px 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer.site .label { font-size: 9px; letter-spacing: 0.22em; }
footer.site a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
footer.site a:hover { color: var(--text); }

/* ---------- legal page ---------- */

.legal { max-width: 680px; margin: 0 auto; padding: 30px 28px 90px; }
.legal .crumb {
  display: inline-block;
  margin: 26px 0 40px;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}
.legal .crumb:hover { color: var(--text); }
.legal h1 { font-size: 15px; font-weight: 600; letter-spacing: 0.3em; }
.legal .date { margin-top: 14px; font-size: 9.5px; letter-spacing: 0.14em; }
.legal section { margin-top: 44px; }
.legal h2 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; color: #a2a5b8; }
.legal p, .legal li {
  margin-top: 12px;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
}
.legal ul { margin-left: 20px; }
.legal a { color: var(--cyan); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ---------- misc ---------- */

a:focus-visible, .demo:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .hero { padding-top: 72px; }
}

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