:root {
  color-scheme: dark;
  --bg: #0d1319;
  --bg-elevated: rgba(18, 28, 36, 0.88);
  --panel: rgba(15, 22, 29, 0.84);
  --panel-strong: rgba(20, 30, 38, 0.94);
  --line: rgba(171, 193, 209, 0.18);
  --line-strong: rgba(171, 193, 209, 0.3);
  --text: #edf4f7;
  --muted: #a4b5bf;
  --accent: #c5d9e6;
  --accent-strong: #eef6fb;
  --success: #9fe0b3;
  --error: #ff8f8f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(117, 156, 183, 0.22), transparent 28%),
    radial-gradient(circle at right center, rgba(83, 105, 122, 0.18), transparent 26%),
    linear-gradient(180deg, #0b1016 0%, #101820 48%, #0c1218 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    rgba(9, 14, 19, 0.72);
  box-shadow: var(--shadow);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(227, 241, 249, 0.06), transparent 18%),
    linear-gradient(120deg, transparent 0 47%, rgba(181, 206, 220, 0.08) 47.5%, transparent 48%),
    linear-gradient(35deg, transparent 0 64%, rgba(181, 206, 220, 0.07) 64.5%, transparent 65%);
  pointer-events: none;
}

.site-header,
.hero,
.signal-strip,
.details {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4fbff 0%, #8ca7b9 100%);
  box-shadow: 0 0 0 5px rgba(231, 244, 252, 0.08);
}

.brand-name,
.header-link,
.card-label,
.field span,
.hero-metrics strong,
.details span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.brand-name {
  font-weight: 800;
}

.header-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 244, 247, 0.35);
  padding-bottom: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: start;
  padding: 24px 0 28px;
}

.hero > * {
  min-width: 0;
}

.eyeline {
  margin: 0 0 18px;
  color: var(--accent);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lede {
  margin: 28px 0 0;
  max-width: 61ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero-metrics {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-metrics div,
.details article {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
}

.hero-metrics span,
.details p,
.signal-strip p,
.form-note,
.form-status {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.signup-card {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 34, 43, 0.9), rgba(12, 18, 24, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
}

.card-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(233, 245, 251, 0.08);
  border-radius: 16px;
  pointer-events: none;
}

.card-label {
  margin: 0 0 28px;
  color: var(--accent);
  position: relative;
}

#waitlist-form {
  position: relative;
}

.field {
  display: grid;
  gap: 10px;
}

.field input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(223, 236, 244, 0.04);
  color: var(--text);
  font: inherit;
}

.field input::placeholder {
  color: rgba(237, 244, 247, 0.34);
}

.field input:focus {
  outline: 2px solid rgba(224, 238, 248, 0.4);
  outline-offset: 2px;
}

button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eff7fb 0%, #b9d0dd 100%);
  color: #0a1218;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.form-note {
  margin: 14px 0 0;
}

.form-status {
  min-height: 1.7em;
  margin: 12px 0 0;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.signal-strip {
  margin-top: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip p {
  margin: 0;
  max-width: 54ch;
  font-size: 1.05rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 30px;
}

.details span {
  color: var(--accent);
}

.details h2 {
  margin: 12px 0 10px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.details p {
  margin: 0;
}

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

  .hero-metrics,
  .details {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: auto;
    margin: 0;
    padding: 18px 16px 24px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .site-header {
    padding-bottom: 12px;
  }

  .header-link {
    display: none;
  }

  .hero {
    gap: 24px;
  }

  .eyeline {
    margin-bottom: 12px;
  }

  .lede {
    margin-top: 20px;
    font-size: 1rem;
  }

  .signup-card {
    padding: 22px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(1.95rem, 8.8vw, 3.05rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
  }

  .hero-metrics {
    margin-top: 30px;
  }
}
