/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0f14;
  --bg2:       #111820;
  --bg3:       #1a2330;
  --border:    #1e2d3d;
  --green:     #14f195;
  --green-dim: #0d9e61;
  --blue:      #28a0f0;
  --blue-dim:  #1a6ea8;
  --text:      #e2e8f0;
  --text-2:    #8ca3bf;
  --text-3:    #4a6278;
  --mono:      'Space Mono', monospace;
  --sans:      'Space Grotesk', sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --bw:        1px;   /* border width — light mode thickens it */
}

/* ─── Light Theme ────────────────────────────────────────────────────────────
   Toggled from the wallet menu (Light/Dark Mode). data-theme is stamped on
   <html> by an inline head script (before first paint) and by toggleTheme()
   in config.js. Dark stays the default; this block only overrides the
   palette variables — every component inherits automatically. The neon
   green/blue are deepened here: #14f195 on white is unreadable. */
:root[data-theme="light"] {
  --bg:        #f4f7fa;
  --bg2:       #ffffff;
  --bg3:       #e7edf4;
  --border:    #d4dde7;
  --green:     #0d9e61;
  --green-dim: #0a7a4b;
  --blue:      #1a6ea8;
  --blue-dim:  #28a0f0;
  --text:      #16202b;
  --text-2:    #46586c;
  --text-3:    #7d92a8;
  --bw:        1.5px;  /* hairline borders wash out on white — thicker
                          (1.2px would be floored back to 1px by the browser;
                          1.5px is the smallest step that actually renders) */
}

/* Landing feature grid draws its dividers with a 1px gap over the border
   color — thicken it in step with --bw. */
:root[data-theme="light"] .features { gap: 1.5px; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
/* fixed, not sticky: iOS Safari (worst in in-app browsers) repositions sticky
   elements a frame behind momentum scrolling, so the bar visibly drifts down
   the page mid-scroll. Fixed tracks every frame on all platforms; the body
   padding below compensates for the bar leaving normal flow. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--bg);
  border-bottom: var(--bw) solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body { padding-top: 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-logo-mark { color: var(--green); font-size: 22px; }

/* Brand wordmark: the S in TimbSwap is the angular blue monogram */
.nav-logo-text { display: inline-flex; align-items: baseline; }
.nav-logo-s {
  height: 0.68em;
  width: 0.62em;
  margin: 0 1px 0 2px;
  color: var(--blue);
  filter: drop-shadow(0 0 4px rgba(40, 160, 240, 0.5));
}

.nav-links { display: flex; align-items: center; gap: 4px; }

/* Temporarily offline destinations (Governance, Lock Vault, Airdrop):
   fully hidden wherever they appear — nav dropdowns, mobile overlay, the
   landing Lock feature card. The markup stays in place; re-enable by
   restoring the href and dropping this class. */
.nav-off { display: none !important; }

.nav-group { position: relative; }

.nav-group-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-group-btn:hover { color: var(--text); background: var(--bg2); }
.nav-caret { font-size: 10px; opacity: 0.6; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg2);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  padding: 6px;
  z-index: 200;
}
.nav-group:hover .nav-dropdown { display: flex; flex-direction: column; }

.nav-dropdown a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:hover { color: var(--text); background: var(--bg3); }

.nav-soon { opacity: 0.5; cursor: default; }
.badge-soon {
  font-size: 10px;
  background: var(--bg3);
  color: var(--text-3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.network-badge {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--blue);
  background: rgba(40,160,240,0.1);
  border: 1px solid rgba(40,160,240,0.2);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Always-on honesty label: this is a testnet deployment. Amber so it reads
   as an advisory, distinct from the blue (connected-network) badge. */
.testnet-badge {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: #e0a52e;
  background: rgba(224,165,46,0.10);
  border: 1px solid rgba(224,165,46,0.28);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
@media (max-width: 480px) { .testnet-badge { display: none; } }

.btn-connect {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-connect:hover { opacity: 0.85; }
/* Pending / failed connect states. The failure message replaces the label, so
   let the button grow and wrap rather than clipping the reason to nothing. */
.btn-connect.is-connecting { opacity: 0.7; cursor: progress; }
.btn-connect.is-failed {
  background: #f59e0b;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  max-width: 260px;
  font-size: 12px;
  font-weight: 500;
}

.wallet-info {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
}
.wallet-addr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}
.wallet-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.wallet-caret { font-size: 9px; color: var(--text-3); opacity: 0.7; }

.wallet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  flex-direction: column;
  background: var(--bg2);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
}
.wallet-info:hover .wallet-dropdown,
.wallet-info.open .wallet-dropdown { display: flex; }

.wallet-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.wallet-menu-item:hover:not(:disabled) { color: var(--text); background: var(--bg3); }
.wallet-menu-item:disabled { opacity: 0.5; cursor: default; }
.wallet-menu-item.danger:hover:not(:disabled) { color: #ff5c5c; }

.hidden { display: none !important; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.headline-accent { color: var(--green); }

/* Revolving headline: both phrases share one grid cell so the block sizes to
   the taller line and nothing shifts when they swap. Timing lives in
   landing.js (3s / 5s holds). */
.hero-rotator { display: grid; }
.rot-line {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.rot-line.rot-on { opacity: 1; transform: none; }
.w-blue  { color: var(--blue); }
.w-green { color: var(--green); }
.w-gold {
  color: #ffd75e;
  animation: gold-lightning 2.4s ease-in-out infinite;
}
@keyframes gold-lightning {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 215, 94, 0.35); }
  50%      { text-shadow: 0 0 24px rgba(255, 215, 94, 0.8), 0 0 46px rgba(255, 215, 94, 0.35); }
}

.hero-sub {
  font-size: 21px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-sub-punch { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* At-a-glance credentials strip under the hero CTAs. */
.hero-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-cred {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  background: var(--bg2);
  border: var(--bw) solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  white-space: nowrap;
}
.hero-cred::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }

.btn-primary {
  background: var(--green);
  color: #000;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ─── Scroll Display (signature element) ─────────────────────────────────── */
.scroll-display {
  flex-shrink: 0;
  background: var(--bg2);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 300px;
  text-align: center;
  /* Same slow breathing glow as the compete meter card — glow only, the
     border is left untouched. In the card's blue-grey hue. */
  animation: bar-glow 7s ease-in-out infinite;
}
@keyframes bar-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(130, 165, 200, 0); }
  50%      { box-shadow: 0 0 20px 1px rgba(130, 165, 200, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-display { animation: none; }
}

.scroll-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.scroll-window {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.scroll-char {
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  background: var(--bg3);
  border: var(--bw) solid var(--border);
  border-radius: 6px;
  transition: color 0.3s, border-color 0.3s;
}
.scroll-char.dim { color: var(--text-3); border-color: transparent; }
.scroll-char.masked { color: var(--text-2); border-color: var(--border); }

.scroll-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.scroll-pot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.scroll-pot-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-3);
}
/* Value rotates between the ETH total and its USD worth with a soft fade.
   ETH keeps each element's own colour; USD pops green for marketing. */
.pot-val {
  font-variant-numeric: tabular-nums;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.scroll-pot-val { color: var(--blue); }
.pot-val.val-usd { color: var(--green); }
.pot-val.fading  { opacity: 0; }

/* ─── Stats Bar ─────────────────────────────────────────────────────────────── */
/* ─── Three-step flow strip (landing "how it works") ─────────────────────────── */
.flow-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--bg2);
  border-top: var(--bw) solid var(--border);
}

.flow-step {
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 26px;
}

.flow-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.flow-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}

.flow-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 26ch;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: var(--green);
  opacity: 0.7;
  padding: 0 4px;
}

@media (max-width: 640px) {
  .flow-strip { flex-direction: column; align-items: center; }
  .flow-step { max-width: 380px; width: 100%; padding: 22px 26px; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}

.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: var(--bw) solid var(--border);
  border-bottom: var(--bw) solid var(--border);
  background: var(--bg2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 32px;
  border-right: var(--bw) solid var(--border);
  flex: 1;
  min-width: 140px;
}
.stat-item:last-child { border-right: none; }

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features {
  display: grid;
  /* auto-fit instead of a fixed 4: with the Lock card hidden (nav-off) the
     remaining cards split the row evenly instead of leaving an empty cell. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: var(--bw) solid var(--border);
  border-bottom: var(--bw) solid var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}

.feature-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
  transition: opacity 0.15s;
}
.feature-link:hover { opacity: 0.75; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  font-size: 13px;
  color: var(--text-3);
  border-top: var(--bw) solid var(--border);
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
/* nowrap keeps the ↗ glued to its label on narrow screens (whole links wrap
   instead); padding + negative margin grows the tap target without moving
   anything visually. */
.footer-links a {
  color: var(--text-3);
  transition: color 0.15s;
  white-space: nowrap;
  padding: 10px 6px;
  margin: -10px -6px;
}
.footer-links a:hover { color: var(--text-2); }
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-left .nav-logo-mark { color: var(--green); }

/* ─── Responsive ────────────────────────────────────────────────────────────── */

/* ─── Hamburger (tablet portrait + mobile) ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--text); }

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: var(--bw) solid var(--border);
  padding: 16px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  display: block;
}
.nav-mobile-overlay a:hover { color: var(--text); background: var(--bg3); }
.nav-mobile-section {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 10px 12px 4px;
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    padding: 48px 24px 40px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-creds { justify-content: center; }
  .scroll-display { min-width: unset; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer { flex-direction: column; gap: 12px; padding: 20px 24px; text-align: center; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: var(--bw) solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Compact "time ago" subline under a Block cell in activity tables. */
.td-age { font-size: .68rem; color: currentColor; opacity: .6; margin-top: 2px; line-height: 1; }


/* ─── Incentive Engine (landing) ─────────────────────────────────────────────
   The animated centerpiece: four nodes in a loop, value pulsing forward along
   the top connectors and back along the return rail. Pure CSS animation on a
   repeating gradient — stops under prefers-reduced-motion. */
.engine { padding: 72px 6% 24px; max-width: 1200px; margin: 0 auto; }
.engine-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--green); margin-bottom: 14px;
}
.engine h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.5px; }
.engine-sub { color: var(--text-2); max-width: 62ch; margin-top: 12px; }
.engine-loop { margin-top: 38px; }
.engine-row { display: flex; align-items: stretch; gap: 0; }
.engine-node {
  flex: 1 1 0; background: var(--bg2); border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 18px; min-width: 0;
}
.engine-node .en-step {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--green);
}
.engine-node .en-title { font-weight: 600; font-size: 17px; margin-top: 6px; }
.engine-node .en-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.engine-link { flex: 0 0 34px; position: relative; align-self: center; height: 3px; margin: 0 -1px; z-index: 1; }
.engine-link::before {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 12px);
  background-size: 24px 100%; opacity: 0.9;
  animation: engine-flow 1.1s linear infinite;
}
.engine-return { position: relative; height: 3px; margin: 26px 40px 0; border-radius: 2px; }
.engine-return::before {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px);
  background-size: 24px 100%; opacity: 0.65;
  animation: engine-flow-back 1.4s linear infinite;
}
.engine-return-label {
  text-align: center; margin-top: 14px; font-family: var(--mono); font-size: 12.5px;
  color: var(--text-2);
}
.engine-return-label strong { color: var(--green); font-weight: 700; }
@keyframes engine-flow { to { background-position: 24px 0; } }
@keyframes engine-flow-back { to { background-position: -24px 0; } }
@media (prefers-reduced-motion: reduce) {
  .engine-link::before, .engine-return::before { animation: none; }
}
@media (max-width: 860px) {
  .engine-row { flex-direction: column; gap: 10px; }
  .engine-link { display: none; }
  .engine-return { margin: 18px 10%; }
}

/* ─── Why TimbSwap (landing) ────────────────────────────────────────────── */
.why { padding: 56px 6% 8px; max-width: 1200px; margin: 0 auto; }
.why h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.5px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.why-card {
  background: var(--bg2); border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
}
.why-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.why-card h3 .w-green { color: var(--green); }
.why-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ─── Trust bar (landing) ───────────────────────────────────────────────── */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  padding: 34px 6%; margin-top: 48px; border-top: var(--bw) solid var(--border);
}
.trust-item { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.trust-item .t-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-3);
}
.trust-item a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.trust-item a:hover { color: var(--green); border-color: var(--green); }
.trust-item .t-muted { color: var(--text-2); }

/* ─── Your incentive cycle (landing) ─────────────────────────────────────────
   Personal loop on the left, waterfall cascade on the right. The cascade's
   basins fill in waterfall order (farm → staking → boost); a soft shimmer
   sweeps each fill. Animation stops under prefers-reduced-motion. */
.cycle { padding: 56px 6% 8px; max-width: 1200px; margin: 0 auto; }
.cycle h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.5px; }
.cycle-sub { color: var(--text-2); max-width: 62ch; margin-top: 12px; }
.cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; align-items: stretch; }
.cycle-steps { display: flex; flex-direction: column; gap: 10px; }
.cycle-step {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--bg2); border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg); padding: 15px 18px;
}
.cycle-step .cs-n { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: 0.1em; flex: 0 0 auto; }
.cycle-step .cs-t { font-weight: 600; font-size: 15px; }
.cycle-step .cs-d { font-size: 13px; color: var(--text-2); }

.cascade {
  background: var(--bg2); border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 22px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cascade-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--green); margin-bottom: 16px; }
.basins { display: flex; align-items: flex-end; gap: 14px; flex: 1; min-height: 190px; }
.basin { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.basin-cup {
  position: relative; border: var(--bw) solid var(--border); border-top: none;
  border-radius: 0 0 10px 10px; overflow: hidden; background: var(--bg);
}
.b1 .basin-cup { height: 170px; } .b2 .basin-cup { height: 130px; } .b3 .basin-cup { height: 95px; }
.basin-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 55%, transparent), color-mix(in srgb, var(--green) 22%, transparent));
}
.b1 .basin-fill { height: 82%; } .b2 .basin-fill { height: 62%; } .b3 .basin-fill { height: 38%; }
.basin-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgba(255,255,255,0.20) 50%, transparent 72%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: tide-sweep 2.6s linear infinite;
}
/* Cascade the sheen left → right across the descending basins (farm →
   staking → boost) so the gleam reads as one fluid flow pouring down the
   waterfall, not three bins shimmering in place. */
.b2 .basin-fill::after { animation-delay: 0.45s; }
.b3 .basin-fill::after { animation-delay: 0.9s; }
.basin-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-2); text-align: center; }
.basin-ord { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-align: center; }
.cascade-cap { font-size: 13px; color: var(--text-2); margin-top: 16px; line-height: 1.5; }
.cascade-cap strong { color: var(--green); font-weight: 700; }
.cascade-src { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 14px; }
@keyframes tide-sweep { from { background-position: -120% 0; } to { background-position: 120% 0; } }
@media (prefers-reduced-motion: reduce) { .basin-fill::after { animation: none; } }
@media (max-width: 860px) { .cycle-grid { grid-template-columns: 1fr; } }

/* ─── The spread that refills (landing) ─────────────────────────────────── */
.edge { padding: 56px 6% 8px; max-width: 1200px; margin: 0 auto; }
.edge h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.5px; }
.edge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.edge-card { background: var(--bg2); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; }
.edge-card .ec-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 14px; }
.edge-card.closes .ec-tag { color: var(--text-3); }
.edge-card.refills .ec-tag { color: var(--green); }
.edge-card svg { width: 100%; height: 84px; display: block; }
.edge-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-top: 14px; }
.edge-card p strong { color: var(--text); }
.edge-line { stroke: var(--text-3); stroke-width: 2; fill: none; }
.edge-line.hot { stroke: var(--green); }
.edge-dash { stroke-dasharray: 5 6; }
@media (max-width: 860px) { .edge-grid { grid-template-columns: 1fr; } }

/* Wider-arbitrage lower row: how the edge is generated on quiet days, + risks. */
.edge-lower { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; }
.edge-panel { background: var(--bg2); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; }
.edge-panel .ep-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 6px; }
.edge-panel.gen .ep-tag { color: var(--green); }
.edge-panel.risk .ep-tag { color: #e0a52e; }
.edge-panel h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 14px; }
.edge-lead { font-size: 14.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }
.edge-lead strong { color: var(--text); font-weight: 600; }
.edge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.edge-list li { font-size: 14px; color: var(--text-2); line-height: 1.5; padding-left: 18px; position: relative; }
.edge-list li strong { color: var(--text); font-weight: 600; }
.edge-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.edge-panel.risk .edge-list li::before { background: #e0a52e; border-radius: 1px; }
@media (max-width: 860px) { .edge-lower { grid-template-columns: 1fr; } }
