/* FTR Design System — Foundation
 * Tokens + base + components for the ftr.today marketing site.
 * Dark theme default. No gradients, no drop shadows. Pink glow only.
 */

/* ========== FONTS ========== */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap");

/* ========== COLOR TOKENS ========== */
:root {
  --pink: #FF00E5;
  --pink-bright: #FF4DEF;
  --pink-deep: #B800A6;

  --bg: #08080A;
  --surface: #101014;
  --card: #17171C;
  --card-2: #1E1E24;
  --hairline: #26262E;
  --hairline-2: #3A3A44;

  --text: #F6F6F8;
  --text-muted: #9A9AA6;
  --text-faint: #63636E;
  --text-on-pink: #08080A;

  --cyan: #00E5D4;
  --success: #2FE080;
  --warning: #FFB020;
  --danger: #FF4D57;

  --accent: var(--pink);
  --accent-hover: var(--pink-bright);
  --accent-press: var(--pink-deep);
  --link: var(--pink);
  --focus-ring: var(--pink);

  --bg-page: var(--bg);
  --surface-card: var(--card);
  --surface-raised: var(--surface);
  --border-default: var(--hairline);
  --border-strong: var(--hairline-2);

  --text-body: var(--text);
  --text-secondary: var(--text-muted);
  --text-tertiary: var(--text-faint);
}

/* ========== TYPOGRAPHY TOKENS ========== */
:root {
  --font-display: "Satoshi", "Satoshi Variable", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --w-regular: 400;
  --w-medium: 500;
  --w-bold: 700;
  --w-black: 900;

  --fs-display: clamp(3rem, 6vw, 5.5rem);
  --fs-h1: 3.25rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.125rem;

  --fs-lg: 1.125rem;
  --fs-md: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --fs-label: 0.75rem;
  --fs-label-sm: 0.6875rem;

  --track-wordmark: -0.10em;
  --track-tight: -0.03em;
  --track-normal: 0;
  --track-mono: 0.24em;

  --lh-tight: 1.02;
  --lh-heading: 1.08;
  --lh-body: 1.6;
  --lh-snug: 1.4;

  --text-display: var(--font-display);
  --text-eyebrow: var(--font-mono);
}

/* ========== SPACING / RADIUS TOKENS ========== */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --container: 1200px;
  --container-narrow: 820px;
  --gutter: 24px;

  --bw: 1px;
  --bw-2: 1.5px;
}

/* ========== EFFECTS TOKENS ========== */
:root {
  --glow-sm: 0 0 12px rgba(255, 0, 229, 0.35);
  --glow-md: 0 0 24px rgba(255, 0, 229, 0.45);
  --glow-lg: 0 0 48px rgba(255, 0, 229, 0.35);

  --ring: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--pink);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 280ms;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== ACCESSIBILITY ========== */
:where(a, button, input, select, textarea, [role="button"], [role="checkbox"],
       [role="radio"], [role="switch"], [role="tab"], [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}
:where(a, button, input, select, textarea):focus {
  outline-color: var(--pink);
}

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

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

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--pink);
  color: var(--text-on-pink);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 100;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* ========== LAYOUT ========== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 40px;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: var(--track-wordmark);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

.navitem {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.navitem:hover { color: var(--text); }
.navitem.active {
  color: var(--text-on-pink);
  background: var(--pink);
}

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 69px; left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  flex-direction: column;
  padding: 20px 24px 32px;
  gap: 6px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .navitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  font-size: 15px;
}
.mobile-drawer .navitem.active { color: var(--pink); background: transparent; }

@media (max-width: 860px) {
  .site-header { padding-left: 20px !important; padding-right: 20px !important; }
  .site-nav, .header-cta { display: none !important; }
  .nav-toggle { display: flex !important; }
  .header-cta.mobile-visible { display: flex !important; flex-direction: column; margin-left: 0; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--pink);
  color: var(--text-on-pink);
  border-color: var(--pink);
}
.btn-primary:hover { background: var(--pink-bright); border-color: var(--pink-bright); }

.btn-ghost {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}
.btn-ghost:hover { background: rgba(255, 0, 229, 0.08); }

.btn-neutral {
  background: var(--card);
  color: var(--text);
  border-color: var(--hairline);
}
.btn-neutral:hover { background: var(--card-2); border-color: var(--hairline-2); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

.btn-glow { box-shadow: var(--glow-sm); }
.btn-glow:hover { box-shadow: var(--glow-md); }

.btn-full { width: 100%; }

/* ========== BADGE ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

.badge-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--pink { color: var(--pink); border-color: rgba(255,0,229,0.25); }
.badge--cyan { color: var(--cyan); border-color: rgba(0,229,212,0.25); }
.badge--success { color: var(--success); border-color: rgba(47,224,128,0.25); }
.badge--warning { color: var(--warning); border-color: rgba(255,176,32,0.25); }
.badge--danger { color: var(--danger); border-color: rgba(255,77,87,0.25); }

/* ========== CARD ========== */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
}
.card--glow {
  border-color: var(--pink);
  box-shadow: var(--glow-sm);
}
.card--pad-lg { padding: 40px; }
.card--flush { padding: 0; overflow: hidden; }

/* ========== STAT ========== */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat__row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat__value--accent { color: var(--pink); }
.stat__value--sm { font-size: 1.5rem; }
.stat__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.stat__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: rgba(47,224,128,0.12);
  color: var(--success);
}

/* ========== SECTIONS ========== */
.section { padding: 88px 0; }
.section--tight { padding: 40px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ========== TYPOGRAPHY ========== */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--text);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: var(--lh-heading);
  margin: 0;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.lead {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.body--small { font-size: 14px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow--pink { color: var(--pink); }

.mono { font-family: var(--font-mono); }

/* ========== UTILITIES ========== */
.pink { color: var(--pink); }
.cyan { color: var(--cyan); }
.success { color: var(--success); }
.warning { color: var(--warning); }
.danger { color: var(--danger); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.gap-7 { gap: 48px; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mt-7 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }

.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

.maxw-560 { max-width: 560px; }
.maxw-620 { max-width: 620px; }
.maxw-720 { max-width: 720px; }
.maxw-900 { max-width: 900px; }

.text-center { text-align: center; }

.hr { height: 1px; background: var(--hairline); width: 100%; }

/* ========== GRID ========== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 40px 48px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 20px;
  line-height: 1.8;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--text-faint); text-decoration: underline; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-bottom { flex-direction: column; padding: 20px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8,8,10,0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-sm);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
}

/* ========== FORM ELEMENTS ========== */
.input, .select, .textarea {
  background: var(--card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: var(--glow-sm);
}
.textarea { min-height: 120px; resize: vertical; }

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* ========== TABLE ========== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--hairline);
}
.table tbody td {
  padding: 14px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-family: var(--font-mono); }

/* ========== CALL OUT / ALERT ========== */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--card);
}
.callout--pink {
  border-color: rgba(255,0,229,0.25);
  background: rgba(255,0,229,0.04);
}
.callout__ico {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== DISCLAIMER ========== */
.disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--card);
}
.disclaimer p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0;
  max-width: 900px;
}

/* ========== SPARKLINE CANVAS ========== */
.sparkline {
  width: 100%;
  height: 54px;
}

/* ========== PROGRESS BAR ========== */
.progress {
  height: 6px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: var(--pink);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease);
}
.progress__fill.cyan { background: var(--cyan); }
.progress__fill.success { background: var(--success); }

/* ========== SEGMENTED CONTROL ========== */
.seg {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 3px;
}
.seg button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg button.active {
  background: var(--pink);
  color: var(--text-on-pink);
}

/* ========== RANGE SLIDER ========== */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--glow-sm);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--glow-sm);
  cursor: pointer;
  border: 2px solid var(--bg);
}

/* ========== PILLAR ========== */
.pillar__k {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink);
}

/* ========== STATUS WIDGET ========== */
.status-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.status-widget:hover { border-color: var(--hairline-2); }
.status-widget__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}
.status-widget__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: ftrPing 2s cubic-bezier(0,0,0.2,1) infinite;
}
.status-widget__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status-widget__uptime {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

@keyframes ftrPing {
  0%   { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ========== TAG / CHIP ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tag:hover { background: var(--card-2); }
.tag--pink { background: var(--pink); color: var(--text-on-pink); border-color: var(--pink); }
.tag--cyan { background: rgba(0,229,212,0.12); color: var(--cyan); border-color: rgba(0,229,212,0.25); }
.tag--success { background: rgba(47,224,128,0.12); color: var(--success); border-color: rgba(47,224,128,0.25); }
.tag--neutral { background: var(--card-2); color: var(--text-muted); }

/* ========== ACCORDION ========== */
.accordion-item {
  border-bottom: 1px solid var(--hairline);
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
}
.accordion-trigger svg {
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
  color: var(--pink);
}
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur-slow) var(--ease);
}
.accordion-panel.open {
  max-height: 500px;
  padding-bottom: 18px;
}
.accordion-panel p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}

/* ========== CODE BLOCK ========== */
.codeblock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.codeblock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.codeblock__body {
  padding: 16px;
  overflow-x: auto;
  color: var(--text-muted);
}
.codeblock__body .kw { color: var(--pink); }
.codeblock__body .str { color: var(--cyan); }
.codeblock__body .cm { color: var(--text-faint); }
.codeblock__body .num { color: var(--success); }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PROVIDER BUTTON (wallet modal) ========== */
.provider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.provider:hover { border-color: var(--hairline-2); background: var(--surface); }

.dotmark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== LEGACY COMPATIBILITY UTILITIES ========== */
.grid-bg { background: radial-gradient(circle at 1px 1px, var(--hairline) 1px, transparent 0); background-size: 40px 40px; }
.card--hover { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--hover:hover { border-color: var(--hairline-2); transform: translateY(-2px); }
.card--pink { border-color: var(--pink); box-shadow: var(--glow-sm); }
.ml-auto { margin-left: auto; }
.flex-1 { flex: 1; }
.wrapf { flex-wrap: wrap; }
.center { text-align: center; }
.field-error { color: var(--danger); font-family: var(--font-mono); font-size: 12px; }
.stat__delta--cyan { background: rgba(0,229,212,0.12); color: var(--cyan); }

/* ========== SPINNER ========== */
.spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--pink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== SPINNER ========== */
.spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--pink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== DOC NAV ========== */
.doc-nav {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doc-nav__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-nav__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.doc-nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  margin-left: -10px;
  color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.doc-nav__link:hover { color: var(--text); }
.doc-nav__link.active {
  color: var(--text-on-pink);
  background: var(--pink);
  font-weight: 600;
}

/* ========== ROADMAP / TIMELINE ========== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline__entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding-bottom: 44px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .display { font-size: clamp(2.5rem, 7vw, 4.5rem); }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .display { font-size: clamp(2rem, 8vw, 3.5rem); }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .lead { font-size: 17px; }
  .stat__value { font-size: 1.75rem; }
  .card--pad-lg { padding: 24px; }
  .timeline__entry { grid-template-columns: 1fr; gap: 12px; }
}

/* ========== LEGACY COMPATIBILITY UTILITIES ========== */
.ico { width: 24px; height: 24px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke: currentColor; }
.mark { display:inline-flex; align-items:center; justify-content:center; background:var(--pink); color:var(--text-on-pink); border-radius:50%; font-family:var(--font-display); font-weight:900; }
.bdot { display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:6px; }
.small { font-size:14px; }
.h3 { font-family:var(--font-display); font-weight:900; font-size:var(--fs-h3); letter-spacing:-0.03em; }
.h4 { font-family:var(--font-display); font-weight:900; font-size:var(--fs-h4); letter-spacing:-0.03em; }
.fb-legal { font-family:var(--font-mono); font-size:11px; color:var(--text-faint); }
.beta-chip { display:inline-flex; align-items:center; padding:4px 10px; background:var(--card); border:1px solid var(--hairline); border-radius:var(--r-pill); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-left:8px; }

/* Accordion (legal.html) */
.acc { display:flex; flex-direction:column; }
.acc__item { border-bottom:1px solid var(--hairline); }
.acc__trigger { display:flex; align-items:center; justify-content:space-between; width:100%; padding:18px 0; background:none; border:none; color:var(--text); font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-0.02em; cursor:pointer; text-align:left; }
.acc__chev { transition:transform var(--dur) var(--ease); flex-shrink:0; color:var(--pink); }
.acc__trigger[aria-expanded=true] .acc__chev { transform:rotate(90deg); }
.acc__panel { max-height:0; overflow:hidden; transition:max-height var(--dur-slow) var(--ease); }
.acc__item.open .acc__panel { max-height:500px; padding-bottom:18px; }
.acc__body { font-family:var(--font-body); font-size:15px; line-height:1.6; color:var(--text-muted); max-width:640px; }
