/* ------------------------------------------------------------------
   Lunio — design tokens
------------------------------------------------------------------ */
:root {
  --background: #02051B;
  --nacht: #030306;
  --nacht-tief: #010104;
  --flaeche: #07090F;
  --sheet: #080C1A;
  --karte: rgba(63, 77, 105, 0.24);
  --kante: rgba(168, 186, 255, 0.12);
  --akzent: #4F84FE;
  --lunio-white: #FBFCFD;
  --navy: #060E23;
  --text-primary: #F7F8FB;
  --text-secondary: #A3ABBB;
  --text-muted: #8992A5;
  --salbei: #4AB074;
  --mond: #A8BAFF;
  --indigo-glow: #669EFF;

  --radius-card: 18px;
  --radius-pill: 999px;
  --maxw: 1160px;

  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* On the hero page, main grows to fill so the footer sits at the bottom
   of the viewport without scrolling. */
main.wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

a { color: inherit; text-decoration: none; }

/* Ambient night background: deep indigo → near black, soft glows */
.night {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(102, 158, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 12% 8%, rgba(79, 132, 254, 0.10), transparent 55%),
    linear-gradient(180deg, var(--background) 0%, var(--nacht) 68%, var(--nacht-tief) 100%);
}

/* Subtle starfield */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar ---------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 3;
  padding: 20px 0 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(79, 132, 254, 0.25);
}
.nav-link {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text-primary); }

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 24px 0;
}

.hero-copy { max-width: 540px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--karte);
  border: 1px solid var(--kante);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--salbei);
  box-shadow: 0 0 10px rgba(74, 176, 116, 0.8);
}

h1 {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h1 .soft {
  background: linear-gradient(180deg, var(--mond), var(--indigo-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subline {
  color: var(--text-secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Primary download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  border-radius: var(--radius-pill);
  background: var(--lunio-white);
  color: var(--navy);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(102, 158, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-download:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(102, 158, 255, 0.34);
}
.btn-download:active { transform: translateY(0); }

.cta-note {
  color: var(--text-muted);
  font-size: 14px;
}

/* Feature chips under CTA */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: var(--karte);
  border: 1px solid var(--kante);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.chip svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero visual (phone mockup) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 158, 255, 0.35), transparent 68%);
  filter: blur(46px);
  z-index: -1;
}
.hero-visual img {
  width: 100%;
  max-width: 400px;
  max-height: min(78vh, 720px);
  height: auto;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
}

/* Footer ----------------------------------------------------------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--kante);
  padding: 20px 0 22px;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text-secondary); font-size: 14px;
}
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot-links {
  display: flex; gap: 22px; font-size: 14px;
}
.foot-links a { color: var(--text-secondary); transition: color 0.2s ease; }
.foot-links a:hover { color: var(--text-primary); }

/* ------------------------------------------------------------------
   Privacy page
------------------------------------------------------------------ */
.doc {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-secondary); font-size: 15px; margin-bottom: 34px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--text-primary); }
.doc h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 10px;
}
.doc .updated { color: var(--text-muted); font-size: 14.5px; margin-bottom: 40px; }
.doc h2 {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
  color: var(--text-primary);
}
.doc p, .doc li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--mond); }
.doc a.inline:hover { text-decoration: underline; }
.callout {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p { margin-bottom: 0; color: var(--text-primary); }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding: 30px 0 56px;
    min-height: 0;
  }
  .hero-copy { max-width: 100%; margin: 0 auto; order: 1; }
  .hero-visual { order: 2; margin-top: 20px; }
  .subline { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .chips { justify-content: center; }
  .hero-visual img { max-width: 340px; }
}

@media (max-width: 520px) {
  .nav-link { display: none; }
  .appstore-badge svg { height: 52px; }
  footer .wrap { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
