:root {
  --bg: #090909;
  --bg-soft: #121212;
  --card: #171717;
  --card-2: #1d1d1d;
  --text: #f4f4f4;
  --muted: #c8c8c8;
  --muted-soft: #a6a6a6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff7a1a;
  --accent-2: #ff9a4d;
  --link: #7fd7ff;
  --ok: #6ee7a8;
  --warn: #ffcc80;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1120px;
  --content-max: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.14), transparent 22%),
    linear-gradient(180deg, #0a0a0a 0%, #090909 45%, #070707 100%);
  color: var(--text);
  line-height: 1.68;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(127, 215, 255, 0.75);
  outline-offset: 3px;
}

main [id] {
  scroll-margin-top: 112px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent), #d85c00);
  color: #ffffff;
  font-size: 20px;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  row-gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #e46300);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.25);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

a.btn-primary,
.nav-links a.btn-primary {
  color: #ffffff;
}

a.btn-secondary,
.nav-links a.btn-secondary {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.stack-note {
  margin-top: 16px;
}

.stack-note-tight {
  margin-top: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.2);
  color: #ffb37d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.surface,
.hero-panel,
.panel,
.app-card,
.step-card,
.faq-card,
.beta-card,
.page-card,
.timeline-card,
.stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 20px;
  max-width: 72ch;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-block {
  padding: 34px 0 0;
}

.proof-strip {
  margin: 0 0 34px;
}

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

.proof-tile {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.proof-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-value {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.proof-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.page-shell {
  padding: clamp(34px, 5vw, 60px) 0 68px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 34px;
}

.page-card,
.timeline-card,
.stat-card {
  padding: 26px;
  min-width: 0;
}

.page-title {
  margin: 18px 0 16px;
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.5vw, 3.95rem);
  line-height: 1.08;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  max-width: 62ch;
}

.page-card > p,
.timeline-card > p,
.info-card > p,
.goal-card > p,
.about-card > p,
.resource-card > p,
.policy-card > p,
.callout-band p,
.callout p,
.vision-callout p {
  max-width: var(--content-max);
}

.status-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 14px;
}

.status-line.warn {
  color: var(--warn);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat-card {
  background: var(--card);
  padding: 18px;
}

.stat-label {
  display: block;
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.22);
  color: #ffd3b0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-card h2,
.page-card h2,
.stat-card h2,
.panel h2 {
  margin: 0 0 10px;
}

.page-card h3,
.timeline-card h3,
.info-card h3 {
  margin: 0 0 10px;
}

.page-card > :last-child,
.timeline-card > :last-child,
.info-card > :last-child,
.goal-card > :last-child,
.about-card > :last-child,
.resource-card > :last-child,
.policy-card > :last-child,
.footer-group > :last-child {
  margin-bottom: 0;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  max-width: var(--content-max);
}

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

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card-grid-2,
.card-grid-3 {
  display: grid;
  gap: 18px;
}

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

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

.info-card {
  padding: 24px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.callout-band {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 122, 26, 0.22);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.12), rgba(255, 122, 26, 0.05));
  box-shadow: var(--shadow);
}

.callout-band h2 {
  margin: 0 0 10px;
}

.subsection-note {
  max-width: 60ch;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0 0;
}

.foot {
  padding: 32px 0 60px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
  text-align: left;
}

.footer-group {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.footer-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.footer-meta {
  text-align: center;
}

.footer-subnote {
  margin-top: 6px;
  color: var(--muted);
}

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .page-hero,
  .split-grid,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .page-title {
    max-width: 16ch;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 16px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .nav-links a {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 20px, var(--max));
  }

  .page-shell {
    padding-top: 28px;
  }

  .page-card,
  .timeline-card,
  .stat-card {
    padding: 20px;
  }

  .page-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .lead {
    font-size: 1rem;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .btn {
    width: 100%;
  }

  .proof-strip-grid {
    grid-template-columns: 1fr;
  }
}
