/* Constellations – Comet Flight. Black and white, quiet, Apple's system font (no web fonts). */

:root {
  --dim: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { background: #000; color: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
a { color: #fff; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Only the chosen language is shown (see site.js). */
html[data-lang="de"] [lang="en"], html[data-lang="en"] [lang="de"] { display: none !important; }

/* Twinkling stars behind the whole page */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 36px);
}
.bar { background: linear-gradient(#000 40%, rgba(0, 0, 0, 0)); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.bar nav a { color: rgba(255, 255, 255, 0.85); }
.bar nav a:hover { color: #fff; }
.lang-switch {
  font: 500 14px var(--font); color: #fff; background: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 6px 14px;
}
.lang-switch:hover { background: #fff; color: #000; }

/* Start: the animated sky with title */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(24px, 4vh, 40px); padding: 90px 20px 50px;
}
.hero-text { text-align: center; }

/* The iPad around the animation: only its outline and its buttons. */
.ipad {
  position: relative; width: min(860px, 90vw, (100vh - 330px) * 1.43); aspect-ratio: 1.43;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 30px; padding: 16px;
}
.ipad::before {   /* top button */
  content: ""; position: absolute; top: -5px; right: 12%; width: 9%; height: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-bottom: none; border-radius: 3px 3px 0 0;
}
.ipad::after {    /* volume button */
  content: ""; position: absolute; right: -5px; top: 10%; width: 4px; height: 16%;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-left: none; border-radius: 0 3px 3px 0;
}
.ipad-screen { background: #000; position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-bar {
  position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between;
  padding: 12px 18px; font-size: clamp(10px, 1.4vw, 13px); color: rgba(255, 255, 255, 0.75);
}
.game-bar .info {
  display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; font-size: 0.8em; font-weight: 600;
}
h1 { margin: 0; font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.tagline { margin: 10px 0 28px; color: var(--dim); font-size: clamp(16px, 1.6vw, 19px); }
.store {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 9px 20px;
}
.store svg { width: 17px; height: 17px; margin-top: -2px; }
.store:hover { background: #fff; color: #000; }

/* Short introduction */
.intro { max-width: 640px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 24px 0; text-align: center; }
.intro p { color: rgba(255, 255, 255, 0.78); font-size: clamp(17px, 1.7vw, 19px); margin: 0 0 14px; }

/* Text beside an iPhone */
.feature {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(36px, 7vw, 90px); max-width: 1100px; margin: 0 auto; padding: clamp(50px, 8vw, 100px) 24px;
}
.feature-text { flex: 1 1 300px; max-width: 440px; }
.feature h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; margin: 0 0 14px; letter-spacing: -0.005em; }
.feature p { color: rgba(255, 255, 255, 0.72); margin: 0 0 12px; }
.feature > .phone { width: min(260px, 72vw); flex: none; }
.feature.flip { flex-direction: row-reverse; }

/* An info page drawn inside the phone (text, as in the app) */
.screen {
  height: 100%; border-radius: 37px; background: #0b0b0b; overflow: hidden;
  padding: 54px 22px 24px; font-size: 13px; line-height: 1.5;
}
.screen-label { margin: 0; color: var(--dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.screen h3 { margin: 2px 0 12px; font-size: 26px; font-weight: 700; }
.screen p { color: rgba(255, 255, 255, 0.8); margin: 0 0 16px; }
.screen ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.screen li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.screen li b { color: #fff; font-weight: 500; }

/* iPhone outline */
.phone {
  aspect-ratio: 393 / 852; padding: 7px; background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 44px;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* The sky map screen as in the app (sizes follow the phone's width, 1 point ≈ 0.117cqw) */
.phone.landscape { container-type: inline-size; aspect-ratio: 852 / 393; width: min(600px, 92vw); flex: none; }
.map-screen { padding: 2.6cqw 3.6cqw 1.5cqw 6.6cqw; display: flex; flex-direction: column; background: #000; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; }
.map-title { margin: 0; font-size: 3.6cqw; font-weight: 700; line-height: 1.15; color: #fff; }
.map-sub { margin: 0.4cqw 0 0; font-size: 1.75cqw; color: rgba(235, 235, 245, 0.6); }
.map-head > div:first-child { flex: none; white-space: nowrap; }
.switches { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7cqw; }
.switch {
  display: inline-flex; align-items: center; gap: 0.6cqw; padding: 0.45cqw 0.95cqw;
  border: 1px solid #fff; border-radius: 999px; font-size: 1.35cqw; font-weight: 600; color: #fff; white-space: nowrap;
}
.switch.on { background: #fff; color: #000; }
.switch svg { width: 1.4cqw; height: 1.4cqw; }
.map-screen img { flex: 1; min-height: 0; width: 100%; object-fit: contain; border-radius: 0; margin-top: 0.8cqw; }

/* Sources */
.sources h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin: 0 0 12px; }
.sources { max-width: 1000px; margin: 0 auto; padding: clamp(50px, 7vw, 90px) 24px 90px; text-align: center; }
.sources .lead { color: var(--dim); margin: 0 0 30px; }
.source-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; text-align: left; }
.source {
  flex: 1 1 260px; max-width: 310px;
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 0, 0, 0.6);
  color: var(--dim); font-size: 14px; line-height: 1.5; transition: border-color 0.2s, background 0.2s;
}
.source:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.04); }
.source .kind { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.source b { color: #fff; font-weight: 600; font-size: 16px; }
.source .host { margin-top: auto; padding-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* Free updates */
.updates { max-width: 760px; margin: 0 auto; padding: clamp(50px, 8vw, 100px) 24px 20px; text-align: center; }
.updates h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin: 0 0 12px; }
.updates p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 30px; max-width: 620px; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 70px); }
.facts div { display: flex; flex-direction: column; align-items: center; color: var(--dim); font-size: 14px; }
.facts b { color: #fff; font-size: clamp(34px, 4vw, 44px); font-weight: 600; line-height: 1.1; }

/* Text pages (support, privacy) */
.page { max-width: 680px; margin: 0 auto; padding: 130px 24px 60px; }
.page h1 { font-size: 32px; margin-bottom: 4px; }
.page .updated { color: var(--dim); font-size: 14px; margin: 0 0 36px; }
.page h2 { font-size: 16px; font-weight: 600; margin: 34px 0 6px; }
.page p { margin: 0 0 12px; color: rgba(255, 255, 255, 0.78); }
.page a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.page .question { margin-top: 22px; color: #fff; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  padding: 26px 24px 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
}
footer a { color: var(--dim); }
footer a:hover { color: #fff; }

/* Gentle fade-in while scrolling */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 520px) {
  .bar nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
  .ipad { border-radius: 20px; padding: 9px; }
  .ipad-screen { border-radius: 11px; }
  .game-bar { padding: 7px 10px; }
}
