/* ==========================================================================
   RHEON — Recovery Intelligence
   Visual system: deep space + precision sports tech
   ========================================================================== */

:root {
  --bg: #080B12;
  --bg-2: #0B0F18;
  --surface: #0F1117;
  --surface-glass: rgba(15, 17, 23, 0.7);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #E8ECF3;
  --text-dim: #8A93A6;
  --text-mute: #5B6478;
  --teal: #00F0C8;
  --teal-soft: rgba(0, 240, 200, 0.14);
  --teal-glow: rgba(0, 240, 200, 0.35);
  --purple: #A855F7;
  --purple-soft: rgba(168, 85, 247, 0.14);
  --shadow-btn: 0 10px 40px -10px rgba(0, 240, 200, 0.55);
  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, 0.6);

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--teal); color: #001a16; }

a { color: inherit; text-decoration: none; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 240, 200, 0.04);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--text);
}

.h-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.92;
  letter-spacing: 0.005em;
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.95;
  letter-spacing: 0.015em;
}

.h-sub {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.02em;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.05em; }

.text-dim { color: var(--text-dim); }
.text-teal { color: var(--teal); }
.text-purple { color: var(--purple); }

.muted-lead {
  color: var(--text-dim);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #00120F;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(0, 240, 200, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(0, 240, 200, 0.3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 16px; border-radius: 16px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Glass card */
.glass {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.glass:hover {
  border-color: rgba(0, 240, 200, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 240, 200, 0.08), 0 30px 60px -25px rgba(0, 240, 200, 0.18);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1120px;
  height: 64px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
}
.nav-logo .dot {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--teal);
}
.nav-links {
  display: flex; gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Mesh background (animated)
   ========================================================================== */
.mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-teal { background: radial-gradient(circle at 30% 30%, #00F0C8, transparent 70%); }
.blob-purple { background: radial-gradient(circle at 70% 60%, #A855F7, transparent 70%); }
.blob-cyan { background: radial-gradient(circle at 40% 50%, #2DD4FF, transparent 70%); }

/* Subtle grain */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Section divider gradients */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0 auto;
  max-width: 1100px;
}

/* ==========================================================================
   Sections — base
   ========================================================================== */
section {
  position: relative;
  padding: 120px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto; margin-right: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero .mesh { z-index: 0; }
.hero .blob-1 { width: 720px; height: 720px; top: -200px; left: -200px; animation: drift1 24s ease-in-out infinite; }
.hero .blob-2 { width: 620px; height: 620px; bottom: -180px; right: -140px; animation: drift2 28s ease-in-out infinite; }
.hero .blob-3 { width: 520px; height: 520px; top: 30%; left: 50%; opacity: 0.35; animation: drift3 32s ease-in-out infinite; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-status .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0, 240, 200, 0.08);
  border-radius: 999px;
}
.hero-status .chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroWord 0.9s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero h1 .accent { color: var(--teal); }
.hero h1 .accent-purple { color: var(--purple); }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  color: transparent;
}

.hero-sub {
  margin-top: 28px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 48ch;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease forwards;
}
.hero-actions {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease forwards;
}
.hero-trust {
  margin-top: 40px;
  display: flex; align-items: center; gap: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 1s ease forwards;
}
.hero-trust .avatars {
  display: flex;
}
.hero-trust .avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: #00120F;
}
.hero-trust .avatars span:nth-child(1) { background: linear-gradient(135deg, #00F0C8, #00b8a0); margin-left: 0; }
.hero-trust .avatars span:nth-child(2) { background: linear-gradient(135deg, #A855F7, #6d28d9); color: white; }
.hero-trust .avatars span:nth-child(3) { background: linear-gradient(135deg, #2DD4FF, #0284c7); color: white; }
.hero-trust .avatars span:nth-child(4) { background: linear-gradient(135deg, #fbbf24, #d97706); }
.hero-trust .stars { color: var(--teal); letter-spacing: 2px; font-size: 12px; }
.hero-trust .copy { font-size: 13px; color: var(--text-dim); }
.hero-trust .copy strong { color: var(--text); }

/* Hero phone */
.hero-phone-wrap {
  position: relative;
  display: flex; justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 0.5s ease forwards;
}
.hero-phone-wrap::before {
  content: "";
  position: absolute;
  width: 110%; height: 110%;
  top: -5%; left: -5%;
  background: radial-gradient(closest-side, rgba(0,240,200,0.22), transparent 70%);
  z-index: 0;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9/19;
  background: #050608;
  border: 10px solid #14171F;
  border-radius: 2.5rem;
  box-shadow:
    0 60px 120px -30px rgba(0, 240, 200, 0.18),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  z-index: 1;
}
.phone .notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #050608;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0a0d14 0%, #060810 100%);
  display: flex;
  flex-direction: column;
  padding: 50px 18px 24px;
  gap: 14px;
  overflow: hidden;
}
.phone-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text);
  padding: 0 8px;
  margin-bottom: 4px;
}
.phone-status-bar .icons { display: flex; gap: 4px; opacity: 0.8; }

/* Phone content variants */
.phone-greet {
  font-size: 11px; color: var(--text-mute);
  font-family: var(--font-mono); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phone-greet b { color: var(--text); font-weight: 500; }

.phone-hero-score {
  display: flex; align-items: flex-end; gap: 10px;
  margin-top: 2px;
}
.phone-hero-score .num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #00F0C8, #00b39a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phone-hero-score .label {
  padding-bottom: 8px;
  font-size: 10px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-ring-wrap {
  display: flex; justify-content: center;
  padding: 6px 0 2px;
}
.phone-ring {
  width: 168px; height: 168px;
  position: relative;
}
.phone-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.phone-ring .ring-bg { stroke: rgba(255,255,255,0.06); }
.phone-ring .ring-fg { stroke: url(#ringGrad); stroke-linecap: round; }
.phone-ring .ring-fg-2 { stroke: url(#ringGrad2); stroke-linecap: round; }
.phone-ring .ring-num {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phone-ring .ring-num .v {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--teal);
  line-height: 1;
}
.phone-ring .ring-num .l {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.phone-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-mini {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.phone-mini .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.phone-mini .v {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 2px;
  color: var(--text);
}
.phone-mini .v.teal { color: var(--teal); }
.phone-mini .v.purple { color: var(--purple); }
.phone-mini .sub {
  font-size: 9px; color: var(--text-mute); margin-top: 1px;
}

.phone-rec {
  margin-top: 4px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 200, 0.10), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(0, 240, 200, 0.18);
}
.phone-rec .tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  padding: 2px 6px;
  background: rgba(0,240,200,0.12);
  border-radius: 4px;
}
.phone-rec .t {
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 6px;
  line-height: 1.1;
}
.phone-rec .d {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

/* Sparkline / bars row inside phone */
.phone-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 56px;
  padding: 4px 0;
}
.phone-bars .b {
  flex: 1;
  background: linear-gradient(180deg, var(--teal), rgba(0,240,200,0.15));
  border-radius: 3px;
  opacity: 0.9;
}
.phone-bars .b.dim { background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); }

/* ==========================================================================
   Metric section — hero ring
   ========================================================================== */
.metric {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.metric .mesh .blob {
  width: 600px; height: 600px;
}
.metric .mesh .blob-1 { left: 50%; top: 40%; transform: translate(-50%, -50%); opacity: 0.18; animation: drift1 30s ease-in-out infinite; }

.metric-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.metric-col {
  display: flex; flex-direction: column;
  gap: 16px;
}
.metric-col.right { align-items: flex-end; text-align: right; }

.metric-ring {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}
.metric-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.metric-ring .ring-track { stroke: rgba(255,255,255,0.05); }
.metric-ring .ring-arc { stroke: url(#metricGrad); stroke-linecap: round; }
.metric-ring .ring-arc-2 { stroke: url(#metricGrad2); stroke-linecap: round; opacity: 0.85; }
.metric-ring .center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px;
  text-align: center;
}
.metric-ring .center .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.metric-ring .center .score {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.9;
  color: var(--teal);
  filter: drop-shadow(0 0 24px rgba(0,240,200,0.35));
}
.metric-ring .center .out {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-mute);
}
.metric-ring .center .tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.metric-ring .center .tag b { color: var(--teal); }

.metric-stat {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.metric-stat .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.metric-stat .v {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  margin-top: 6px;
}
.metric-stat .v.teal { color: var(--teal); }
.metric-stat .v.purple { color: var(--purple); }
.metric-stat .d { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.metric-stat .trend {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.metric-insight {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 240, 200, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(0, 240, 200, 0.18);
  display: flex; align-items: center; gap: 24px;
  backdrop-filter: blur(20px);
}
.metric-insight .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00F0C8, #00b8a0);
  display: grid; place-items: center;
  color: #00120F;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 28px;
}
.metric-insight .body { flex: 1; }
.metric-insight .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.metric-insight .t {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 4px;
  letter-spacing: 0.015em;
}
.metric-insight .d {
  color: var(--text-dim);
  margin-top: 4px;
  font-size: 15px;
}
.metric-insight .cta { flex-shrink: 0; }

/* ==========================================================================
   Showcase blocks
   ========================================================================== */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.showcase-block:last-child { margin-bottom: 0; }
.showcase-block.flipped .showcase-text { order: 2; }
.showcase-block.flipped .showcase-phone { order: 1; }

.showcase-text { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.showcase-text .lead { color: var(--text-dim); font-size: 17px; line-height: 1.6; }

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.showcase-stats > div {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.showcase-stats .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.showcase-stats .v {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin-top: 6px;
  color: var(--teal);
}
.showcase-stats .v.purple { color: var(--purple); }
.showcase-stats .v .unit { font-size: 16px; color: var(--text-dim); margin-left: 2px; }

.showcase-phone { display: flex; justify-content: center; position: relative; }
.showcase-phone::before {
  content: "";
  position: absolute;
  width: 90%; height: 90%;
  top: 5%; left: 5%;
  background: radial-gradient(closest-side, rgba(0,240,200,0.16), transparent 70%);
  filter: blur(20px);
}

/* Phone variant: sleep */
.phone-sleep-stages {
  display: flex; align-items: flex-end; gap: 3px;
  height: 110px;
  margin-top: 4px;
}
.phone-sleep-stages .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: flex-end;
  height: 100%;
}
.phone-sleep-stages .col .seg {
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.9;
}
.phone-sleep-stages .col .seg.rem { background: var(--purple); }
.phone-sleep-stages .col .seg.light { background: rgba(0,240,200,0.45); }
.phone-sleep-stages .col .seg.awake { background: rgba(255,255,255,0.2); }

.phone-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.phone-row .lbl { font-size: 11px; color: var(--text-dim); }
.phone-row .val { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.phone-row .val.teal { color: var(--teal); }
.phone-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 6px; }
.phone-row .dot.purple { background: var(--purple); }
.phone-row .dot.light { background: rgba(0,240,200,0.4); }

/* Phone variant: training */
.phone-zones {
  display: flex; gap: 6px;
  margin-top: 4px;
}
.phone-zones .z {
  flex: 1;
  height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.phone-zones .z.active { background: var(--teal); }
.phone-zones .z.active.purple { background: var(--purple); }

.phone-hr-line {
  height: 70px;
  margin-top: 4px;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,200,0.4), rgba(168,85,247,0.4), transparent);
}
.process-step {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 16px;
}
.process-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,240,200,0.10), rgba(0,240,200,0.02));
  border: 1px solid rgba(0,240,200,0.25);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--teal);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 6px rgba(8,11,18,1);
}
.process-step:nth-child(2) .process-icon {
  background: linear-gradient(180deg, rgba(168,85,247,0.10), rgba(168,85,247,0.02));
  border-color: rgba(168,85,247,0.3);
  color: var(--purple);
}
.process-step .step-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.process-step .step-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.015em;
}
.process-step .step-desc {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 38ch;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 28px;
  border-radius: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}
.feature:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(0, 240, 200, 0.35);
  box-shadow: 0 30px 60px -25px rgba(0, 240, 200, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
.feature .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,200,0.14), rgba(0,240,200,0.04));
  border: 1px solid rgba(0,240,200,0.2);
  display: grid; place-items: center;
  color: var(--teal);
  margin-bottom: 4px;
}
.feature:nth-child(2) .icon, .feature:nth-child(5) .icon {
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(168,85,247,0.04));
  border-color: rgba(168,85,247,0.25);
  color: var(--purple);
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.015em;
}
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  padding: 28px;
  border-radius: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover {
  border-color: rgba(0, 240, 200, 0.28);
  box-shadow: 0 30px 60px -25px rgba(0, 240, 200, 0.18);
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--teal);
  opacity: 0.8;
}
.testimonial .quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: #00120F;
  background: linear-gradient(135deg, #00F0C8, #00b8a0);
}
.testimonial:nth-child(2) .avatar {
  background: linear-gradient(135deg, #A855F7, #6d28d9);
  color: white;
}
.testimonial:nth-child(3) .avatar {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.testimonial .who .name { font-weight: 500; font-size: 14px; }
.testimonial .who .role { font-size: 12px; color: var(--text-dim); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 240, 200, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  max-width: 14ch;
  margin: 0 auto;
}
.cta-final h2 .teal { color: var(--teal); }
.cta-final p {
  margin: 28px auto 36px;
  max-width: 48ch;
  color: var(--text-dim);
  font-size: 17px;
}
.cta-final .trust {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
  display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center;
}
.cta-final .trust span { display: inline-flex; align-items: center; gap: 6px; }
.cta-final .trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.footer-inner .logo .dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--teal);
}
.footer-links {
  display: flex; gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 30px) scale(1.05); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -55%) scale(1.15); }
}
@keyframes heroWord {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.1,1), transform 0.9s cubic-bezier(.2,.7,.1,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

@keyframes ringDraw {
  from { stroke-dashoffset: var(--full); }
  to { stroke-dashoffset: var(--target); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ==========================================================================
   Privacy page
   ========================================================================== */
.privacy-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 32px 100px;
  position: relative;
  z-index: 2;
}
.privacy-wrap .eyebrow { margin-bottom: 20px; }
.privacy-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: 0.015em;
  line-height: 0.95;
  margin-bottom: 16px;
}
.privacy-wrap .updated {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 60px;
}
.privacy-wrap h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.015em;
  margin: 56px 0 16px;
  color: var(--text);
}
.privacy-wrap h2 .num {
  color: var(--teal);
  margin-right: 14px;
}
.privacy-wrap p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.privacy-wrap ul {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
}
.privacy-wrap li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  padding: 6px 0 6px 22px;
  position: relative;
}
.privacy-wrap li::before {
  content: "";
  position: absolute;
  top: 16px; left: 0;
  width: 8px; height: 1px;
  background: var(--teal);
}
.privacy-wrap a { color: var(--teal); }
.privacy-wrap .legal-card {
  margin-top: 60px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.privacy-wrap .legal-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.privacy-wrap .legal-card .email {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--teal);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Responsive — tablet (≤ 980px)
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-phone-wrap { order: 2; }

  .metric-stage { grid-template-columns: 1fr; }
  .metric-col.right { align-items: flex-start; text-align: left; }
  .metric-ring { max-width: 300px; }
  .metric-insight { flex-direction: column; align-items: flex-start; gap: 18px; }
  .metric-insight .cta { width: 100%; justify-content: center; }

  .showcase-block { grid-template-columns: 1fr; gap: 48px; }
  .showcase-block.flipped .showcase-text { order: 1; }
  .showcase-block.flipped .showcase-phone { order: 2; }

  .process-track { grid-template-columns: 1fr; gap: 40px; }
  .process-track::before { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ==========================================================================
   Responsive — mobile (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Base */
  section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav { top: 12px; }
  .nav-inner {
    padding: 0 10px 0 16px;
    height: 56px;
    width: calc(100% - 28px);
  }
  .nav-logo { font-size: 19px; }
  .nav-cta .btn-sm { height: 36px; padding: 0 12px; font-size: 12px; }

  /* Hero */
  .hero { padding: 110px 0 56px; min-height: auto; }
  .h-display { font-size: clamp(44px, 13vw, 72px); }
  .hero-status {
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-trust { flex-direction: column; align-items: center; gap: 12px; text-align: center; }

  /* Phone mockup */
  .phone { width: 260px; }

  /* Score / Metric */
  .metric { padding: 72px 0; }
  .metric-ring { max-width: 260px; }
  .metric-insight { padding: 20px; }
  .metric-insight .t { font-size: 22px; }
  .section-head { margin-bottom: 44px; }

  /* Showcase */
  .showcase-block { gap: 36px; margin-bottom: 72px; }
  .showcase-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .showcase-stats > div { padding: 12px; }
  .showcase-stats .v { font-size: 26px; }

  /* Process */
  .process-step .step-title { font-size: 28px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { min-height: auto; padding: 22px; }

  /* Testimonials */
  .testimonials-grid { gap: 12px; }

  /* CTA */
  .cta-final { padding: 100px 0; }
  .cta-final h2 { font-size: clamp(42px, 12vw, 72px); }
  .cta-final p { font-size: 15px; }
  .cta-final .trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .cta-final > .container > div[style] { flex-direction: column; }
  .cta-final .btn-lg { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ==========================================================================
   Responsive — very small (≤ 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .phone { width: 240px; }
  .metric-ring { max-width: 230px; }
  .h-display { font-size: 42px; }
  .nav-cta { display: none; }
}
