/* Self hosted so the browser needs no second origin before it can paint text.
   Regenerate with: node scripts/fetch-fonts.mjs */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-700.woff2') format('woff2');
}

/*
 * Lunar marketing site — deep space theme.
 * Layout and proportions follow the original build: 110deg blue CTA gradient,
 * 100px pills, 20/24/30 radii. Type is IBM Plex Sans over Inter, which reads as
 * engineering rather than marketing, and the palette sits on lunar photography,
 * so surfaces are translucent glass over the sky rather than flat panels.
 */

:root {
  --space: #05070c;
  --space-2: #080b12;
  --ink: #f3f6fb;
  --body: #9db0c6;
  --dim: #6c7c90;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --blue: #3b82f6;
  --blue-deep: #406ae4;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --grad-blue: linear-gradient(110deg, #3b82f6 0%, #406ae4 100%);
  --grad-dark: linear-gradient(110deg, #323232 0%, #000000 100%);
  --grad-red: linear-gradient(0deg, #f28778 0%, #f51c23 100%);
  --shadow-nav: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 40px 90px -50px rgba(0, 0, 0, 0.95);

  --font-display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--space);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }

::selection { background: var(--blue); color: #fff; }

.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 100px;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.lede { font-size: 1.25rem; line-height: 1.35; color: var(--body); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 10px 10px 10px 24px;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-blue);
  box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.24), inset -4px -4px 8px rgba(255, 255, 255, 0.08),
    0 12px 30px -12px var(--blue-glow);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.24), 0 16px 40px -12px var(--blue-glow);
}

.btn .badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.btn .badge svg { width: 10px; height: 10px; }

.btn-shell {
  display: inline-flex;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
  padding: 12px 24px;
}
.btn-ghost:hover { background: var(--surface-strong); }

/* Nav */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding: 20px 0;
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(9, 12, 19, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 10px;
  padding: 9px 10px;
  box-shadow: var(--shadow-nav);
  pointer-events: auto;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  padding-inline: 0.4rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand img { width: 28px; height: 28px; border-radius: 8px; flex: none; }

.nav { display: flex; align-items: center; gap: 0.1rem; }

.nav a {
  padding: 8px 13px;
  border-radius: 100px;
  font-size: 1rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--body);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-strong); color: var(--ink); }
.nav .btn { margin-left: 0.5rem; color: #fff; padding: 8px 8px 8px 18px; gap: 0.6rem; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 194px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0 0 auto; z-index: -2; }

/*
 * The photograph is shown at its own proportions, so its bottom edge lands
 * wherever the picture ends rather than at the bottom of the section. Masking
 * the image itself means there is never an edge to see: it is already
 * transparent by the time it runs out, and the wash below only deepens the
 * colour it dissolves into.
 */
.hero-bg img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0, 0, 0, 0.55) 72%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0, 0, 0, 0.55) 72%, transparent 97%);
}

/* Melts the photograph into the page instead of cutting it off. */
.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 72%;
  background: linear-gradient(
    rgba(5, 7, 12, 0) 0%,
    rgba(5, 7, 12, 0.22) 30%,
    rgba(5, 7, 12, 0.60) 62%,
    rgba(5, 7, 12, 0.88) 84%,
    var(--space) 100%
  );
  z-index: -1;
}

.hero-inner { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }

.hero-logo {
  width: clamp(64px, 8vw, 104px);
  height: clamp(64px, 8vw, 104px);
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

.hero h1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.hero-lede { max-width: 600px; font-size: 1.25rem; line-height: 1.35; color: #b9c7d8; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.5rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

.hero-shot { margin-top: 3.5rem; position: relative; }
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Sections */
.section { padding: 100px 0; position: relative; }

/* Sections below the fold are laid out only when they come near the viewport.
   The height hint keeps the scrollbar honest while they are skipped. */
.section:not(:first-of-type), .private, .faq-band {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section-head { max-width: 800px; display: grid; gap: 1.25rem; margin-bottom: 3.5rem; justify-items: start; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }

/* A faint starfield so plain sections still read as sky. */
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 68% 14%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 34% 72%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 82% 61%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 52% 38%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 91% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 22% 55%, rgba(255, 255, 255, 0.22), transparent);
  background-size: 100% 100%;
  pointer-events: none;
}

/* Before / after */
.compare { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.compare-col {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.compare-col.good { border-color: rgba(59, 130, 246, 0.35); box-shadow: 0 0 60px -30px var(--blue-glow) inset; }

.compare-col .label { font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.compare-col h3 { font-size: 2rem; max-width: 14ch; }

.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.compare li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
  color: var(--body);
}
.compare li .mark {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
}
.compare .bad .mark { background: var(--grad-red); }
.compare .good .mark { background: var(--grad-blue); }
.compare li .mark svg { width: 10px; height: 10px; }

.mini-cards { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.mini-card {
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
  background: rgba(245, 28, 35, 0.09);
  border: 1px solid rgba(245, 28, 35, 0.16);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.mini-card.ok { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.22); }
.mini-card h4 { font-size: 1.25rem; }
.mini-card p { font-size: 0.875rem; }

/* Feature rails */
.rails { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.rail {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rail:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

.rail h3 { font-size: 1.75rem; }
.rail p { font-size: 1rem; color: var(--body); }

/* One card is inverted in the original layout; here it glows instead. */
.rail-dark {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0.03) 60%);
  border-color: rgba(59, 130, 246, 0.3);
}

.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rail-list li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rail-list li i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; box-shadow: 0 0 8px var(--blue); }

/* The original card art is light line work; invert it so it reads on the sky. */
.rail-art { margin-top: 0.5rem; }
.rail-art img {
  border-radius: 14px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.78;
}

.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill-buy {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem; border-radius: 100px;
  background: var(--grad-blue); color: #fff;
}
.pill-hold { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

/*
 * Overview band. No photograph here: the lunar imagery already carries the hero
 * and the FAQ, so this section gets its own light source instead — a blue
 * nebula bloom over a denser starfield.
 */
.overview {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  isolation: isolate;
}

.overview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 24% 62%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 41% 28%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 57% 74%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1px 1px at 69% 16%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.4px 1.4px at 83% 48%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 94% 82%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 15% 88%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 35% 6%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 76% 94%, rgba(255, 255, 255, 0.26), transparent);
  pointer-events: none;
}

.overview .section-head { margin-inline: auto; text-align: center; justify-items: center; }

.overview-notes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1rem; }
.overview-note {
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.5rem;
  font-size: 1rem;
  color: var(--body);
  display: grid;
  gap: 0.75rem;
}
.overview-note .icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-blue); display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px var(--blue-glow);
}
.overview-note .icon svg { width: 16px; height: 16px; }

/* How it works */
.how { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: start; }
.how-stats { display: grid; gap: 1.5rem; }
.how-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}
.how-stat h3 { font-size: 2rem; }
.how-stat p { margin-top: 0.35rem; font-size: 0.9375rem; }

.steps { display: grid; gap: 1rem; margin-top: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}
.step .num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--grad-blue); border-radius: 100px;
  padding: 0.4rem 0.8rem; white-space: nowrap;
}
.step h4 { font-size: 1.5rem; }
.step p { margin-top: 0.5rem; font-size: 1rem; }

/* Private markets */
.private { position: relative; overflow: hidden; isolation: isolate; padding: 100px 0; }
.private-inner { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 575px); align-items: center; }
.private-inner.solo { grid-template-columns: minmax(0, 820px); justify-content: center; text-align: center; }
.private-inner.solo .private-stats { justify-items: center; }
.private-inner.solo .btn-shell { justify-self: center; }
.private-stats { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-top: 2rem; }
.private-stats h3 { font-size: 2.5rem; }
.private-stats p { margin-top: 0.35rem; font-size: 0.9375rem; }
.private img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* Security */
.security { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 628px); align-items: center; }
.security-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 2.5rem;
  display: grid;
  gap: 1rem;
  align-content: center;
}
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.security-list li {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 100px; padding: 0.75rem 1.1rem;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.security-list li .tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-blue); display: grid; place-items: center; flex: none;
}
.security-list li .tick svg { width: 10px; height: 10px; }

/* Integrations */
.integrations-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  overflow: hidden;
}

.marquee { width: 100%; overflow: hidden; margin-top: 1rem; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; flex: none;
}
.chip-logo img { width: 32px; height: 32px; }

/* Platform stats */
.stats-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.stat-card .kicker { font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.stat-card h3 { font-size: 1.75rem; }
.stat-card p { font-size: 0.9375rem; }
.stat-card .live { font-family: var(--font-mono); font-size: 1.25rem; color: var(--ink); }
.stat-card.dark {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.03) 60%);
  border-color: rgba(59, 130, 246, 0.3);
}

/* FAQ */
.faq-band { position: relative; overflow: hidden; isolation: isolate; padding: 100px 0; }

/*
 * The astronaut sits behind the questions. Masked at both ends so the picture
 * fades in and out of the page instead of meeting it at an edge: the earlier
 * version ended on a hard line right where the footer began.
 */
.faq-bg { position: absolute; inset: 0; z-index: -2; }
.faq-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 94%);
}

.faq { display: grid; gap: 0.75rem; max-width: 860px; margin-inline: auto; }
.faq details {
  background: rgba(10, 14, 22, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 0 1.5rem;
}
.faq details[open] { border-color: rgba(255, 255, 255, 0.2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--ink);
  display: grid; place-items: center; flex: none;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 500;
}
.faq details[open] summary .sign { background: var(--grad-blue); color: #fff; }
.faq p { padding: 0 0 1.5rem; font-size: 1rem; color: var(--body); max-width: 68ch; }

/* Closing CTA + footer */
.closing { padding: 100px 0; position: relative; }
.closing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.footer { padding: 3rem 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); padding-bottom: 2.5rem; }
.footer h5 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer a { font-size: 0.9375rem; color: var(--body); }
.footer a:hover { color: var(--ink); }
.footer-note {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--dim);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.socials a:hover { color: var(--ink); border-color: var(--line); }
.socials svg { width: 14px; height: 14px; }

/* Live chain data, wired to the same API the terminal uses */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--body);
}
.live-strip span {
  background: rgba(10, 14, 22, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
}
.live-strip b { color: var(--ink); font-weight: 600; }
.up { color: #4ade80; }
.down { color: #f87171; }

.live-panel {
  background: rgba(10, 14, 22, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
}
.live-panel .head { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.live-panel .head h3 { font-size: 1.25rem; }
.live-panel .head .eyebrow { margin-left: auto; font-size: 0.8125rem; padding: 0.35rem 0.85rem; }
.scroll-x { overflow-x: auto; }

.live-table { width: 100%; border-collapse: collapse; }
.live-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.live-table td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
}
.live-table tbody tr:last-child td { border-bottom: none; }
.live-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.live-table a { color: var(--body); }
.live-table a:hover { color: var(--blue); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.dot.idle { background: var(--dim); box-shadow: none; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Roadmap */
.phase { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 3rem; padding: 3rem 0; border-top: 1px solid var(--line-soft); }
.phase:first-of-type { border-top: none; }
.phase .tag-phase { display: inline-flex; align-items: center; gap: 0.6rem; }
.phase h3 { margin-top: 1rem; }
.phase-groups { display: grid; gap: 1.5rem; }
.phase-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
}
.phase-group h4 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.phase-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.phase-group li { display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; font-size: 1rem; color: var(--body); }
.phase-group li span.bullet { width: 18px; height: 18px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; margin-top: 2px; }
.phase-group li span.bullet svg { width: 9px; height: 9px; }

/* Docs */
.docs { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.docs-nav { position: sticky; top: 110px; display: grid; gap: 0.2rem; }
.docs-nav h5 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 1.2rem 0 0.5rem 0.9rem;
}
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--body);
  transition: background 0.16s ease, color 0.16s ease;
}
.docs-nav a:hover { background: var(--surface); color: var(--ink); }
.docs-nav a.active { background: var(--surface-strong); color: var(--ink); }

.prose { max-width: 76ch; }
.prose section { padding-top: 1rem; margin-bottom: 3.5rem; scroll-margin-top: 120px; }
.prose h2 { font-size: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.65; color: var(--body); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.6; color: var(--body); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.8125rem; line-height: 1.7; color: #cfe0f5; }
/* Fixed layout keeps long addresses inside the column instead of widening the page. */
.docs > *, .prose { min-width: 0; }
.prose table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.prose th, .prose td { overflow-wrap: anywhere; }
.prose th {
  text-align: left; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.prose td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); color: var(--body); vertical-align: top; }
.prose blockquote {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--blue);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 0 14px 14px 0;
  color: var(--body);
}

@media (max-width: 1024px) {
  .how, .private-inner, .security, .phase, .docs { grid-template-columns: 1fr; }
  .hero { padding-top: 150px; }
  .phase { gap: 1.5rem; }
  .docs-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 0.4rem; padding-bottom: 0.5rem; }
  .docs-nav h5 { display: none; }
}

@media (max-width: 860px) {
  /* A landscape photograph over a tall phone hero leaves only a strip of sky,
     so here the picture fills the opening screen and is cropped instead. */
  .hero-bg { height: min(76vh, 100%); }
  .hero-bg img { height: 100%; object-fit: cover; object-position: 62% 40%; }
  .hero-fade { height: 64%; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(9, 12, 19, 0.94);
    backdrop-filter: blur(18px);
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav .btn { justify-content: center; margin: 0.5rem 0 0; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
  }
  .section, .private, .faq-band, .closing { padding: 64px 0; }
  .overview { padding: 120px 0; }
  .mini-cards { grid-template-columns: 1fr; }
  .compare-col, .security-card { padding: 1.75rem; }
  .integrations-card, .closing-card { padding: 2.5rem 1.5rem; }
  .private-stats { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 2rem, var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
