/* PONSI · glass on sage. variance 6 / motion 3 / density 4.
   One theme (light sage), one accent (deep moss ink), one radius system (22/12). */

:root {
  --sage-0: #b3bca6;   /* page base, matched to the logo photo */
  --sage-1: #c4cbb6;
  --sage-2: #d6dbc9;
  --mist:   #e9ecdf;   /* near-white, never pure */
  --ink:    #2c3327;   /* near-black moss ink, never pure */
  --ink-soft: #4a5443;
  --accent: #35502f;   /* the one accent: deep moss */
  --glass:  rgba(238, 242, 230, 0.42);
  --glass-edge: rgba(250, 252, 246, 0.75);
  --shadow: 0 18px 45px rgba(44, 51, 39, 0.18);
  --r-big: 22px;
  --r-sm: 12px;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 18% -5%, rgba(240, 244, 231, 0.7), transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(160, 170, 145, 0.55), transparent 65%),
    linear-gradient(165deg, var(--sage-1) 0%, var(--sage-0) 45%, #a7b099 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--accent); }

/* ── glass primitive ─────────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-big);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: rgba(196, 203, 182, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 252, 246, 0.5);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); text-decoration: underline; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.pill {
  font-family: var(--font-body); font-size: 0.85rem;
  padding: 8px 14px; cursor: pointer;
  color: var(--ink); background: var(--glass);
  border: 1px solid var(--glass-edge); border-radius: 999px;
}
.pill:hover { background: rgba(250, 252, 246, 0.65); }

.btn-buy {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 9px 20px; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--mist); background: var(--accent);
  text-decoration: none; display: inline-block;
  box-shadow: 0 6px 18px rgba(53, 80, 47, 0.35);
}
.btn-buy:hover { background: #2b4126; }

:is(a, button, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; text-align: center;
  padding: 60px 20px 40px; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: auto 0 auto 0; top: -80px; height: 500px;
  background: radial-gradient(500px 320px at 50% 40%, rgba(250, 252, 246, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: min(300px, 62vw); height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite; /* gentle float: sells the glass-ornament weightlessness */
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08;
  margin-top: 26px; letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(255,255,255,0.45);
}
.hero-sub {
  max-width: 560px; margin: 16px auto 0;
  color: var(--ink-soft); font-size: 1.05rem;
}

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 34px auto 0; max-width: 900px;
}
.stat { padding: 16px 22px; min-width: 170px; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: 1.6rem; color: var(--ink);
}
.stat-lab { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.engine-line { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); }

/* ── wheel ───────────────────────────────────────────────────────────────── */
section { padding: 56px 20px; max-width: 1060px; margin: 0 auto; }

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

.wheel-card {
  display: flex; align-items: center; gap: 36px;
  padding: 40px 44px;
}
.wheel-left { flex: 1; }
.wheel-symbol {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent);
}
.wheel-name { font-size: 1.05rem; margin-top: 2px; }
.wheel-note { margin-top: 14px; color: var(--ink-soft); max-width: 480px; }

.wheel-ring { position: relative; width: 190px; height: 190px; flex: none; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 14px solid rgba(250, 252, 246, 0.55);
  box-shadow: inset 0 3px 8px rgba(44,51,39,0.18), 0 8px 22px rgba(44,51,39,0.16);
}
.ring.r2 {
  inset: 26px; border-width: 10px;
  animation: spin 26s linear infinite; /* the wheel literally turns: state, not decoration */
  border-top-color: rgba(53, 80, 47, 0.5);
}
@keyframes spin { to { transform: rotate(360deg); } }
.ring-core {
  position: absolute; inset: 62px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  color: var(--mist); background: var(--accent);
  box-shadow: 0 6px 18px rgba(53, 80, 47, 0.4);
}

.wheel-history { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem;
  color: var(--ink-soft);
}
.chip-live { color: var(--accent); font-weight: 700; border-color: var(--accent); }

/* ── chain (how it works) ────────────────────────────────────────────────── */
.chain h2, .ledger h2, .check h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 22px;
}
.chain-row {
  display: flex; align-items: stretch; gap: 0;
}
.link-card {
  flex: 1; padding: 26px 24px; position: relative;
}
.link-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  margin: 10px 0 6px; color: var(--accent);
}
.link-card p { font-size: 0.92rem; color: var(--ink-soft); }
.link-ring {
  display: block; width: 34px; height: 34px; border-radius: 50%;
  border: 8px solid rgba(250, 252, 246, 0.8);
  box-shadow: inset 0 2px 5px rgba(44,51,39,0.2), 0 4px 10px rgba(44,51,39,0.15);
}
.chain-joint {
  width: 34px; flex: none; align-self: center; height: 12px;
  background: linear-gradient(rgba(250,252,246,0.85), rgba(190,198,176,0.9));
  border-radius: 6px; margin: 0 -6px; z-index: 1;
  box-shadow: 0 3px 8px rgba(44,51,39,0.2);
}
.chain-fine { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }

/* ── ledger ──────────────────────────────────────────────────────────────── */
.ledger-sub { color: var(--ink-soft); margin-bottom: 20px; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.ledger-col { padding: 22px 24px; overflow-x: auto; }
.ledger-col h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 12px;
}
.ledger-col table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ledger-col td {
  padding: 7px 8px 7px 0; border-bottom: 1px solid rgba(250,252,246,0.5);
  white-space: nowrap; color: var(--ink);
}
.ledger-col td.empty { color: var(--ink-soft); font-style: italic; border: 0; }
.ledger-col a { text-decoration: none; }
.ledger-col a:hover { text-decoration: underline; }
.mono { font-variant-numeric: tabular-nums; }
.tag-dry { font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--ink-soft); border-radius: 6px; padding: 1px 5px; }

/* ── wallet check ────────────────────────────────────────────────────────── */
.check { padding: 34px 36px; }
#check-form { display: flex; gap: 10px; max-width: 560px; }
#check-input {
  flex: 1; padding: 11px 16px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--ink); background: rgba(250, 252, 246, 0.65);
  border: 1px solid var(--glass-edge); border-radius: var(--r-sm);
}
#check-input::placeholder { color: #5d6656; }
.check-out { margin-top: 16px; font-size: 0.95rem; }
.check-out ul { list-style: none; }
.check-out li { padding: 4px 0; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  padding: 40px 20px 50px; text-align: center;
  color: var(--ink-soft); font-size: 0.85rem;
}
.foot-links { display: flex; gap: 18px; }
.foot-fine { max-width: 520px; opacity: 0.8; }

/* ── responsive + motion ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .wheel-card { flex-direction: column; text-align: center; padding: 30px 22px; }
  .wheel-note { margin-inline: auto; }
  .chain-row { flex-direction: column; gap: 14px; }
  .chain-joint { width: 12px; height: 30px; align-self: center; margin: -8px 0; }
  .ledger-grid { grid-template-columns: 1fr; }
  #check-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .ring.r2 { animation: none; }
}
