/* ========================================
   PRISM – Landing Page Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-primary: #C4567A;
  --color-primary-dark: #a3445f;
  --color-primary-light: #e8a0b6;
  --color-primary-ultra-light: #fdf2f5;

  /* Phase Colors */
  --color-mens: #E85D5D;
  --color-follikel: #3BBF8F;
  --color-ovul: #F0A030;
  --color-luteal: #8B6FC0;

  /* Neutrals */
  --color-bg: #fefefe;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #f0f0f5;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #C4567A 0%, #e88da6 50%, #f0a8bb 100%);
  --gradient-hero: linear-gradient(160deg, #fdf2f5 0%, #f8e8ed 30%, #f0dde4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Borders & Shadows */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(196, 86, 122, 0.06);
  --shadow-md: 0 8px 24px rgba(196, 86, 122, 0.1);
  --shadow-lg: 0 16px 48px rgba(196, 86, 122, 0.12);
  --shadow-xl: 0 24px 64px rgba(196, 86, 122, 0.16);
  --shadow-glow: 0 0 40px rgba(196, 86, 122, 0.2);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* BG color on html (not body) so iOS Safari paints it into safe-area regions
   (Dynamic Island top, home indicator bottom). */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: transparent;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Safe-area top padding so nav content clears iOS Dynamic Island / status bar */
  padding: max(var(--space-sm), env(safe-area-inset-top)) 0 var(--space-sm);
  transition: all var(--transition-base);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 86, 122, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-back-link {
  font-size: 0.875rem;
  padding-right: 20px;
  border-right: 1px solid rgba(196, 86, 122, 0.15);
}
.nav-links .nav-back-link::after {
  display: none;
}

/* Language switcher (EN/DE) — same pattern as FightLog for consistency */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(196, 86, 122, 0.18);
  border-radius: 999px;
  padding: 3px;
  background: rgba(196, 86, 122, 0.04);
  margin-left: 8px;
}
.lang-switcher::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--color-primary);
  transition: transform var(--transition-base);
  pointer-events: none;
}
.lang-switcher[data-lang="de"]::before {
  transform: translateX(100%);
}
.lang-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-base);
}
.lang-btn.active { color: #ffffff; }
.lang-btn:active { transform: scale(0.94); }
.lang-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.nav-links .nav-lang::after { display: none; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(196, 86, 122, 0.08) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(139, 111, 192, 0.06) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.5; }
  to { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space-3xl) + 60px) var(--space-md) var(--space-3xl);
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  background: rgba(196, 86, 122, 0.08);
  border: 1px solid rgba(196, 86, 122, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease-out;
}

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

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

.hero-text h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-text h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Phase Indicator */
.hero-phases {
  display: flex;
  gap: 4px;
  margin-top: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.phase-bar {
  height: 4px;
  border-radius: 2px;
  flex: 1;
  max-width: 80px;
  position: relative;
}

.phase-bar.mens { background: var(--color-mens); }
.phase-bar.follikel { background: var(--color-follikel); }
.phase-bar.ovul { background: var(--color-ovul); }
.phase-bar.luteal { background: var(--color-luteal); }

.phase-labels {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.phase-label {
  flex: 1;
  max-width: 80px;
  font-size: 0.7rem;
  color: var(--color-text-light);
  text-align: center;
  font-weight: 500;
}

/* ============================================
   Phone Mockup – Clean screenshot style
   No dark bezels, just the screenshot with
   rounded corners + shadow (no double frame)
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.phone-mockup {
  position: relative;
  width: 270px;
}

.phone-screen {
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.06);
  background: #f8f8fa;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-screen img.slide-out {
  opacity: 0;
  transform: scale(0.97);
}

/* Floating Elements around Phone */
.floating-element {
  position: absolute;
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.floating-element:nth-child(2) { animation-delay: -2s; }
.floating-element:nth-child(3) { animation-delay: -4s; }

.float-top-right {
  top: 20px;
  right: -30px;
}

.float-bottom-left {
  bottom: 40px;
  left: -40px;
}

.float-emoji {
  font-size: 1.1rem;
  margin-right: 4px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(196, 86, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 86, 122, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(196, 86, 122, 0.06);
  color: var(--color-primary);
  border: 1px solid rgba(196, 86, 122, 0.15);
}

.btn-secondary:hover {
  background: rgba(196, 86, 122, 0.12);
  transform: translateY(-2px);
  color: var(--color-primary);
}

/* --- Features Section --- */
.features {
  background: var(--color-bg);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section-header .section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.feature-icon.mens-icon { background: rgba(232, 93, 93, 0.1); }
.feature-icon.follikel-icon { background: rgba(59, 191, 143, 0.1); }
.feature-icon.ovul-icon { background: rgba(240, 160, 48, 0.1); }
.feature-icon.luteal-icon { background: rgba(139, 111, 192, 0.1); }
.feature-icon.shield-icon { background: rgba(196, 86, 122, 0.1); }
.feature-icon.sync-icon { background: rgba(59, 130, 246, 0.1); }

.feature-card h3 {
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Phases Section --- */
.phases {
  background: var(--gradient-hero);
  position: relative;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.phase-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.phase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.phase-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.phase-card.mens .phase-dot { background: rgba(232, 93, 93, 0.12); }
.phase-card.follikel .phase-dot { background: rgba(59, 191, 143, 0.12); }
.phase-card.ovul .phase-dot { background: rgba(240, 160, 48, 0.12); }
.phase-card.luteal .phase-dot { background: rgba(139, 111, 192, 0.12); }

.phase-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.phase-card p {
  font-size: 0.9rem;
}

.phase-card .phase-tag {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.phase-card.mens .phase-tag { background: rgba(232, 93, 93, 0.1); color: var(--color-mens); }
.phase-card.follikel .phase-tag { background: rgba(59, 191, 143, 0.1); color: var(--color-follikel); }
.phase-card.ovul .phase-tag { background: rgba(240, 160, 48, 0.1); color: var(--color-ovul); }
.phase-card.luteal .phase-tag { background: rgba(139, 111, 192, 0.1); color: var(--color-luteal); }

/* ============================================
   App Preview – Horizontal scroll carousel
   on mobile, centered grid on desktop
   ============================================ */
.app-preview {
  position: relative;
  overflow: hidden;
}

.preview-scroll {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}

.preview-item {
  flex: 0 0 auto;
  text-align: center;
  transition: all var(--transition-base);
}

.preview-item:hover {
  transform: scale(1.03);
}

/* Clean screenshot style – no dark bezel */
.preview-phone {
  width: 210px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  background: #f8f8fa;
}

.preview-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-caption {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.preview-subcaption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* --- Privacy Section --- */
.privacy {
  background: var(--color-bg);
  position: relative;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
}

.privacy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.privacy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 86, 122, 0.15);
}

.privacy-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.privacy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(196, 86, 122, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.privacy-card h3 {
  font-size: 1.05rem;
}

.privacy-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 86, 122, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  margin-bottom: var(--space-sm);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
}

.app-store-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.app-store-placeholder .apple-icon {
  font-size: 1.4rem;
}

.app-store-placeholder .store-text {
  text-align: left;
  line-height: 1.2;
}

.app-store-placeholder .store-text small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  /* Safe-area bottom padding so footer clears iOS home indicator */
  padding: var(--space-xl) 0 max(var(--space-lg), env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: white;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Privacy / Impressum Detail Pages --- */
.privacy-page {
  padding-top: 100px;
  min-height: 100vh;
}

.privacy-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.privacy-page-content h1 {
  margin-bottom: var(--space-xs);
}

.privacy-page-content .last-updated {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.privacy-section {
  margin-bottom: var(--space-xl);
}

.privacy-section h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.privacy-section p {
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-section .privacy-icon {
  font-size: 1.3rem;
}

.privacy-contact {
  background: var(--color-primary-ultra-light);
  border: 1px solid rgba(196, 86, 122, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.privacy-contact a {
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-phases {
    justify-content: center;
  }

  .phase-labels {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }

  .hero-content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .phone-mockup {
    width: 220px;
  }

  .floating-element {
    display: none;
  }

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

  .phases-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

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

  /* Mobile carousel: horizontal scroll */
  .preview-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-md) var(--space-md);
    gap: var(--space-md);
    scrollbar-width: none;
  }

  .preview-scroll::-webkit-scrollbar {
    display: none;
  }

  .preview-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .preview-phone {
    width: 200px;
  }

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

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

  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .phases-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .preview-phone {
    width: 180px;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f0f17;
    --color-surface: #1a1a28;
    --color-text: #f0f0f5;
    --color-text-secondary: #a0a0b0;
    --color-text-light: #6b6b80;
    --color-border: #2a2a3a;
    --color-primary-ultra-light: #1e1525;

    --gradient-hero: linear-gradient(160deg, #13101a 0%, #1a1525 30%, #1e1228 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30,30,50,0.9) 0%, rgba(30,30,50,0.6) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.4);
  }

  .nav.scrolled {
    background: rgba(15, 15, 23, 0.9);
    border-bottom-color: rgba(196, 86, 122, 0.12);
  }

  .nav-logo {
    color: var(--color-text);
  }

  .nav-toggle span {
    background: var(--color-text);
  }

  .floating-element {
    background: linear-gradient(135deg, rgba(30,30,50,0.9) 0%, rgba(30,30,50,0.7) 100%);
    border-color: rgba(255,255,255,0.08);
    color: var(--color-text);
  }

  .phone-screen {
    background: #1a1a28;
  }

  .preview-phone {
    background: #1a1a28;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  }

  .feature-card,
  .phase-card,
  .privacy-card {
    background: var(--color-surface);
    border-color: var(--color-border);
  }

  .feature-card:hover {
    border-color: rgba(196, 86, 122, 0.25);
  }

  .app-store-placeholder {
    background: #f0f0f5;
    color: #0f0f17;
  }

  .footer {
    background: #0a0a12;
  }

  .privacy-contact {
    background: rgba(196, 86, 122, 0.08);
    border-color: rgba(196, 86, 122, 0.2);
  }

  /* Fix headings in dark mode */
  h1, h2, h3, h4 {
    color: var(--color-text);
  }

  .hero-text h1 .highlight {
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  .nav-links {
    background: rgba(15, 15, 23, 0.95);
    border-bottom-color: var(--color-border);
  }
}

/* View Transition API — receive the morph from the hub card.
   The hub tags its Prism card image with view-transition-name: prism-hero.
   We tag #heroScreenshot here with the same name so Chrome 126+ / Safari 18+
   smoothly animate the screenshot from card → hero on navigation. */
@view-transition { navigation: auto; }
#heroScreenshot { view-transition-name: prism-hero; }
