/* GoobaSMP — one dark look, on purpose.
   Layout: the logo is the page. A black stage holds it dead centre; everything
   below is a quiet two-column ledger (heading left, text right) on the same black. */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap;
  src: url("fonts/ChakraPetch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap;
  src: url("fonts/ChakraPetch-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 600; font-display: swap;
  src: url("fonts/IBMPlexSans-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --black: #000000;          /* the ground */
  --pit: #070a0e;            /* raised surfaces, barely */
  --line: #18212b;           /* rules */
  --ice: #9bd9ea;            /* the logo's light blue: the one accent */
  --steel: #6f93bf;          /* the logo's dark blue: secondary */
  --text: #e9eff5;
  --dim: #8795a5;

  --display: "Chakra Petch", "Eurostile", "Trebuchet MS", sans-serif;
  --body: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --cut: 12px;               /* the clipped corner, taken from the logo's shards */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
code { font: 500 0.92em var(--mono); color: var(--ice); }
strong { font-weight: 600; color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: 68rem; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── the stage ─────────────────────────────────────────────── */
.stage {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; text-align: center;
  padding-block: 1.5rem 2.5rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  position: relative; overflow: hidden;
}
.stage > * { position: relative; }

.stage-logo {
  width: min(52svh, 88vw, 33rem); aspect-ratio: 1;
  margin-block: -1.5rem -2.4rem;      /* the canvas keeps empty room for the turn */
}
.stage-logo canvas, .stage-logo img {
  width: 100%; height: 100%; display: block;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage-logo canvas.dragging { cursor: grabbing; }

.wordmark {
  margin: 0; font: 700 clamp(2.6rem, 9vw, 5.25rem)/0.95 var(--display);
  letter-spacing: 0.01em; text-transform: uppercase; color: #fff;
}
.wordmark span { color: var(--ice); }
.tagline { margin: 0; max-width: 34rem; color: var(--dim); text-wrap: balance; }

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 1.1rem; width: min(100%, 30rem);
  background: var(--line); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cd-cell { background: var(--black); padding: 0.85rem 0.25rem 0.7rem; display: grid; gap: 0.15rem; }
.cd-num {
  font: 500 clamp(1.7rem, 6.5vw, 2.6rem)/1 var(--mono);
  font-variant-numeric: tabular-nums; color: #fff;
}
.cd-unit { font: 600 0.68rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.countdown.live .cd-num { color: var(--ice); }
.when { margin: 0; font-size: 0.95rem; color: var(--dim); text-wrap: balance; }
.when b { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: grid; gap: 0.2rem; text-align: left; min-width: 13.5rem;
  padding: 0.75rem 1.4rem 0.8rem;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-label { font: 600 0.66rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.btn-value { font: 500 1.12rem/1.2 var(--mono); }
.btn-primary { background: var(--ice); color: #00141b; }
.btn-primary .btn-label { color: #1d4d5c; }
.btn-primary:hover { background: #c3ecf6; }
.btn-ghost { background: var(--pit); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost .btn-label { color: var(--dim); }
.btn-ghost:hover { background: #0e141b; }
.btn:active { transform: translateY(1px); }
.fineprint { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--dim); text-wrap: balance; }

/* ── the ledger below ──────────────────────────────────────── */
.band { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 7vw, 5rem); }
.split { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem 3rem; }
.split > * { min-width: 0; }
h2 {
  margin: 0; font: 700 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; color: #fff;
}
h2::before {                 /* one shard, the same angle as the logo's */
  content: ""; display: block; width: 2.4rem; height: 0.55rem; margin-bottom: 0.9rem;
  background: var(--ice); clip-path: polygon(0 100%, 30% 0, 100% 0, 70% 100%);
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 40rem; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--dim); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  font: 700 1.9rem/1.05 var(--display); color: var(--steel);
}
.steps li strong { display: block; font: 600 1.12rem/1.3 var(--display); letter-spacing: 0.01em; color: #fff; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.facts > div { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.facts > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.facts dt { font: 600 1.1rem/1.3 var(--display); letter-spacing: 0.01em; color: #fff; margin-bottom: 0.3rem; }
.facts dd { margin: 0; color: var(--dim); font-size: 1rem; }

.faq { max-width: 42rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font: 600 1.1rem/1.35 var(--display); color: #fff;
}
.faq details:first-child summary { padding-top: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--mono); color: var(--ice); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--dim); max-width: 38rem; }

.foot { border-top: 1px solid var(--line); padding-block: 1.75rem; color: var(--dim); font-size: 0.85rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot-row span:first-child { font: 700 0.95rem/1.4 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 1.15rem; }
  .btn { min-width: 0; flex: 1 1 13rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
