:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0c0b0c;
  --text: #f7f2ea;
  --muted: #b7adbe;
  --muted-2: #7e7788;
  --line: rgba(255,255,255,0.14);
  --glass: rgba(255,255,255,0.075);
  --glass-strong: rgba(255,255,255,0.12);
  --gold: #ffd13f;
  --orange: #ff8a00;
  --pink: #ff5e9f;
  --purple: #6f62ff;
  --blue: #2d7cff;
  --shadow: 0 30px 100px rgba(0,0,0,0.55);
  --radius: 32px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,196,65,0.24), transparent 34rem),
    radial-gradient(circle at 92% 14%, rgba(111,98,255,0.15), transparent 30rem),
    radial-gradient(circle at 8% 54%, rgba(255,94,159,0.12), transparent 32rem),
    radial-gradient(circle at 64% 82%, rgba(255,138,0,0.10), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Segoe UI, sans-serif;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 80%);
  z-index: -2;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(780px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
  box-shadow: 0 18px 60px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(135deg, rgba(18,18,22,0.82), rgba(18,14,20,0.62));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 18px 80px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.2);
}

.brand, .site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}
.brand img, .site-footer img { border-radius: 10px; box-shadow: 0 0 25px rgba(255,209,63,.18); }

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,.09); }
.nav-links .nav-store-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 8px;
  line-height: 0;
}
.nav-links .nav-store-badge:hover { background: transparent; }
.nav-store-badge img { width: auto; height: 34px; }

.hero {
  min-height: 94vh;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  padding: 126px 0 90px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-icon {
  width: clamp(104px, 15vw, 164px);
  height: clamp(104px, 15vw, 164px);
  border-radius: 36px;
  margin: 28px 0 34px;
  box-shadow: 0 25px 70px rgba(255,183,0,.22), 0 0 0 1px rgba(255,255,255,.08);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 22px;
  padding-bottom: .07em;
  font-size: clamp(64px, 11vw, 140px);
  line-height: 1;
  letter-spacing: -0.052em;
  font-weight: 680;
  background: linear-gradient(180deg, #fff 0%, #f2eee7 40%, #b5b6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.2;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.store-badge img { height: 52px; width: auto; }
.text-link {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.feature-row {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 108px);
  padding: 88px 0;
}
.feature-row--reverse { grid-template-columns: minmax(320px, 1fr) minmax(280px, .85fr); }
.feature-row--reverse .phone-card { order: 2; }
.feature-row--reverse .feature-copy { order: 1; }

.phone-card {
  position: relative;
  border-radius: var(--radius);
  isolation: isolate;
  filter: drop-shadow(0 38px 90px rgba(0,0,0,.55));
}
.phone-card::before {
  content: "";
  position: absolute;
  inset: 12% 4% 8%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .7;
}
.phone-card img {
  width: min(100%, 470px);
  max-height: 760px;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 28px;
}
.phone-card--wide img { width: min(100%, 520px); }
.glow-card::before { background: rgba(255,146,41,.45); }
.sleep-recording-card::before { background: rgba(255,142,18,.46); }
.purple-card::before { background: rgba(95,82,255,.35); }
.green-card::before { background: rgba(139,204,64,.42); }
.amber-card::before { background: rgba(255,132,0,.38); }
.sunrise-card::before { background: rgba(255,202,91,.52); }

.feature-copy h2, .post-header h1, .blog-header h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.feature-copy p:not(.eyebrow), .post p, .post li, .blog-card p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
  font-weight: 560;
}
.feature-copy { max-width: 640px; }

.glass-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 44px 0 60px;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.1);
}
.site-footer nav { display: flex; gap: 20px; font-weight: 700; }
.site-footer a:hover { color: white; }

/* Blog */
body.blog-surface {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,196,65,0.13), transparent 29rem),
    radial-gradient(circle at 96% 8%, rgba(111,98,255,0.08), transparent 28rem),
    var(--bg);
}
body.blog-surface::before {
  opacity: .5;
  background-size: 96px 96px;
}
.blog-page, .post-page { padding-top: 108px; }
.blog-header, .post-header { padding: 28px 0 24px; text-align: center; }
.blog-header .pill, .post-header .pill {
  width: fit-content;
  margin-inline: auto;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.045);
}
.blog-header .eyebrow, .post-header .eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: .15em;
}
.blog-header h1, .post-header h1 {
  width: min(860px, 100%);
  max-width: 860px;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 660;
  text-align: center;
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.04em;
  padding-bottom: .08em;
}
.blog-header p, .post-header p {
  max-width: 700px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  font-weight: 520;
}
.blog-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin-inline: auto;
  padding-bottom: 92px;
}
.blog-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 14px;
  align-items: center;
  border-radius: 20px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.blog-card.glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.032));
  box-shadow: 0 18px 55px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.1);
}
.blog-card:hover {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.042));
  transform: translateY(-1px);
}
.blog-card img {
  justify-self: center;
  width: auto;
  height: 118px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
}
.blog-card h2 { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.08; letter-spacing: -0.035em; }
.blog-card p { margin-bottom: 10px; font-size: 16px; line-height: 1.45; font-weight: 500; }
.blog-card .read-more { color: var(--gold); font-size: 15px; font-weight: 800; }

.post {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0 0 120px;
}
.post-hero-img {
  width: min(154px, calc(100% - 40px));
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 32px;
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(0,0,0,.38);
}
.post h2 { margin: 46px 0 14px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.038em; }
.post p, .post li { color: rgba(247,242,234,.84); font-size: 18px; line-height: 1.72; font-weight: 480; }
.post ul, .post ol { padding-left: 1.25rem; }
.post li { margin: 10px 0; }
.post a { color: var(--gold); border-bottom: 1px solid rgba(255,209,63,.4); }
.post .callout { padding: 20px; margin: 30px 0; border-radius: 20px; }
.post .callout p { margin: 0; }
.post-meta { color: var(--muted-2); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

/* Privacy policy */
.policy-page { padding-top: 142px; }
.policy {
  width: min(820px, calc(100% - 40px));
  padding: 58px 0 120px;
}
.policy h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.04;
}
.policy-date {
  margin-bottom: 42px;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 750;
}
.policy h2 {
  margin: 46px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}
.policy p, .policy li {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
  font-weight: 520;
}
.policy ul {
  padding-left: 1.25rem;
  margin: 0 0 24px;
}
.policy li { margin: 10px 0; }
.policy a { color: var(--gold); border-bottom: 1px solid rgba(255,209,63,.4); }

@media (max-width: 840px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span { display: none; }
  .nav-links { gap: 2px; font-size: 13px; }
  .nav-links a { padding: 9px 11px; }
  .nav-links .nav-store-badge { padding: 0; }
  .hero { padding-top: 112px; min-height: 88vh; }
  .feature-row, .feature-row--reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 0;
  }
  .feature-row--reverse .phone-card, .feature-row--reverse .feature-copy { order: initial; }
  .feature-copy { text-align: center; margin-inline: auto; }
  .phone-card img { max-height: 680px; }
  .blog-list { padding-bottom: 80px; }
  .blog-card { grid-template-columns: 68px 1fr; gap: 14px; }
  .blog-card img { width: auto; height: 112px; object-fit: contain; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .section-shell { width: min(var(--max), calc(100% - 24px)); }
  h1 { font-size: clamp(54px, 18vw, 86px); }
  .hero-copy { font-size: 19px; }
  .store-badge img { height: 46px; }
  .nav-store-badge img { height: 32px; }
  .phone-card img { border-radius: 22px; }
  .feature-copy h2 { font-size: clamp(40px, 13vw, 62px); }
  .blog-page, .post-page { padding-top: 90px; }
  .blog-header, .post-header { padding-top: 24px; }
  .blog-header h1, .post-header h1 { font-size: clamp(34px, 10.4vw, 46px); letter-spacing: -0.034em; }
  .blog-header p, .post-header p { font-size: 17px; }
  .blog-card { grid-template-columns: 64px 1fr; padding: 14px 12px; border-radius: 18px; }
  .blog-card img { height: 96px; border-radius: 12px; }
  .blog-card h2 { font-size: clamp(21px, 6vw, 26px); }
  .blog-card p { font-size: 15px; }
  .post-hero-img { width: min(136px, calc(100% - 24px)); height: auto; border-radius: 16px; }
  .post p, .post li { font-size: 17px; line-height: 1.7; }
  .policy p, .policy li { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
