:root {
  --bg: #08050c;
  --bg-soft: #0e0817;
  --surface: #150e21;
  --surface-2: #1b1229;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3eef9;
  --text-dim: #b3a6c9;
  --text-faint: #7d6f96;
  --accent-1: #fc72ff;
  --accent-2: #a259ff;
  --accent-3: #6a3fd6;
  --warn-bg: rgba(255, 184, 77, 0.1);
  --warn-border: rgba(255, 184, 77, 0.35);
  --warn-text: #ffcb80;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(162, 89, 255, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(252, 114, 255, 0.08), transparent 60%),
    var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 10px 1px rgba(252, 114, 255, 0.7);
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #180a20;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 24px -6px rgba(162, 89, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px -6px rgba(252, 114, 255, 0.65);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 5, 12, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links-mobile,
.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin: 18px 0 20px;
}

.hero-copy p.lede {
  font-size: 17.5px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--warn-text);
}

.hero-stage {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  perspective: 1400px;
}

#orb-canvas {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  pointer-events: none;
}

.mock-frame {
  position: relative;
  width: 300px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
  padding: 14px;
}

.mock-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(252, 114, 255, 0.16), transparent 40%);
  pointer-events: none;
}

.mock-frame img {
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
}

/* ---------- Testnet banner ---------- */

.banner {
  border-top: 1px solid var(--warn-border);
  border-bottom: 1px solid var(--warn-border);
  background: var(--warn-bg);
}

.banner .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 13.5px;
  color: var(--warn-text);
  font-weight: 500;
}

.banner svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Section shared ---------- */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  margin-top: 14px;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(252, 114, 255, 0.18), rgba(162, 89, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-1);
}

.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---------- Trust bar ---------- */

.trustbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.trustbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding: 16px 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
}

.trust-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent-1);
}

/* ---------- Split sections (Privacy / Security) ---------- */

.split-section .wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.split-reverse .wrap {
  grid-template-columns: 1fr 300px;
}

.split-reverse .split-visual {
  order: 2;
}

.section-head-left {
  max-width: none;
  margin: 0 0 32px;
  text-align: left;
}

.split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-badge {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(252, 114, 255, 0.16), rgba(162, 89, 255, 0.05) 60%, transparent 75%);
  border: 1px solid var(--border-strong);
}

.glow-badge-lg svg {
  width: 68px;
  height: 68px;
  color: var(--accent-1);
  filter: drop-shadow(0 0 18px rgba(252, 114, 255, 0.45));
  position: relative;
  z-index: 2;
}

.glow-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(252, 114, 255, 0.18);
  animation: pulse-ring 4s ease-in-out infinite;
}

.glow-ring-2 {
  inset: -40px;
  border-color: rgba(162, 89, 255, 0.12);
  animation-delay: 1.2s;
  animation-duration: 5.5s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 0.25; }
}

.privacy-list {
  display: grid;
  gap: 22px;
}

.privacy-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.privacy-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-1);
  flex: none;
  margin-top: 2px;
}

.privacy-item h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.privacy-item p {
  font-size: 14px;
  color: var(--text-dim);
}

.privacy-item code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---------- Integrations CTA ---------- */

.integrations-cta {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(252, 114, 255, 0.08), rgba(162, 89, 255, 0.05));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.integrations-cta span {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 44ch;
}

.integrations-cta code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---------- Screenshots ---------- */

.shots-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shot-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.shot-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -24px rgba(162, 89, 255, 0.4);
}

.shot-card .shot-caption {
  padding: 18px 20px 22px;
}

.shot-card .shot-caption h4 {
  font-size: 14.5px;
  margin-bottom: 4px;
}

.shot-card .shot-caption p {
  font-size: 13px;
  color: var(--text-faint);
}

.shot-image {
  aspect-ratio: 320 / 410;
  background:
    radial-gradient(70% 55% at 50% 20%, rgba(252, 114, 255, 0.14), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 22px 20px 0;
}

.shot-toolbar {
  width: 100%;
  max-width: 248px;
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 11px 11px 0 0;
  position: relative;
  z-index: 2;
}

.shot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.55;
}

.shot-toolbar-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.shot-toolbar-chip img {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.shot-frame {
  width: 100%;
  max-width: 248px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 9px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(140deg, rgba(252, 114, 255, 0.14), transparent 45%);
  pointer-events: none;
}

.shot-image img {
  width: 100%;
  display: block;
  border-radius: 9px;
  border: 1px solid var(--border);
  position: relative;
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.how-step {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.how-step .step-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 12px;
  display: block;
}

.how-step h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Origin / about-the-name ---------- */

.origin {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.07), rgba(252, 114, 255, 0.03));
  padding: 44px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: center;
}

.origin + .origin {
  margin-top: 20px;
}

a.origin-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a.origin-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.12), rgba(252, 114, 255, 0.05));
}

a.origin-link .eyebrow {
  margin-bottom: 8px;
}

a.origin-link h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.origin-mark-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(252, 114, 255, 0.18), rgba(162, 89, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.origin-mark-icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent-1);
}

.origin-cta {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent-1);
}

.origin-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.origin h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.origin p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  padding: 90px 0 110px;
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 30px;
}

.cta .hero-cta {
  justify-content: center;
}

/* ---------- Support / Donate ---------- */

.support-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.06), rgba(252, 114, 255, 0.02));
}

.support-copy p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.support-label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.support-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.support-address code {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text);
}

.support-copy-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.support-copy-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.support-copy-btn svg {
  width: 14px;
  height: 14px;
}

.support-copy-btn.copied {
  color: var(--good);
  border-color: rgba(52, 201, 143, 0.4);
}

.support-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--warn-text);
}

@media (max-width: 820px) {
  .support-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    height: 360px;
    order: -1;
    justify-content: center;
  }

  .features-grid,
  .shots-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .how {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section .wrap,
  .split-reverse .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-reverse .split-visual {
    order: 0;
  }

  .glow-badge {
    width: 140px;
    height: 140px;
  }

  .glow-badge-lg svg {
    width: 52px;
    height: 52px;
  }

  .origin {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 32px;
  }

  .origin-mark {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .features-grid,
  .shots-strip,
  .how {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .trustbar .wrap {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .integrations-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ---------- Essay (The Ootle Thesis) ---------- */

.essay {
  max-width: 700px;
  margin: 0 auto;
  padding: 76px 24px 120px;
  font-family: "Source Serif 4", Georgia, serif;
}

.essay-hero {
  margin-bottom: 40px;
}

.essay-hero .eyebrow {
  font-family: var(--font-head);
  margin-bottom: 18px;
}

.essay-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.14;
  color: var(--text);
  margin-bottom: 20px;
}

.essay-dek {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 52ch;
}

.essay p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.essay .essay-lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 32px;
}

.essay em {
  color: var(--text);
  font-style: italic;
}

.essay strong {
  color: var(--text);
  font-weight: 600;
}

.essay a {
  color: var(--accent-1);
  text-decoration: underline;
  text-decoration-color: rgba(252, 114, 255, 0.4);
  text-underline-offset: 2px;
}

.essay h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 27px);
  color: var(--text);
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}

.essay ul {
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
}

.essay li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-left: 26px;
  position: relative;
}

.essay li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.essay li strong {
  font-family: var(--font-head);
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.pull-quote {
  margin: 40px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent-1);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.essay-close {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.essay-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-family: var(--font-head);
}

.essay-cta a {
  text-decoration: none;
}

.essay-cta a.btn-primary {
  color: #180a20;
}

.essay-cta a.btn-ghost {
  color: var(--text);
}

.essay-figure {
  display: flex;
  justify-content: center;
  margin: 48px 0;
}

/* Timeline (Cash -> Digital rails -> Public ledgers -> Confidential computation) */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 40px 0 48px;
  padding-top: 14px;
}

.timeline-track {
  position: absolute;
  top: 20px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent-1) 90%);
}

.timeline-node {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.timeline-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
}

.timeline-node-accent .timeline-dot {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 12px 1px rgba(252, 114, 255, 0.6);
}

.timeline-node svg {
  width: 22px;
  height: 22px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.timeline-node-accent svg {
  color: var(--accent-1);
}

.timeline-node h4 {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-node p {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 0;
}

/* Transparent vs. confidential ledger comparison */

.ledger-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 8px 0 40px;
}

.ledger-panel {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.ledger-panel-accent {
  border-color: rgba(252, 114, 255, 0.25);
  background: linear-gradient(160deg, rgba(252, 114, 255, 0.06), rgba(162, 89, 255, 0.02));
}

.ledger-panel-label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.ledger-panel-label-accent {
  color: var(--accent-1);
}

.ledger-chain {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ledger-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  flex: none;
  position: relative;
}

.ledger-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--border-strong);
}

.ledger-node-hidden {
  background: transparent;
  border-style: dashed;
  border-color: var(--text-faint);
  opacity: 0.6;
}

.ledger-node-you {
  width: auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: #180a20;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  border: none;
}

.ledger-panel p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* Account model vs. substate model parallel-validation diagram */

.parallel-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 8px 0 40px;
}

.parallel-col {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.parallel-col-accent {
  border-color: rgba(252, 114, 255, 0.25);
  background: linear-gradient(160deg, rgba(252, 114, 255, 0.06), rgba(162, 89, 255, 0.02));
}

.parallel-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.parallel-label-accent {
  color: var(--accent-1);
}

.parallel-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.parallel-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.parallel-tx {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.parallel-tx-tagged {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.parallel-tx-tagged small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-faint);
}

.parallel-arrow {
  font-size: 16px;
  color: var(--text-faint);
  margin: 8px 0;
}

.parallel-arrow-accent {
  color: var(--accent-1);
}

.parallel-box {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text-faint);
}

.parallel-box-shared {
  background: rgba(236, 95, 86, 0.08);
  border: 1px dashed rgba(236, 95, 86, 0.4);
}

.parallel-box-split {
  display: flex;
  gap: 5px;
  background: none;
  padding: 0;
}

.parallel-box-split span {
  flex: 1;
  padding: 9px 0;
  border-radius: 7px;
  background: rgba(201, 235, 0, 0.08);
  border: 1px solid rgba(201, 235, 0, 0.35);
  color: var(--text);
  font-size: 11px;
}

.parallel-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 14px 0 0;
}

.parallel-note-accent {
  color: var(--text-dim);
}

/* Shielded pool -> public contract bridge-leak diagram */

.bridge-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 0 14px;
}

.bridge-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--text-dim);
}

.bridge-box svg {
  width: 26px;
  height: 26px;
}

.bridge-box-private {
  background: rgba(255, 255, 255, 0.015);
}

.bridge-box-private svg {
  color: var(--text-faint);
}

.bridge-box-public {
  background: linear-gradient(160deg, rgba(252, 114, 255, 0.06), rgba(162, 89, 255, 0.02));
  border-color: rgba(252, 114, 255, 0.25);
}

.bridge-box-public svg {
  color: var(--accent-1);
}

.bridge-link {
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.bridge-line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--warn-text) 0 6px, transparent 6px 11px);
}

.bridge-leak {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--warn-text);
  text-align: center;
  line-height: 1.3;
}

.diagram-caption {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0 0 30px;
}

@media (max-width: 560px) {
  .bridge-diagram {
    flex-direction: column;
  }

  .bridge-link {
    width: auto;
    flex-direction: row;
    padding: 10px 0;
  }

  .bridge-line {
    width: 40px;
    height: auto;
    align-self: center;
    background: none;
  }
}

@media (max-width: 680px) {
  .essay {
    padding: 56px 20px 90px;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .timeline-track {
    display: none;
  }

  .ledger-compare,
  .parallel-diagram {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages (Privacy / Terms) ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.legal .eyebrow {
  margin-bottom: 14px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.legal .updated {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 19px;
  margin: 40px 0 14px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 16px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--accent-1);
}

.legal strong {
  color: var(--text);
}

.legal code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.legal a {
  color: var(--accent-1);
}

.legal .callout {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 28px;
}

.legal .callout p {
  color: var(--warn-text);
  margin: 0;
  font-size: 14px;
}
