html {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(47, 92, 181, 0.18), transparent 34%),
    linear-gradient(180deg, #0a1020 0%, #0a1020 100%);
  color: #f3f7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(36, 78, 150, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 78, 150, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 8% 78%, rgba(20, 176, 136, 0.18), transparent 22%),
    radial-gradient(circle at 50% 10%, rgba(58, 114, 255, 0.12), transparent 30%),
    #08101d;
  background-size: 120px 120px, 120px 120px, auto, auto, auto;
}

a {
  color: inherit;
}

.landing-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 96px;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.topbar-actions,
.locale-switch,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  margin-top: 72px;
}

.section-grid {
  display: grid;
  gap: 28px;
}

.hero {
  min-height: min(86vh, 1040px);
  align-items: end;
}

.hero-copy {
  max-width: 860px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #3d82ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 4.9vw, 4.25rem);
  letter-spacing: -0.03em;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.05rem, 1.18vw, 1.22rem);
}

p,
li,
span {
  line-height: 1.65;
}

.hero-accent {
  margin-top: 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.7rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #3f86ff 0%, #2cb6d9 52%, #18c28e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-lede {
  color: #a2aaba;
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
}

.lede {
  max-width: 900px;
  margin-top: 22px;
}

.section-lede {
  max-width: 920px;
  margin-top: 18px;
}

.actions {
  margin-top: 26px;
}

.actions-center {
  justify-content: center;
}

.primary,
.secondary,
.ghost-button,
.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary {
  min-width: 320px;
  border: 1px solid rgba(89, 146, 255, 0.9);
  background: linear-gradient(180deg, #4b87f6 0%, #3c7bef 100%);
  color: #ffffff;
  box-shadow:
    0 20px 50px rgba(60, 123, 239, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.secondary,
.ghost-button,
.locale-link {
  border: 1px solid #334463;
  background: rgba(15, 24, 41, 0.76);
  color: #f3f7ff;
}

.ghost-button {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.locale-link {
  min-height: 44px;
  min-width: 52px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #a5b2cc;
  font-size: 0.92rem;
}

.locale-link.is-active {
  border-color: #4a7cff;
  background: rgba(74, 124, 255, 0.16);
  color: #ffffff;
}

.primary:hover,
.secondary:hover,
.ghost-button:hover,
.locale-link:hover {
  transform: translateY(-1px);
}

.primary:focus-visible,
.secondary:focus-visible,
.ghost-button:focus-visible,
.locale-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid #85adff;
  outline-offset: 3px;
}

.hero-stats,
.card-grid,
.step-grid {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.section > .card-grid,
.section > .step-grid {
  margin-top: 36px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 10px;
  border-top: 1px solid rgba(89, 107, 139, 0.65);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: #3f86ff;
  font-size: clamp(2.25rem, 3.1vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-card span {
  display: block;
  max-width: 18ch;
  color: #8d97a9;
  font-size: 1rem;
}

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

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

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

.card {
  min-height: 100%;
  padding: 28px 28px 30px;
  border-radius: 28px;
  border: 1px solid #2b3c5b;
  background: rgba(9, 15, 29, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.card p,
.card li {
  color: #969fb1;
  font-size: 1rem;
}

.problem-card,
.step-card {
  position: relative;
}

.card-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 800;
}

.card-icon-red {
  background: linear-gradient(180deg, rgba(133, 36, 48, 0.42), rgba(60, 24, 34, 0.38));
  color: #ff5353;
}

.problem-card h3,
.step-card h3,
.alt-card h3,
.highlight-card h3 {
  margin-bottom: 14px;
}

.step-card {
  text-align: center;
}

.step-number {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5593ff 0%, #3d7cff 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(61, 124, 255, 0.26);
}

.alt-card {
  border-top: 4px solid #ff6323;
}

.alt-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.alt-card li + li {
  margin-top: 12px;
}

.highlight-card {
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: 28px;
  border: 2px solid rgba(17, 206, 162, 0.88);
  background:
    linear-gradient(90deg, rgba(16, 57, 54, 0.88), rgba(24, 38, 78, 0.82)),
    rgba(10, 16, 29, 0.94);
}

.highlight-card h3 {
  color: #16c594;
}

.final-section {
  padding: 72px 24px 84px;
  border-radius: 40px;
  background:
    radial-gradient(circle, rgba(55, 95, 184, 0.22) 0%, transparent 48%),
    rgba(11, 18, 34, 0.82);
  text-align: center;
}

.final-section h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.85rem, 2.65vw, 2.75rem);
}

.final-section .section-lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.final-section .actions {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.landing-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 760px;
}

.legal-links a {
  color: #8d97a9;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: #a2aaba;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-link span {
  color: #6f7b91;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-links a:hover,
.contact-link:hover {
  color: #ffffff;
}

.legal-links a:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid #85adff;
  outline-offset: 4px;
}

@media (max-width: 1220px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .landing-shell {
    width: min(100% - 32px, 1320px);
  }

  .hero-stats,
  .card-grid-3,
  .card-grid-4,
  .step-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    width: min(100% - 24px, 1320px);
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .locale-switch {
    flex-wrap: nowrap;
  }

  .ghost-button {
    min-width: 0;
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 8.8vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
  }

  .hero-accent {
    font-size: clamp(1.35rem, 6.3vw, 1.85rem);
  }

  .lede,
  .section-lede {
    font-size: 1rem;
  }

  .metric-card strong {
    font-size: clamp(2.1rem, 10vw, 2.85rem);
  }

  .hero-stats,
  .card-grid-3,
  .card-grid-4,
  .step-grid-5 {
    grid-template-columns: 1fr;
  }

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

  .card {
    padding: 24px 20px 24px;
  }

  .final-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .final-section h2 {
    font-size: clamp(1.55rem, 6.2vw, 1.9rem);
  }

  .final-section .actions {
    width: 100%;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
  }

  .legal-links {
    flex-direction: column;
    gap: 8px;
  }

  .contact-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* Waitlist Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 29, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-card {
  background: #0f1d33;
  border: 1px solid rgba(61, 130, 255, 0.25);
  border-radius: 16px;
  padding: 32px;
  width: min(420px, calc(100% - 48px));
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #8ba4c7;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: rgba(61, 130, 255, 0.12);
  color: #f3f7ff;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #f3f7ff;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-input {
  background: rgba(61, 130, 255, 0.08);
  border: 1px solid rgba(61, 130, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #f3f7ff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-input::placeholder {
  color: #5a7fb5;
}

.modal-input:focus {
  border-color: #3d82ff;
  box-shadow: 0 0 0 3px rgba(61, 130, 255, 0.15);
}

.modal-submit {
  background: #3d82ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.modal-submit:hover:not(:disabled) {
  background: #5a9aff;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: -6px;
}

.modal-success {
  text-align: center;
  padding: 12px 0;
}

.modal-success-icon {
  width: 48px;
  height: 48px;
  background: rgba(20, 176, 136, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.modal-success-text {
  font-size: 1.05rem;
  color: #f3f7ff;
  line-height: 1.5;
}
