:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --ink: #111318;
  --muted: #58606d;
  --subtle: #dce2ea;
  --line: rgba(17, 19, 24, 0.12);
  --accent: #1857d6;
  --accent-2: #0b7f64;
  --warn: #bd4b32;
  --shadow: 0 28px 80px rgba(24, 38, 56, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(24, 87, 214, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1600px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  background: rgba(244, 246, 248, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.waitlist-fields {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  min-height: 44px;
  gap: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

.brand-name {
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  text-decoration: none;
}

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

.hero {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(42px, 5vw, 72px) clamp(18px, 4vw, 64px) 18px;
}

.hero-copy {
  width: min(920px, 100%);
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

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

.access-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.waitlist-form {
  width: min(780px, 100%);
  margin-top: 14px;
}

.waitlist-fields {
  gap: 10px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  box-shadow: 0 18px 52px rgba(24, 38, 56, 0.1);
}

.field {
  position: relative;
  min-width: 0;
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 87, 214, 0.14);
}

.waitlist-form .button {
  flex: 0 0 auto;
  border: 0;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-status[data-state="loading"],
.form-status[data-state="success"],
.form-status[data-state="error"] {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(24, 38, 56, 0.1);
}

.form-status[data-state="loading"]::before,
.form-status[data-state="success"]::before,
.form-status[data-state="error"]::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.form-status[data-state="success"] {
  border-color: rgba(11, 127, 100, 0.28);
  background: rgba(11, 127, 100, 0.08);
}

.form-status[data-state="success"]::before {
  background: var(--accent-2);
}

.form-status[data-state="error"] {
  border-color: rgba(189, 75, 50, 0.28);
  background: rgba(189, 75, 50, 0.08);
}

.form-status[data-state="error"]::before {
  background: var(--warn);
}

.app-preview {
  width: 100%;
  max-width: 1500px;
  height: clamp(240px, 34vh, 360px);
  align-self: end;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.16);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.section-shell,
.final-cta {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px);
}

.section-shell {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-shell h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-lede,
.final-cta p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.section-signature {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 44px;
}

.final-cta-copy {
  max-width: 780px;
}

.site-footer {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 64px) 80px;
}

.legal-document {
  color: var(--ink);
}

.legal-document-header {
  margin-bottom: 28px;
}

.legal-document h1 {
  max-width: none;
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.legal-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-document-header p:last-child {
  margin-top: 18px;
}

.legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.legal-document p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-document p + p {
  margin-top: 10px;
}

.legal-document ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-document li + li {
  margin-top: 6px;
}

.legal-document a {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    align-items: start;
  }

  .hero-copy {
    width: auto;
  }

  .app-preview {
    max-width: none;
    height: auto;
    aspect-ratio: 4320 / 2700;
    margin-top: 10px;
  }
}

@media (max-width: 1080px) {
  .final-cta {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .nav {
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 22px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .lede,
  .section-lede,
  .final-cta p {
    font-size: 18px;
  }

  .button {
    flex: 1 1 150px;
    padding-inline: 12px;
  }

  .waitlist-form {
    margin-top: 20px;
  }

  .waitlist-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-status {
    display: block;
  }

  .waitlist-form .button,
  .final-cta .button {
    width: 100%;
  }

  .app-preview {
    width: calc(100% + 22px);
    height: 212px;
  }

  .section-shell,
  .final-cta {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .section-signature {
    font-size: 24px;
  }

  .legal-page {
    padding-top: 38px;
  }

  .legal-document h1 {
    font-size: 30px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover {
    transform: none;
  }
}
