:root {
  --bg: #050a12;
  --bg-alt: #0a1420;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-border: rgba(45, 212, 191, 0.14);
  --border: rgba(148, 163, 184, 0.13);
  --text: #edf2f8;
  --text-dim: #9aabc0;
  --text-faint: #63748a;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --amber: #f5c542;
  --amber-ink: #241c04;
  --pink: #fb7185;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--teal);
  margin: 0 0 10px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-head .sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 62ch;
  margin: 0;
}

section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 10, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--content);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand .glyph {
  font-size: 1.4rem;
}

.brand .duck {
  color: var(--amber);
}

.brand .bench {
  color: var(--cyan);
}

.navlinks {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.navlinks a:hover {
  color: var(--teal);
}

.navtoggle-input {
  display: none;
}

.navtoggle {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-dim);
}

.navtoggle:hover {
  color: var(--teal);
}

/* ---------- hero ---------- */

.hero {
  padding-top: 48px;
  padding-bottom: 0;
}

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

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.badge-verified strong {
  color: var(--teal);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 5.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.hero h1 .dim {
  color: var(--text-dim);
}

.hero .zoo-line {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text-dim);
  margin: 0 0 30px;
}

.hero .pitch {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 56ch;
  margin: 0 auto 6px;
}

.hero .pitch-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- hero pond (full-bleed) ---------- */

.pond {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1626 0%, #0a1424 55%, #0d2135 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pond svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- mega stats ---------- */

.mega-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px 44px;
  padding: 56px 0 24px;
  text-align: center;
}

.mega-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.mega-stat .num {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mega-stat .label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.mega-stat.ducks .num {
  color: var(--teal);
}

.mega-stat.chicks .num {
  color: var(--amber);
}

.claims-line {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 70ch;
  margin: 0 auto 8px;
}

.claims-line strong {
  color: var(--text);
}

/* ---------- leaderboard table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table.lb {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

table.lb th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

table.lb td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

table.lb tr:last-child td {
  border-bottom: none;
}

table.lb tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

table.lb .lb-rank {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}

table.lb .lb-model {
  color: var(--text);
  font-weight: 600;
  white-space: normal;
}

table.lb .lb-api {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  white-space: nowrap;
}

table.lb .lb-award {
  font-size: 1.15rem;
  text-align: center;
}

table.lb .lb-axes {
  font-family: var(--mono);
  font-size: 0.85rem;
}

table.lb .lb-delta strong {
  color: var(--amber);
  font-size: 1.05rem;
}

table.lb .lb-delta .tier-reason {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.85rem;
}

table.lb .lb-key {
  text-align: center;
}

table.lb .lb-notes {
  color: var(--text-faint);
  font-size: 0.85rem;
  white-space: normal;
  min-width: 220px;
}

table.lb tr.lb-twin {
  background: rgba(34, 211, 238, 0.04);
}

.lb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 16px;
}

.agent-lane {
  margin-top: 40px;
  border: 1px dashed var(--panel-border);
  border-radius: 12px;
  padding: 22px 26px;
  background: var(--panel);
}

.agent-lane h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--teal);
}

.agent-lane p {
  margin: 0 0 16px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- awareness table ---------- */

table.aw {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

table.aw th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

table.aw td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

table.aw tr:last-child td {
  border-bottom: none;
}

table.aw .aw-model {
  color: var(--text);
  font-weight: 600;
}

table.aw .aw-found {
  text-align: center;
  font-size: 1.1rem;
}

table.aw .aw-num {
  text-align: right;
  font-family: var(--mono);
}

table.aw tr.aw-control {
  opacity: 0.75;
}

.pull-quote {
  margin: 36px 0 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--teal);
  padding-left: 22px;
  max-width: 62ch;
}

/* ---------- convergence table ---------- */

table.cv {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

table.cv th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

table.cv td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

table.cv tr:last-child td {
  border-bottom: none;
}

table.cv .cv-digest code {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.82rem;
}

table.cv .cv-bytes {
  font-family: var(--mono);
  color: var(--text-faint);
}

table.cv tr.cv-unattested {
  opacity: 0.65;
}

.cv-totals {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0;
  line-height: 1.9;
}

.cv-caveat {
  color: var(--text-faint);
  font-size: 0.92rem;
  max-width: 68ch;
}

/* ---------- taxonomy strip ---------- */

.tax-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.tax-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 18px 18px;
  background: var(--panel);
}

.tax-card.tax-goose {
  border-left-color: var(--cyan);
}

.tax-card.tax-chick {
  border-left-color: var(--amber);
}

.tax-card.tax-egg {
  border-left-color: var(--text-faint);
}

.tax-card .tax-icon {
  font-size: 1.4rem;
}

.tax-card .tax-name {
  font-weight: 800;
  margin: 8px 0 2px;
}

.tax-card .tax-share {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2px 0 6px;
}

.tax-card p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.tax-note {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 76ch;
}

/* ---------- release strip ---------- */

.release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 24px 26px;
}

.release .rel-text h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.release .rel-text .tag {
  color: var(--amber);
}

.release .rel-text p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.terminal {
  background: #020509;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #9dd8c8;
  min-width: 300px;
  line-height: 1.7;
}

.terminal .prompt {
  color: var(--text-faint);
}

.terminal .ok {
  color: var(--teal);
}

/* ---------- donate / hardware fund ---------- */

.donate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.07), rgba(245, 197, 66, 0.02));
  padding: 24px 26px;
}

.donate-text h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--amber);
}

.donate-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.donate-sub {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.donate-wallets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 14px;
}

.wallet-coin {
  font-weight: 700;
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.wallet-addr {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #9dd8c8;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 640px) {
  .donate {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand .brand {
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0;
}

.footer-quote {
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  max-width: 320px;
}

.footer-quote span {
  color: var(--teal);
  font-size: 1.4rem;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-bottom .made {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .heart {
  color: var(--pink);
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .navtoggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    display: block;
  }

  .navtoggle-input:focus-visible ~ .navtoggle {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }

  .navtoggle {
    display: block;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 32px 16px;
  }

  .navlinks li {
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }

  .navtoggle-input:checked ~ .navlinks {
    display: flex;
  }

  .nav {
    position: relative;
  }

  section {
    padding: 52px 0;
  }

  .tax-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .mega-stats {
    gap: 14px 28px;
    padding: 40px 0 16px;
  }

  .release {
    flex-direction: column;
    align-items: stretch;
  }

  .terminal {
    min-width: 0;
  }

  .footer-top {
    flex-direction: column;
  }

  .tax-strip {
    grid-template-columns: 1fr;
  }
}

/* ---- pond: ambient animation (disabled when the user prefers reduced motion) ---- */

@media (prefers-reduced-motion: no-preference) {
  .pond .bob {
    animation: pond-bob 6s ease-in-out infinite;
  }

  .pond .b2 {
    animation-duration: 7.4s;
    animation-delay: -2.2s;
  }

  .pond .b3 {
    animation-duration: 5.6s;
    animation-delay: -3.7s;
  }

  .pond .b4 {
    animation-duration: 6.6s;
    animation-delay: -1.3s;
  }

  .pond .crowd {
    animation: pond-bob-soft 9s ease-in-out infinite;
  }

  .pond .rock {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: pond-rock 7s ease-in-out infinite;
  }

  .pond .stars circle {
    animation: pond-twinkle 4.5s ease-in-out infinite;
  }

  .pond .stars circle:nth-child(2n) {
    animation-delay: -1.7s;
  }

  .pond .stars circle:nth-child(3n) {
    animation-delay: -3.2s;
    animation-duration: 6s;
  }

  .pond .ripples path {
    animation: pond-shimmer 8s ease-in-out infinite;
  }

  .pond .ripples path:nth-child(2) {
    animation-delay: -2.7s;
  }

  .pond .ripples path:nth-child(3) {
    animation-delay: -5.3s;
  }

  @keyframes pond-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }

  @keyframes pond-bob-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
  }

  @keyframes pond-rock {
    0%, 100% { transform: rotate(-1.4deg); }
    50% { transform: rotate(1.4deg); }
  }

  @keyframes pond-twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  @keyframes pond-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
  }
}
