/* ============================================================
   ppond — solid color scheme (no gradients, no rainbow)
   sage green + amber + cream + deep green
   ============================================================ */
:root {
  --bg: #f7f4ee;         /* plain cream background */
  --card: #ffffff;
  --paper: #f7f4ee;
  --ink: #000000;
  --muted: #000000;
  --sage: #5d7859;       /* primary green */
  --sage-dark: #4a6347;
  --sage-soft: #7a9e6e;  /* lighter green */
  --amber: #c98f2e;      /* warm accent */
  --amber-dark: #b07a1f;
  --deep: #22301f;       /* dark green (footer) */
  --line: #e6e2d6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgba(34, 48, 31, 0.10);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; color: var(--ink); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2.5px; border-radius: 2px; background: var(--amber); }

.lede { color: var(--ink); font-size: 1.06rem; }
.page-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.page-head .lede { margin-top: 14px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand span { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 0.94rem; color: var(--ink); transition: background .15s ease; }
.nav-links a:hover { background: rgba(93, 120, 89, 0.08); }
.nav-links a.active { font-weight: 700; color: var(--sage); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .lede { max-width: 52ch; margin: 20px 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(400px, 88%); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }

/* ---------- spirit / reroll ---------- */
.spirit-card { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.spirit-stage { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #eef2ea; border: 1px solid var(--line); }
.character { position: absolute; inset: 0; width: 100%; height: 100%; }
.character img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }

.reroll-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.reroll-bar h3 { margin-bottom: 4px; }
.reroll-bar p { color: var(--ink); font-size: 0.94rem; max-width: 360px; }
.btn-reroll { flex-shrink: 0; appearance: none; border: none; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; padding: 15px 30px; border-radius: 14px; color: #fff; background: var(--amber); }
.btn-reroll:hover { background: var(--amber-dark); }

.commit { margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: #f1efe9; border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.commit-label { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.commit-label::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 0.7rem; }
.commit code { font-size: 0.78rem; color: var(--ink); word-break: break-all; flex: 1; min-width: 200px; }
.commit-footer { max-width: 640px; margin: 12px auto 0; display: flex; justify-content: flex-end; }
.btn-ghost { appearance: none; cursor: pointer; font-family: inherit; font-size: 0.82rem; color: var(--ink); background: none; border: none; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink); font-size: 0.95rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* mint */
.mint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mint-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.mint-card h3 { margin-bottom: 16px; }
.mint-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f7ecd6; color: var(--ink); font-size: 0.9rem; }
.mint-note a { font-weight: 600; text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--sage); }
.step:nth-child(2) { border-top-color: var(--amber); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.step:nth-child(2) .num { background: var(--amber); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--ink); font-size: 0.9rem; }

/* quantum */
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--sage); }
.q-card:nth-child(even) { border-top-color: var(--amber); }
.q-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.q-card p { color: var(--ink); font-size: 0.92rem; }
.q-card code { font-size: 0.82rem; word-break: break-all; }
.q-tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #eef2ea; color: var(--ink); border: 1px solid var(--line); }
.q-note { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: #f5f2ea; border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); }
.q-note strong { color: var(--ink); }
.q-note a { text-decoration: underline; font-weight: 600; }

/* roadmap */
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--sage); }
.road:nth-child(even) { border-top-color: var(--amber); }
.road .num { font-size: 0.82rem; font-weight: 800; color: var(--sage); letter-spacing: .04em; margin-bottom: 10px; display: inline-block; }
.road h3 { font-size: 1.05rem; margin-bottom: 8px; }
.road p { color: var(--ink); font-size: 0.9rem; }

/* faq */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sage); font-weight: 500; transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink); padding-bottom: 20px; max-width: 68ch; }
.faq p a { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: #e9e7dc; margin-top: 40px; border-top: 3px solid var(--amber); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer .brand { color: #fff; }
.footer .brand span { color: #b8cfa9; }
.footer .blurb { color: #c7cdbb; font-size: 0.92rem; margin-top: 14px; max-width: 34ch; }
.footer .blurb a { color: #d8b56a; text-decoration: underline; font-weight: 600; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #c7cdbb; font-size: 0.92rem; }
.footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: #aeb6a2; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .mint-grid, .grid-2 { grid-template-columns: 1fr; }
  .road-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .q-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .road-grid, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .reroll-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .reroll-bar p { margin-left: auto; margin-right: auto; }
  .btn-reroll { width: 100%; }
  .commit { flex-direction: column; align-items: flex-start; }
}
