/* ==========================================================
   infiniFi (INFI) — Token & Deployment overview
   Light editorial theme matching infiniFi's brand language:
   teal #1a7271 / dark teal #003133 / sand #f1c182 / mint #72c9b6,
   Lora (serif display) + TASA Orbiter (sans body).
   Fonts are self-hosted; both are SIL Open Font License families.
   ========================================================== */

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter";
  src: url("../assets/fonts/tasa-orbiter-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks to limit layout shift while fonts load */
@font-face {
  font-family: "TASA Orbiter Fallback";
  src: local("Arial");
  ascent-override: 89.86%;
  descent-override: 24.85%;
  line-gap-override: 0%;
  size-adjust: 104.61%;
}
@font-face {
  font-family: "Lora Fallback";
  src: local("Georgia");
  ascent-override: 95.74%;
  descent-override: 26.08%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

:root {
  color-scheme: light;

  /* Brand */
  --primary: #1a7271;
  --primary-strong: #01575a;
  --primary-dark: #003133;
  --primary-tint: rgba(26, 114, 113, 0.08);
  --primary-tint-2: rgba(26, 114, 113, 0.14);
  --sand: #f1c182;
  --sand-light: #ffe4c2;
  --mint: #72c9b6;
  --mint-light: #bdfff1;
  --gold-text: #7a5410;

  /* Surfaces */
  --bg: #f8f8f9;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --surface-3: #f1f4f4;
  --surface-soft: #f4f0ea;
  --surface-sand: #eee8da;
  --sand-border: #ddd3c0;
  --border: rgba(20, 19, 27, 0.09);
  --border-strong: rgba(20, 19, 27, 0.16);
  --shadow: 0 1px 2px rgba(20, 19, 27, 0.04), 0 8px 24px rgba(20, 19, 27, 0.04);

  /* Ink */
  --text: #14131b;
  --text-2: rgba(20, 19, 27, 0.72);
  --muted: #6d645b;

  /* Status (always paired with an icon + label) */
  --good: #1a7271;
  --warning: #a27f2a;
  --critical: #a53d3d;

  /* Chart slots (brand-derived; alternate dark/light for separation) */
  --series-1: #1a7271;
  --series-2: #f1c182;
  --series-3: #003133;
  --series-4: #72c9b6;

  /* Type */
  --font-sans: "TASA Orbiter", "TASA Orbiter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Lora", "Lora Fallback", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary-strong);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.accent { color: var(--primary); }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--surface-sand);
  border-bottom: 1px solid var(--sand-border);
  color: #4f4940;
  font-size: 13px;
  text-align: center;
  padding: 8px var(--gutter);
}
.notice-bar strong { color: var(--text); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(248, 248, 249, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.wordmark span { color: var(--primary-strong); }
.brand .ticker {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(26, 114, 113, 0.3);
  background: var(--primary-tint);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.4;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: 8px 11px;
  border-radius: 4px;
  color: #4a4953;
  font-size: 15px;
}
.nav-list a:hover { color: var(--primary); text-decoration: none; }
.nav-list a.is-active { color: var(--primary); background: var(--primary-tint); }
.nav-list a.nav-cta {
  margin-left: 10px;
  padding: 10px 16px;
  color: #f8f8f9;
  background: var(--primary-strong);
  font-weight: 500;
}
.nav-list a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20, 19, 27, 0.06);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px; font-size: 16px; }
  .nav-list a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary-strong); color: #f8f8f9; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: rgba(26, 114, 113, 0.4); }
.btn-ghost:hover { background: var(--primary-tint); }
.btn-sm { min-height: 34px; padding: 7px 12px; font-size: 14px; gap: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--surface); }
.section-soft { background: var(--surface-soft); }

.section-head { max-width: 780px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; color: var(--text); }
.section-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); margin: 0; }

.subhead {
  font-size: 22px;
  font-weight: 600;
  margin: 60px 0 20px;
}

/* Dark teal band (mirrors the brand's "How infiniFi works" section) */
.section-dark {
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.1);
  --text: #f8f8f9;
  --text-2: rgba(232, 238, 237, 0.86);
  --muted: rgba(214, 228, 226, 0.74);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --primary: var(--mint);
  --shadow: none;
  color: var(--text);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(114, 201, 182, 0.12), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(241, 193, 130, 0.08), transparent 60%),
    var(--primary-dark);
}
.section-dark .section-title { color: var(--sand-light); }
.section-dark .eyebrow { color: var(--mint); }
.section-dark .subhead { color: var(--sand-light); }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  background: var(--surface);
  white-space: nowrap;
  line-height: 1.3;
}
.pill-accent { color: var(--primary); border-color: rgba(26, 114, 113, 0.3); background: var(--primary-tint); }
.pill-dark { color: var(--sand-light); border-color: var(--primary-dark); background: var(--primary-dark); }
.pill-warning { color: var(--gold-text); border-color: var(--sand); background: #fdf3e3; }
.section-dark .pill-accent { color: var(--mint); border-color: rgba(114, 201, 182, 0.4); background: rgba(114, 201, 182, 0.1); }

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background: var(--bg);
}
.hero::before {
  /* original topographic contour texture */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 88% 18%, transparent 0 26px, rgba(20, 19, 27, 0.045) 26px 27px),
    repeating-radial-gradient(circle at 6% 96%, transparent 0 30px, rgba(20, 19, 27, 0.035) 30px 31px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(114, 201, 182, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1;
  color: var(--primary);
  margin-bottom: 22px;
}
.hero h1 .h1-sub {
  display: block;
  color: var(--text);
}
.hero .lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Token visual */
.hero-visual { display: flex; justify-content: center; }
.orb {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
}
.orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 114, 113, 0.22);
}
.orb .ring-2 { inset: 14%; border-color: rgba(26, 114, 113, 0.3); border-style: dashed; }
.orb .ring-3 { inset: 28%; border-color: rgba(114, 201, 182, 0.55); }
.orb-token {
  position: absolute;
  left: 50%; top: 50%;
  width: 40%;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 24px 50px rgba(0, 49, 51, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.85);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}
.orb-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px rgba(20, 19, 27, 0.08);
  white-space: nowrap;
}
.orb-chip.chip-a { left: 2%; top: 30%; color: #3d4a4a; }
.orb-chip.chip-b { right: 0; top: 18%; color: var(--primary); }
.orb-chip.chip-c { right: 8%; bottom: 14%; color: var(--gold-text); }
.orb-chip.chip-d { left: 12%; bottom: 8%; color: var(--primary-dark); background: var(--sand-light); border-color: var(--sand); }

/* Stats strip */
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats .stat { background: var(--surface); border: 0; border-radius: 0; box-shadow: none; }

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
  color: var(--text);
}
.stat-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Overview ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card { display: flex; flex-direction: column; gap: 8px; }
.compare .card.soft { background: var(--surface-soft); border-color: var(--sand-border); box-shadow: none; }
.compare .card-kicker { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.compare .card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; }
.compare .card.highlight { border-color: rgba(26, 114, 113, 0.35); box-shadow: 0 0 0 4px rgba(26, 114, 113, 0.06), var(--shadow); }
.compare .card.highlight .card-kicker { color: var(--primary); }

.feature-list { display: grid; gap: 12px; margin-top: 4px; }
.feature-list li { display: flex; gap: 10px; color: var(--text-2); }
.feature-list .icon { color: var(--primary); margin-top: 3px; }
.feature-list strong { color: var(--text); }

/* ---------- Token cards (iUSD / siUSD / liUSD) ---------- */
.token-card { position: relative; overflow: hidden; }
.token-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
}
.token-card .token-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--surface-3);
  color: var(--card-accent, var(--primary));
}
.token-card h3 { color: var(--text); }
.token-card dl { margin: 18px 0 0; display: grid; gap: 8px; }
.token-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-top: 1px solid var(--border); padding-top: 9px; }
.token-card dt { color: var(--muted); }
.token-card dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- Flow diagram ---------- */
.flow {
  display: grid;
  grid-template-columns: auto 40px auto 40px auto 40px 1fr;
  align-items: center;
  padding: 30px;
}
.flow-node {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  min-width: 116px;
}
.flow-node strong { display: block; font-size: 15.5px; }
.flow-node span { display: block; font-size: 13px; color: var(--muted); }
.flow-node.is-key { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(114, 201, 182, 0.14); }
.flow-arrow { color: var(--muted); display: flex; justify-content: center; }
.flow-arrow svg { width: 28px; height: 16px; }
.flow-branches { display: grid; gap: 10px; }
.flow-branch {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 10px;
}
.flow-branch .verb {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-branch .verb::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.flow-branch .flow-node { text-align: left; }

@media (max-width: 920px) {
  .flow { grid-template-columns: 1fr; justify-items: stretch; gap: 8px; padding: 20px; }
  .flow-arrow { transform: rotate(90deg); height: 28px; align-items: center; }
  .flow-node { min-width: 0; }
  .flow-branch { grid-template-columns: 88px 1fr; }
}

/* ---------- Loss waterfall ---------- */
.waterfall { display: grid; gap: 10px; }
.wf-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.wf-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface-3);
  color: var(--text);
}
.wf-row strong { display: block; }
.wf-row span { font-size: 13.5px; color: var(--muted); }
.wf-row .wf-tag { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.wf-row.first { border-color: rgba(241, 193, 130, 0.55); }
.wf-row.first .wf-rank { background: var(--sand); color: var(--primary-dark); }
@media (max-width: 520px) {
  .wf-row { grid-template-columns: 32px 1fr; }
  .wf-row .wf-tag { grid-column: 2; }
}

/* ---------- Segmented allocation bar ---------- */
.alloc-card { display: flex; flex-direction: column; gap: 20px; }
.seg-bar {
  display: flex;
  gap: 2px;                 /* 2px surface gap between parts */
  height: 28px;             /* tall segmented bar: 28px, never more */
  width: 100%;
}
.seg {
  position: relative;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: default;
  outline-offset: 2px;
  transition: filter .12s ease;
  min-width: 0;
}
.seg:hover, .seg:focus-visible { filter: brightness(1.08) saturate(1.05); }
.seg.on-light { color: #14131b; }
.seg-label { white-space: nowrap; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }

.alloc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.alloc-table th, .alloc-table td { text-align: left; padding: 11px 0; border-top: 1px solid var(--border); }
.alloc-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; padding-top: 0; }
.alloc-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; padding-right: 16px; }
.alloc-table th.num { text-align: right; padding-right: 16px; }
.alloc-table .name-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.alloc-table .note { color: var(--muted); }
@media (max-width: 520px) { .alloc-table .col-note { display: none; } }

.chart-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(20, 19, 27, 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .1s ease, transform .1s ease;
  max-width: 240px;
}
.chart-tooltip.is-visible { opacity: 1; transform: none; }
.chart-tooltip .tt-value { font-size: 18px; font-weight: 700; color: var(--text); }
.chart-tooltip .tt-name { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.chart-tooltip .tt-key { width: 14px; height: 3px; border-radius: 2px; }
.chart-tooltip .tt-note { color: var(--muted); margin-top: 4px; }

.list-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.check-list .icon { margin-top: 3px; }
.check-list .is-done .icon { color: var(--good); }
.check-list .is-pending .icon { color: var(--warning); }

/* ---------- Deployment ---------- */
.status-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 30px;
  border-color: var(--sand-border);
  background: linear-gradient(160deg, #fbf7f0 0%, #ffffff 55%);
}
@media (max-width: 860px) { .status-card { grid-template-columns: 1fr; } }
.status-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.status-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.status-card .token-line { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.status-card .token-line img { width: 48px; height: 48px; }
.status-card .token-line h3 { margin: 0; }
.kv { display: grid; gap: 0; margin: 18px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

.warning-box {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--sand);
  background: #fdf6ea;
  color: #4f4940;
  font-size: 14.5px;
}
.warning-box .icon { color: var(--warning); margin-top: 2px; }
.warning-box strong { color: var(--text); }

.steps { display: grid; gap: 0; }
.steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  color: var(--text-2);
}
.steps li + li { border-top: 1px dashed var(--border-strong); }
.steps .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}
.steps .is-done .dot { border-color: var(--primary); background: var(--primary-tint-2); color: var(--primary); }
.steps .is-done .dot svg { width: 12px; height: 12px; }
.steps .is-done { color: var(--text); }
.steps .state { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.steps .is-done .state { color: var(--primary); font-weight: 500; }

.chain-card { display: flex; flex-direction: column; gap: 10px; }
.chain-card .chain-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chain-card .chain-name { display: flex; align-items: center; gap: 10px; }
.chain-card .chain-name h3 { margin: 0; font-size: 18px; }
.chain-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: #fff;
  flex: none;
}
.chain-card p { color: var(--text-2); font-size: 14.5px; margin: 0; flex: 1; }
.chain-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chain-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Contracts explorer ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.tab:hover { border-color: rgba(26, 114, 113, 0.45); color: var(--primary); }
.tab[aria-selected="true"] { background: var(--primary-strong); color: #f8f8f9; border-color: var(--primary-strong); }
.tab .count {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
}
.tab[aria-selected="true"] .count { background: rgba(255, 255, 255, 0.16); color: #fff; }

.contracts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 40px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search input:focus { border-color: var(--primary); outline: 2px solid var(--primary-tint-2); outline-offset: 0; }
.search input::placeholder { color: var(--muted); }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.explorer-note { font-size: 14px; color: var(--muted); }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contracts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.contracts-table th, .contracts-table td { padding: 12px 20px; text-align: left; vertical-align: middle; }
.contracts-table thead th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.contracts-table tbody tr + tr td { border-top: 1px solid var(--border); }
.contracts-table tbody tr:hover td { background: rgba(26, 114, 113, 0.03); }
.contracts-table .group-row td {
  background: var(--surface-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  padding-top: 9px;
  padding-bottom: 9px;
}
.contracts-table .c-name { font-weight: 600; white-space: nowrap; }
.contracts-table .c-addr { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2); word-break: break-all; }
.contracts-table .c-actions { white-space: nowrap; text-align: right; }
.contracts-table .c-actions .btn + .btn { margin-left: 6px; }
.contracts-empty { padding: 28px 18px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .contracts-table thead { display: none; }
  .contracts-table, .contracts-table tbody, .contracts-table tr, .contracts-table td { display: block; width: 100%; }
  .contracts-table tbody tr { padding: 12px 16px; }
  .contracts-table tbody tr + tr td { border-top: 0; }
  .contracts-table tbody tr + tr { border-top: 1px solid var(--border); }
  .contracts-table td { padding: 2px 0; }
  .contracts-table .group-row { padding: 0; }
  .contracts-table .group-row td { padding: 10px 16px; }
  .contracts-table .c-actions { text-align: left; padding-top: 8px; }
}

.source-line { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; max-width: 840px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--mint));
  opacity: .55;
}
.tl-item { position: relative; padding: 0 0 32px 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.tl-item.is-next .tl-dot {
  background: var(--sand);
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(241, 193, 130, 0.35);
}
.tl-date { font-size: 13.5px; font-weight: 600; color: var(--primary); letter-spacing: .02em; }
.tl-item.is-next .tl-date { color: var(--gold-text); }
.tl-title { font-family: var(--font-serif); font-weight: 400; font-size: 24px; margin: 2px 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-text { color: var(--text-2); margin: 0; font-size: 15.5px; }

/* ---------- Funding ---------- */
.round-card { display: flex; flex-direction: column; gap: 16px; }
.round-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.round-amount { font-family: var(--font-serif); font-size: 46px; line-height: 1; color: var(--primary-dark); }
.round-name { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--sand-border);
  color: #4f4940;
}
.chip.is-lead { color: var(--primary-strong); border-color: rgba(26, 114, 113, 0.35); background: var(--primary-tint); font-weight: 600; }

.team-card { display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  background: var(--primary-dark);
  color: var(--sand-light);
  flex: none;
}
.team-card strong { display: block; }
.team-card .role { display: block; font-size: 14px; color: var(--primary); font-weight: 500; }
.team-card p { font-size: 14.5px; color: var(--text-2); margin: 4px 0 0; }

/* ---------- Security ---------- */
.audit-card { display: flex; flex-direction: column; gap: 8px; }
.audit-card .audit-firm { font-family: var(--font-serif); font-size: 26px; line-height: 1.15; }
.audit-card .audit-type { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.audit-card p { color: var(--text-2); font-size: 15px; flex: 1; }

.gov-stats { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.faq details[open] { border-color: rgba(26, 114, 113, 0.35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 54px 19px 22px;
  font-weight: 500;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq .faq-body strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(232, 238, 237, 0.86);
  padding: 60px 0 40px;
  font-size: 15px;
}
.site-footer .wordmark { color: #f8f8f9; }
.site-footer .wordmark span { color: var(--mint); }
.site-footer .brand .ticker { color: var(--mint); border-color: rgba(114, 201, 182, 0.4); background: rgba(114, 201, 182, 0.1); }
.site-footer p { color: rgba(214, 228, 226, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--sand-light); margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(232, 238, 237, 0.86); }
.footer-links a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--mint); }
.disclaimer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}
.disclaimer p { margin-bottom: 8px; }
.disclaimer strong { color: var(--sand-light); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--primary-dark);
  color: #f8f8f9;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 49, 51, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--mint); }

/* ---------- Reveal on scroll (JS-enabled only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb-token { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Forced colors / high contrast: keep chart parts distinguishable */
@media (forced-colors: active) {
  .seg { border: 1px solid CanvasText; forced-color-adjust: none; }
}
