:root {
  color-scheme: light dark;
  --bg-start: #eef2ff;
  --bg-mid: #f8fafc;
  --bg-end: #ecfeff;
  --card: rgba(255, 255, 255, 0.86);
  --card-border: rgba(15, 23, 42, 0.1);
  --text: #111827;
  --muted: #5b6472;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --android: #14b8a6;
  --android-dark: #0f766e;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.2), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.22), transparent 24rem),
    linear-gradient(135deg, var(--bg-start), var(--bg-mid) 48%, var(--bg-end));
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  width: min(100%, 68rem);
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-copy {
  padding: clamp(2rem, 6vw, 4.75rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.intro {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.device-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  margin-top: 1.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.93rem;
  font-weight: 700;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.download-actions.platform-ios .android,
.download-actions.platform-android .ios {
  display: none;
}

.download-actions.platform-ios,
.download-actions.platform-android {
  grid-template-columns: minmax(0, 22rem);
}

.download-button {
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  border: 0;
  border-radius: 1.15rem;
  padding: 1.05rem 1.2rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.28);
}

.download-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

.download-button.ios {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.download-button.android {
  background: linear-gradient(135deg, var(--android), var(--android-dark));
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.24);
}

.button-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.82;
  text-transform: uppercase;
}

.button-label {
  font-size: 1.02rem;
  font-weight: 800;
}

.helper-text {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.visual-panel {
  position: relative;
  display: grid;
  min-height: 34rem;
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(17, 24, 39, 0.96), rgba(30, 64, 175, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 30rem);
}

.phone-mockup {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(62%, 17rem);
  aspect-ratio: 0.49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.8rem solid rgba(255, 255, 255, 0.92);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.phone-top {
  position: absolute;
  top: 0.9rem;
  width: 4.4rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
}

.app-icon {
  display: grid;
  width: 5.6rem;
  height: 5.6rem;
  place-items: center;
  border-radius: 1.55rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.screen-line,
.screen-pill {
  width: 58%;
  height: 0.55rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.22);
}

.screen-line.wide {
  width: 72%;
  margin-top: 1.75rem;
}

.screen-pill {
  width: 68%;
  height: 2.8rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(20, 184, 166, 0.88));
}

.orb {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.82;
}

.orb-one {
  right: 13%;
  bottom: 17%;
  width: 7rem;
  height: 7rem;
  background: rgba(20, 184, 166, 0.52);
}

.orb-two {
  top: 15%;
  left: 16%;
  width: 4.8rem;
  height: 4.8rem;
  background: rgba(147, 197, 253, 0.5);
}

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }

  .download-actions,
  .download-actions.platform-ios,
  .download-actions.platform-android {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 22rem;
    order: -1;
  }

  .phone-mockup {
    width: min(46%, 12.5rem);
    border-width: 0.55rem;
    border-radius: 1.8rem;
  }

  .app-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.15rem;
  }
}

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

  .hero-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .hero-copy {
    padding: 1.6rem;
  }

  .visual-panel {
    min-height: 18rem;
  }
}

body.platform-other {
  height: 100vh;
  overflow: hidden;
}

body.platform-other .page-shell {
  min-height: 100vh;
  padding: 1.25rem;
}

body.platform-other .hero-card {
  display: block;
  width: min(100%, 30rem);
  border-radius: 1.5rem;
}

body.platform-other .hero-copy {
  padding: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
}

body.platform-other .eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
}

body.platform-other h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

body.platform-other .intro {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
}

body.platform-other .device-status {
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.82rem;
}

body.platform-other .download-actions {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.platform-other .download-button {
  min-height: 4.25rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

body.platform-other .helper-text {
  margin-top: 0.85rem;
  font-size: 0.86rem;
}

body.platform-other .visual-panel {
  display: none;
}

@media (max-height: 620px) {
  body.platform-other .hero-copy {
    padding: 1.25rem;
  }

  body.platform-other h1 {
    font-size: 1.85rem;
  }

  body.platform-other .intro,
  body.platform-other .helper-text {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #020617;
    --bg-mid: #0f172a;
    --bg-end: #111827;
    --card: rgba(15, 23, 42, 0.84);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  }

  .device-status {
    border-color: rgba(147, 197, 253, 0.22);
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
  }
}
