/* Product-studio look: warm grey seamless backdrop, the beetle lit like a jewel, one emerald accent. */
:root {
  --studio: #ECEAE6;
  --studio-hi: #F7F6F3;
  --studio-lo: #DCD9D2;
  --ink: #161513;
  --muted: #6E6A62;
  --line: rgba(22, 21, 19, .1);
  --emerald: #1E9E5A;
  --emerald-deep: #12693B;
  --gold: #C9A227;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--studio); color: var(--ink); font: 500 18px/1.6 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 4px; border-radius: 10px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-deep); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) clamp(16px, 5vw, 56px) 12px;
  background: rgba(236, 234, 230, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--f-display); letter-spacing: -.03em; }
.brand img { border-radius: 10px; }
.header nav { display: flex; gap: 28px; font-size: 15px; font-weight: 700; color: var(--muted); }
.header nav a:hover { color: var(--ink); }
.ticker { font: 700 13px/1 var(--f-display); padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--studio); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 56px) clamp(48px, 6vw, 88px);
  max-width: 1360px; margin-inline: auto;
}
.hero > * { min-width: 0; }
.hero-stage {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; justify-self: center; border-radius: 40px;
  background: radial-gradient(ellipse at 50% 42%, var(--studio-hi) 0%, var(--studio) 55%, var(--studio-lo) 100%);
}
.hero-stage canvas, .herd-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-stage.ready .fallback { display: none; }
.hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(72px, 10vw, 150px); line-height: .9; font-weight: 900; letter-spacing: -.06em; }
.tagline { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 700; max-width: 22ch; }
.tagline em { font-style: normal; color: var(--emerald); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--studio-hi); border: 1px solid var(--line); color: var(--ink);
  transition: transform .15s, background .15s, box-shadow .15s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 21, 19, .1); }
.button.primary { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.button.primary:hover { background: var(--emerald-deep); }
.button.is-soon { opacity: .45; pointer-events: none; }
.button.is-soon::after { content: "soon"; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: var(--studio); }
.contract {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px;
  padding: 14px 18px; border-radius: 18px; background: var(--studio-hi); border: 1px solid var(--line);
}
.contract-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contract code { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.copy { border: 0; background: var(--ink); color: var(--studio); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.copy:disabled { opacity: .3; cursor: default; }

/* Story */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 8vw, 120px) clamp(16px, 5vw, 56px); background: var(--ink); color: var(--studio);
}
.story > * { min-width: 0; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-number { font: 900 clamp(88px, 14vw, 210px)/.85 var(--f-display); letter-spacing: -.06em; color: var(--emerald); font-variant-numeric: tabular-nums; }
.stat-number small { font-size: .45em; margin-left: .05em; }
.stat-label { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.stat-source { font-size: 13px; color: #A7A39A; letter-spacing: .04em; }
.story-copy { display: flex; flex-direction: column; gap: 18px; max-width: 54ch; }
.story-copy .eyebrow { color: var(--gold); }
.story-copy p:not(.eyebrow) { color: #CFCBC2; font-size: 19px; }

/* Herd */
.herd { padding: clamp(64px, 8vw, 120px) clamp(16px, 5vw, 56px); max-width: 1360px; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }
.herd-head { display: flex; flex-direction: column; gap: 14px; }
.herd-head p:not(.eyebrow) { color: var(--muted); }
.herd-stage {
  position: relative; width: 100%; aspect-ratio: 2.6; border-radius: 36px;
  background: radial-gradient(ellipse at 50% 40%, var(--studio-hi) 0%, var(--studio) 60%, var(--studio-lo) 100%);
}
.herd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.herd-list li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; padding: 16px; border-radius: 20px; background: var(--studio-hi); border: 1px solid var(--line); transition: transform .15s; min-width: 0; }
.herd-list li:hover { transform: translateY(-3px); }
.herd-list i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 3px 6px rgba(255, 255, 255, .4); grid-row: span 2; align-self: center; }
.herd-list b { font: 700 16px/1.1 var(--f-display); }
.herd-list span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.herd-list p { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* How to buy */
.buy { padding: clamp(64px, 8vw, 110px) clamp(16px, 5vw, 56px); max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.buy > * { min-width: 0; }
.buy-head { display: flex; flex-direction: column; gap: 14px; }
.buy-head p:not(.eyebrow) { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--studio-hi); border: 1px solid var(--line); min-width: 0; }
.step-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--studio); font: 700 15px/1 var(--f-display); }
.steps h3 { margin: 0; font: 700 19px/1.2 var(--f-display); letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* Join */
.join {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding: clamp(72px, 9vw, 130px) clamp(16px, 5vw, 56px); background: var(--emerald); color: #fff;
}
.join .eyebrow { color: #CFF5DF; }
.join h2 { font-size: clamp(34px, 5vw, 68px); }
.join .actions { justify-content: center; }
.join .button { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.join .button.primary { background: #fff; color: var(--emerald-deep); border-color: #fff; }
.join .button.is-soon::after { background: #fff; color: var(--emerald-deep); }
.join .contract { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); text-align: left; width: 100%; }
.join .label { color: #CFF5DF; }
.join .copy { background: #fff; color: var(--emerald-deep); }

/* Footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px clamp(16px, 5vw, 56px) calc(env(safe-area-inset-bottom, 0px) + 24px); color: var(--muted); font-size: 14px;
}
.brand.small { font-size: 17px; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 20;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--studio); font-weight: 800;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1100px) { .herd-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .header nav { display: none; }
  .hero, .story, .buy { grid-template-columns: 1fr; }
  .herd-stage { aspect-ratio: 1.6; }
}
@media (max-width: 560px) {
  .herd-list, .steps { grid-template-columns: 1fr; }
  .herd-stage { aspect-ratio: 2; }
  .contract { flex-wrap: wrap; }
}
