:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --paper: #f7f7f7;
  --surface: #ffffff;
  --wash: #efefef;
  --ink: #111111;
  --ink-mid: #404040;
  --muted: #6e6e6e;
  --faint: #a8a8a8;
  --line: #e4e4e4;
  --accent: #ff3b30;
  --accent-soft: #fff1f0;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 247, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.03em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1.5px solid var(--ink); background: var(--accent); color: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; color: var(--ink-mid); }
.nav-links a:hover { color: var(--ink); }

.btn-offset-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 3px 3px 0 0 var(--ink); cursor: pointer;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s var(--ease-spring);
}
.btn-offset-white:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn-offset-white:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }

.btn-pill-black {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--accent); color: var(--surface);
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s var(--ease-spring), opacity 0.15s;
  white-space: nowrap;
}
.btn-pill-black:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn-pill-black:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
.btn-pill-black:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 700; cursor: pointer;
}

.hero-canvas {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 82% 24%, rgba(0,0,0,0.035), transparent 44%),
    radial-gradient(circle, rgba(17,17,17,0.12) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px 56px;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--ink-mid); margin-bottom: 24px;
}
.live-badge {
  background: var(--accent); color: var(--surface);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em;
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.04em;
}
.hero-highlight {
  display: inline-block; padding: 2px 14px 6px; margin-top: 6px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--accent-soft); color: var(--accent);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.hero-sub {
  margin: 0 0 28px; max-width: 520px;
  font-size: 16px; line-height: 1.55; color: var(--muted);
}

/* Giant Clock Card */
.clock-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 26px;
  padding: 28px; box-shadow: 6px 6px 0 0 var(--ink);
  display: flex; flex-direction: column; gap: 18px;
}
.clock-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.clock-digits {
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(46px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.clock-bar-track {
  width: 100%; height: 10px; border-radius: 999px; background: var(--wash);
  border: 1px solid var(--line); overflow: hidden;
}
.clock-bar-fill {
  height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s linear;
}
.clock-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.clock-keeper { font-weight: 700; color: var(--ink); font-family: var(--font-mono); }

/* Claim Form */
.claim-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 560px; }
.handle-pill {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 6px;
  padding: 0 18px; height: 50px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.handle-at { font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.handle-input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.handle-input::placeholder { color: var(--faint); font-weight: 500; }

.note-toggle {
  margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 560px; font-size: 12px; color: var(--muted);
}
.note-toggle-btn {
  border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700;
  color: var(--ink); cursor: pointer;
}
.note-input-wrap { margin-top: 10px; max-width: 560px; display: none; }
.note-input-wrap.open { display: block; }
.note-input {
  width: 100%; height: 42px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink); outline: none;
}
.note-input:focus { border-color: var(--ink); }
.form-error { margin-top: 10px; font-size: 13px; font-weight: 600; color: #b91c1c; display: none; }

.stats-dl {
  margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 36px;
}
.stats-dl dt {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
}
.stats-dl dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* Steps */
.steps-section { max-width: 1200px; margin: 0 auto; padding: 48px 24px 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  position: relative; overflow: hidden; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 22px; padding: 24px;
}
.step-card.featured { border-color: var(--ink); box-shadow: 4px 4px 0 0 var(--ink); }
.step-num-bg {
  position: absolute; top: 10px; right: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1;
  color: rgba(17,17,17,0.06); pointer-events: none;
}
.step-icon {
  width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-bottom: 14px;
}
.step-card.featured .step-icon { background: var(--accent); color: var(--surface); }
.step-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Log Section */
.log-section { max-width: 1200px; margin: 0 auto; padding: 36px 24px 64px; }
.log-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.log-kicker { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.log-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.filter-pills { display: flex; gap: 8px; }
.pill-btn {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-mid); cursor: pointer;
}
.pill-btn.active { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.log-list { display: flex; flex-direction: column; gap: 10px; }
.log-row {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  transition: transform 0.14s var(--ease-spring), border-color 0.14s, box-shadow 0.14s;
}
.log-row:hover { border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.log-left { display: flex; align-items: center; gap: 14px; }
.log-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--ink);
}
.log-handle { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.log-note { font-size: 13px; color: var(--muted); margin-left: 8px; }
.log-right { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.clutch-tag {
  background: var(--accent); color: var(--surface); padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.empty-box {
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: 22px;
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px;
}

/* Marquee */
.marquee-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: inline-flex; gap: 28px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-mid);
  animation: marquee 28s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.footer {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* Receipt / Success Page */
.receipt-wrap { max-width: 640px; margin: 48px auto; padding: 0 24px; }
.receipt-poster {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 26px;
  padding: 36px; box-shadow: 6px 6px 0 0 var(--ink); text-align: left;
}
.receipt-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--surface);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.receipt-big {
  font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1.05;
  letter-spacing: -0.04em; margin: 0 0 8px;
}
.receipt-handle { font-family: var(--font-mono); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.receipt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 24px; font-size: 13px;
}
.receipt-label { color: var(--muted); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; }
.receipt-val { font-weight: 700; font-size: 15px; margin-top: 2px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
