:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0a1424;
  --surface: #0d1729;
  --surface-soft: #111d32;
  --surface-raised: #13223a;
  --border: #1c2c47;
  --border-strong: #2f4770;
  --text: #eef6ff;
  --muted: #8aa1bc;
  --muted-strong: #b7c7db;
  --blue: #3b82f6;
  --blue-soft: #93c5fd;
  --cyan: #22d3ee;
  --green: #7ddf9a;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 17, 31, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 950;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  outline: 0;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(125, 223, 154, 0.42);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(125, 223, 154, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition-property: color;
  transition-duration: 150ms;
}

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

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  place-items: center;
  padding: 118px 24px 92px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--bg-soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: #08111f;
  opacity: 0.72;
}

.hero-mark {
  position: absolute;
  width: min(58vw, 520px);
  right: 5vw;
  top: 88px;
  opacity: 0.18;
  outline: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 12vw, 126px);
  line-height: 0.9;
  font-weight: 950;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.03;
  font-weight: 930;
}

h3 {
  margin: 0;
  font-size: 19px;
}

.hero-text {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 650;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition-property: background-color, border-color, color, transform, box-shadow, opacity;
  transition-duration: 150ms;
}

.primary-action {
  background: var(--blue);
  color: white;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28);
}

.primary-action:hover {
  background: #60a5fa;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-action:active,
.secondary-action:active {
  transform: scale(0.98);
}

.secondary-action {
  border-color: var(--border);
  color: var(--blue-soft);
  background: rgba(13, 23, 41, 0.78);
}

.secondary-action:hover {
  border-color: rgba(147, 197, 253, 0.54);
  color: white;
}

.beta-note {
  width: min(680px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 760;
}

.download-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.download-status.is-error {
  color: var(--danger);
}

.stats-band {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: -56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.stat-item {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item span,
.live-panel span {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  font-weight: 950;
  color: white;
}

.stat-item p,
.live-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 820;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 232px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.feature-card p,
.live-section p,
.download-section p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 640;
}

.live-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.live-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.live-panel > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 24px;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-copy {
  width: min(660px, 100%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

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

  .stats-band,
  .feature-grid,
  .live-section {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .download-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 82svh;
    padding: 104px 18px 82px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
