:root {
  color-scheme: dark;
  --panel: #07111f;
  --panel-2: #0d1728;
  --card: #0e1829;
  --card-strong: #111c2e;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #d5ff5f;
  --accent-soft: #a3e635;
  --border: rgba(148, 163, 184, 0.14);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1240px;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(180deg, #08111d 0%, #0a1322 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a.button {
  font: inherit;
}

.site-shell,
.legal-shell {
  position: relative;
  overflow: clip;
}

.site-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 52px;
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 52px;
}

.topbar,
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 16px;
  z-index: 10;
  padding: 12px 14px;
  margin-bottom: 28px;
  background: rgba(12, 20, 34, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
}

.topbar-pad {
  min-width: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.nav,
.actions,
.hero-actions,
.footer-links,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-top {
  justify-content: center;
}

.topbar-actions {
  justify-self: end;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #0b1020;
  background: var(--accent);
  border-color: transparent;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 12px;
}

.hero-copy,
.hero-card,
.feature-card,
.timeline-card,
.cta,
.legal-page {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.cta,
.legal-page {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h1,
.section-heading h2,
.cta h2,
.legal-page h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.98;
  max-width: 11ch;
}

.lead,
.section-heading p,
.feature-card p,
.timeline-card p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 17px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-list div,
.timeline-step,
.feature-index {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  padding: 24px;
}

.hero-card-top {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-flow {
  display: grid;
  gap: 14px;
}

.flow-step {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.flow-step strong {
  font-size: 15px;
}

.flow-step span {
  color: var(--muted);
  line-height: 1.6;
}

.flow-metrics,
.feature-grid,
.highlight-grid {
  display: grid;
  gap: 14px;
}

.flow-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-chip {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.cta h2,
.legal-page h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 0.96;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.timeline-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-card h3,
.timeline-card h3,
.legal-page h2 {
  margin: 14px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.legal-page ul {
  margin: 0;
  padding-left: 18px;
}

.legal-page li + li {
  margin-top: 10px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 6px;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand span {
  color: var(--muted);
  max-width: 480px;
}

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

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

.legal-page {
  padding: 32px;
}

.legal-page h2 {
  margin-top: 28px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-delay {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease 0.08s, transform 0.85s ease 0.08s;
}

.reveal.is-visible,
.reveal-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .feature-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cta,
  .footer,
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    order: 3;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-pad {
    display: none;
  }

  .nav-top {
    justify-content: flex-start;
  }

  .topbar-actions {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .legal-shell {
    padding: 14px 14px 40px;
  }

  .topbar,
  .legal-header {
    top: 10px;
    margin-bottom: 18px;
    padding: 14px;
  }

  .hero-copy,
  .hero-card,
  .cta,
  .legal-page,
  .feature-card,
  .timeline-card {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .flow-metrics {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .hero-actions,
  .cta-actions,
  .actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .footer {
    padding-top: 22px;
  }
}
