:root {
  /* Soft charcoal dark — premium, easier on eyes than pure black */
  --bg: #0e1116;
  --bg-elevated: #151a22;
  --surface: #1a2029;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --text-secondary: #b4bcc8;
  --text-muted: #8b94a3;
  --accent: #4b8ef2;
  --accent-deep: #3d7ae0;
  --accent-soft: rgba(75, 142, 242, 0.14);
  --on-accent: #ffffff;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --pad-x: clamp(1.1rem, 5vw, 1.75rem);
  --tap: 48px;
  --max: 68rem;
  --radius-phone: 1.15rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Soft ambient (not harsh glow) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -15%, rgba(61, 130, 240, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(43, 106, 212, 0.08), transparent 50%),
    linear-gradient(180deg, #12161d 0%, var(--bg) 28%, #0c0f14 100%);
}

/* ——— Nav ——— */
.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(0.9rem + env(safe-area-inset-top, 0px)) var(--pad-x) 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  min-height: var(--tap);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  min-height: var(--tap);
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
}

.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-cta {
  margin-left: 0.25rem;
  padding: 0 0.95rem !important;
  border-radius: 0.6rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  backdrop-filter: blur(10px);
}

/* ——— Hero ——— */
.hero-plane {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0c10;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  transform: scale(1.04);
  animation: hero-drift 20s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 16, 0.88) 0%, rgba(10, 12, 16, 0.55) 42%, rgba(10, 12, 16, 0.22) 72%, rgba(10, 12, 16, 0.5) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.45) 0%, transparent 30%, rgba(14, 17, 22, 0.55) 68%, var(--bg) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(34rem, 100%);
  padding: 5.5rem var(--pad-x) calc(3rem + env(safe-area-inset-bottom, 0px));
  max-width: var(--max);
  margin-left: max(0px, calc((100% - var(--max)) / 2));
  animation: rise-in 0.85s ease-out both;
}

.brand-hero {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-copy h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 3.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(238, 241, 246, 0.9);
}

.lede {
  margin: 0 0 1.35rem;
  font-size: clamp(0.98rem, 3.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rise-in 1s ease-out 0.1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.8rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 28px rgba(61, 130, 240, 0.28);
}

.btn.primary:hover { background: var(--accent-deep); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }

/* ——— Study ——— */
.study {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem var(--pad-x) 2.25rem;
}

.study h2,
.get-app h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.study-lede,
.get-lede {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.phones-wrap {
  margin: 0 0 2.25rem;
}

.phones-hint {
  display: none;
}

.phones-dots {
  display: none;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  margin: 0;
}

.phone { margin: 0; text-align: center; }

.phone img {
  width: 100%;
  border-radius: var(--radius-phone);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 48px rgba(0, 0, 0, 0.45);
  background: #111;
}

.phone-feature { transform: translateY(-0.55rem) scale(1.03); }

.phone figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.study-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.study-list li {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
}

.study-list li:last-child { border-bottom: 1px solid var(--border); }

.study-list strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.study-list span { color: var(--text-secondary); font-size: 0.98rem; }

/* ——— Get app ——— */
.get-app {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem var(--pad-x) 3.25rem;
  text-align: center;
}

.get-app h2 { text-align: center; }
.get-lede { margin-left: auto; margin-right: auto; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 0.55rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  text-decoration: none;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge-google img {
  height: 72px;
  margin: -12px 0;
}

.get-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad-x) calc(2.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.foot .fine { margin-top: 0.35rem; font-size: 0.8rem; }
.foot .fine a { color: var(--text-secondary); }

/* ——— Legal ——— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 12% -10%, rgba(61, 130, 240, 0.14), transparent 55%),
    linear-gradient(180deg, #12161d 0%, var(--bg) 45%, #0c0f14 100%);
}

.legal-nav { position: relative; }
.legal-nav .brand { color: var(--text); }
.legal-nav nav a { color: var(--text-secondary); text-shadow: none; }

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem var(--pad-x) calc(3.5rem + env(safe-area-inset-bottom, 0px));
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.legal .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.6rem 0 0.45rem;
  color: var(--text);
}

.legal p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.6%, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-copy, .cta-row { animation: none; }
  .hero-media { transform: none; }
}

/* ——— Mobile ——— */
@media (max-width: 760px) {
  .nav nav a:not(.nav-cta) { display: none; }

  .hero-plane {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-media { object-position: 78% 36%; }

  .hero-copy {
    width: 100%;
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.3) 26%, rgba(10, 12, 16, 0.72) 58%, var(--bg) 100%),
      linear-gradient(90deg, rgba(10, 12, 16, 0.55) 0%, transparent 70%);
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .cta-row .btn { width: 100%; }

  .study {
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  .phones-wrap {
    margin: 0 calc(-1 * var(--pad-x)) 1.75rem;
  }

  .phones-hint {
    display: block;
    margin: 0 0 0.65rem;
    padding: 0 var(--pad-x);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: opacity 0.35s ease;
  }

  .phones-hint.is-faded {
    opacity: 0.35;
  }

  .phones {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    padding: 0.35rem var(--pad-x) 0.85rem;
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 88%, transparent 100%);
  }

  .phones::-webkit-scrollbar { display: none; }

  .phone {
    flex: 0 0 min(72vw, 16rem);
    scroll-snap-align: center;
  }

  .phone-feature { transform: none; }

  .phone figcaption { font-size: 0.8rem; }

  .phones-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem var(--pad-x) 0.25rem;
  }

  .phones-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }

  .phones-dot[aria-current="true"] {
    width: 1.15rem;
    background: var(--accent);
    transform: none;
  }

  .phones-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .get-app {
    padding: 1.75rem var(--pad-x) 2.75rem;
  }

  .store-row {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .store-badge img { height: 50px; }
  .store-badge-google img {
    height: 74px;
    margin: -14px 0;
  }

  .legal {
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  }

  .foot {
    text-align: center;
    line-height: 1.6;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .phones { gap: 0.8rem; }
  .phone-feature { transform: translateY(-0.3rem) scale(1.02); }
  .hero-copy { width: min(32rem, 55%); }
}
