/* ==========================================================================
   HoodAI — shared design system
   Private on-chain copilot. Premium dark UI, Robinhood green accent, owl motif.
   ========================================================================== */

:root {
  /* Ink backgrounds */
  --bg: #08090e;
  --bg-2: #0c0e15;
  --panel: #12141d;
  --panel-2: #171a25;
  --panel-3: #1d2130;
  --border: #242838;
  --border-2: #323750;

  /* Text */
  --text: #eef0f7;
  --muted: #99a0b5;
  --faint: #6a7188;

  /* Brand — Robinhood green */
  --brand: #00c805;
  --brand-2: #3ddc84;
  --brand-ink: #04140a;
  --brand-glow: rgba(0, 200, 5, 0.35);

  /* Accents */
  --mint: #00e676;
  --warn: #f5a544;
  --danger: #ff6b6b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 12px 40px -12px var(--brand-glow);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Ambient brand glow at the top of every page */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(0, 200, 5, 0.16), transparent 70%),
    radial-gradient(40% 80% at 85% 0%, rgba(0, 230, 118, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.narrow { max-width: 780px; }

/* ---- Typography ---- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 19px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(120deg, #fff 20%, var(--brand-2) 60%, var(--mint));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 14, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; }
.brand b { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: var(--shadow-brand); transition: transform 0.12s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: rgba(0, 200, 5, 0.08); }
.btn.sm { padding: 8px 15px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

/* ---- Cards / panels ---- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card.pad-lg { padding: 28px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Badges / pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  color: var(--brand-2); background: rgba(0, 200, 5, 0.12);
  border: 1px solid rgba(0, 200, 5, 0.28);
}
.badge.mint { color: var(--mint); background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.28); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ---- Sections ---- */
section { padding: 72px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin: 12px 0 12px; }

/* ---- Feature blocks ---- */
.feature .ficon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(0, 200, 5, 0.12); border: 1px solid rgba(0, 200, 5, 0.25);
  color: var(--brand-2); margin-bottom: 14px;
}
.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Steps ---- */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: var(--brand-2);
  background: rgba(0, 200, 5, 0.1); border: 1px solid rgba(0, 200, 5, 0.28);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
table.data thead th { color: var(--faint); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.data .num { font-variant-numeric: tabular-nums; }
.tag { font: 600 12px/1 var(--font); padding: 4px 9px; border-radius: 6px; background: var(--panel-3); color: var(--muted); }
.tag.rec { color: var(--brand-ink); background: var(--brand); }

/* ---- Prose (docs) ---- */
.prose { font-size: 16px; color: var(--text); }
.prose h2 { margin: 44px 0 14px; padding-top: 8px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #cdd2e0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; color: var(--brand-2); }
.prose pre { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; color: #cdd2e0; }
.callout { border-left: 3px solid var(--brand); background: rgba(0, 200, 5, 0.07); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; }
.callout.mint { border-color: var(--mint); background: rgba(0, 230, 118, 0.07); }

/* ---- Timeline (roadmap) ---- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), transparent); }
.phase { position: relative; margin-bottom: 34px; }
.phase::before {
  content: ""; position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(0, 200, 5, 0.12);
}
.phase.done::before { background: var(--mint); border-color: var(--mint); }
.phase.future::before { border-color: var(--border-2); box-shadow: none; }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--muted); font-size: 14px; }
footer.site a:hover { color: var(--text); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Utilities ---- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat b { font-size: 26px; display: block; letter-spacing: -0.02em; }
.stat span { color: var(--faint); font-size: 13px; }
