/* ============================================================
   CALORIELAB — Landing Page Styles
   Glassmorphism + Minimalist Soft UI
   ============================================================ */

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Background */
  --bg-from: #f4f7ff;
  --bg-mid:  #edf1fb;
  --bg-to:   #e8eef8;

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);

  /* Text */
  --text-primary:   #0a0a0a;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;

  /* Accents */
  --green:  #22c55e;
  --blue:   #3b82f6;
  --purple: #8b5cf6;

  /* Transitions */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:   cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::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: linear-gradient(160deg, var(--bg-from) 0%, var(--bg-mid) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ── 3. Canvas Background ──────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── 4. Content Wrapper ────────────────────────────────────── */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ── 6. Glassmorphism Utilities ────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── 6. Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(244, 247, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06),
              0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  height: 30px;
  width: auto;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-primary); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  padding: 0 16px 12px;
}

.mobile-menu-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

/* ── 7. Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s var(--spring),
              box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s var(--spring);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* App Store Button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-primary);
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  transition: transform 0.3s var(--spring),
              box-shadow 0.3s var(--ease),
              background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  background: #1a1a1a;
}

.appstore-btn .store-icon { display: flex; align-items: center; justify-content: center; }

.appstore-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.appstore-btn .store-sub  { font-size: 10px; opacity: 0.65; font-weight: 400; }
.appstore-btn .store-name { font-size: 15px; font-weight: 700; }

/* White variant for CTA section */
.appstore-btn-white {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}

.appstore-btn-white:hover {
  background: #f5f5f5;
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.2);
}

/* ── 8. Hero Section ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 0 96px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #16a34a;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-title .gradient-word {
  background: linear-gradient(135deg, #0a0a0a 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── 9. Phone Mockup — Orange iPhone 17 ───────────────────── */
.phone-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 80px 70px 50px;
}

/* Wrapper — portrait phone, frame baked into each slide image */
.mockup-wrapper {
  position: relative;
  width: 270px;
  flex-shrink: 0;
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
  isolation: isolate;
}

/* Carousel container — height locked via aspect-ratio, no layout reflow */
.mockup-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
}

/* Frame overlay — iPhone17.png on top via multiply */
.mockup-frame-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 520px;
  background: radial-gradient(ellipse at center,
    rgba(255, 120, 30, 0.15) 0%,
    rgba(255, 80, 0, 0.07) 45%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(32px);
}

/* Natural Titanium frame */
.phone-frame {
  position: relative;
  width: 282px;
  flex-shrink: 0;
  border-radius: 54px;
  /* Titanium Natural brushed gradient */
  background:
    linear-gradient(140deg,
      #dcdde0 0%,
      #b8b9bc 12%,
      #cecfd2 24%,
      #a2a4a6 36%,
      #bcbdc0 50%,
      #d2d3d6 64%,
      #babbbd 76%,
      #a4a6a8 88%,
      #c8c9cc 100%
    );
  padding: 14px 12px 18px;
  box-shadow:
    /* Primary depth */
    0 90px 180px rgba(0, 0, 0, 0.38),
    0 35px 70px rgba(0, 0, 0, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.12),
    /* Titanium edge highlights */
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset,
    1px 0 0 rgba(255, 255, 255, 0.15) inset,
    -1px 0 0 rgba(255, 255, 255, 0.15) inset;
  transform: perspective(1200px) rotateY(-10deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}

/* Action Button (left top) + Volume buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 82px;
  left: -3.5px;
  width: 3px;
  height: 30px; /* Action button */
  background: linear-gradient(to right, #9a9c9e, #b2b4b6);
  border-radius: 1.5px 0 0 1.5px;
  /* Volume Up + Volume Down */
  box-shadow:
    0 50px 0 #aaacae,
    0 50px 0 #aaacae,
    0 88px 0 #aaacae;
}

/* Power / Side button (right) */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 132px;
  right: -3.5px;
  width: 3px;
  height: 72px;
  background: linear-gradient(to left, #9a9c9e, #b2b4b6);
  border-radius: 0 1.5px 1.5px 0;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 34px;
  background: #000;
  border-radius: 22px;
  z-index: 3;
  /* FaceID / camera pill */
  box-shadow: inset -22px 0 0 rgba(30,30,30,0.8);
}

/* Camera dot inside Dynamic Island */
.phone-island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a2a, #1a1a1a);
  box-shadow: 0 0 0 2px rgba(50,50,50,0.4);
}

.phone-screen {
  border-radius: 40px;
  overflow: hidden;
  width: 100%;
  background: #fff;
  /* Subtle inner border for screen edge realism */
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* Carousel slide images — full phone (frame baked in) */
.phone-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.75s ease;
  will-change: opacity;
}

/* Active slide — opacity only, no layout change */
.phone-slide-img.active {
  opacity: 1;
}

/* Progress dots — below mockup */
.phone-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 4;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  transition: background 0.4s ease, transform 0.4s ease, width 0.4s ease;
  cursor: pointer;
}

.phone-dot.active {
  background: #22c55e;
  width: 18px;
  border-radius: 3px;
}

/* Chip fade on slide transition */
.stat-chip.chip-fading {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
}

/* Floating stat chips */
.stat-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 11px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chip-emoji { font-size: 20px; line-height: 1; }

.chip-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.chip-1 {
  top: 18%;
  left: -30px;
  animation: chip-float-a 4.5s ease-in-out infinite;
}

.chip-2 {
  bottom: 30%;
  right: -30px;
  animation: chip-float-b 5.5s ease-in-out infinite;
}

.chip-3 {
  bottom: 10%;
  left: -20px;
  animation: chip-float-a 6s ease-in-out infinite 1.2s;
}

/* ── 10. Section Commons ───────────────────────────────────── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.055);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── 10b. Language Selector ────────────────────────────────── */
.lang-selector { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-btn:hover { background: rgba(255,255,255,0.35); }

.lang-btn .lang-chevron {
  opacity: 0.4;
  transition: transform 0.2s;
}

.lang-selector:has(.lang-dropdown.open) .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 6px;
  min-width: 188px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
  display: none;
  z-index: 200;
  animation: dropdown-in 0.18s var(--ease);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  font-family: var(--font-sans);
}

.lang-option:hover { background: rgba(0, 0, 0, 0.04); }

.lang-option.active {
  background: rgba(34, 197, 94, 0.09);
  color: #15803d;
  font-weight: 600;
}

.lang-flag-sm { font-size: 16px; }

/* ── 10c. Multilang Section ────────────────────────────────── */
.multilang-inner {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 48px;
}

.multilang-text { flex-shrink: 0; max-width: 340px; }

.multilang-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 10px 0 10px;
}

.multilang-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.multilang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 420px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.lang-pill:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

@media (max-width: 768px) {
  .multilang-inner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
  .multilang-text { max-width: 100%; }
  .multilang-flags { justify-content: center; }
}

/* ── 11. Feature Cards ─────────────────────────────────────── */
.features-section { padding: 96px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--spring),
              box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

/* Top sheen — same as step cards */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.7) 50%,
    transparent);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(31, 38, 135, 0.11);
  border-color: rgba(255, 255, 255, 0.55);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Pastel icon backgrounds — same palette as step icons */
.icon-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.icon-green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-screenshot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feature-screenshot img {
  width: 80%;
  max-width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.20));
  transition: transform 0.4s var(--spring);
}

.feature-card:hover .feature-screenshot img {
  transform: translateY(-6px) scale(1.02);
}

/* ── 12. How It Works ──────────────────────────────────────── */
.how-section { padding: 96px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

/* Connector lines — removed */
.steps-grid::before,
.steps-grid::after { display: none; }

.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--spring),
              box-shadow 0.4s var(--ease);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.7) 50%,
    transparent);
}

.step-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 56px rgba(31, 38, 135, 0.11);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.step-screenshot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
  padding-top: 8px;
  transition: transform 0.4s var(--spring);
}

.step-screenshot img {
  width: 75%;
  max-width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.18));
  transition: transform 0.4s var(--spring);
}

.step-card:hover .step-screenshot img {
  transform: translateY(-6px) scale(1.02);
}

/* ── 13. Highlights Section ────────────────────────────────── */
.highlights-section {
  padding: 96px 0 112px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}

/* Card base — same glass style as feature & step cards */
.highlight-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--spring),
              box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

/* Top sheen — identical to feature & step cards */
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.7) 50%,
    transparent);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(31, 38, 135, 0.11);
  border-color: rgba(255, 255, 255, 0.55);
}

.hl-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Icon gradient backgrounds */
.hl-green  { background: linear-gradient(135deg, #4ade80, #16a34a); }
.hl-blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.hl-purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.hl-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }

.hl-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.2;
}

.hl-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 24px;
  flex: 1;
}

/* Feature tag pills */
.hl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.hl-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

/* Bottom CTA */
.highlights-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .highlight-card {
    padding: 28px 24px;
  }
}

/* ── 14. Footer ────────────────────────────────────────────── */
.footer {
  padding: 40px 0 48px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo { height: 26px; width: auto; opacity: 0.75; }

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

.footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.footer-link:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 15. Modals ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 40px;
  max-width: 660px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.16);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.4s var(--spring);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.modal-content { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }

.modal-date {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.modal-section-title:first-of-type { margin-top: 0; }

.modal-placeholder-notice {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  font-size: 12px;
  color: #92400e;
}

/* Modal scrollbar */
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

/* ── 16. Animations ────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

@keyframes phone-float {
  0%, 100% {
    transform: perspective(1200px) rotateY(-10deg) rotateX(3deg) translateY(0px);
  }
  50% {
    transform: perspective(1200px) rotateY(-10deg) rotateX(3deg) translateY(-14px);
  }
}

@keyframes chip-float-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

@keyframes chip-float-b {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-11px); }
}

/* Scroll-triggered fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ── 17. Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid::before,
  .steps-grid::after { display: none; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle { max-width: 100%; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }

  .phone-container {
    padding: 40px 40px 20px;
    order: -1;
  }

  .mockup-wrapper {
    width: 220px;
    transform: none !important;
    animation: phone-float-mobile 6s ease-in-out infinite;
  }

  .chip-1 { left: -10px; top: 15%; }
  .chip-2 { right: -10px; bottom: 25%; }
  .chip-3 { display: none; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

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

  .cta-inner { padding: 56px 24px 0; }

  .cta-screenshots { gap: 8px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .modal-box { padding: 28px 20px; }

  .navbar-inner { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .appstore-btn .store-name { font-size: 14px; }
  .mockup-wrapper { width: 190px; }
}

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

/* ── 18. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.13);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* ── 19. Selection ─────────────────────────────────────────── */
::selection {
  background: rgba(34, 197, 94, 0.2);
  color: var(--text-primary);
}

/* ── 20. Logo Wrapper ──────────────────────────────────────── */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-icon {
  height: 40px;
  width: 40px;
  object-fit: contain;
  /* Removes the white background on light surfaces */
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

/* Footer variant — slightly smaller */
.logo-icon--sm {
  height: 32px;
  width: 32px;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* On dark CTA background: logo needs screen blend to pop */
.logo-icon--screen {
  mix-blend-mode: screen;
}
.logo-text--light { color: #fff; }

/* ── 21. CTA Feature Grid ──────────────────────────────────── */
.cta-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.cta-feat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--spring),
              background 0.3s var(--ease);
}

.cta-feat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

/* Screenshot tiles (Dark / Light Mode) */
.cta-feat-preview {
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-feat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Icon-only tiles (Apple Health / Widgets) */
.cta-feat-icon-area {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Apple Health icon ring */
.health-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff375f, #ff6b8a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(255, 55, 95, 0.35),
              0 0 64px rgba(255, 55, 95, 0.15);
}

.health-ring svg { display: block; }

/* Widget mockup */
.widget-mock {
  width: 130px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
}

.widget-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.widget-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.widget-mock-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.widget-mock-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.widget-mock-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.widget-mock-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.widget-mock-bar-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--green), #86efac);
  border-radius: 2px;
}

/* Feat label row */
.cta-feat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.cta-feat-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.cta-feat-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.cta-feat-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 2px;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
  .cta-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cta-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cta-feat-preview,
  .cta-feat-icon-area { height: 120px; }
}

/* ── 22. Legal Pages ───────────────────────────────────────── */
.legal-page-body {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-from) 0%, var(--bg-mid) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.legal-nav {
  padding: 20px 24px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-back:hover { color: var(--text-primary); }

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 48px 52px;
  box-shadow: 0 8px 40px rgba(31, 38, 135, 0.06);
}

.legal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.legal-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.055);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-body h3:first-child { margin-top: 0; }

.legal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.3);
}

.legal-placeholder {
  margin-top: 36px;
  padding: 16px 20px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.legal-contact-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-contact-box p {
  margin: 0;
}

@media (max-width: 600px) {
  .legal-card { padding: 32px 24px; }
  .legal-title { font-size: 28px; }
}
