/* The Aqueduct — LP-facing product page.
   Uses the Serenity design language (tokens, serif display, amber accent). */
:root {
  color-scheme: light;
  --bg: #fff;
  --paper: #f7f8fa;
  --ink: #2f343f;
  --text: #2f343f;
  --muted: #7d8490;
  --line: #e2e5ec;
  --line-strong: #c9ced8;
  --accent: #faaf3a;
  --accent-soft: #fff7e8;
  --good: #067647;
  --serif: "Noe Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.6 AvenirNext, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.08; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.tile-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fineprint { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.fineprint a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.fineprint a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(226, 229, 236, .8);
}
.lp-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lp-logo img { width: 138px; height: 54px; object-fit: contain; object-position: left center; }
.brand-link {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.brand-link:hover { color: var(--accent); }
.lp-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.lp-nav a:not(.btn) {
  color: var(--ink); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.lp-nav a:not(.btn):hover { color: var(--accent); }

/* Chinese build: the Latin serif/letter-spacing settings space CJK glyphs oddly,
   so fall back to system CJK faces and drop the tracking. */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 {
  font-family: "Noe Display", Georgia, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", serif;
}
:lang(zh) body,
:lang(zh) .eyebrow,
:lang(zh) .tile-label,
:lang(zh) .footer-label,
:lang(zh) .lp-nav a:not(.btn),
:lang(zh) .brand-link,
:lang(zh) .btn {
  font-family: AvenirNext, "Avenir Next", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
:lang(zh) .eyebrow,
:lang(zh) .tile-label,
:lang(zh) .footer-label,
:lang(zh) .lp-nav a:not(.btn),
:lang(zh) .brand-link,
:lang(zh) .chart-legend span { letter-spacing: .04em; }
:lang(zh) .btn { letter-spacing: .02em; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
}
.lang-switch a { color: var(--muted); text-transform: none; }
.lang-switch a:hover { color: var(--accent); }
.lang-current { color: var(--ink); }
.lang-switch::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 2px; border: 1px solid transparent;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(250, 175, 58, .9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(250, 175, 58, 1); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 14px; }

/* Hover note, e.g. the caveat on the DeBank link. */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0; top: calc(100% + 10px);
  z-index: 60;
  width: max(280px, 100%);
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 32px -14px rgba(47, 52, 63, .5);
  color: #3f4652;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-tip:hover::after, .has-tip:focus-visible::after {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ---------- Hero + NAV band ---------- */
.hero { padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin-top: 12px; }
.hero-lead {
  margin-top: 20px; max-width: 660px;
  color: #4a515d; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65;
}
.nav-band {
  margin-top: 38px;
  display: grid; grid-template-columns: minmax(230px, .8fr) 2.2fr; gap: 1px;
  border: 1px solid var(--line); background: var(--line);
}
.nav-primary { background: var(--accent-soft); padding: 26px 28px; }
.nav-figure {
  display: block; margin-top: 10px;
  font-family: var(--serif); font-size: clamp(38px, 5vw, 52px); line-height: 1; color: var(--ink);
}
.nav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.tile { background: #fff; padding: 20px 22px; min-width: 0; }
.tile strong {
  display: block; margin-top: 9px;
  font-family: var(--serif); font-size: 27px; line-height: 1.1; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile em, .nav-primary em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 12.5px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- Sections ---------- */
.section { padding: clamp(50px, 7vw, 88px) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }
.section-head p { margin-top: 16px; color: #4a515d; font-size: 16px; line-height: 1.65; }

/* ---------- Chart ---------- */
.chart-card { border: 1px solid var(--line); background: #fff; padding: 20px 20px 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }
.chart-legend span, .chart-tip span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.k-nav, .k-eth { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.k-nav { background: var(--accent); }
.k-eth { background: var(--line-strong); }
.chart-host { position: relative; width: 100%; }
.chart-host svg { display: block; overflow: visible; }
.axis-label { font-size: 10.5px; font-weight: 700; fill: var(--muted); font-family: inherit; }
.nav-axis { fill: #b8862a; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 132px; padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: #fff;
  box-shadow: 0 12px 26px -12px rgba(47, 52, 63, .5);
}
.chart-tip strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 12px; }
.chart-tip span { display: flex; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--ink); }
.chart-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.chart-error { padding: 40px; text-align: center; color: var(--muted); }

.compare { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compare-col { background: #fff; padding: 20px 22px; }
.compare-col strong { display: block; margin-top: 9px; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.compare-col.muted strong { color: var(--muted); }
.compare-col em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 12.5px; }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* ---------- Strategy cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); background: #fff; padding: 24px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 12px; color: #4a515d; line-height: 1.6; font-size: 14.5px; }
.card-meta { color: var(--muted) !important; font-size: 12.5px !important; font-weight: 700; }
.card.accent { background: var(--accent-soft); border-color: #f2dcae; }

.selection { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 30px; }
.selection h3 { font-size: 22px; }
.selection ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.selection li { position: relative; padding-left: 26px; color: #4a515d; line-height: 1.6; }
.selection li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 3px; }
.selection strong { color: var(--ink); }

/* ---------- Terms ---------- */
.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.terms > div { background: #fff; padding: 18px 22px; display: flex; gap: 18px; align-items: baseline; }
.terms dt { flex: 0 0 168px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.terms dd { margin: 0; color: #3f4652; line-height: 1.55; font-size: 14.5px; }

/* ---------- External link rows ---------- */
.verify-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.verify-links a { color: var(--ink); font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.verify-links a:hover { color: var(--accent); }

/* ---------- Risk ---------- */
.risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.risk { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 22px 24px; }
.risk h3 { font-size: 19px; }
.risk p { margin-top: 11px; color: #4a515d; line-height: 1.6; font-size: 14px; }

/* ---------- Research ---------- */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.research-cta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: #fff; padding: 22px 24px;
}
.research-cta p { margin-top: 9px; color: #4a515d; line-height: 1.6; max-width: 520px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 52px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr); gap: 40px; align-items: start; }
.footer-label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; width: fit-content; }
.footer-link svg { flex: 0 0 auto; color: var(--muted); transition: color .2s ease; }
.footer-link:hover, .footer-link:hover svg { color: var(--accent); }
.footer-copy { color: var(--ink); font-weight: 800; letter-spacing: .04em; margin: 0 0 12px; }
.footer-disclaimer { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-band { grid-template-columns: 1fr; }
  .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms, .selection ul { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .lp-nav a:not(.btn) { display: none; }
  .brand-link { display: none; }
  .nav-grid, .cards, .risks, .stat-row, .compare { grid-template-columns: 1fr; }
  .terms > div { flex-direction: column; gap: 6px; }
  .terms dt { flex: none; }
  .hero h1 { font-size: 40px; }
}
