/* Broski — $BRO on Base
   Static styles. No framework. Version 2 (premium pass). */

:root {
  /* Colour */
  --bg: #ffffff;
  --paper: #f5f7fb;
  --ink: #090b13;
  --ink-2: #10142a;
  --muted: #586073;
  --line: #e3e7f0;
  --blue: #0052ff;
  --blue-deep: #0040cc;
  --blue-soft: #e9f0ff;
  --frog: #3fae2a;
  --on-blue: #ffffff;
  --on-ink: #ffffff;
  --wash: var(--paper);
  --surface: #ffffff;
  --dark: #090b13;
  --blue-ink: #0052ff;
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-bg-scrolled: rgba(255, 255, 255, 0.86);
  --dot: rgba(9, 11, 19, 0.11);
  --danger: #c4261d;

  /* Type */
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape and depth */
  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(9, 11, 19, 0.05), 0 2px 6px rgba(9, 11, 19, 0.04);
  --shadow-md: 0 2px 4px rgba(9, 11, 19, 0.04), 0 12px 32px -8px rgba(9, 11, 19, 0.14);
  --shadow-lg: 0 4px 8px rgba(9, 11, 19, 0.04), 0 32px 64px -16px rgba(0, 40, 140, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.035em;
  font-weight: 560;
  margin: 0;
}
h1 { line-height: 0.95; letter-spacing: -0.045em; }
h2 { line-height: 1.04; }
p { text-wrap: pretty; margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section-ink :focus-visible,
.section-blue :focus-visible { outline-color: #fff; }
::selection { background: var(--blue); color: var(--on-blue); }
section[id] { scroll-margin-top: 5.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1rem; border-radius: 999px;
  transition: top 150ms var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Layout */
.wrap { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 3rem; padding-inline: 1.35rem;
  border-radius: 999px; font-weight: 520; white-space: nowrap;
  transition: scale 150ms var(--ease), background-color 200ms ease, color 200ms ease,
              box-shadow 250ms var(--ease);
}
.btn:active { scale: 0.96; }
.btn svg { width: 1rem; height: 1rem; transition: transform 250ms var(--ease); }
.btn:hover svg.arrow { transform: translate(2px, -2px); }

.btn-primary {
  background: var(--blue); color: var(--on-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 40, 140, 0.3),
              0 8px 20px -6px rgba(0, 82, 255, 0.55);
}
.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 40, 140, 0.3),
              0 12px 28px -6px rgba(0, 82, 255, 0.65);
}
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-on-blue { background: #fff; color: #090b13; box-shadow: 0 8px 24px -8px rgba(0, 20, 90, 0.5); }
.btn-on-blue:hover { background: #eef2fb; }
.btn-on-ink { color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-on-ink:hover { background: rgba(255, 255, 255, 0.1); }

.mark { display: inline-block; width: 1rem; height: 1rem; border-radius: 0.3rem; background: var(--blue); flex-shrink: 0; }
.mark-lg { width: 1.25rem; height: 1.25rem; }
.mark-sm { width: 0.75rem; height: 0.75rem; }
.mark-on-blue { background: var(--on-blue); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.eyebrow { font-size: 0.875rem; font-weight: 520; color: var(--muted); letter-spacing: -0.005em; }
.eyebrow-blue { color: var(--blue-ink); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2rem; padding-inline: 0.85rem; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-size: 0.8125rem; font-weight: 520;
}
.dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--frog);
  box-shadow: 0 0 0 0 rgba(63, 174, 42, 0.5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 174, 42, 0.5); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(63, 174, 42, 0); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-scrolled); }

.header-inner { display: flex; height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.03em; }
.logo-coin {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line), 0 4px 10px -2px rgba(0, 82, 255, 0.4);
}
.logo-coin img { width: 100%; height: 100%; object-fit: cover; }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-desktop a {
  font-size: 0.9375rem; color: var(--muted); padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-desktop a:hover { color: var(--ink); background: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-buy { display: none; height: 2.75rem; padding-inline: 1.15rem; font-size: 0.9375rem; }

.menu-toggle {
  display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle {
  display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  transition: background-color 200ms ease, scale 150ms var(--ease);
}
.theme-toggle:hover { background: var(--paper); }
.theme-toggle:active { scale: 0.94; }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile { display: none; border-top: 1px solid var(--line); padding: 0 1.5rem 1.25rem; background: var(--bg); }
.nav-mobile.is-open { display: block; animation: drop 250ms var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }
.nav-mobile a:not(.btn) {
  display: flex; height: 3.25rem; align-items: center;
  border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 520;
}
.nav-mobile .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-buy { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Hero */
.hero-bg { position: relative; isolation: isolate; overflow: clip; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(0, 82, 255, 0.14), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(63, 174, 42, 0.08), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
}

.hero { display: grid; gap: 3rem; padding-top: 3rem; padding-bottom: 4.5rem; align-items: center; }

.hero-copy, .hero-mosaic { min-width: 0; }
.hero-copy h1 { margin-top: 1.25rem; font-size: clamp(3.1rem, 9vw, 6.25rem); max-width: 11ch; }
.hero-copy .lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.1875rem; color: var(--muted); }

.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }

.ca-chip {
  margin-top: 1.75rem; display: flex; align-items: center; gap: 0.5rem;
  width: 100%; max-width: 32rem; padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.ca-chip .label { font-size: 0.8125rem; font-weight: 600; color: var(--blue-ink); flex-shrink: 0; }
.ca-chip code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 2.25rem; padding-inline: 0.9rem;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 0.8125rem; font-weight: 560; flex-shrink: 0;
  transition: background-color 200ms ease, scale 150ms var(--ease);
}
.copy-btn:hover { background: var(--blue); color: #fff; }
.copy-btn:active { scale: 0.95; }
.copy-btn svg { width: 0.9rem; height: 0.9rem; }
.copy-btn.is-copied { background: var(--frog); color: #fff; }

.hero-note { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--muted); max-width: 32rem; }

.hero-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.hero-portrait {
  position: relative; grid-column: 1 / -1; overflow: hidden;
  border-radius: var(--r-lg); background: var(--blue);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 40, 140, 0.25);
}
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: 50% 30%; }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 35%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); border-radius: inherit;
}

.tile {
  position: relative; aspect-ratio: 1.25; border-radius: var(--r-md); padding: 1.1rem;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), transparent 45%);
}
.tile-blue { background: var(--blue); color: var(--on-blue); box-shadow: 0 20px 40px -18px rgba(0, 82, 255, 0.7); }
.tile-ink { background: var(--ink-2); color: var(--on-ink); box-shadow: 0 20px 40px -18px rgba(9, 11, 19, 0.7); }
.tile .label { font-size: 0.8125rem; font-weight: 520; opacity: 0.8; }
.tile .value { margin-top: 0.25rem; font-size: 1.75rem; font-weight: 560; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tile-ink .value { font-size: 2rem; }
.tile-coin { width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.tile-coin img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 7fr 5fr; padding-top: 4.5rem; padding-bottom: 6rem; gap: 3.5rem; }
  .tile .value { font-size: 1.85rem; }
  .tile-ink .value { font-size: 1.85rem; }
}

/* One orchestrated load sequence for the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-mosaic > * { animation: rise 900ms var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 60ms; }
  .hero-copy > :nth-child(2) { animation-delay: 140ms; }
  .hero-copy > :nth-child(3) { animation-delay: 240ms; }
  .hero-copy > :nth-child(4) { animation-delay: 320ms; }
  .hero-copy > :nth-child(5) { animation-delay: 400ms; }
  .hero-copy > :nth-child(6) { animation-delay: 460ms; }
  .hero-mosaic > :nth-child(1) { animation-delay: 200ms; }
  .hero-mosaic > :nth-child(2) { animation-delay: 380ms; }
  .hero-mosaic > :nth-child(3) { animation-delay: 480ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* Ticker */
.ticker {
  overflow: hidden; background: var(--dark); color: var(--on-ink);
  padding-block: 0.9rem; font-size: 0.9375rem; font-weight: 520;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-wrap { background: var(--dark); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 0.85rem; padding-right: 2.5rem; white-space: nowrap; }
.ticker-item .sep { width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--blue); }
.ticker-coin { width: 1.5rem; height: 1.5rem; border-radius: 50%; overflow: hidden; background: #fff; flex-shrink: 0; }
.ticker-coin img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .dot { animation: none; }
  .btn:active, .copy-btn:active { scale: 1; }
}

/* Facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fact { padding: 2rem 1.25rem; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-left: 0; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(n + 3) { border-bottom: none; }
.fact dt { font-size: 0.875rem; font-weight: 520; color: var(--muted); }
.fact dd { margin: 0.6rem 0 0; font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact .note { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); letter-spacing: 0; font-weight: 400; display: block; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: none; border-right: 1px solid var(--line); padding: 2.75rem 2rem; }
  .fact:first-child { padding-left: 0; }
  .fact:nth-child(odd):not(:first-child) { padding-left: 2rem; }
  .fact:last-child { border-right: none; }
}

/* Sections */
.section { padding-block: 5rem; border-top: 1px solid var(--line); }
.section-wash { background: var(--wash); }
.section-ink {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--dark); color: var(--on-ink); border-top: none;
}
.section-ink::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(0, 82, 255, 0.45), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(0, 82, 255, 0.18), transparent 70%);
}
.section-ink .muted { color: rgba(255, 255, 255, 0.68); }
.section-ink .eyebrow { color: rgba(255, 255, 255, 0.68); }
.section-ink .eyebrow-blue { color: #7fa6ff; }

.section-blue { position: relative; isolation: isolate; overflow: clip; background: var(--blue); color: var(--on-blue); border-top: none; padding-block: 5rem; }
.section-blue::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, rgba(0, 30, 120, 0.4), transparent 70%);
}
.section-blue .eyebrow { color: rgba(255, 255, 255, 0.8); }

.section-grid { display: grid; gap: 2.5rem; }

@media (min-width: 768px) {
  .section { padding-block: 7.5rem; }
  .section-blue { padding-block: 6rem; }
  .section-grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section-grid-about { grid-template-columns: 4fr 1fr 7fr; }
  .section-grid-about .about-body { grid-column: 3; }
  .section-grid-faq { grid-template-columns: 4fr 1fr 7fr; }
  .section-grid-faq .faq-list { grid-column: 3; }
}

.section h2 { margin-top: 0.75rem; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.lead { margin-top: 1.1rem; font-size: 1.125rem; color: var(--muted); max-width: 38rem; }
.section-ink .lead { color: rgba(255, 255, 255, 0.72); }
.section-blue .lead { color: rgba(255, 255, 255, 0.85); }

.about-body p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 440; }
.about-body p + p { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--muted); letter-spacing: 0; font-weight: 400; line-height: 1.6; max-width: 36rem; }

/* Cards row, with a pointer-following spotlight */
.cards {
  display: grid; gap: 1px; margin-top: 4rem; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--line);
  box-shadow: var(--shadow-sm);
}
.card { position: relative; background: var(--surface); padding: 1.75rem; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(0, 82, 255, 0.09), transparent 70%);
}
.card:hover::before { opacity: 1; }
.card .num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.7rem;
  background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: 0.9375rem;
}
.card h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.card p { margin-top: 0.75rem; color: var(--muted); }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 2.25rem; }
}

/* Token */
.token-box {
  margin-top: 2rem; border-radius: var(--r-md); padding: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.token-box .addr { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.9375rem; word-break: break-all; line-height: 1.5; }
.token-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.token-actions .btn { height: 2.75rem; font-size: 0.9375rem; }

.token-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.token-meta dt { font-size: 0.875rem; color: rgba(255, 255, 255, 0.62); }
.token-meta dd { margin: 0.4rem 0 0; font-weight: 520; font-size: 1.0625rem; }
.token-meta a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); transition: text-decoration-color 150ms ease; }
.token-meta a:hover { text-decoration-color: #fff; }

.chart-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 24rem; border-radius: var(--r-lg); padding: 1.75rem; color: var(--on-ink);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  isolation: isolate;
}
.chart-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background: url("images/0x69420.jpeg") center / cover;
}
.chart-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 11, 19, 0.35) 0%, rgba(9, 11, 19, 0.92) 85%);
}
.chart-panel h3 { margin-top: 1rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.chart-panel p { margin-top: 0.75rem; max-width: 24rem; color: rgba(255, 255, 255, 0.78); }
.chart-panel .btn { margin-top: 2rem; width: fit-content; }

.panel-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 1.9rem; padding-inline: 0.8rem;
  border-radius: 999px; font-size: 0.8125rem; font-weight: 520;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.badge svg { width: 0.85rem; height: 0.85rem; color: #6ee05a; }

/* Steps */
.steps { display: grid; gap: 1rem; margin-top: 3.5rem; counter-reset: step; }
.step {
  position: relative; padding: 1.75rem; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.step .num {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9375rem;
}
.step h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.step p { margin-top: 0.75rem; color: var(--muted); }
.step p strong { color: var(--ink); font-weight: 560; }
.steps-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }
.steps-warn { margin-top: 1.5rem; max-width: 40rem; font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .steps-actions { flex-direction: row; }
}

/* Community */
.community-head { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) {
  .community-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .community-head .aside { max-width: 20rem; text-align: right; }
}
.community-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.community-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
  transition: padding 350ms var(--ease), background-color 250ms ease;
}
.community-list a:hover { padding-inline: 1rem; background: var(--paper); }
.community-list .lead-in { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.community-list .ico { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.community-list .ico img { width: 100%; height: 100%; object-fit: cover; }
.community-list .name { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 540; letter-spacing: -0.03em; }
.community-list .hint { display: none; font-size: 0.9375rem; color: var(--muted); }
.community-list .arrow { width: 1.35rem; height: 1.35rem; transition: transform 250ms var(--ease), color 200ms ease; flex-shrink: 0; }
.community-list a:hover .arrow { transform: translate(3px, -3px); color: var(--blue-ink); }
@media (min-width: 640px) {
  .community-list .hint { display: inline; }
  .community-list .meta { display: flex; align-items: center; gap: 1rem; }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.4rem; text-align: left; font-size: 1.1875rem; font-weight: 520; letter-spacing: -0.015em;
  transition: color 150ms ease;
}
.faq-q:hover { color: var(--blue-ink); }
.faq-q svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; transition: transform 300ms var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--blue-ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 1.4rem; padding-right: 2.5rem; color: var(--muted); max-width: 40rem; }
.faq-a a, .link-blue { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Security */
.checks { display: grid; gap: 1px; margin-top: 3.5rem; overflow: hidden; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.14); }
.check {
  position: relative; isolation: isolate; background: var(--dark);
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 9.5rem;
  transition: background-color 250ms ease;
}
.check::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 50%), rgba(0, 82, 255, 0.28), transparent 70%);
}
.check:hover::before { opacity: 1; }
.check-top { display: flex; align-items: center; justify-content: space-between; }
.check .logo-sq { width: 2.5rem; height: 2.5rem; border-radius: 0.7rem; overflow: hidden; background: #fff; }
.check .logo-sq img { width: 100%; height: 100%; object-fit: contain; }
.check .out { width: 1.25rem; height: 1.25rem; color: rgba(255, 255, 255, 0.55); transition: transform 250ms var(--ease), color 200ms ease; }
.check:hover .out { transform: translate(3px, -3px); color: #fff; }
.check .name { display: block; font-size: 1.25rem; font-weight: 540; letter-spacing: -0.02em; }
.check .hint { display: block; margin-top: 0.25rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.68); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .checks { grid-template-columns: repeat(3, 1fr); } }

.security-note { margin-top: 2rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.68); max-width: 44rem; }
.security-note a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); }

/* Close band */
.close-band { display: flex; flex-direction: column; gap: 2.5rem; }
.close-band h2 { max-width: 14ch; font-size: clamp(2.5rem, 6.5vw, 4.75rem); line-height: 0.98; letter-spacing: -0.045em; margin-top: 0.75rem; }
.close-band .lead { max-width: 28rem; }
.close-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .close-actions { flex-direction: row; } }
@media (min-width: 900px) {
  .close-band { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.03em; }
.footer-copy { margin-top: 0.9rem; max-width: 30rem; font-size: 0.875rem; color: var(--muted); }
.footer-copy span { font-family: var(--mono); color: var(--ink); font-size: 0.8125rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.footer-meta a { color: var(--muted); transition: color 150ms ease; }
.footer-meta a:hover { color: var(--blue-ink); }
.footer-fine { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); max-width: 52rem; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-meta { max-width: 30rem; justify-content: flex-end; }
}

/* Copy toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100;
  translate: -50% 1rem; opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: var(--bg); padding: 0.8rem 1.2rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 520; box-shadow: var(--shadow-md);
  transition: opacity 250ms ease, translate 350ms var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }
.toast svg { width: 1rem; height: 1rem; color: #6ee05a; }

/* Contact page */
.contact-grid { display: grid; gap: 3rem; padding-block: 4rem; }
.contact-grid h1 { margin-top: 0.75rem; font-size: clamp(2.75rem, 7vw, 4.5rem); }
.contact-grid .lead { margin-top: 1.25rem; max-width: 28rem; }
.contact-email { margin-top: 2rem; font-family: var(--mono); font-size: 0.9375rem; }
.contact-email a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.contact-email a:hover { text-decoration-color: var(--blue); }
.contact-actions { margin-top: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem; font-size: 0.9375rem; color: var(--muted); transition: color 150ms ease; }
.back-link:hover { color: var(--ink); }

.contact-form {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
}
.contact-form label { display: block; font-size: 0.9375rem; font-weight: 540; }
.contact-form input,
.contact-form textarea {
  margin-top: 0.5rem; width: 100%; border: 0; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); color: var(--ink);
  padding: 0.85rem 1rem; font: inherit;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; background: var(--bg); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(0, 82, 255, 0.14); }
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form .btn { width: 100%; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 0.9375rem; min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }
.contact-success { border-radius: var(--r-lg); padding: 2rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.contact-success h2 { font-size: 1.75rem; }
.contact-success p { margin-top: 0.75rem; color: var(--muted); }
.contact-success .btn { margin-top: 1.5rem; }
[hidden] { display: none !important; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 5fr 1fr 6fr; padding-block: 6.5rem; }
  .contact-form-wrap { grid-column: 3; }
  .contact-form, .contact-success { padding: 2.25rem; }
}

/* 404 */
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem 1.5rem; }
.not-found .coin { width: 7rem; height: 7rem; margin: 0 auto 2rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line), var(--shadow-lg); }
.not-found .coin img { width: 100%; height: 100%; object-fit: cover; }
.not-found h1 { font-size: clamp(3rem, 10vw, 6rem); }
.not-found p { margin: 1.25rem auto 0; max-width: 28rem; color: var(--muted); font-size: 1.125rem; }
.not-found .btn { margin-top: 2rem; }

/* Dark mode
   Applied by [data-theme="dark"] on <html>. Set before first paint by the inline
   script in each page's <head>, and changed by the header toggle. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06070d;
  --surface: #0f1222;
  --paper: #0b0d19;
  --ink: #eef1fa;
  --muted: #9aa3b9;
  --line: #1e2338;
  --blue-ink: #6f9cff;
  --blue-soft: rgba(0, 82, 255, 0.2);
  --dark: #03040a;
  --header-bg: rgba(6, 7, 13, 0.7);
  --header-bg-scrolled: rgba(6, 7, 13, 0.88);
  --dot: rgba(255, 255, 255, 0.09);
  --danger: #ff8078;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.4), 0 32px 64px -16px rgba(0, 82, 255, 0.45);
}

html[data-theme="dark"] .hero-bg::before {
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(0, 82, 255, 0.28), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(63, 174, 42, 0.1), transparent 70%);
}
html[data-theme="dark"] .section-ink { border-top: 1px solid var(--line); }
html[data-theme="dark"] .ticker-wrap { border-block: 1px solid var(--line); }
html[data-theme="dark"] .tile-ink { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -18px rgba(0, 0, 0, 0.8); }
html[data-theme="dark"] .btn-primary:hover { background: #1a66ff; }
html[data-theme="dark"] .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
html[data-theme="dark"] .card::before { background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(0, 82, 255, 0.2), transparent 70%); }
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(0, 82, 255, 0.28); }
html[data-theme="dark"] .hero-portrait { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .community-list a:hover { background: var(--surface); }

/* Smooth cross-fade only while the toggle is used */
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, fill 300ms ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
}
