:root {
  --top: #94addb;
  --mid: #1f2948;
  --bottom: #050814;
  --mist: #d1e6ff;
  --warm: #f7e6bd;
  --blue: #7db5ff;
  --glass: rgba(214, 230, 255, 0.11);
  --glass-strong: rgba(214, 230, 255, 0.17);
  --line: rgba(214, 230, 255, 0.18);
  --text: #f7fbff;
  --muted: rgba(247, 251, 255, 0.68);
  --soft: rgba(247, 251, 255, 0.46);
  --shadow: rgba(2, 6, 18, 0.54);
  --radius: 30px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bottom);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(247, 230, 189, 0.25), transparent 25%),
    radial-gradient(circle at 15% 15%, rgba(125, 181, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #95aedc 0%, #243252 34%, #0a1025 70%, #030611 100%);
  -webkit-font-smoothing: antialiased;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    url("../images/waves-bg.png") center bottom / cover no-repeat,
    linear-gradient(180deg, transparent, rgba(5,8,20,.72));
  opacity: .42;
  mix-blend-mode: screen;
}

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

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(209, 230, 255, .28); border-radius: 999px; }

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247,230,189,.18), rgba(125,181,255,.12) 38%, transparent 70%);
  filter: blur(18px);
  transition: opacity .25s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--mist), var(--warm));
  box-shadow: 0 0 24px rgba(209,230,255,.55);
}

.ambient-orb {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .75;
}

.ambient-orb-one {
  width: 460px;
  height: 460px;
  top: 12vh;
  right: -140px;
  background: rgba(247,230,189,.28);
  animation: floatOne 12s ease-in-out infinite;
}

.ambient-orb-two {
  width: 420px;
  height: 420px;
  bottom: 6vh;
  left: -170px;
  background: rgba(96,152,255,.26);
  animation: floatTwo 14s ease-in-out infinite;
}

@keyframes floatOne {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-26px,32px,0) scale(1.07); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(34px,-28px,0) scale(.96); }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: rgba(5, 8, 20, .42);
  border-bottom: 1px solid rgba(209,230,255,.11);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 8, 20, .82);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.nav-back,
.nav-links,
.nav-brand {
  display: flex;
  align-items: center;
}

.nav-back {
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.nav-back:hover { color: var(--text); transform: translateX(-3px); }
.nav-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.nav-brand {
  justify-self: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(125,181,255,.22);
}

.nav-links {
  justify-self: end;
  gap: 8px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 24px 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/orb-bg.png") center / cover no-repeat;
  opacity: .28;
  transform: scale(1.06);
  mix-blend-mode: screen;
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(247,230,189,.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 24px rgba(247,230,189,.8);
}

.hero h1,
.section-head h2,
.liquid-card h2,
.privacy-glass h2 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(247,251,255,.74);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  color: #06101f;
  background: linear-gradient(135deg, #f7fbff, var(--warm));
  box-shadow: 0 18px 46px rgba(247,230,189,.22);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin-top: 34px;
}

.hero-stats span,
.feature-card,
.privacy-glass,
.liquid-card,
.phone-caption {
  border: 1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
    rgba(8,14,32,.28);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 24px 70px rgba(0,0,0,.24);
}

.hero-stats span {
  padding: 16px;
  border-radius: 20px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.hero-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.hero-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.orbit-card {
  position: relative;
  width: min(470px, 92vw);
  aspect-ratio: 1;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 24%, rgba(247,230,189,.38), transparent 28%),
    radial-gradient(circle at 30% 74%, rgba(125,181,255,.30), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 40px 110px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.26);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.orbit-card::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148,173,219,.2), rgba(5,8,20,.42) 66%, transparent 67%);
  box-shadow: inset 0 0 70px rgba(209,230,255,.14);
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(209,230,255,.26);
  box-shadow: 0 0 26px rgba(125,181,255,.26);
}

.orbit-ring-one { width: 78%; height: 78%; animation: spin 18s linear infinite; border-left-color: var(--warm); }
.orbit-ring-two { width: 62%; height: 62%; animation: spin 14s linear infinite reverse; border-bottom-color: var(--blue); }
.orbit-ring-three { width: 46%; height: 46%; animation: pulse 4s ease-in-out infinite; border-right-color: var(--mist); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .72; } }

.app-icon {
  position: relative;
  z-index: 3;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(0,0,0,.38), 0 0 56px rgba(209,230,255,.24);
}

.glass-pill {
  position: absolute;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.pill-score { top: 15%; left: 9%; animation: drift 7s ease-in-out infinite; }
.pill-rhythm { right: 6%; top: 48%; animation: drift 8s ease-in-out infinite reverse; }
.pill-recovery { left: 18%; bottom: 12%; animation: drift 9s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-12px,0); }
}

.showcase,
.features,
.privacy-note,
.rhythm-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.liquid-card h2,
.privacy-glass h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.phone-card {
  position: relative;
  min-height: 660px;
  padding: 18px;
  border-radius: 38px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.phone-card:nth-child(2) { margin-top: 56px; }
.phone-card:hover { box-shadow: 0 40px 110px rgba(0,0,0,.46); }

.phone-card img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  filter: saturate(1.04);
}

.phone-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border-radius: 22px;
}

.phone-caption span {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 850;
}

.phone-caption p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.liquid-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 42px;
}

.liquid-bg {
  position: absolute;
  inset: 0;
  opacity: .34;
  background: url("../images/orb-bg.png") center / cover no-repeat;
  mix-blend-mode: screen;
}

.liquid-card > *:not(.liquid-bg) { position: relative; z-index: 1; }
.liquid-card p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.signal-stack {
  display: grid;
  gap: 12px;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.signal-row.active,
.signal-row:hover {
  color: var(--text);
  transform: translateX(8px);
  background: rgba(255,255,255,.14);
}

.signal-row strong { color: var(--warm); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.feature-card:hover {
  border-color: rgba(247,230,189,.35);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border-radius: 15px;
  color: #08101d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mist), var(--warm));
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -.04em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

.privacy-glass {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  border-radius: 38px;
}

.privacy-glass p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.inline-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--warm);
  font-weight: 800;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--soft);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .27s; }

@media (max-width: 980px) {
  .hero-grid,
  .liquid-card,
  .phone-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 420px; }
  .phone-card:nth-child(2) { margin-top: 0; }
  .feature-card { min-height: auto; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-brand { justify-self: start; margin-left: 14px; }
}

@media (max-width: 680px) {
  .nav {
    height: 62px;
    padding: 0 14px;
  }

  .nav-links { display: none; }
  .nav-brand { justify-self: end; margin-left: 0; }
  .nav-back { font-size: 12px; }
  .hero { padding: 108px 18px 58px; }
  .hero-stats { grid-template-columns: 1fr; }
  .showcase,
  .features,
  .privacy-note,
  .rhythm-panel,
  .footer {
    width: min(100% - 28px, 1180px);
    padding: 72px 0;
  }

  .orbit-card { border-radius: 30px; }
  .glass-pill { font-size: 11px; padding: 10px 12px; }
  .app-icon { width: 104px; height: 104px; }
  .phone-card { min-height: 560px; border-radius: 30px; padding: 12px; }
  .phone-card img { height: 520px; border-radius: 23px; }
  .phone-caption { left: 20px; right: 20px; bottom: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
