/* ============================================================
   SleepWell Website — Premium Redesign
   Midnight Oasis design system · Anti-slop · High-end dark
   ============================================================ */

/* --- CSS Variables (Palette Cleanup) --- */
:root {
  /* Backgrounds — tinted dark, never pure black */
  --bg-deep: #0A0E27;
  --bg-primary: #0F1332;
  --bg-surface: rgba(15, 19, 50, 0.85);
  --bg-card: rgba(18, 22, 48, 0.7);
  --bg-card-hover: rgba(22, 28, 60, 0.9);

  /* Borders — subtle, tinted */
  --border-subtle: rgba(123, 140, 222, 0.08);
  --border-medium: rgba(123, 140, 222, 0.15);
  --border-accent: rgba(123, 140, 222, 0.25);

  /* Text — warm-cool gray family, consistent hue */
  --text-primary: #F0ECF9;
  --text-secondary: rgba(240, 236, 249, 0.65);
  --text-muted: rgba(240, 236, 249, 0.38);

  /* ONE accent only — Midnight Oasis primary blue-violet */
  --accent: #7B8CDE;
  --accent-light: rgba(123, 140, 222, 0.12);
  --accent-glow: rgba(123, 140, 222, 0.25);

  /* Removed: dual accent (lavender + gold). Single accent system. */
  /* Gold reserved for star/score highlights only, not as brand accent */

  --gradient-brand: linear-gradient(135deg, #9CA8E0, #7B8CDE);
  --gradient-hero: linear-gradient(180deg, #0F1332 0%, #0A0E27 60%, #0D1230 100%);
  --gradient-card: linear-gradient(135deg, rgba(123, 140, 222, 0.06), rgba(123, 140, 222, 0.02));

  /* Shadows — tinted to background hue, never pure black */
  --shadow-card: 0 4px 24px rgba(10, 14, 39, 0.5);
  --shadow-card-hover: 0 8px 40px rgba(10, 14, 39, 0.6), 0 0 0 1px var(--border-medium);
  --shadow-glow: 0 0 60px var(--accent-glow);
  --shadow-button: 0 4px 20px rgba(123, 140, 222, 0.3);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography — upgraded font stack */
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Noise Overlay (Texture) --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--text-primary);
}

img { max-width: 100%; height: auto; }

/* ============================================================
   ANIMATED BACKGROUND (kept, refined)
   ============================================================ */

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Stars — refined count + subtle twinkle */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: twinkle var(--twinkle-duration, 4s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Moon — refined glow */
.moon-container {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 100px;
  height: 100px;
}

.moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF8DC, #FFE4B5, #E8C870);
  box-shadow:
    0 0 50px rgba(232, 200, 112, 0.2),
    0 0 100px rgba(232, 200, 112, 0.08),
    inset 0 -3px 8px rgba(10, 14, 39, 0.15);
  animation: moonFloat 8s ease-in-out infinite;
}

.moon-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 112, 0.08) 0%, transparent 70%);
  animation: moonGlowPulse 5s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes moonGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

/* Clouds — kept for atmosphere */
.clouds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cloud {
  position: absolute;
  background: rgba(123, 140, 222, 0.03);
  border-radius: 50%;
  filter: blur(40px);
}
.cloud-1 { width: 300px; height: 80px; top: 18%; animation: cloudDrift1 40s linear infinite; }
.cloud-2 { width: 250px; height: 60px; top: 30%; animation: cloudDrift2 32s linear infinite; animation-delay: -12s; }
.cloud-3 { width: 350px; height: 90px; top: 12%; animation: cloudDrift3 45s linear infinite; animation-delay: -22s; }

@keyframes cloudDrift1 { 0% { left: -350px; } 100% { left: 110%; } }
@keyframes cloudDrift2 { 0% { left: -300px; } 100% { left: 110%; } }
@keyframes cloudDrift3 { 0% { left: -400px; } 100% { left: 110%; } }

/* Waves — refined colors to accent system */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  opacity: 0.08;
}
.waves svg { position: absolute; bottom: 0; width: 100%; height: 100%; }
.wave { fill: none; stroke-width: 1.2; }
.wave-1 { stroke: var(--accent); animation: waveShift 10s ease-in-out infinite; }
.wave-2 { stroke: rgba(123, 140, 222, 0.5); animation: waveShift 12s ease-in-out infinite; animation-delay: -4s; }
.wave-3 { stroke: rgba(123, 140, 222, 0.25); animation: waveShift 14s ease-in-out infinite; animation-delay: -8s; }

@keyframes waveShift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-15px) scaleY(1.04); }
}

/* ============================================================
   HEADER — refined
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon { width: 40px; height: 40px; flex-shrink: 0; }
.brand-icon svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand-tagline {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-download-btn {
  padding: 8px 20px !important;
  background: var(--accent) !important;
  color: var(--bg-deep) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-download-btn::after { display: none !important; }
.nav-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
  color: var(--bg-deep) !important;
}
.nav-download-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================================
   HERO — asymmetric, staggered reveal
   ============================================================ */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 80px) 32px 100px;
  gap: 48px;
}

.hero-content {
  flex: 1.2;
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.title-line { display: block; }
.title-line.accent {
  color: var(--accent);
  /* Removed: gradient text. Clean single-color accent instead. */
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

/* Feature chips — refined: square badge, not pill */
.hero-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.chip:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.chip svg { flex-shrink: 0; }

/* Download button — refined, no pill, sharper */
.hero-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
  color: var(--bg-deep);
}

.hero-download-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-download-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-download-btn svg { flex-shrink: 0; }

/* --- Phone Mockup — refined proportions --- */
.hero-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: linear-gradient(180deg, #141836, #0F1332);
  border: 2px solid var(--border-medium);
  border-radius: 28px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 0 80px var(--accent-glow),
    0 20px 50px rgba(10, 14, 39, 0.6);
  animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: rgba(240, 236, 249, 0.15);
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0A0E27, #070B1F);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Sleep viz inside phone — refined */
.sleep-viz {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-moon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF8DC, #E8C870);
  box-shadow: 0 0 30px rgba(232, 200, 112, 0.25);
  position: relative;
  z-index: 2;
  animation: vizMoonPulse 3.5s ease-in-out infinite;
}

.viz-moon-inner {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #070B1F;
}

@keyframes vizMoonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(232, 200, 112, 0.25); }
  50% { transform: scale(1.04); box-shadow: 0 0 45px rgba(232, 200, 112, 0.35); }
}

.viz-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.2px solid rgba(123, 140, 222, 0.2);
  animation: ringExpand 5s ease-out infinite;
}

.ring-1 { width: 90px; height: 90px; animation-delay: 0s; }
.ring-2 { width: 130px; height: 130px; animation-delay: 1.6s; }
.ring-3 { width: 160px; height: 160px; animation-delay: 3.2s; }

@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

.viz-zzz {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  animation: zzzFloat 3s ease-out infinite;
  opacity: 0;
}
.zzz-1 { top: 10px; right: 25px; animation-delay: 0s; }
.zzz-2 { top: -5px; right: 15px; font-size: 1.5rem; animation-delay: 1s; }
.zzz-3 { top: -20px; right: 5px; font-size: 1.8rem; animation-delay: 2s; }

@keyframes zzzFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  15% { opacity: 0.7; }
  70% { opacity: 0.1; }
  100% { opacity: 0; transform: translate(-12px, -35px) scale(1.1); }
}

.phone-status {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-bar {
  height: 3px;
  background: var(--accent);
  border-radius: 1.5px;
  animation: statusPulse 2.5s ease-in-out infinite;
}
.status-bar.short { width: 55%; }

@keyframes statusPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.status-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 3px;
}

/* ============================================================
   SECTIONS COMMON — generous whitespace
   ============================================================ */

section {
  position: relative;
  z-index: 2;
  padding: 120px 32px;
}

.section-title {
  font-family: var(--font-display);
  text-align: left;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 80px;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 600px;
}

/* ============================================================
   FEATURES — 2-column zig-zag, NOT 3-column grid
   ============================================================ */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* First card spans full width — hero feature */
.feature-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card--wide:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
}

.feature-card--wide .feature-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.feature-card--wide .feature-text {
  flex: 1;
}

.feature-card--wide h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card--wide p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Regular 2-column cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  /* Removed: translateY hover — replace with border glow */
}

.feature-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
}

.feature-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS — staggered, asymmetric
   ============================================================ */

.how-it-works {
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.step {
  text-align: left;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease;
}

.step:hover {
  border-color: var(--border-medium);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Removed: step-connector lines — cards handle separation */

/* ============================================================
   DOWNLOAD SECTION — refined
   ============================================================ */

.download {
  position: relative;
  z-index: 2;
  padding: 120px 32px;
  overflow: hidden;
}

.download-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, var(--accent-light) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(123, 140, 222, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.download-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-badge { width: 48px; height: 48px; margin-bottom: 28px; }
.download-badge svg { width: 100%; height: 100%; }

.download-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.download-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 420px;
}

.download-features {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.download-features .dot { color: var(--border-medium); }

/* Google Play Button — refined, sharper */
.google-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: #fff;
  color: var(--bg-deep);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 28px rgba(10, 14, 39, 0.4);
}

.google-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(10, 14, 39, 0.55);
  color: var(--bg-deep);
}

.google-play-btn:active {
  transform: translateY(0) scale(0.98);
}

.google-play-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.google-play-btn svg { flex-shrink: 0; color: var(--bg-deep); }

.gp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.gp-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.gp-store {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================================
   PRIVACY HIGHLIGHT SECTION — refined
   ============================================================ */

.privacy-highlight {
  position: relative;
  z-index: 2;
  padding: 80px 32px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(123, 140, 222, 0.02);
}

.privacy-highlight-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.privacy-highlight-icon { flex: 0 0 48px; padding-top: 4px; }

.privacy-highlight-text { flex: 1; max-width: 620px; }

.privacy-highlight-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.privacy-highlight-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.privacy-highlight-text strong { color: var(--text-primary); }

.privacy-highlight-links {
  display: flex;
  gap: 24px;
}

.privacy-highlight-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.25s ease;
}

.privacy-highlight-links a:hover { color: var(--text-primary); }

/* ============================================================
   FOOTER — simplified, not 3-column link farm
   ============================================================ */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(12px);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand-name { font-size: 1rem; }

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */

.legal-page {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) 32px 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--accent);
}

.legal-page .last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-page p, .legal-page li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-page strong { color: var(--text-primary); }
.legal-page a { color: var(--accent); }
.legal-page a:hover { color: var(--text-primary); }

/* ============================================================
   SKIP-TO-CONTENT (Accessibility)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

/* ============================================================
   RESPONSIVE — refined breakpoints
   ============================================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: left;
    padding-top: calc(var(--header-height) + 48px);
    gap: 40px;
  }

  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }

  .hero-title { font-size: clamp(2rem, 4vw, 2.8rem); }

  .hero-visual { flex: 0 0 auto; justify-content: center; }
  .phone-mockup { width: 200px; height: 400px; }

  .features-layout {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 48px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .moon-container { right: 8%; width: 80px; height: 80px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.78rem; }
  .brand-tagline { display: none; }

  .hero {
    padding: calc(var(--header-height) + 32px) 20px 60px;
  }

  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .features-layout {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    flex-direction: column;
    gap: 24px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  section { padding: 80px 20px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .moon-container { display: none; }

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

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

  .legal-page {
    padding: calc(var(--header-height) + 24px) 20px 48px;
  }

  .legal-page h1 { font-size: 1.5rem; }

  .privacy-highlight-inner {
    flex-direction: column;
    gap: 20px;
  }

  .download-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .phone-mockup { width: 160px; height: 320px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.72rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-icon { width: 32px; height: 32px; }
}
