:root {
  color-scheme: light dark;
  --page-bg: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text-primary: #171717;
  --text-secondary: #67635c;
  --text-inverse: #ffffff;
  --border: rgba(23, 23, 23, 0.1);
  --accent: #255ee8;
  --accent-soft: rgba(37, 94, 232, 0.1);
  --green: #147d57;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 22px 18px;
  color: var(--text-inverse);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.site-footer a:hover,
.legal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  min-height: min(720px, 78vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 110px 22px 78px;
  background: #0d235f;
  color: var(--text-inverse);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/app-icon.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 38, 0.9) 0%, rgba(7, 18, 50, 0.76) 42%, rgba(8, 22, 66, 0.3) 100%),
    linear-gradient(0deg, rgba(4, 10, 28, 0.45), rgba(4, 10, 28, 0.06));
}

.hero-art {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: -58px;
  width: clamp(190px, 30vw, 340px);
  aspect-ratio: 1;
  background-image: url("/assets/app-icon.png");
  background-size: cover;
  background-position: center;
  border-radius: 22%;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-top: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 760;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--text-inverse);
  color: #123072;
  font-weight: 700;
}

.availability {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 600;
}

.section {
  padding: 78px 22px;
}

.section-muted {
  background: #f0f5f1;
}

.section-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.section-kicker {
  color: var(--green);
}

h2 {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 740;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
}

.feature-item {
  min-height: 210px;
  padding: 26px;
  background: var(--surface-strong);
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.legal-grid h2 {
  margin-bottom: 0;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 650;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px 22px max(32px, env(safe-area-inset-bottom));
  color: var(--text-secondary);
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #111110;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: #171716;
    --text-primary: #f4f2ed;
    --text-secondary: #aaa59b;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #8ab4ff;
    --accent-soft: rgba(138, 180, 255, 0.1);
    --green: #73d0a8;
  }

  .section-muted {
    background: #121a16;
  }

  .legal-links a {
    background: rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 720px;
    align-items: flex-start;
    padding-top: 112px;
    padding-bottom: 210px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 14, 38, 0.92) 0%, rgba(7, 18, 50, 0.76) 52%, rgba(7, 18, 50, 0.42) 100%),
      linear-gradient(0deg, rgba(4, 10, 28, 0.4), rgba(4, 10, 28, 0.04));
  }

  .hero-art {
    right: 22px;
    bottom: -36px;
    width: 210px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .feature-list,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: auto;
  }

  .legal-grid {
    gap: 26px;
  }

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

@media (max-width: 460px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .hero {
    min-height: 690px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .primary-link {
    width: 100%;
  }
}
