:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #666a70;
  --line: #e7e7e7;
  --soft: #f5f5f7;
  --dark: #000000;
  --dark-2: #111216;
  --accent: #80cbc4;
  --accent-dark: #315552;
  --max: 1180px;
  --radius: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  text-rendering: geometricPrecision;
}
body::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .75rem 1rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  transition: box-shadow .2s ease, background .2s ease;
}
.topbar.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.brand,
.topnav,
.header-download { display: flex; align-items: center; }
.brand { gap: .65rem; font-weight: 850; letter-spacing: -.03em; }
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}
.topnav { gap: clamp(.8rem, 2vw, 2rem); color: #343434; font-size: .92rem; }
.topnav a { padding: .35rem 0; }
.topnav a:hover { color: #000; }
.header-download {
  height: 38px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 750;
  font-size: .92rem;
}

.playstore-beta-popup {
  position: fixed;
  left: 50%;
  top: 72px;
  z-index: 160;
  max-width: min(920px, calc(100vw - 28px));
  width: max-content;
  padding: .9rem 1.2rem;
  border-radius: 14px;
  background: #b30000;
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
  transform: translate(-50%, -120%);
  opacity: 0;
  pointer-events: none;
}

.playstore-beta-popup.visible {
  animation: playstore-popup-in .45s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes playstore-popup-in {
  from {
    transform: translate(-50%, -120%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .playstore-beta-popup {
    top: 68px;
    font-size: .92rem;
  }
}

.floating-play-button {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-height: 58px;
  padding: .62rem 1.2rem .62rem .7rem;
  color: #000;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  box-shadow: 0 12px 45px rgba(0,0,0,.22);
  transform: translateX(-50%);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-play-button:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.floating-play-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.play-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}
.play-icon svg { width: 20px; height: 20px; fill: #000; }
.floating-play-button span:last-child { display: grid; line-height: 1.05; text-align: left; }
.floating-play-button small { color: #5c6065; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.floating-play-button strong { font-size: 1rem; font-weight: 900; }

.hero {
  min-height: 100svh;
  padding: 108px clamp(20px, 5vw, 70px) 70px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  background: linear-gradient(180deg, #fff 0%, #f7f7f8 100%);
  overflow: hidden;
}
.hero-copy { max-width: 760px; }
.overline {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: .82rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p { margin-top: 0; }
h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(4.1rem, 9.5vw, 9rem);
  line-height: .89;
  letter-spacing: -.085em;
}
h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5.8vw, 6.4rem);
  line-height: .93;
  letter-spacing: -.072em;
}
h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.052em;
}
p {
  color: var(--muted);
  line-height: 1.58;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}
.hero-subtitle { max-width: 650px; font-size: clamp(1.12rem, 1.8vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: #000; color: #fff; }
.button-light { background: #fff; color: #000; border-color: rgba(0,0,0,.14); }

.hero-device {
  min-height: 620px;
  position: relative;
  display: grid;
  place-items: center;
}
.phone {
  width: min(315px, 34vw);
  min-width: 235px;
  border-radius: 34px;
  box-shadow: 0 38px 80px rgba(0,0,0,.28);
  border: 7px solid #0b0b0d;
  background: #000;
}
.phone-left { position: absolute; transform: translateX(-22%) rotate(-5deg); opacity: .96; }
.phone-right { position: absolute; transform: translateX(28%) translateY(22px) rotate(5deg); }

.section-nav {
  position: sticky;
  top: 64px;
  z-index: 80;
  min-height: 54px;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.75rem, 2.2vw, 2.2rem);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  white-space: nowrap;
  font-weight: 800;
  font-size: .9rem;
}
.section-nav a:hover { color: var(--accent-dark); }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 132px) 0;
}
.centered {
  max-width: 870px;
  margin: 0 auto 3.2rem;
  text-align: center;
}
.centered p:not(.overline) { max-width: 720px; margin-left: auto; margin-right: auto; }

.flow-compare {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
}
.flow-panel {
  min-height: 310px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.muted-panel { background: var(--soft); }
.strong-panel { background: #000; color: #fff; }
.strong-panel p { color: rgba(255,255,255,.72); }
.panel-label {
  margin-bottom: 1.5rem;
  color: inherit;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .72;
}
.flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}
.flow-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 850;
}
.muted-panel .flow-steps span { border: 1px solid rgba(0,0,0,.09); }
.flow-steps i {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .4;
}
.loop-copy { margin: 1.35rem 0 0; }

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: #000;
}
.dark-section .centered p:not(.overline) { color: rgba(255,255,255,.65); }
.dark-section .overline { color: var(--accent); }
.mission-showcase {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.mission-tabs {
  padding: .5rem;
  display: grid;
  gap: .35rem;
  border-radius: 28px;
  background: #111;
  align-content: start;
}
.mission-tab {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 850;
  transition: background .18s ease, color .18s ease;
}
.mission-tab:hover,
.mission-tab.active { background: #fff; color: #000; }
.mission-card {
  min-height: 660px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 38px;
  background: #15161a;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
}
.mission-copy p { color: rgba(255,255,255,.72); }
.mission-copy ul {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}
.mission-copy li {
  color: rgba(255,255,255,.84);
  padding-left: 1.65rem;
  position: relative;
  font-weight: 720;
}
.mission-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42rem;
  width: .58rem;
  height: .58rem;
  border-radius: 50%;
  background: var(--accent);
}
.mission-image-frame { margin: 0; display: grid; place-items: center; }
.mission-image-frame img {
  width: min(320px, 100%);
  border-radius: 34px;
  border: 7px solid #050505;
  box-shadow: 0 34px 70px rgba(0,0,0,.42);
  transition: opacity .18s ease, transform .18s ease;
}
.mission-card.changing .mission-image-frame img { opacity: .25; transform: translateY(8px); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-strip article {
  min-height: 280px;
  padding: clamp(26px, 3.5vw, 42px);
  border-radius: var(--radius);
  background: var(--soft);
}
.feature-strip h3 { font-size: clamp(1.7rem, 3vw, 3rem); }

.screen-feature {
  min-height: 100svh;
  padding: 96px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  align-items: center;
  gap: clamp(30px, 7vw, 92px);
  background: #f7f7f8;
}
.screen-feature.reverse { grid-template-columns: minmax(320px, .8fr) minmax(0, .9fr); }
.screen-feature.reverse .screen-copy { order: 2; }
.screen-copy { max-width: 650px; }
.screen-visual { display: grid; place-items: center; }
.screen-visual img {
  width: min(410px, 86vw);
  border-radius: 36px;
  border: 8px solid #111;
  box-shadow: 0 38px 90px rgba(0,0,0,.22);
}
.sleep-block { background: #fff; }

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.screen-grid figure {
  margin: 0;
  padding: 14px 14px 18px;
  border-radius: 32px;
  background: var(--soft);
}
.screen-grid img {
  width: 100%;
  border-radius: 24px;
  border: 5px solid #111;
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
}
.screen-grid figcaption {
  margin-top: .8rem;
  text-align: center;
  color: #4d5258;
  font-weight: 850;
}

.final-cta {
  padding: clamp(46px, 7vw, 76px) 20px 118px;
  display: grid;
  place-items: center;
  background: #000;
}
.final-cta .button {
  margin: 0;
  background: #fff;
  color: #000;
}

.footer {
  padding: 26px clamp(20px, 5vw, 70px) 104px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #73777d;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer a { color: #fff; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.privacy-page {
  background: #f7f7f8;
}
.privacy-main {
  padding: 108px clamp(20px, 5vw, 70px) 84px;
}
.privacy-hero,
.privacy-content {
  width: min(920px, 100%);
  margin: 0 auto;
}
.privacy-hero {
  padding: clamp(42px, 7vw, 86px) 0 clamp(28px, 5vw, 52px);
}
.privacy-hero h1 {
  max-width: 880px;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
}
.privacy-lead {
  max-width: 780px;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
}
.privacy-content {
  display: grid;
  gap: 1rem;
}
.privacy-card {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.06);
}
.privacy-card-highlight {
  background: #000;
  color: #fff;
}
.privacy-card-highlight p {
  color: rgba(255,255,255,.74);
}
.privacy-card h2 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  letter-spacing: -.058em;
}
.privacy-card h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}
.privacy-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .75rem;
}
.privacy-card li {
  position: relative;
  padding-left: 1.4rem;
  color: #4d5258;
  line-height: 1.55;
}
.privacy-card li::before {
  content: "";
  position: absolute;
  top: .68rem;
  left: 0;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--accent-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topnav { display: none; }
  .hero,
  .screen-feature,
  .screen-feature.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy,
  .screen-copy { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-device { min-height: 560px; }
  .phone { width: min(292px, 44vw); }
  .flow-compare,
  .mission-showcase,
  .mission-card,
  .feature-strip { grid-template-columns: 1fr; }
  .mission-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .mission-tab { text-align: center; }
  .mission-card { min-height: auto; text-align: center; }
  .mission-copy li { text-align: left; }
  .screen-feature.reverse .screen-copy { order: initial; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { height: 58px; padding: 0 14px; }
  .brand { font-size: .95rem; }
  .header-download { height: 34px; padding: 0 .8rem; }
  .floating-play-button { min-height: 52px; padding-right: 1rem; }
  .play-icon { width: 34px; height: 34px; }
  .hero { padding-top: 92px; min-height: auto; }
  h1 { font-size: clamp(3.25rem, 17vw, 5.5rem); }
  h2 { font-size: clamp(2.3rem, 13vw, 4.2rem); }
  .hero-device { min-height: 470px; }
  .phone { min-width: 190px; width: min(230px, 58vw); border-radius: 28px; border-width: 5px; }
  .phone-left { transform: translateX(-21%) rotate(-5deg); }
  .phone-right { transform: translateX(25%) translateY(18px) rotate(5deg); }
  .section-nav { justify-content: flex-start; top: 58px; }
  .section { width: min(100% - 28px, var(--max)); padding: 76px 0; }
  .flow-panel { min-height: 260px; border-radius: 26px; }
  .flow-steps { gap: .55rem; }
  .flow-steps span { min-height: 38px; padding: 0 .78rem; font-size: .9rem; }
  .mission-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mission-card { padding: 24px; border-radius: 28px; }
  .mission-image-frame img { width: min(260px, 82vw); border-radius: 28px; border-width: 5px; }
  .feature-strip article { min-height: 220px; }
  .screen-feature { min-height: auto; padding-top: 74px; padding-bottom: 74px; }
  .screen-visual img { width: min(310px, 82vw); border-width: 5px; border-radius: 28px; }
  .screen-grid { grid-template-columns: 1fr; }
  .privacy-main { padding: 88px 14px 64px; }
  .privacy-card { border-radius: 26px; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
