:root {
  color-scheme: light dark;
  --bg-top: #0f171d;
  --bg-bottom: #162f2b;
  --mist: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.09);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4f7f8;
  --muted: rgba(244, 247, 248, 0.72);
  --accent: #eb9b4d;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --phone-radius: 56px;
  --max-width: 1120px;
  --content-width: 760px;
  --font: "SF Pro Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(72, 126, 138, 0.28), transparent 26%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(10px);
}

.ambient-one {
  top: -120px;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 101, 120, 0.44), transparent 70%);
}

.ambient-two {
  bottom: 80px;
  left: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 151, 82, 0.20), transparent 70%);
}

.landing-page,
.content-page {
  display: flex;
  flex-direction: column;
}

.landing-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 108px);
}

.landing-copy {
  max-width: 520px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-copy h1,
.prose h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.landing-lede,
.lede,
.prose p {
  color: var(--muted);
  line-height: 1.65;
}

.landing-lede,
.lede {
  margin: 20px 0 0;
  font-size: 1.08rem;
  max-width: 34rem;
}

.cta-row {
  margin-top: 28px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.app-store-badge {
  display: block;
  height: 56px;
  width: auto;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 390px);
  padding: 16px;
  border-radius: var(--phone-radius);
  background:
    linear-gradient(180deg, rgba(48, 61, 68, 0.95), rgba(13, 17, 19, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 36px 90px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--phone-radius) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-speaker {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2;
}

.phone-screen {
  display: block;
  width: 100%;
  border-radius: 42px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.content-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.content-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.prose h2 {
  margin: 30px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(235, 155, 77, 0.14);
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  position: sticky;
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto 18px;
}

.footer-menu {
  position: sticky;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  padding: 8px;
  border-radius: 999px;
  background: rgba(11, 15, 18, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.footer-menu a {
  min-width: 108px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.footer-copyright {
  display: block;
  width: 100%;
  color: rgba(244, 247, 248, 0.46);
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-menu a[aria-current="page"],
.footer-menu a:hover {
  color: var(--text);
  background: var(--card-strong);
}

@media (max-width: 900px) {
  .landing-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 32px;
    gap: 26px;
  }

  .landing-copy {
    max-width: 38rem;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    width: min(calc(100% - 24px), var(--max-width));
    min-height: auto;
    padding-bottom: 18px;
  }

  .landing-copy h1,
  .prose h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .cta-row {
    display: flex;
    justify-content: center;
  }

  .phone-frame {
    width: min(100%, 340px);
    padding: 14px;
    border-radius: 44px;
  }

  .phone-frame::before {
    border-radius: 34px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .phone-speaker {
    top: 18px;
    width: 100px;
    height: 24px;
  }

  .content-shell {
    width: min(calc(100% - 24px), var(--content-width));
    padding-top: 18px;
  }

  .content-card {
    padding: 22px;
  }

  .site-footer {
    width: 100%;
  }

  .footer-menu {
    width: calc(100% - 24px);
  }

  .footer-menu a {
    flex: 1;
    min-width: 0;
  }
}
