/* Milo — getmilo.care Landing Page
   MIL-24 · Companion-Tone, Lavendel, NO-AI-LOOK, MDR Red Lines
   Light-only (wie die Legal-Seiten). Mobile-first. */

:root {
  --milo-primary: #5F4EA5;
  --milo-primary-deep: #4C3D88;
  --milo-container: #7867C0;
  --lav-1: #EDEAFB;   /* Card-Backgrounds primär */
  --lav-2: #DDD8F5;   /* sekundäre Cards / Pills */
  --lav-3: #F3F0FA;   /* sehr zart, leicht gewärmt (MIL-864 A) */
  --out-accent: #E88BB8;
  --out-accent-deep: #B86A96;
  --rose: #FCE7EE;
  --surface: #F8F6F4;      /* warmes Papier = miloSurface (MIL-806) */
  --surface-low: #F4F1F0;  /* miloSurfaceLow */
  --on-surface: #1F1A26;   /* Violett-Tinte, nie pure black (MIL-808) */
  --muted: #484551;
  --muted-soft: #6E6A7A;
  --hairline: rgba(31, 26, 38, 0.10);  /* neutral statt Lila-Alpha (MIL-864 A) */
  /* zurückhaltendere, neutralere Elevation statt „colored shadow soup" */
  --shadow-soft: 0 18px 40px rgba(40, 30, 80, 0.10);
  --shadow-card: 0 1px 2px rgba(40, 30, 80, 0.04);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Display-Schrift — self-hosted (OFL), kein Third-Party-Request */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 244, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brand .word { font-size: 20px; font-weight: 700; color: var(--milo-primary); letter-spacing: -0.4px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--milo-primary); }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch a { color: var(--muted-soft); padding: 4px 7px; border-radius: 8px; }
.lang-switch a.active { color: var(--milo-primary); background: var(--lav-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 20px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  /* flache Marken-Fläche statt Verlauf — miloPrimaryFill-Logik (MIL-688 / MIL-864 B) */
  background: var(--milo-primary);
  color: #fff; box-shadow: 0 4px 14px rgba(40, 30, 80, 0.20);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--milo-primary-deep); box-shadow: 0 8px 20px rgba(40, 30, 80, 0.24); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: var(--lav-1); color: var(--milo-primary); }
.btn-ghost:hover { background: var(--lav-2); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--milo-primary); border-radius: 2px; margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 560px; height: 560px; right: 2%; top: 46%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(120, 103, 192, 0.13) 0%, rgba(120, 103, 192, 0) 66%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 62px); font-weight: 540; letter-spacing: -0.4px;
  font-variation-settings: 'opsz' 110, 'SOFT' 40, 'WONK' 0;
  line-height: 1.04; color: var(--on-surface); margin-bottom: 20px;
}
.hero-copy .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cta .btn { font-size: 16px; padding: 15px 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--milo-primary);
  background: var(--lav-1); padding: 7px 14px; border-radius: 999px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--milo-primary); }

/* ---------- Device frames ---------- */
.hero-visual { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero-visual .watch { align-self: flex-end; margin-bottom: 30px; }

.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 19.5;
  background: linear-gradient(135deg, #3b3552 0%, #1d1830 44%, #14111d 100%);
  border-radius: 46px; padding: 5px;
  box-shadow: 0 30px 60px -24px rgba(34, 24, 66, 0.5), 0 6px 16px rgba(34, 24, 66, 0.16),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
/* Dynamic Island (nur bei Platzhaltern; echte Screenshots bringen ihre eigene mit) */
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; background: #0b0a10; border-radius: 12px; z-index: 3;
}
/* Seitentaste rechts (Power) */
.phone::after {
  content: ""; position: absolute; right: -2px; top: 122px; width: 3px; height: 60px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #4a4366, #221c34);
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: linear-gradient(170deg, var(--lav-3) 0%, var(--lav-1) 55%, var(--lav-2) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px; position: relative;
}
.phone.small { width: 212px; }

.watch {
  position: relative; width: 150px; aspect-ratio: 1 / 1.2;
  background: linear-gradient(135deg, #3b3552 0%, #1d1830 50%, #14111d 100%); border-radius: 42px; padding: 6px;
  box-shadow: 0 22px 44px -20px rgba(34, 24, 66, 0.5), inset 0 0 0 1.2px rgba(255,255,255,0.08);
  flex-shrink: 0; align-self: center;
}
/* Digital Crown */
.watch::after {
  content: ""; position: absolute; right: -3px; top: 38%; width: 4px; height: 18px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #5a5276, #2a2440);
}
/* Seitentaste */
.watch::before {
  content: ""; position: absolute; right: -2px; top: 56%; width: 3px; height: 26px;
  border-radius: 0 2px 2px 0; background: linear-gradient(180deg, #443d5e, #221c34);
}
.watch .screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(170deg, #2a2342 0%, #1d1830 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px; color: #EDEAFB;
}
/* Armband entfernt — wirkte billig; Watch bleibt als sauberer Body mit Krone/Taste */
.watch .band-top, .watch .band-bottom { display: none; }

/* ---------- Echte Screenshots / Video im Geräte-Rahmen ---------- */
.phone .screen, .watch .screen { position: relative; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.watch .screen .shot { object-position: center; }
/* Screenshot bringt eigene Statusleiste/Dynamic Island mit → gezeichnete Island ausblenden */
.phone:has(.shot)::before { display: none; }
.watch.app .screen { background: #000; }
.device-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.device-cap { font-size: 13px; font-weight: 600; color: var(--milo-primary); display: inline-flex; align-items: center; gap: 7px; }
/* Caption aus dem Fluss → Phone richtet sich an der Grundlinie aus (kein Versatz nach oben) */
.device-col .device-cap { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 14px; white-space: nowrap; }
.device-cap .moon { width: 15px; height: 15px; }

/* Placeholder label inside a device screen */
.placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--milo-primary); }
.placeholder .ph-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--milo-primary); background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(95,78,165,0.4); border-radius: 999px; padding: 5px 11px;
}
.placeholder .ph-name { font-size: 15px; font-weight: 700; color: var(--milo-primary); }
.placeholder .ph-hint { font-size: 12px; color: var(--muted-soft); max-width: 16em; }

.media-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--milo-primary); background: rgba(255,255,255,0.78);
  border: 1px dashed rgba(95,78,165,0.45); border-radius: 999px; padding: 5px 12px;
}

/* ---------- MDR note ---------- */
.mdr-note { background: var(--surface-low); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.mdr-note .wrap { padding: 20px; display: flex; align-items: flex-start; gap: 14px; }
.mdr-note .mdr-icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--muted); margin-top: 1px; }
.mdr-note p { font-size: 14.5px; color: var(--muted); max-width: 60em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-low) 50%, var(--surface) 100%); }
/* Dark-Band entfernt (MIL-864 C): eine Papierbühne; Dark Mode zeigt der plan-dark-Screenshot */
.section-head { max-width: 30em; margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--muted); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;  /* Kicker = muted (MIL-833 D2) */
}
.section-head .eyebrow::before {
  content: ""; width: 18px; height: 1.5px; border-radius: 2px; background: rgba(31, 26, 38, 0.30);
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 540; letter-spacing: -0.3px; font-variation-settings: 'opsz' 90, 'SOFT' 40; line-height: 1.1; }

.feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-layout.reverse .devices { order: -1; }

/* Layout-Varianz (Pass 3): zentrierte Galerie + großer Showcase-Screen */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.screen-gallery { display: flex; justify-content: center; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 4px; margin-bottom: 28px; }
.showcase { display: flex; justify-content: center; margin-top: 4px; }
.phone.large { width: 300px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; max-width: 940px; margin: 48px auto 0; }
.feature-row .feature-card { text-align: center; }
.feature-row .feature-card h3 { justify-content: center; }
.feature-row .feature-card p { padding-left: 0; }
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 48px; max-width: 800px; margin: 44px auto 0; }

.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-card { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--on-surface); display: flex; align-items: baseline; gap: 11px; }
.feature-card h3::before { content: ""; flex: 0 0 auto; width: 16px; height: 2px; border-radius: 2px; background: rgba(31, 26, 38, 0.30); transform: translateY(-5px); }
.feature-card p { font-size: 15.5px; color: var(--muted); padding-left: 27px; }

.devices { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Trust / About / Waitlist blocks ---------- */
.statement {
  /* Founder 24.7. (MIL-864-Nachtrag): Lavendel-Wash raus — Weiß-A-Karte auf Papier (MIL-853-Grammatik) */
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 48px clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.statement .eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--muted); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;  /* Kicker = muted (MIL-833 D2) */
}
.statement .eyebrow::before {
  content: ""; width: 18px; height: 1.5px; border-radius: 2px; background: rgba(31, 26, 38, 0.30);
}
.statement h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 540; letter-spacing: -0.3px; font-variation-settings: 'opsz' 90, 'SOFT' 40; line-height: 1.12; margin-bottom: 16px; }
.statement p { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 42em; }
.statement p + p { margin-top: 14px; }

.about { display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: start; }
.about .avatar {
  position: relative; width: 140px; height: 140px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, var(--lav-2), var(--lav-1));
  box-shadow: 0 14px 30px -10px rgba(40, 30, 80, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.about .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; display: block; }
/* Clean: nur dezente Glaskante (Lichtsheen oben-links), kein Farb-Tint */
.about .avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 30%);
}
.trust-grid { display: flex; gap: 16px 38px; flex-wrap: wrap; margin-top: 30px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 11px;
  background: transparent; border: 0; padding: 0;
  font-size: 14.5px; font-weight: 600; color: var(--on-surface);
}
.trust-pill svg { width: 19px; height: 19px; color: var(--muted); flex: 0 0 auto; }

/* ---------- Waitlist CTA ---------- */
.waitlist { text-align: center; padding: 80px 0; }
.waitlist .statement { text-align: center; }
.waitlist .statement p { margin-left: auto; margin-right: auto; } /* 42em-Absatz mittig statt links geklebt */
.waitlist h2 { margin-bottom: 14px; }
.waitlist .cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.waitlist .btn { font-size: 16px; padding: 15px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-low); border-top: 1px solid var(--hairline); padding: 44px 0 36px; margin-top: 8px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-brand .word { font-weight: 700; color: var(--milo-primary); font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--milo-primary); }
.footer-meta { font-size: 13px; color: var(--muted-soft); }

/* ---------- Jellyfish character ---------- */
.jelly { display: block; }
@keyframes jelly-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}
@keyframes tentacle-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.jelly .jelly-body { animation: jelly-breathe 3.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.jelly .t { transform-origin: top center; transform-box: fill-box; }
.jelly .t1 { animation: tentacle-sway 2.4s ease-in-out infinite; }
.jelly .t2 { animation: tentacle-sway 2.7s ease-in-out infinite 0.2s; }
.jelly .t3 { animation: tentacle-sway 2.5s ease-in-out infinite 0.4s; }
.jelly .t4 { animation: tentacle-sway 2.8s ease-in-out infinite 0.1s; }
.jelly .t5 { animation: tentacle-sway 2.6s ease-in-out infinite 0.3s; }

.hero-jelly { position: absolute; right: 6%; top: 28px; width: 78px; opacity: 0.95; z-index: 2; }

/* Wellen-Divider — Wellen-Form = Milo-Handschrift, Farbe neutral (MIL-864 D1, App-Anker MIL-833 D3) */
.wave-divider { display: flex; justify-content: center; color: rgba(31, 26, 38, 0.16); }
.wave-divider svg { display: block; }

/* Footer-Herz — Zitat der einen Deko-Marken-Signatur (MIL-864 D5) */
.footer-meta .heart { color: var(--milo-primary); }

/* Web respektiert Reduce Motion (App-Ausnahme MIL-475 gilt nur in-App) */
@media (prefers-reduced-motion: reduce) {
  .jelly .jelly-body, .jelly .t1, .jelly .t2, .jelly .t3, .jelly .t4, .jelly .t5 { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(248, 246, 244, 0.97);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-card);
  }
  .nav.open a { padding: 11px 6px; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .nav.open a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { align-items: center; }
  .feature-layout { grid-template-columns: 1fr; gap: 32px; }
  .feature-layout.reverse .devices { order: 0; }
  .section-head { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head .eyebrow { justify-content: center; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-visual .watch { display: none; } /* Phone-primär, kein Overflow auf Mobile */
  .hero-jelly { display: none; }
  .feature-row { grid-template-columns: 1fr; max-width: 420px; gap: 28px; margin-top: 36px; }
  .feature-row .feature-card { text-align: left; }
  .feature-row .feature-card h3 { justify-content: flex-start; }
  .feature-row .feature-card p { padding-left: 27px; }
  .extras { grid-template-columns: 1fr; max-width: 420px; gap: 26px; margin-top: 36px; }
  .phone.large { width: 240px; }
}
@media (max-width: 420px) {
  .phone { width: 200px; }
  .phone.small { width: 184px; }
  .hero-visual { gap: 10px; }
}
