:root {
  --page-bg: #0f172a;
  --text-primary: #f4f6fb;
  --text-muted: rgba(244, 246, 251, 0.84);
  --text-subtle: rgba(244, 246, 251, 0.62);
  --accent-strong: #ffffff;
  --success: #9af0ba;
  --error: #ffb7b3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background: var(--page-bg);
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 34px 26px 18px;
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.brandmark {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.38em;
}

.site-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-width: 0;
  grid-column: 2;
}

.site-header-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
  white-space: nowrap;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible {
  color: var(--text-primary);
  outline: none;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.hero {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 170px);
  padding: 0 0 34px;
}

.hero-content {
  width: min(100%, 430px);
  text-align: center;
}

.hero-copy {
  max-width: 390px;
  margin: 0 auto;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(108px, 22vw);
  margin-bottom: 16px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-subtitle {
  max-width: 360px;
  margin: 14px auto 0;
  font-size: 0.98rem;
  line-height: 1.36;
  font-weight: 400;
  color: var(--text-muted);
}

.waitlist-card {
  width: min(100%, 410px);
  margin: 28px auto 0;
  text-align: left;
}

.waitlist-label {
  display: inline-block;
  margin-bottom: 8px;
  width: 100%;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--text-subtle);
}

.waitlist-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: transparent;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.waitlist-input-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.02);
}

.waitlist-input-wrap[data-state="success"] {
  border-color: rgba(154, 240, 186, 0.72);
}

.waitlist-input-wrap[data-state="error"] {
  border-color: rgba(255, 183, 179, 0.76);
}

.waitlist-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 400;
  outline: none;
}

.waitlist-input-wrap input::placeholder {
  color: rgba(240, 243, 252, 0.72);
}

.waitlist-input-wrap button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: var(--accent-strong);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.waitlist-input-wrap button:hover,
.waitlist-input-wrap button:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.waitlist-input-wrap button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.button-label {
  display: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.button-arrow {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.button-arrow svg {
  width: 100%;
  height: 100%;
}

.waitlist-message {
  margin: 12px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.waitlist-message {
  min-height: 1.5em;
  color: var(--text-subtle);
}

.waitlist-message[data-state="success"] {
  color: var(--success);
}

.waitlist-message[data-state="error"] {
  color: var(--error);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: min(100%, 1280px);
  margin: auto auto 0;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.footer-line,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav a {
  transition: color 180ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--text-primary);
  outline: none;
}

.footer-separator {
  display: inline-block;
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.28);
}

.legal-page {
  min-height: 100vh;
  padding: 34px 26px 24px;
}

body.legal-body {
  color: var(--text-primary);
  background: var(--page-bg);
}

body.legal-body .legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  background: var(--page-bg);
}

body.legal-body .site-header,
body.legal-body .site-footer {
  width: min(100%, 1280px);
  box-shadow: 0 0 0 100vmax var(--page-bg);
  clip-path: inset(0 -100vmax);
}

body.legal-body .site-header {
  padding: 34px 26px;
}

body.legal-body .site-footer {
  margin-top: auto;
  padding: 18px 26px 24px;
}

body.legal-body .legal-main {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  background: #ffffff;
}

body.legal-body .legal-article {
  width: min(100%, 920px);
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 26px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.legal-body .legal-article h1,
body.legal-body .legal-article h2,
body.legal-body .legal-article strong {
  color: #111827;
}

body.legal-body .legal-article p,
body.legal-body .legal-article ul,
body.legal-body .legal-article li {
  color: #374151;
}

.legal-main {
  max-width: 920px;
}

.legal-article h1 {
  margin: 0 0 28px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  line-height: 1.1;
  text-align: center;
}

.legal-article h2 {
  margin: 34px 0 12px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.legal-article p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-article ul {
  margin: 0 0 22px;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.legal-article li {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-article strong {
  color: var(--text-primary);
  font-weight: 700;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-modal[hidden] {
  display: none;
}

.download-modal.is-visible .download-modal__backdrop {
  opacity: 1;
}

.download-modal.is-visible .download-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.download-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 220ms ease,
    transform 260ms ease;
}

.download-modal__close {
  position: absolute;
  top: 18px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.download-modal__close:hover,
.download-modal__close:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.download-modal__close span {
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-1px);
}

.download-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 420px;
  height: 420px;
  padding: 28px 28px 30px;
  border-radius: 39%;
  background:
    radial-gradient(circle at top, rgba(124, 177, 255, 0.26), transparent 56%),
    linear-gradient(180deg, #4a7fe0 0%, #2b5db3 52%, #1e458a 100%);
  box-shadow:
    0 36px 80px rgba(4, 7, 17, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
}

.download-modal__qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  margin: 68px auto 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.download-modal__qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.download-modal__copy {
  margin-top: 18px;
}

.download-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
}

.download-modal__copy h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-modal__copy p:last-child {
  margin: 5px 0 0;
  font-size: 0.56rem;
  color: rgba(244, 246, 251, 0.72);
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brandmark {
    font-size: 1.25rem;
    letter-spacing: 0.28em;
  }

  .site-header-nav {
    grid-column: 2;
    order: 0;
    justify-content: center;
    gap: 20px;
    padding-top: 0;
  }

  .cta-link {
    min-height: 44px;
    padding: 0 20px;
  }

  .hero {
    min-height: calc(100vh - 156px);
    padding: 0 0 26px;
  }

  .hero-logo {
    width: min(98px, 32vw);
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-subtitle {
    max-width: 340px;
    font-size: 0.92rem;
  }

  .waitlist-card {
    width: min(100%, 390px);
    margin-top: 24px;
  }

  .waitlist-input-wrap {
    padding-left: 12px;
  }

  .waitlist-input-wrap button {
    min-width: 24px;
    height: 24px;
    padding: 0;
  }

  .site-footer {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.68rem;
  }

  .legal-page {
    padding: 18px 16px 22px;
  }

  body.legal-body .site-header {
    padding: 18px 16px;
  }

  body.legal-body .site-footer {
    padding: 16px 16px 22px;
  }

  body.legal-body .legal-main {
    margin: 48px auto 64px;
    padding: 0 16px;
  }

  body.legal-body .legal-article {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .legal-main {
    margin: 48px auto 64px;
  }

  .download-modal {
    padding: 18px;
  }

  .download-modal__panel {
    width: min(100%, 360px);
    height: 360px;
    padding: 24px 22px 24px;
    border-radius: 37%;
  }

  .download-modal__close {
    top: 14px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 16px 12px 14px;
  }

  .site-header {
    gap: 10px;
  }

  .brandmark {
    font-size: 1.1rem;
    letter-spacing: 0.24em;
  }

  .site-header-nav {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .site-header-nav a {
    font-size: 0.84rem;
  }

  .cta-link {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .hero-subtitle {
    max-width: 300px;
    font-size: 0.84rem;
  }

  .waitlist-card {
    width: min(100%, 100%);
    margin-top: 20px;
  }

  .waitlist-label {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .waitlist-input-wrap {
    gap: 10px;
    padding: 6px 6px 6px 14px;
  }

  .waitlist-input-wrap input {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .waitlist-input-wrap button {
    min-width: 30px;
    height: 30px;
  }

  .site-footer {
    font-size: 0.64rem;
  }

  .legal-page {
    padding: 16px 12px 20px;
  }

  body.legal-body .site-header {
    padding: 16px 12px;
  }

  body.legal-body .site-footer {
    padding: 14px 12px 20px;
  }

  body.legal-body .legal-main {
    margin: 36px auto 48px;
    padding: 0 12px;
  }

  body.legal-body .legal-article {
    padding: 26px 16px;
    border-radius: 18px;
  }

  .legal-main {
    margin: 36px auto 48px;
  }

  .legal-article h1 {
    margin-bottom: 22px;
    font-size: 1.1rem;
    letter-spacing: 0.24em;
  }

  .legal-article h2 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
  }

  .legal-article p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .legal-article li {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .footer-line,
  .footer-nav {
    gap: 6px;
    flex-wrap: wrap;
  }

  .download-modal__dialog {
    width: min(100%, 340px);
  }

  .download-modal__close {
    top: 12px;
  }

  .download-modal__panel {
    width: min(100%, 312px);
    height: 312px;
    padding: 20px 18px 20px;
    border-radius: 35%;
  }

  .download-modal__qr-frame {
    width: 146px;
    margin-top: 54px;
  }

  .download-modal__copy {
    margin-top: 14px;
  }

  .download-modal__eyebrow {
    font-size: 1.7rem;
  }
}
