/* ========================================
   SLEEPFY — Premium Landing Page Styles
   ======================================== */

/* ---- Variables ---- */
:root {
  --bg-deep: #050910;
  --bg-primary: #080d1a;
  --bg-elevated: #0c1326;
  --bg-card: #0f1830;
  --bg-card-border: #182244;
  --blue: #4f7fff;
  --blue-dim: #3a5fbf;
  --purple: #7c5cfc;
  --purple-dim: #5e3fd6;
  --gold: #d4a853;
  --gold-dim: #b08a3a;
  --gold-glow: rgba(212, 168, 83, 0.12);
  --text-primary: #edf2ff;
  --text-secondary: #8892b0;
  --text-muted: #4a5570;
  --glow-blue: rgba(79, 127, 255, 0.12);
  --glow-purple: rgba(124, 92, 252, 0.1);
  --glow-gold: rgba(212, 168, 83, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
em { font-style: italic; }

/* ---- Background Glows ---- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  will-change: transform;
}
.bg-glow--hero {
  width: 800px;
  height: 800px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
}
.bg-glow--mid {
  width: 600px;
  height: 600px;
  top: 50%;
  left: -300px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
}
.bg-glow--bottom {
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
}

/* ---- Typography ---- */
.gold-text {
  background: linear-gradient(135deg, #d4a853 0%, #f0d48a 50%, #c09538 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 168, 83, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(5, 9, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link--cta {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(212, 168, 83, 0.2);
}
.nav__link--cta:hover {
  background: rgba(212, 168, 83, 0.18);
  color: var(--gold);
}

/* Language toggle (flag) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.lang-toggle:hover {
  background: rgba(212, 168, 83, 0.18);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Phone Mockup (realistic 3D iPhone) ---- */
.phone-device {
  position: relative;
  width: 286px;
  height: 586px;
  border-radius: 54px;
  padding: 13px;
  /* Titanium / graphite rail with light catching the rounded edges */
  background:
    linear-gradient(115deg,
      #4a4d54 0%,
      #2b2d33 9%,
      #15171b 26%,
      #0c0d11 50%,
      #15171b 74%,
      #34373d 91%,
      #54575e 100%);
  box-shadow:
    /* polished rim */
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 3px rgba(0, 0, 0, 0.55),
    /* edge definition */
    0 0 0 1px rgba(0, 0, 0, 0.5),
    /* depth / drop shadow */
    0 20px 40px -12px rgba(0, 0, 0, 0.6),
    0 40px 90px -20px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}
/* Specular highlights down the left & right polished edges */
.phone-device::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.02) 5%,
    transparent 12%,
    transparent 88%,
    rgba(255, 255, 255, 0.02) 95%,
    rgba(255, 255, 255, 0.22) 100%);
  pointer-events: none;
  z-index: 6;
}
/* Soft contact shadow on the ground for 3D grounding */
.phone-device::after {
  content: '';
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  filter: blur(14px);
  z-index: -2;
  pointer-events: none;
}
.phone-device--sm {
  width: 246px;
  height: 504px;
  border-radius: 46px;
  padding: 11px;
}

/* Side buttons */
.phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #34363c 0%, #0a0b0e 60%, rgba(4, 5, 7, 0) 100%);
  z-index: 2;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 -1px 1px rgba(0, 0, 0, 0.5);
}
.phone-btn--action  { left: -2.5px; top: 20%;   width: 3px; height: 4.5%; border-radius: 3px 0 0 3px; }
.phone-btn--volup   { left: -2.5px; top: 28%;   width: 3px; height: 8%;   border-radius: 3px 0 0 3px; }
.phone-btn--voldown { left: -2.5px; top: 38.5%; width: 3px; height: 8%;   border-radius: 3px 0 0 3px; }
.phone-btn--power {
  right: -2.5px; top: 31%; width: 3px; height: 13%;
  background: linear-gradient(270deg, #34363c 0%, #0a0b0e 60%, rgba(4, 5, 7, 0) 100%);
  border-radius: 0 3px 3px 0;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.12);
}
.phone-island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3a55 0%, #0a0e18 70%);
  box-shadow: inset 0 0 1px rgba(120, 160, 220, 0.5);
}
.phone-device--sm .phone-island {
  width: 74px;
  height: 22px;
  top: 21px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #05070d;
  position: relative;
  /* thin black bezel between glass and the metal rail */
  box-shadow:
    0 0 0 3px #05060a,
    inset 0 0 2px 1px rgba(0, 0, 0, 0.6);
}
/* Glossy diagonal glass reflection */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 14%,
    transparent 32%,
    transparent 70%,
    rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 4;
}
.phone-device--sm .phone-screen {
  border-radius: 36px;
}

/* Native iPhone screenshots retain their proportions inside the glass. */
.screen-home      { background-image: url('assets/sleepfy-home-2026.png'); }
.screen-alarm     { background-image: url('assets/sleepfy-alarm.jpeg'); }
.screen-tracking  { background-image: url('assets/sleepfy-tracking.jpeg'); }
.screen-analysis  { background-image: url('assets/sleepfy-analysis-2026.png'); }
.screen-insights  { background-image: url('assets/sleepfy-insights.jpeg'); }

/* Phone glow effect */
.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 127, 255, 0.15) 0%, rgba(124, 92, 252, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.phone-glow--sm {
  width: 200px;
  height: 200px;
}
.phone-glow--lg {
  width: 600px;
  height: 500px;
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.phone-float {
  animation: float 6s ease-in-out infinite;
}

/* 3D tilt variants — share the container perspective for a cohesive fan */
.phone-device--tilt-left {
  margin-right: -44px;
  transform: rotateY(26deg) rotateX(3deg) scale(0.9);
  transform-origin: right center;
}
.phone-device--tilt-left.phone-float {
  animation: floatTiltLeft 6s ease-in-out infinite;
}
@keyframes floatTiltLeft {
  0%, 100% { transform: rotateY(26deg) rotateX(3deg) scale(0.9) translateY(0); }
  50% { transform: rotateY(26deg) rotateX(3deg) scale(0.9) translateY(-14px); }
}
.phone-device--center {
  z-index: 2;
  transform: translateZ(60px) scale(1.04);
}
.phone-device--center.phone-float {
  animation: floatCenter 6s ease-in-out infinite;
}
@keyframes floatCenter {
  0%, 100% { transform: translateZ(60px) scale(1.04) translateY(0); }
  50% { transform: translateZ(60px) scale(1.04) translateY(-18px); }
}
.phone-device--tilt-right {
  margin-left: -44px;
  transform: rotateY(-26deg) rotateX(3deg) scale(0.9);
  transform-origin: left center;
}
.phone-device--tilt-right.phone-float {
  animation: floatTiltRight 6s ease-in-out infinite;
}
@keyframes floatTiltRight {
  0%, 100% { transform: rotateY(-26deg) rotateX(3deg) scale(0.9) translateY(0); }
  50% { transform: rotateY(-26deg) rotateX(3deg) scale(0.9) translateY(-14px); }
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 120px 32px 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero__content {
  flex: 1;
  max-width: 540px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__phone {
  position: relative;
  flex-shrink: 0;
}

/* ---- STEPS ---- */
.steps {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}
.step:last-child { margin-bottom: 0; }
.step--reverse { flex-direction: row-reverse; }
.step__text {
  flex: 1;
  max-width: 440px;
}
.step__number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.7;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.25;
}
.step__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.step__phone {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---- FEATURES ---- */
.features {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: linear-gradient(145deg, rgba(15, 24, 48, 0.8) 0%, rgba(12, 19, 38, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 127, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(79, 127, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(79, 127, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}
.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- VISUALIZED ---- */
.visualized {
  position: relative;
  z-index: 1;
  padding: 120px 32px 140px;
  text-align: center;
}
.visualized__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-top: 40px;
  padding: 20px 0 40px;
  perspective: 1800px;
}

/* ---- INSIGHTS SECTION ---- */
.insights-section {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.insights-section__content {
  display: flex;
  align-items: center;
  gap: 80px;
}
.insights-section__text {
  flex: 1;
  max-width: 480px;
}
.insights-section__text .section-title { text-align: left; }
.insights-section__body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}
.insights-list { display: flex; flex-direction: column; gap: 14px; }
.insights-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.insights-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}
.insights-section__phone {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* ---- COMPARISON ---- */
.comparison {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.comparison__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.comparison__card {
  border-radius: var(--radius-md);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.comparison__card--old {
  background: linear-gradient(145deg, rgba(15, 18, 30, 0.7) 0%, rgba(10, 14, 26, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.comparison__card--new {
  background: linear-gradient(145deg, rgba(15, 24, 48, 0.9) 0%, rgba(12, 19, 40, 0.7) 100%);
  border: 1px solid rgba(212, 168, 83, 0.15);
}
.comparison__card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.comparison__card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comparison__card--new .comparison__card-title {
  color: var(--gold);
}
.comparison__list { display: flex; flex-direction: column; gap: 18px; }
.comparison__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.comparison__item--negative {
  color: var(--text-muted);
}
.comparison__item--negative svg { color: #6b4040; }
.comparison__item--positive {
  color: var(--text-secondary);
}
.comparison__item--positive svg { color: var(--gold); }

/* ---- FINAL CTA ---- */
.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 160px 32px;
  overflow: hidden;
}
.final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(79, 127, 255, 0.06) 0%, rgba(124, 92, 252, 0.04) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.final-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.final-cta__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.final-cta__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 60px 32px 40px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer__brand { text-align: center; }
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    gap: 48px;
  }
  .hero__content { max-width: 600px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .step { gap: 48px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .visualized__phones { gap: 20px; }
  .visualized__phones .phone-device { width: 220px; height: 450px; border-radius: 36px; }
  .visualized__phones .phone-device .phone-screen { border-radius: 28px; }
  .insights-section__content { gap: 48px; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 9, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__links .nav__link { font-size: 1.2rem; }
  .nav__toggle { display: flex; z-index: 101; }

  .hero { padding: 120px 24px 60px; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.2rem); }

  .steps { padding: 80px 24px; }
  .step, .step--reverse {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .step__text { max-width: 100%; }

  .features { padding: 80px 24px; }
  .features__grid { grid-template-columns: 1fr; gap: 16px; }

  .visualized { padding: 80px 24px; }
  .visualized__phones {
    flex-direction: column;
    gap: 28px;
  }
  .visualized__phones .phone-device {
    width: 240px;
    height: 490px;
    border-radius: 38px;
  }
  .visualized__phones .phone-device .phone-screen { border-radius: 30px; }
  .visualized__phones .phone-device--tilt-left,
  .visualized__phones .phone-device--tilt-right {
    margin: 0;
    transform: scale(0.92);
  }
  .visualized__phones .phone-device--tilt-left.phone-float {
    animation: floatMobile 6s ease-in-out infinite;
  }
  .visualized__phones .phone-device--tilt-right.phone-float {
    animation: floatMobile 6s ease-in-out infinite;
  }
  @keyframes floatMobile {
    0%, 100% { transform: scale(0.92) translateY(0); }
    50% { transform: scale(0.92) translateY(-12px); }
  }
  .visualized__phones .phone-device--center {
    transform: scale(1);
  }
  .visualized__phones .phone-device--center.phone-float {
    animation: float 6s ease-in-out infinite;
  }

  .insights-section { padding: 80px 24px; }
  .insights-section__content {
    flex-direction: column;
    text-align: center;
  }
  .insights-section__text .section-title { text-align: center; }
  .insights-section__text { max-width: 100%; }
  .insights-list { align-items: center; }

  .comparison { padding: 80px 24px; }
  .comparison__grid { grid-template-columns: 1fr; }

  .final-cta { padding: 100px 24px; }

  .section-header { margin-bottom: 56px; }

  .footer__links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .phone-device { width: 240px; height: 490px; border-radius: 38px; }
  .phone-device .phone-screen { border-radius: 30px; }
  .phone-device--sm { width: 210px; height: 430px; border-radius: 34px; }
  .phone-device--sm .phone-screen { border-radius: 26px; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
}
