/* ============================================================
   Aubear — Ethereum infrastructure for autonomous agents
   Design tokens + base
   ============================================================ */

:root {
  /* surfaces */
  --bg: #070A12;
  --surface: #0C111E;
  --surface-2: #111829;
  --surface-3: #16203400;
  /* text */
  --text: #F5F7FB;
  --text-dim: #98A4B8;
  --text-faint: #5E6B84;
  /* lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  /* accents */
  --blue: #6B8DFF;
  --blue-soft: rgba(107, 141, 255, 0.14);
  --blue-line: rgba(107, 141, 255, 0.35);
  --amber: #F5B85B;
  --amber-soft: rgba(245, 184, 91, 0.13);
  --green: #55D88A;
  --green-soft: rgba(85, 216, 138, 0.13);
  /* type */
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* page background: grid + radial glow */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(107, 141, 255, 0.10), transparent 60%),
    radial-gradient(720px 520px at 4% 8%, rgba(245, 184, 91, 0.05), transparent 55%);
}
.bg-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
}

main, footer, nav { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Typography helpers
   ============================================================ */
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  flex-wrap: wrap;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}
.kicker.amber { color: var(--amber); }
.kicker.amber::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

p { margin: 0; }
.lead {
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.62;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
section { padding-block: clamp(72px, 10vw, 132px); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--blue);
  color: #060912;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -12px rgba(107,141,255,0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 16px 38px -12px rgba(107,141,255,0.85); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(7, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 22px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 14.5px;
  color: var(--text-dim);
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a .ext { width: 12px; height: 12px; opacity: .5; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  width: 17px; height: 1.6px; background: var(--text);
  transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--text); transition: .2s;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 49;
  background: rgba(8, 11, 20, 0.97);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--gutter) 26px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }
body.menu-open .mobile-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  margin-top: 22px;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #fff 30%, var(--blue) 70%, var(--amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  overflow-wrap: anywhere;
}
.hero .lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.status-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  max-width: 100%;
}
.status-line span:last-child { min-width: 0; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(85,216,138,0.6);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(85,216,138,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(85,216,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(85,216,138,0); }
}
.status-line b { color: var(--green); font-weight: 500; }

/* ---------- Hero diagram ---------- */
.diagram {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.diagram::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 50% 46%, rgba(107,141,255,0.10), transparent 70%);
  pointer-events: none;
}
.dg-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  align-self: flex-start;
}
.dg-node {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  padding: 14px 16px;
  position: relative;
  z-index: 2;
}
.dg-agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px;
  padding: 7px 11px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
}
.chip .gd { width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }

.dg-core {
  border-color: var(--blue-line);
  background:
    linear-gradient(180deg, var(--blue-soft), rgba(107,141,255,0.03));
  box-shadow: 0 0 0 1px rgba(107,141,255,0.10), 0 18px 50px -28px rgba(107,141,255,0.6);
  margin-top: 12px;
}
.dg-core-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.dg-core-head img { height: 15px; opacity: .95; }
.dg-core-head .t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.dg-rows { display: grid; gap: 7px; }
.dg-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8,11,20,0.5);
  font-size: 13.5px;
}
.dg-row .nm { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.dg-row .nm .ic { width: 18px; height: 18px; color: var(--blue); flex: none; }
.tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  border: 1px solid var(--border-2);
  color: var(--text-faint);
}
.tag.live { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }
.tag.dev { color: var(--amber); border-color: var(--amber-soft); background: var(--amber-soft); }

.dg-eth {
  display: flex; align-items: center; gap: 13px;
  border-color: var(--border-2);
  margin-top: 12px;
}
.dg-eth .diamond {
  width: 30px; height: 30px; flex: none; color: var(--blue);
}
.dg-eth .et { font-weight: 500; font-size: 15px; }
.dg-eth > div { min-width: 0; }
.dg-eth .es { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-top: 2px; overflow-wrap: anywhere; }

/* animated connector */
.dg-link {
  width: 2px; height: 30px;
  position: relative;
  z-index: 1;
  background: var(--border-2);
  overflow: hidden;
}
.dg-link::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -40%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--blue));
  animation: flow 1.8s linear infinite;
}
.dg-link.l2::after { animation-delay: .9s; }
@keyframes flow {
  0% { top: -45%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 100%; opacity: 1; }
}

/* ============================================================
   Cards (thesis / use cases)
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card .ic-box {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: rgba(107,141,255,0.06);
  color: var(--blue);
  margin-bottom: 18px;
}
.card .ic-box svg { width: 19px; height: 19px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.58; }

/* ============================================================
   Product suite cards
   ============================================================ */
.suite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.product.featured {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(107,141,255,0.06), var(--surface) 55%);
}
.product:hover { transform: translateY(-3px); }
.product.featured:hover { border-color: rgba(107,141,255,0.55); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.badge {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge.live { color: var(--green); background: var(--green-soft); }
.badge.live::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge.dev { color: var(--amber); background: var(--amber-soft); }
.badge.dev::before { background: var(--amber); }
.badge.research { color: var(--text-dim); background: rgba(255,255,255,0.05); }
.badge.research::before { background: var(--text-faint); }
.product .pnum { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }

.product h3 { font-size: 23px; }
.product .sub { color: var(--blue); font-size: 14.5px; margin-top: 5px; font-weight: 450; }
.product.dimmed .sub { color: var(--text-dim); }
.product .desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.58; margin-top: 14px; }
.feat-list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); }
.feat-list li svg { width: 15px; height: 15px; margin-top: 3px; color: var(--blue); flex: none; }
.product.dimmed .feat-list li svg { color: var(--text-faint); }
.product .pcta { margin-top: 22px; }
.product .pcta .btn { width: 100%; justify-content: center; }
.btn-disabled { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-faint); cursor: default; }
.btn-disabled:hover { transform: none; }

/* ============================================================
   EthNodes feature
   ============================================================ */
.ethnodes { border-top: 1px solid var(--border); }
.eth-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.eth-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.eth-feat { background: var(--surface); padding: 24px 22px; }
.eth-feat .ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(107,141,255,0.07); color: var(--blue); margin-bottom: 15px; }
.eth-feat .ic svg { width: 17px; height: 17px; }
.eth-feat h3 { font-size: 16.5px; margin-bottom: 7px; }
.eth-feat p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* terminal motif */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #080C16;
  overflow: hidden;
  margin-top: 26px;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.term-bar .fn { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-left: 8px; }
.term-body { padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85; overflow-x: auto; }
.term-body .ln { white-space: pre; }
.c-com { color: var(--text-faint); }
.c-key { color: var(--blue); }
.c-str { color: var(--amber); }
.c-fn  { color: var(--green); }
.c-dim { color: var(--text-dim); }

/* ============================================================
   Stack diagram
   ============================================================ */
.stack { display: grid; gap: 14px; margin-top: 8px; }
.layer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  position: relative;
}
.layer.core { border-color: var(--blue-line); background: linear-gradient(90deg, rgba(107,141,255,0.07), var(--surface)); }
.layer-title { display: flex; flex-direction: column; gap: 7px; }
.layer-title .lt { font-size: 18px; font-weight: 550; letter-spacing: -0.01em; }
.layer-title .ln { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.layer-items { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 13px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.02); color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.pill.b { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.pill .st { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.layer .connector {
  position: absolute; left: 50%; bottom: -14px; width: 1px; height: 14px; background: var(--border-2);
}
.layer.core::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--blue);
}

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road-col { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.road-col.now { border-color: var(--green-soft); }
.road-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.road-head .rt { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.road-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.road-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.road-list li .mk { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; border: 1px solid var(--border-2); }
.road-col.now .mk { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px rgba(85,216,138,0.5); }
.road-col.next .mk { background: var(--amber); border-color: var(--amber); }
.road-col.later .mk { background: transparent; }

/* ============================================================
   Final CTA
   ============================================================ */
.final {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(107,141,255,0.13), transparent 70%),
    var(--surface);
  padding: clamp(48px, 7vw, 84px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
}
.final > * { position: relative; }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); }
.final .lead { margin: 20px auto 0; text-align: center; }
.final-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 56px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 22px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 90px); }
.footer-col h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-faint); font-family: var(--mono); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-copy, .diagram, .eth-intro, .eth-features, .card, .product, .layer { min-width: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .diagram { max-width: 460px; }
  .eth-layout { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layer { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .grid-3, .suite-grid, .roadmap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .grid-2, .eth-features { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; gap: 48px; }
  .btn { white-space: normal; text-align: center; }
  .hero-cta .btn, .final-cta .btn { flex: 1 1 auto; justify-content: center; }
  .term-body { overflow-x: hidden; }
  .term-body .ln { white-space: pre-wrap; overflow-wrap: anywhere; }
}
