/* Dartboard Capital — base tokens, type, buttons, nav.
   One committed look: fight-night poster on banana stock. */

:root {
  --banana: #FFD23F;
  --banana-deep: #F2B705;
  --ink: #17140C;
  --ink-2: #2A2517;
  --ink-soft: #5A4F33;
  --chalk: #FFF3C4;
  --red: #E0301E;
  --blue: #1F3BFF;
  --navy: #0B1A6B;
  --navy-2: #13248A;
  --blue-lite: #A9B8FF;
  --red-lite: #FF7A66;
  --banana-lite: #FFE17A;

  --f-slab: "Alfa Slab One", "Rockwell Extra Bold", "Rockwell", "Noto Sans SC", Georgia, serif;
  --f-body: "Archivo", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-cjk-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* type scale (1.25) */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: clamp(2rem, 4.2vw, 3.25rem);
  --t-3xl: clamp(2.6rem, 6.5vw, 5.2rem);

  --edge: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --pad-x: clamp(1rem, 4vw, 3.5rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--banana);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* halftone print texture on banana grounds */
.hero, .round, .token, .faq {
  background-color: var(--banana);
  background-image: radial-gradient(rgba(23, 20, 12, 0.13) 1px, transparent 1.5px);
  background-size: 7px 7px;
}

img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

h2 {
  font-family: var(--f-slab);
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--f-body);
  font-stretch: 75%;
  font-weight: 850;
  font-size: var(--t-xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.neg { color: var(--red); }

a { color: inherit; }

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

/* ---------- section scaffolding ---------- */
main > section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad-x);
  border-bottom: var(--edge);
}

.sec-head {
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  display: grid;
  gap: 1rem;
}
.sec-head--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
}
.sec-head .sec-lede { max-width: 60ch; }
.sec-lede { font-size: var(--t-lg); line-height: 1.5; }

.kicker {
  font-family: var(--f-body);
  font-stretch: 62%;
  font-weight: 800;
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 1.9rem;
  height: 3px;
  background: currentColor;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--chalk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--bg);
  color: var(--fg);
  border: var(--edge);
  box-shadow: var(--shadow-sm);
  font-family: var(--f-body);
  font-stretch: 75%;
  font-weight: 850;
  font-size: var(--t-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: var(--shadow-sm); }
.btn--big { padding: 0.95rem 1.6rem; font-size: var(--t-lg); }
.btn--ink { --bg: var(--ink); --fg: var(--banana); }
.btn--red { --bg: var(--red); --fg: var(--chalk); }
.btn--paper { --bg: var(--chalk); --fg: var(--ink); }
.btn--chalk { --bg: var(--chalk); --fg: var(--navy); }

/* ---------- wire (top marquee) ---------- */
.wire {
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
  border-bottom: var(--edge);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wire__track {
  display: flex;
  width: max-content;
  gap: 1.4rem;
  padding: 0.5rem 0;
  animation: wire 96s linear infinite;
}
.wire__track span { white-space: nowrap; }
.wire__track b { color: var(--banana); font-weight: 700; }
.wire__track b.neg { color: #FF7A66; }
.wire__track i { font-style: normal; color: var(--red); }
@keyframes wire { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem var(--pad-x);
  background: var(--banana);
  border-bottom: var(--edge);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__name {
  font-family: var(--f-slab);
  font-size: 1.05rem;
  line-height: 0.95;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--t-sm);
}
.nav__links a { text-decoration: none; padding: 0.2rem 0; border-bottom: 3px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

/* both halves share one fixed height and centre their label, so Latin and CJK line boxes can't drift apart */
.lang {
  display: inline-flex;
  align-items: stretch;
  height: 2.25rem;
  padding: 0;
  border: var(--edge);
  background: var(--chalk);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: var(--t-sm);
  line-height: 1;
}
.lang span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0 0.6rem;
  white-space: nowrap;
}
/* X link: same height and edge as the language toggle so the pair lines up */
.xbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: var(--edge);
  background: var(--chalk);
  color: var(--ink);
  transition: background 0.12s ease, color 0.12s ease;
}
.xbtn svg { width: 1rem; height: 1rem; fill: currentColor; }
.xbtn:hover { background: var(--ink); color: var(--banana); }

html[lang="en"] .lang [data-lang="en"],
html[lang="zh-CN"] .lang [data-lang="zh"] { background: var(--ink); color: var(--banana); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 2px solid currentColor;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- Chinese: slab has no CJK glyphs, so swap to a heavy sans ---------- */
html[lang="zh-CN"] h2,
html[lang="zh-CN"] .hero__title,
html[lang="zh-CN"] .corners h2 {
  font-family: var(--f-cjk-display);
  font-weight: 900;
  letter-spacing: 0;
}
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .btn,
html[lang="zh-CN"] .kicker { letter-spacing: 0.02em; }
/* break Chinese headlines at phrase boundaries (punctuation, spaces, zero-width spaces), never mid-word */
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .hero__lede,
html[lang="zh-CN"] .hero__eyebrow,
html[lang="zh-CN"] .verdict__line {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .sec-head--split { grid-template-columns: 1fr; }
}

/* phones: the hero already carries the buy button, so the nav keeps only brand + language */
@media (max-width: 560px) {
  .nav { gap: 0.75rem; }
  .nav__actions .btn { display: none; }
  .brand__mark { width: 36px; }
  .brand__name { font-size: 0.9rem; }
}
/* the smallest phones keep the logo, X and language; the wordmark steps aside */
@media (max-width: 360px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
