/* ============================================
   BREAVA - Premium SaaS Design
   Modern, clean, Headspace/Calm-level polish
   ============================================ */

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

:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #6E56AC;
  --purple-700: #5b44a0;
  --purple-800: #4a3680;
  --purple-900: #3b2768;

  --sky-400: #38bdf8;
  --sky-500: #30B7ED;

  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-subtle: #faf9fc;
  --surface-muted: #f4f2f7;

  --text-primary: #1a1035;
  --text-secondary: #5c5478;
  --text-tertiary: #8e86a4;
  --text-inverse: #ffffff;

  --border: #e8e4f0;
  --border-subtle: #f0edf5;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(26, 16, 53, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 16, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 16, 53, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 16, 53, 0.1);
  --shadow-xl: 0 24px 64px rgba(26, 16, 53, 0.14);
  --shadow-glow: 0 0 60px rgba(110, 86, 172, 0.15);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--surface);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: color var(--duration) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
sup { font-size: 0.55em; vertical-align: super; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 140px 0;
  position: relative;
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--purple-200);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--sky-400);
  bottom: 30%; left: -150px;
  opacity: 0.2;
  animation-delay: -7s;
  animation-duration: 25s;
}

.blob-3 {
  width: 400px; height: 400px;
  background: var(--purple-300);
  bottom: -100px; right: 20%;
  opacity: 0.2;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Typography Utilities --- */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--sky-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-center h2 { margin-bottom: 16px; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.large-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--purple-600);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(110, 86, 172, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--purple-700);
  box-shadow: 0 8px 28px rgba(110, 86, 172, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--purple-300);
  background: var(--purple-50);
  color: var(--purple-700);
}

.btn-outline {
  background: transparent;
  color: var(--purple-600);
  border: 1.5px solid var(--purple-200);
}
.btn-outline:hover {
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--purple-700);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge { height: 44px; width: auto; }
.gp-badge { height: 64px; margin: -10px 0; }

.hero-store-badges {
  margin-top: 12px;
  justify-content: flex-start;
}

.cta-store-badges {
  justify-content: center;
  margin-top: 32px;
  position: relative;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled {
  padding: 12px 0;
}

.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border-subtle), var(--shadow-sm);
  border-radius: var(--radius-xl);
  padding: 10px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease);
}

.logo-link { display: flex; align-items: center; }
.logo { height: 38px; width: auto; transition: filter 0.4s var(--ease); }
/* Logo swap handled by JS - dark logo image on scroll */

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.main-nav a:hover {
  color: var(--purple-600);
  background: var(--purple-50);
}

.header-cta {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.mobile-toggle:hover { background: var(--surface-muted); }
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 60px;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-600);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone-wrap {
  position: relative;
}

.hero-phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(110, 86, 172, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

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

.hero-phone {
  position: relative;
  z-index: 1;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 24px 64px rgba(26, 16, 53, 0.14));
  animation: heroFloat 6s ease-in-out infinite;
}

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

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple-300), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll-hint span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- Stats Ribbon --- */
.stats-ribbon {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  text-align: center;
  flex: 1;
  max-width: 320px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple-600);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Split Layouts --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}
.split-reverse > * {
  direction: ltr;
}

.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- Video Showcase --- */
.video-showcase {
  position: relative;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--text-primary);
  border: 3px solid var(--purple-400);
}

.video-frame video {
  width: 100%;
  display: block;
}

.video-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* --- Phone Showcase --- */
.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: radial-gradient(ellipse at center, rgba(110, 86, 172, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.phone-float {
  position: relative;
  z-index: 1;
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(26, 16, 53, 0.12));
  animation: phoneFloat 7s ease-in-out infinite;
}

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

/* --- Feature Pills --- */
.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pill-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-top: 7px;
  color: var(--purple-400);
}

/* --- Section: Stress (white bg) --- */
.section-stress {
  background: var(--surface);
  z-index: 1;
}

/* --- Section: Relax (subtle bg) --- */
.section-relax {
  background: var(--surface-subtle);
  z-index: 1;
}

/* --- Section: How (white bg) --- */
.section-how {
  background: var(--surface);
  z-index: 1;
}

.how-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.how-step:hover {
  background: var(--surface-subtle);
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-400);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  flex-shrink: 0;
  line-height: 1;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* --- Section: Founder --- */
.section-founder {
  background: var(--surface-subtle);
  z-index: 1;
}

.founder-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.founder-image-wrap {
  position: relative;
}

.founder-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-md);
}

.founder-body .section-label { margin-bottom: 16px; }

.founder-body h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.founder-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-600);
  margin-bottom: 20px;
}

.founder-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.founder-body .btn { margin-top: 8px; }

/* --- Section: Built --- */
.section-built {
  background: var(--surface);
  z-index: 1;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.check-list.compact { gap: 12px; margin-bottom: 28px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--purple-500);
  margin-top: 1px;
}

.check-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.check-item span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* --- Section: Directors / Bento Grid --- */
.section-directors {
  background: var(--surface-subtle);
  z-index: 1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-400), var(--sky-400));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.bento-card:hover {
  border-color: var(--purple-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.bento-card:hover::after { opacity: 1; }

.bento-icon {
  width: 40px;
  height: 40px;
  color: var(--purple-500);
  margin-bottom: 20px;
}

.bento-icon svg { width: 100%; height: 100%; }

.bento-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* --- Section: Families --- */
.section-families {
  background: var(--surface);
  z-index: 1;
}

.section-families p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- Section: CTA --- */
.section-cta {
  padding: 100px 0 120px;
  z-index: 1;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 60px;
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 50%, #5a3f9e 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(48, 183, 237, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 2.5rem;
  color: var(--text-inverse);
  margin-bottom: 32px;
  position: relative;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.7);
}

.cta-card .btn { position: relative; }

/* --- Footer --- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(10); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color var(--duration) var(--ease);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.heart-icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--purple-400); display: inline-block; }

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-left"] {
  transform: translateX(50px);
}

[data-animate="fade-right"] {
  transform: translateX(-50px);
}

[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-overlay .btn {
  margin-top: 16px;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--surface-muted);
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}

.mobile-close:hover { background: var(--border); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-inner { gap: 40px; }
  .split-layout { gap: 48px; }
  .founder-card { grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; }
  .how-layout { gap: 40px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-store-badges { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-phone { max-height: 360px; }
  .hero-scroll-hint { display: none; }

  .stats-ribbon { padding: 48px 0; }
  .stats-grid { flex-direction: column; gap: 32px; }
  .stat-divider { width: 48px; height: 1px; }

  .split-layout, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-content { text-align: center; }
  .split-content h2 { font-size: 2rem; }
  .feature-pills { align-items: center; }
  .phone-float { max-height: 380px; }

  .section-center h2 { font-size: 2rem; }
  .section-center { margin-bottom: 48px; }

  .how-layout { grid-template-columns: 1fr; }
  .how-visual { order: -1; }

  .founder-card { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .founder-image-wrap img { max-width: 250px; margin: 0 auto; }

  .bento-grid { grid-template-columns: 1fr; }

  .section-families .split-layout { text-align: center; }
  .check-list { align-items: center; }
  .check-item { text-align: left; }

  .cta-card { padding: 48px 28px; }
  .cta-card h2 { font-size: 1.8rem; }
  .cta-features { flex-direction: column; gap: 12px; align-items: center; }
  .cta-store-badges { flex-direction: row; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 250px; height: 250px; }
  .blob-3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.85rem; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 16px 28px; font-size: 0.9rem; }
}

/* --- Subpage Styles --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0 120px;
  position: relative;
  z-index: 1;
}

.page-content .container { max-width: 800px; }

.page-content h2 {
  font-size: 1.8rem;
  margin: 48px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }

.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}
.page-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-400);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--surface-subtle);
  transition: all var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px var(--purple-100);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: var(--surface-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-subtle);
}

.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.contact-info-item { margin-bottom: 20px; }

.contact-info-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.contact-info-item a,
.contact-info-item p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 140px 0 60px; }
}

/* --- App Page --- */
.app-beta-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.app-beta-card h2 { margin-bottom: 16px; }
.app-beta-card p { margin-bottom: 28px; }

/* Store badge overrides for CTA section */
.cta-badges { justify-content: center; margin-top: 24px; position: relative; }

/* --- Hero Phone / Video --- */
.hero-phone-img {
  position: relative;
  z-index: 1;
  max-height: 500px;
  width: auto;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: heroFloat 6s ease-in-out infinite;
}
video.hero-phone-img {
  background: transparent;
}

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

/* (duplicate video rules removed - defined above) */

@media (max-width: 768px) {
  .hero-phone-img { max-height: 360px; border-radius: 24px; }
  .store-badges { justify-content: center; }
}
