/* ============================================================
   Specter AI — landing page
   Design tokens (Ink Black / Bone White, monochrome + brand accents)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --fg: #111111;
  --fg-dim: rgba(17, 17, 17, .62);
  --fg-faint: rgba(17, 17, 17, .4);
  --line: rgba(17, 17, 17, .12);
  --panel: #F6F6F5;
  --panel2: #EDEDEC;

  --glass-bg: rgba(255, 255, 255, .42);
  --glass-border: rgba(17, 17, 17, .10);
  --glass-border-hover: rgba(17, 17, 17, .28);
  --glass-shadow: 0 30px 70px rgba(17, 17, 17, .12);
  --glass-shadow-hover: 0 36px 80px rgba(17, 17, 17, .18);
  --glass-glow: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .9), transparent 60%);

  --drawer-glass-bg: rgba(150, 150, 148, .02);
  --scrim-bg: rgba(255, 255, 255, .08);

  --card-border-hover: rgba(17, 17, 17, .3);
  --card-shadow-hover: 0 16px 40px rgba(17, 17, 17, .14);

  --lime: #CCFF00;
  --lime-ink: #10160A;
  --max-color: var(--fg);
  --telegram-grad: var(--fg);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: Inter, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #141517;
  --fg: #F5F5F4;
  --fg-dim: rgba(245, 245, 244, .62);
  --fg-faint: rgba(245, 245, 244, .4);
  --line: rgba(245, 245, 244, .12);
  --panel: #1E1F22;
  --panel2: #26272B;

  --glass-bg: rgba(255, 255, 255, .06);
  --glass-border: rgba(245, 245, 244, .14);
  --glass-border-hover: rgba(245, 245, 244, .32);
  --glass-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  --glass-shadow-hover: 0 36px 80px rgba(0, 0, 0, .55);
  --glass-glow: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .14), transparent 60%);

  --drawer-glass-bg: rgba(30, 31, 34, .085);
  --scrim-bg: rgba(0, 0, 0, .5);

  --card-border-hover: rgba(245, 245, 244, .35);
  --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, .5);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

body.drawer-open { overflow: hidden; }

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

a { color: inherit; }

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

p { margin: 0; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

.section {
  padding: 80px clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: 52px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 2px;
  border: none;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  color: #fff;
}

.btn--telegram { background: var(--telegram-grad); }
.btn--max { background: var(--max-color); }

.btn--ghost {
  padding: 16px 4px;
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-dim);
}

.badge--lime {
  color: var(--lime-ink);
  background: var(--lime);
  border-color: var(--lime);
}

.badge--lime .dot {
  background: var(--lime-ink);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.4); }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 26px clamp(20px, 4vw, 48px);
}

.site-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
  transition: transform .35s, opacity .35s;
  display: flex;
  align-items: center;
  gap: 1px;
}

.site-logo.is-hidden {
  transform: translate(-50%, -50%) translateY(-40px);
  opacity: 0;
}

.site-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.site-logo .tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-left: 10px;
}

.burger {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: .35s cubic-bezier(.65, 0, .35, 1);
  transform: none;
}

.burger span:first-child { width: 26px; }
.burger span:last-child { width: 18px; }

.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Scrim + drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim-bg);
  backdrop-filter: blur(2px);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 360px;
  max-width: 88vw;
  background: var(--drawer-glass-bg);
  backdrop-filter: blur(5px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px rgba(17, 17, 17, .12);
  z-index: 190;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__nav-link {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.drawer__contacts { padding-top: 22px; margin-top: 6px; }

.drawer__social {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.drawer__social a {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.drawer__legal-note {
  color: var(--fg-faint);
  font-size: 11.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.drawer__email {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.drawer__privacy-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0 4px;
  display: block;
  margin-top: 18px;
}

.drawer__theme { padding-top: 24px; }

/* --- theme-toggle + switch: copied 1:1 from frontend/src/styles.css
   (ThemeToggle / .switch, .track), --panel-2 -> --panel2, --font-ui ->
   --font-body — same tokens, landing's own names. --- */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  user-select: none;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch .track {
  width: 42px;
  height: 24px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel2);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.2s;
}
.switch input:checked + .track {
  background: var(--fg);
  border-color: var(--fg);
}
.switch input:checked + .track::after {
  transform: translateX(18px);
  background: var(--bg);
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.switch.busy {
  opacity: 0.55;
  pointer-events: none;
}

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

.hero {
  padding: 150px clamp(20px, 4vw, 48px) 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04;
  max-width: 17ch;
  margin-bottom: 26px;
}

.hero .btn--primary,
.start-section .btn--primary {
  background: var(--fg);
  color: var(--bg);
}

.hero h1 + .badge,
.hero > .lead + .badge {
  margin-bottom: 26px;
}

.hero h1 .logo-inline,
.start-section h2 .logo-inline {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero h1 .logo-inline img,
.start-section h2 .logo-inline img {
  height: 0.94em;
  width: 0.94em;
  object-fit: contain;
  margin-right: 0.02em;
}

.hero .lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-dim);
  max-width: 54ch;
  margin-bottom: 38px;
  font-weight: 400;
  line-height: 1.5;
}

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

.meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

.hero .badge--lime { margin-top: 22px; }

.hero h2 {
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.08;
  max-width: 20ch;
  margin-top: 34px;
  margin-bottom: 24px;
}

.hero p.body {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 60ch;
  margin-bottom: 14px;
  line-height: 1.6;
}

.hero .divider {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
}

.hero .divider h3 {
  font-size: 21px;
}

/* ---------- Mockup cards ---------- */

.mock-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
  align-items: center;
}

.mock-invoice {
  position: relative;
  background: #FAFAF8;
  border-radius: 4px;
  padding: 28px 26px;
  color: #111111;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .3);
  transform: rotate(-2deg);
  max-width: 360px;
  animation: floatA 7s ease-in-out infinite;
  overflow: hidden;
}

@keyframes floatA {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

.mock-invoice .scan-line {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 53, 43, .95), transparent);
  top: 6%;
  animation: scanLine 3.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(232, 53, 43, .6);
}

@keyframes scanLine {
  0% { top: 6%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 94%; opacity: 0; }
}

.mock-invoice .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8A8A86;
  margin-bottom: 16px;
}

.mock-invoice h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.mock-invoice .sub {
  color: #8A8A86;
  font-size: 12.5px;
  margin-bottom: 20px;
}

.mock-invoice .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #E4E2DC;
  font-size: 13px;
}

.mock-invoice .row span:first-child { color: #8A8A86; }
.mock-invoice .row span:last-child { font-weight: 700; }

.mock-invoice .row--total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #111111;
  font-size: 16px;
  font-weight: 700;
}

.mock-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 26px;
  max-width: 380px;
  box-shadow: var(--glass-shadow);
  animation: floatB 7s ease-in-out .5s infinite;
  position: relative;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s;
}

.mock-glass:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-glass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mock-glass__head .title { font-weight: 700; font-size: 14px; }

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 2px;
}

.mock-glass .kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mock-glass .kv:last-child { border-bottom: none; }

.mock-glass .kv .k {
  color: var(--fg-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.mock-glass .kv .v { font-weight: 600; font-size: 14px; }
.mock-glass .kv .v--sum { font-weight: 700; font-size: 15px; }

/* ============================================================
   Stats bar
   ============================================================ */

.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px clamp(20px, 4vw, 48px);
}

.stats-bar__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 6px;
}

.stat .desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* ============================================================
   Cards (features / how / who / ecosystem)
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.card .icon-box {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.card p {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

#features .card p + p { margin-top: 12px; }

#features > h3 { margin: 28px 0 12px; }

#features > h3 + .section-lead { margin-bottom: 0; }

/* ---------- How / who: bordered cards on transparent bg ---------- */

.bordered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.bordered-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.bordered-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.bordered-card .step {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 18px;
}

.bordered-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.bordered-card p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
}

#how .bordered-card p + p { margin-top: 12px; }

.who-grid .bordered-card {
  padding: 32px 30px;
}

.who-grid .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 16px;
  display: block;
}

.who-grid h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.who-grid p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

.who-grid p + p { margin-top: 12px; }

/* ============================================================
   Ecosystem / future section
   ============================================================ */

.future-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(32px, 5vw, 60px);
}

.future-panel > .section-lead { margin-bottom: 44px; }

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.eco-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.eco-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.eco-card.is-active { border-color: var(--fg); }

.eco-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.eco-card p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

.eco-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.eco-tag--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime-ink);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 100px;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.eco-tag--live .dot {
  animation: pulseDot 1.8s ease-in-out infinite;
}

.max-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.max-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-glow);
  pointer-events: none;
}

.max-link-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.max-link-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.max-link-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}

.max-link-card h4 {
  font-size: 16px;
  margin-bottom: 3px;
}

.max-link-card p {
  font-size: 13.5px;
  color: var(--fg-dim);
  margin: 0;
}

.max-link-card__status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
  position: relative;
}

/* ============================================================
   Start / final CTA
   ============================================================ */

.start-section {
  text-align: center;
  padding: 60px clamp(20px, 4vw, 48px) 120px;
  max-width: 900px;
  margin: 0 auto;
}

.start-section .eyebrow { margin-bottom: 22px; }

.start-section h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  margin-bottom: 22px;
}

.start-section .lead {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.start-section .cta-row {
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 24px;
}

.start-section .footnote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-faint);
}

.start-section .footnote b { color: var(--fg); font-weight: 700; }

.subscription__price {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 12px;
}

.subscription__details {
  max-width: 58ch;
  margin: 16px auto 0;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
}

.founder-offer {
  margin: 28px auto 0;
  padding-top: 24px;
  max-width: 58ch;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Connection request
   ============================================================ */

.request-trigger {
  background: none;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.drawer .request-trigger { border-bottom: 1px solid var(--line); }

body.request-open { overflow: hidden; }

.request-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--glass-shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.request-dialog::backdrop {
  background: var(--scrim-bg);
  backdrop-filter: blur(5px) saturate(180%);
}

.request-dialog h2 {
  padding-right: 24px;
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
}

.request-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 28px;
}

.request-note {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.request-form { display: grid; gap: 24px; }
.request-consents { display: grid; gap: 16px; }
.request-status { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
.request-status:empty { display: none; }

.request-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.request-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.request-field--wide { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .request-form__fields { grid-template-columns: minmax(0, 1fr); }
}

.request-field input {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--fg);
  font: 16px var(--font-body);
}

.request-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
}

.request-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--fg);
  color-scheme: light;
}

[data-theme="dark"] .request-consent input { color-scheme: dark; }

.request-consent a { color: var(--fg); text-underline-offset: 3px; }

.request-dialog :focus-visible,
.request-trigger:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.request-submit {
  justify-self: start;
  max-width: 100%;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--line);
}

.request-submit:disabled {
  background: var(--panel2);
  color: var(--fg-dim);
  cursor: not-allowed;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(20px, 4vw, 48px);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.site-footer__about {
  max-width: 56ch;
}

.site-footer__about img {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
}

.site-footer__about p {
  color: var(--fg-faint);
  font-size: 12.5px;
  line-height: 1.6;
}

.site-footer__about a {
  color: var(--fg-dim);
  text-decoration: underline;
}

.site-footer__nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13.5px;
}

/* ============================================================
   Shared sub-page chrome
   (privacy, platform, features, how-it-works, ecosystem, investors)
   ============================================================ */

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

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

.page-nav .brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.page-nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-nav--menu {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
}

.back-link {
  color: var(--fg-dim);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 600;
}

.page-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 48px) 100px;
}

.page-article h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-article .muted {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-faint);
  font-style: normal;
}

.page-article h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-article h1 { overflow-wrap: anywhere; }

.page-article p {
  color: var(--fg-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-article p:last-child { margin-bottom: 0; }

.page-article strong { color: var(--fg); }

.page-article ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--fg-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

.page-article li { margin-bottom: 6px; }

.page-article hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 4vw, 48px);
  text-align: center;
}

.page-footer a {
  color: var(--fg-dim);
  text-decoration: underline;
  font-size: 13.5px;
}

/* Wider variant of .page-article for pages carrying the landing's own
   card grids (features/how/ecosystem) at their native width. */
.page-section {
  padding: 60px clamp(20px, 4vw, 48px) 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-section .eyebrow { margin-bottom: 14px; }

.detail-page .card h2 { font-size: 21px; margin-bottom: 12px; }
.detail-page .bordered-card h2 { font-size: 18px; margin-bottom: 10px; }
.detail-page .eco-card h2 { font-size: 16px; margin-bottom: 8px; }
.detail-section { margin-top: 44px; }
.detail-section > h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
.detail-section > .section-lead { margin-bottom: 18px; }
.detail-section .bordered-card p + p { margin-top: 12px; }
.detail-page h1, .detail-page h2 { overflow-wrap: anywhere; }

.page-section h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 18px;
}

/* "Coming soon" placeholder (investors page) */
.empty-state {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px clamp(20px, 4vw, 48px);
}

.empty-state p {
  color: var(--fg-faint);
  font-size: 19px;
}

/* Small underlined "read more" link at the end of a hero/section block —
   same visual language as .back-link / .drawer__privacy-link. */
.more-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--fg-dim);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Page-to-page fade transition
   ============================================================ */

html.fade-ready body {
  opacity: 0;
}

html.fade-ready body.fade-in {
  opacity: 1;
  transition: opacity 0.2s ease;
}

html.fade-ready body.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================================
   Responsive tweaks
   ============================================================ */

@media (max-width: 600px) {
  .hero { padding-top: 120px; }
}

@media (max-width: 420px) {
  .site-logo .wordmark { font-size: 24px; }
  .site-logo img { width: 26px; height: 26px; }
}
