/* ==========================================================================
   YIELD WATCH — Design tokens & base
   ========================================================================== */

:root {
  /* Brand palette (fixed by brief) */
  --bg: #0F172A;
  --card: #111827;
  --card-hover: #151F32;
  --blue: #3BA5E9;
  --yellow: #F5B62D;
  --green: #10B981;
  --red: #EF4444;
  --text: #FFFFFF;
  --text-secondary: #94A3B8;

  /* Derived tokens */
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --glow-blue: rgba(59, 165, 233, 0.35);
  --glow-green: rgba(16, 185, 129, 0.30);
  --gradient-brand: linear-gradient(135deg, var(--blue) 0%, #6366F1 100%);
  --gradient-profit: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  --gradient-text: linear-gradient(120deg, #FFFFFF 0%, #B7D9F7 50%, var(--blue) 100%);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Type */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 85% -5%, rgba(59, 165, 233, 0.16), transparent 60%),
    radial-gradient(600px 400px at 5% 15%, rgba(99, 102, 241, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--blue); color: #04121F; }

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

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

/* ==========================================================================
   Type scale
   ========================================================================== */

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--glow-blue);
}

.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

section { padding: 7rem 0; position: relative; z-index: 1; }
section + section { border-top: 1px solid var(--border); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px var(--glow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--glow-blue); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--blue); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Nav
   ========================================================================== */

#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.35s ease;
}
#mainNav.scrolled { border-bottom-color: var(--border); }
#mainNav.hide-nav { transform: translateY(-100%); }

#mainNav .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px var(--glow-blue);
}
.brand-full { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255,255,255,0.03);
}
.lang-switch button {
  background: none; border: none; color: var(--text-secondary);
  padding: 0.35rem 0.65rem; border-radius: var(--radius-pill);
  cursor: pointer; font-family: inherit; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active { background: var(--blue); color: #fff; }

.mobile-menu-btn {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-actions .btn-primary.nav-cta-full { display: none; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 1.5rem 1.6rem;
    gap: 1.1rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(59, 165, 233, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.6rem;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--glow-green); }

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.3rem;
}
.hero h1 span { display: block; }

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
}
.hero-stats div span { font-size: 0.82rem; color: var(--text-secondary); }

/* Hero dashboard preview card */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--card) 0%, #0B1220 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute; inset: -40% -40% auto auto; width: 60%; height: 60%;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  filter: blur(20px);
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.hero-card-head .demo-tag {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary);
  border: 1px solid var(--border-strong); padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.hero-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.2rem; }
.hero-mini-stats .mini {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.8rem;
}
.hero-mini-stats .mini .lbl { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.hero-mini-stats .mini .val { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.hero-mini-stats .mini .val.up { color: var(--green); }

.hero-chart-wrap { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem; }

.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: float 5s ease-in-out infinite;
}
.floating-badge.b1 { top: -14px; left: -18px; animation-delay: 0s; }
.floating-badge.b2 { bottom: 20px; right: -22px; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
}

/* ==========================================================================
   Protocol / chain badges (custom monograms — no third-party logos)
   ========================================================================== */

.pmark {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.68rem;
  color: #04121F;
  flex-shrink: 0;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Dashboard section
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.stat-card .lbl { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.6rem; }
.stat-card .val { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700; }
.stat-card .delta { font-size: 0.8rem; margin-top: 0.4rem; font-weight: 600; }
.stat-card .delta.up { color: var(--green); }
.stat-card .delta.down { color: var(--red); }

@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}
.panel-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.panel-title h3 { font-size: 1.05rem; font-weight: 700; }
.panel-title span { font-size: 0.78rem; color: var(--text-secondary); font-family: var(--font-mono); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-secondary); font-weight: 600; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
}
tbody td { padding: 0.85rem 0.9rem; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
.td-protocol { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.mono-cell { font-family: var(--font-mono); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.status-badge { padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; }
.status-badge.in { background: rgba(16,185,129,0.15); color: var(--green); }
.status-badge.out { background: rgba(239,68,68,0.15); color: var(--red); }

.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.1rem; }
@media (max-width: 860px) { .chart-grid { grid-template-columns: 1fr; } }
.dashboard-tables { display: grid; gap: 1.1rem; margin-top: 1.1rem; }

/* ==========================================================================
   Real APR — signature ledger
   ========================================================================== */

.apr-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
@media (max-width: 980px) { .apr-wrap { grid-template-columns: 1fr; } }

.ledger {
  background: #070C17;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-card);
  position: relative;
}
.ledger::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
}
.ledger-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px dashed var(--border);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ledger.is-visible .ledger-row { opacity: 1; transform: translateX(0); }
.ledger.is-visible .ledger-row:nth-child(1) { transition-delay: 0.05s; }
.ledger.is-visible .ledger-row:nth-child(2) { transition-delay: 0.20s; }
.ledger.is-visible .ledger-row:nth-child(3) { transition-delay: 0.35s; }
.ledger.is-visible .ledger-row:nth-child(4) { transition-delay: 0.50s; }
.ledger.is-visible .ledger-row:nth-child(5) { transition-delay: 0.70s; }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .op { color: var(--text-secondary); width: 24px; }
.ledger-row .lbl { flex: 1; color: var(--text-secondary); font-size: 0.88rem; padding-left: 0.4rem; }
.ledger-row .amt { font-weight: 600; font-size: 1rem; }
.ledger-row.total { padding-top: 1.2rem; margin-top: 0.4rem; border-top: 1px solid var(--border-strong); border-bottom: none; }
.ledger-row.total .lbl { color: var(--text); font-weight: 700; font-size: 0.95rem; }
.ledger-row.total .amt { font-size: 1.9rem; color: var(--green); }

.apr-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.apr-copy p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.apr-list { display: flex; flex-direction: column; gap: 0.9rem; }
.apr-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-secondary); }
.apr-list li b { color: var(--text); }
.apr-list .chip {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; margin-top: 0.15rem;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800;
}

/* ==========================================================================
   Features grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.feature-card:hover { border-color: var(--blue); transform: translateY(-4px); background: var(--card-hover); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(59,165,233,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.87rem; color: var(--text-secondary); }

/* ==========================================================================
   Position analyzer
   ========================================================================== */

.analyzer-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.analyzer-input-row { display: flex; gap: 0.8rem; margin-bottom: 0.6rem; }
.analyzer-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}
.analyzer-input-row input::placeholder { color: var(--text-secondary); font-family: var(--font-ui); }
.analyzer-input-row input:focus { outline: none; border-color: var(--blue); }
.analyzer-disclaimer { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 1.6rem; }

.analyzer-results { margin-top: 1.8rem; }
.analyzer-results.hidden { display: none; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 860px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
.result-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.result-item .lbl { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.result-item .val { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; }

.analyzer-status {
  margin-top: 1.2rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; border: 1px solid var(--border-strong);
}
.analyzer-status.info { background: rgba(59,165,233,0.08); color: var(--blue); border-color: rgba(59,165,233,0.3); }
.analyzer-status.error { background: rgba(239,68,68,0.1); color: var(--red); border-color: rgba(239,68,68,0.3); }
.analyzer-status.empty { background: rgba(148,163,184,0.06); color: var(--text-secondary); }

.position-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem; margin-bottom: 0.8rem;
}
.position-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.position-card-head .pair { font-weight: 700; font-size: 0.98rem; display: flex; align-items: center; gap: 0.6rem; }
.position-card-head .chain-tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-secondary); border: 1px solid var(--border-strong); padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); }
.position-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
@media (max-width: 700px) { .position-detail-grid { grid-template-columns: repeat(2, 1fr); } }
.position-detail-grid .d-lbl { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
.position-detail-grid .d-val { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; }
.tvl-live { font-family: var(--font-mono); font-size: 0.68rem; color: var(--green); margin-top: 0.3rem; }

.loader-dots { display: inline-flex; gap: 5px; align-items: center; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1s infinite ease-in-out; }
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ==========================================================================
   Alerts
   ========================================================================== */

.alerts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 900px) { .alerts-wrap { grid-template-columns: 1fr; } }

.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.channel-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.3rem; text-align: center; transition: transform 0.25s ease, border-color 0.25s ease;
}
.channel-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.channel-card .feature-icon { margin: 0 auto 0.8rem; }
.channel-card h4 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.channel-card p { font-size: 0.78rem; color: var(--text-secondary); }

.examples-panel { background: #070C17; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem; }
.examples-panel h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.example-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0; border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 0.85rem;
}
.example-row:last-child { border-bottom: none; }
.example-row .tick { color: var(--green); }

/* ==========================================================================
   Protocols / chains
   ========================================================================== */

.protocols-grid, .chains-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}
@media (max-width: 900px) { .protocols-grid, .chains-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .protocols-grid, .chains-grid { grid-template-columns: repeat(2, 1fr); } }

.protocol-tile, .chain-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.protocol-tile:hover, .chain-tile:hover { transform: translateY(-4px) scale(1.02); border-color: var(--border-strong); }
.protocol-tile span, .chain-tile span { font-size: 0.78rem; font-weight: 600; }

.chains-title { text-align: center; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 3rem 0 1.3rem; font-family: var(--font-mono); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: var(--blue); background: linear-gradient(180deg, rgba(59,165,233,0.08), var(--card) 40%); box-shadow: 0 0 0 1px var(--blue), var(--shadow-card); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.price-card .price-tag { font-family: var(--font-mono); font-size: 2.3rem; font-weight: 700; margin: 0.6rem 0 0.2rem; }
.price-card .price-tag small { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
.price-card .price-desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.6rem; }
.price-card ul { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1; }
.price-card li { font-size: 0.88rem; color: var(--text-secondary); display: flex; gap: 0.6rem; align-items: flex-start; }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; background: none; border: none; color: var(--text);
  font-size: 0.98rem; font-weight: 600; cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 1.5rem; }
.faq-a p { color: var(--text-secondary); font-size: 0.9rem; padding-bottom: 1.3rem; }
.faq-item.open .faq-a { max-height: 300px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
@media (max-width: 940px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-side h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.contact-side p { color: var(--text-secondary); margin-bottom: 1.8rem; }
.contact-points { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-point { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-point .feature-icon { width: 36px; height: 36px; flex-shrink: 0; }
.contact-point h4 { font-size: 0.92rem; margin-bottom: 0.15rem; }
.contact-point p { color: var(--text-secondary); font-size: 0.84rem; margin-bottom: 0; }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.92rem; font-family: inherit;
}
.form-group select option { background: var(--card); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group .error-message { display: none; color: var(--red); font-size: 0.78rem; margin-top: 0.4rem; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: var(--red); }
.form-group.error .error-message { display: block; }

.alert-message { display: none; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.3rem; font-size: 0.9rem; font-weight: 600; }
.alert-message.success { display: block; background: rgba(16,185,129,0.14); color: var(--green); border: 1px solid rgba(16,185,129,0.35); }
.alert-message.error { display: block; background: rgba(239,68,68,0.14); color: var(--red); border: 1px solid rgba(239,68,68,0.35); }

/* ==========================================================================
   Footer
   ========================================================================== */

footer { padding: 4rem 0 2.2rem; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.9rem; max-width: 280px; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.82rem;
}
.footer-bottom a { text-decoration: underline; }

/* ==========================================================================
   Cookie consent (adapted to dark theme)
   ========================================================================== */

#cookieConsent {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(7, 12, 23, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
  z-index: 10000; padding: 1.6rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookieConsent.show { transform: translateY(0); }
.cookie-container { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cookie-text p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.3rem; }
.cookie-text a { color: var(--blue); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-btn { padding: 0.7rem 1.3rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; white-space: nowrap; }
.cookie-btn-accept { background: var(--gradient-brand); color: #fff; }
.cookie-btn-refuse { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.cookie-btn-customize { background: transparent; color: var(--blue); border: 1px solid var(--blue); }

#cookieModal { display: none; position: fixed; inset: 0; background: rgba(3, 6, 14, 0.85); z-index: 10001; padding: 2rem; overflow-y: auto; }
#cookieModal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); max-width: 640px; width: 100%; padding: 2.2rem; box-shadow: var(--shadow-lift); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 1.35rem; }
.modal-close { background: none; border: none; font-size: 1.6rem; color: var(--text-secondary); cursor: pointer; line-height: 1; }
.cookie-category { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: 1rem; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.category-header h3 { font-size: 0.98rem; }
.category-description { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.category-examples { font-size: 0.76rem; color: var(--text-secondary); opacity: 0.75; font-style: italic; }
.required-badge { background: var(--green); color: #04121F; font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); margin-left: 0.5rem; }
.toggle-switch { position: relative; width: 46px; height: 25px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.15); border-radius: 25px; cursor: pointer; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3.5px; bottom: 3.5px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .toggle-slider { background: var(--gradient-brand); }
input:checked + .toggle-slider::before { transform: translateX(20px); }
input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.modal-footer { display: flex; gap: 0.8rem; justify-content: flex-end; margin-top: 1.5rem; flex-wrap: wrap; }

@media (max-width: 700px) {
  .cookie-container { flex-direction: column; align-items: stretch; }
  .cookie-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

/* ==========================================================================
   Toast (wallet demo)
   ========================================================================== */

#toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid var(--border-strong);
  padding: 0.9rem 1.4rem; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-lift);
  z-index: 10002; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; align-items: center; gap: 0.6rem;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Wallet modal
   ========================================================================== */

#walletModal { display: none; position: fixed; inset: 0; background: rgba(3,6,14,0.85); z-index: 10001; align-items: center; justify-content: center; padding: 1.5rem; }
#walletModal.show { display: flex; }
.wallet-options { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }
.wallet-option {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; color: var(--text); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wallet-option:hover { border-color: var(--blue); background: rgba(59,165,233,0.06); }
.wallet-option .pmark { font-size: 0.6rem; }

/* ==========================================================================
   Responsive — global section padding
   ========================================================================== */

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }
  .stat-grid, .features-grid, .protocols-grid, .chains-grid, .channel-grid { gap: 0.8rem; }
  .apr-wrap, .contact-wrap { gap: 2rem; }
}
