:root {
  --bg: #0F0F0D;
  --surface: #16150F;
  --text: #F5F1E8;
  --text-muted: #9A958A;
  --gold: #E8A33D;
  --gold-dim: #D9793B;
  --sage: #7FA87C;
  --cream: #EFE7D6;
  --border: #2A2822;
  --radius: 20px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 600;
  margin: 0;
}

a, button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.topbar {
  padding: 28px clamp(20px, 5vw, 64px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark-logo {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: var(--cream);
}

.wordmark span {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 40px;
}

/* ---- Hero ---- */

.hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(20px, 6vh, 60px) 0 clamp(40px, 8vh, 90px);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chow-badge {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(232, 163, 61, 0.15);
}

#chow-mascot {
  width: 82%;
  height: auto;
}

.speech-bubble {
  position: absolute;
  top: -6px;
  right: -18px;
  max-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 3px;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 20px 0 28px;
}

.cta {
  background: var(--gold);
  color: #16150F;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta:hover {
  background: #f0b25a;
  transform: translateY(-1px);
}

.code-panel {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 380px;
  animation: rise 0.35s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-text {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.25rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.code-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- How it works ---- */

.how {
  padding: clamp(30px, 6vh, 60px) 0;
  border-top: 1px solid var(--border);
}

.how h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.stop {
  position: relative;
  z-index: 1;
}

.stop-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.stop h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.stop p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 30ch;
}

/* ---- Proof strip ---- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: clamp(24px, 5vh, 48px) 0;
  border-top: 1px solid var(--border);
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof-num {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2rem;
  color: var(--gold);
}

.proof-label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 64px) 40px;
}

.site-footer p {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy p, .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .cta { width: 100%; }
  .code-panel { max-width: 100%; }
  .speech-bubble { right: 4px; }
  .route { grid-template-columns: 1fr; }
  .route::before { display: none; }
  .proof { grid-template-columns: 1fr; }
}
