/* ============================================================
   Sonnenfinsternis 2026 – Landing Page
   Apple-style: light sections, dramatic dark hero, blurred nav,
   alternating feature blocks, pure-CSS phone mockups, scroll reveal.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.10);

  --accent: #ff5a1f;      /* sun orange */
  --accent-ink: #e0470f;
  --indigo: #4b3bd8;

  --cosmic-1: #221643;
  --cosmic-2: #0a0a16;

  --radius: 22px;
  --radius-sm: 15px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; }
.brand__icon { width: 24px; height: 24px; border-radius: 7px; }
.brand__accent { color: var(--accent); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }

.lang { display: flex; gap: 6px; }
.lang__btn {
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 3px 4px; cursor: pointer; line-height: 0; opacity: .55; transition: opacity .2s ease, border-color .2s ease;
}
.lang__btn:hover { opacity: 1; }
.lang__btn--active { opacity: 1; border-color: var(--line); }
.lang__btn svg { border-radius: 2px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 90, 31, 0.35); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

/* --- Hero (dark, cosmic) ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(255, 122, 40, 0.28), transparent 55%),
    radial-gradient(90% 70% at 12% 20%, rgba(75, 59, 216, 0.30), transparent 60%),
    linear-gradient(180deg, var(--cosmic-1), var(--cosmic-2) 78%);
}
.hero::after {
  /* faint starfield */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 70% 22%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 45% 65%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, #fff, transparent),
    radial-gradient(1px 1px at 33% 80%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 62% 78%, #fff, transparent);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center;
  padding: 74px 0 84px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 980px; margin-bottom: 22px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 700;
}
.hero h1 span { display: block; }
.hero h1 .grad {
  background: linear-gradient(100deg, #ffd48a, #ff7a28 60%, #ff5a1f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 20px; font-size: clamp(17px, 2.1vw, 20px); color: rgba(255,255,255,0.78); max-width: 33em; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.countdown { margin-top: 34px; }
.countdown__label { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: .01em; }
.countdown__grid { display: flex; gap: 10px; margin-top: 10px; }
.cd-cell {
  min-width: 74px; padding: 12px 8px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
}
.cd-cell b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cd-cell span { font-size: 12px; color: rgba(255,255,255,0.6); }
.hero__note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 8px; }

/* --- Phone mockup + app screens ----------------------------------------- */
.hero__visual { display: flex; justify-content: center; }
.phone {
  width: 288px; border-radius: 46px; padding: 12px;
  background: linear-gradient(155deg, #40454d, #14171a);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow); position: relative;
}
.phone::before { /* dynamic island (floats above the status-bar zone) */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 20px; border-radius: 11px; background: #05070d; z-index: 3;
}
.phone__screen {
  border-radius: 34px; overflow: hidden; aspect-ratio: 9 / 19.3; position: relative;
  display: flex; flex-direction: column;
}
.phone__screen::before { /* status-bar spacer so content clears the island */
  content: ""; display: block; flex: none; height: 34px;
}

/* Camera app screen */
.scr-cam { background: radial-gradient(120% 90% at 50% 42%, #1a2440 0%, #0a0d18 62%); }
.scr-cam__warn {
  background: rgba(214, 40, 40, 0.92); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 8px 12px; display: flex; gap: 6px; align-items: center; z-index: 2;
}
.scr-cam__stage { flex: 1; position: relative; }
.sun {
  position: absolute; top: 46%; left: 54%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff3d0, #ffb43e 45%, #ff7a1a 78%);
  box-shadow: 0 0 44px 10px rgba(255, 150, 40, 0.55);
}
.sun::after { /* moon carving the crescent, matches sky */
  content: ""; position: absolute; top: -14%; left: 26%; width: 100%; height: 100%;
  border-radius: 50%; background: #0b0f1c;
}
.reticle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 116px; height: 116px; border: 2px solid rgba(255,255,255,0.55); border-radius: 50%;
}
.arrow {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  color: #ffd166; font-size: 30px; font-weight: 700; animation: nudge 1.2s var(--ease) infinite;
}
@keyframes nudge { 0%,100% { transform: translateY(-50%) translateX(0);} 50% { transform: translateY(-50%) translateX(5px);} }
.scr-cam__hint {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%);
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 20px; white-space: nowrap;
}
.scr-cam__controls { padding: 12px; background: #05070d; }
.slider { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.2); position: relative; margin: 9px 0; }
.slider::after { content: ""; position: absolute; top: 50%; left: var(--p, 30%); transform: translate(-50%, -50%); width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }

/* Home app screen (used in reminders/gps features) */
.scr-home { background: linear-gradient(180deg, #1c1414, #120d0d); color: #fff; padding: 20px 16px; gap: 14px; }
.scr-home__title { font-size: 14px; font-weight: 700; text-align: center; opacity: .95; }
.scr-home__date { font-size: 11px; text-align: center; color: rgba(255,255,255,0.55); margin-top: 2px; }
.scr-home__cd { background: #12233a; border-radius: 16px; padding: 14px 8px; margin-top: 8px; }
.scr-home__cd .row { display: flex; justify-content: center; gap: 8px; }
.scr-home__cd .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scr-home__cd small { font-size: 9px; color: rgba(255,255,255,0.55); }
.card-rows { background: rgba(255,255,255,0.06); border-radius: 16px; padding: 6px 12px; margin-top: 10px; }
.card-rows .r { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.card-rows .r:last-child { border-bottom: 0; }
.card-rows .r b { color: #ff8a4c; }

/* Reminders list screen */
.scr-rem { background: linear-gradient(180deg, #1c1414, #120d0d); color: #fff; padding: 18px 14px; gap: 9px; }
.notif {
  display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,0.07);
  border-radius: 14px; padding: 10px 11px;
}
.notif .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); flex: none; display: grid; place-items: center; font-size: 13px; }
.notif .tx { font-size: 10.5px; }
.notif .tx b { display: block; font-size: 11px; margin-bottom: 1px; }
.notif .tx span { color: rgba(255,255,255,0.6); }

/* --- Generic section ----------------------------------------------------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.section__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -0.028em; margin-top: 8px; }
.section__sub { color: var(--muted); font-size: 19px; margin: 16px auto 0; max-width: 34em; }

/* --- Alternating feature blocks ------------------------------------------ */
.feature-lg { padding: 96px 0; overflow: hidden; }
.feature-lg--alt { background: var(--bg-alt); }
.feature-lg__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.feature-lg--reverse .feature-lg__visual { order: -1; }
.feature-lg__copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; margin-top: 10px; }
.feature-lg__copy p { color: var(--muted); font-size: 19px; margin-top: 16px; max-width: 30em; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.ticks .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,90,31,0.14); color: var(--accent); display: grid; place-items: center; font-size: 13px; flex: none; }
.feature-lg__visual { display: flex; justify-content: center; }
.feature-lg__visual .phone { width: 262px; }

/* --- Eclipse simulator --------------------------------------------------- */
.sim { max-width: 860px; margin: 44px auto 0; }
.sim__stage { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #05060d; }
#sim-canvas { width: 100%; height: auto; display: block; }
.sim__readout { display: flex; gap: 14px; justify-content: center; margin-top: 20px; }
.sim__stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 24px; text-align: center; min-width: 132px; box-shadow: var(--shadow-sm); }
.sim__stat span { display: block; font-size: 12px; color: var(--muted); }
.sim__stat b { font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sim__controls { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.sim__play { white-space: nowrap; min-width: 120px; }
.sim__slider { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--accent), var(--indigo)); }
.sim__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: pointer; }
.sim__slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.sim__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* --- Danger + disclaimer (dark) ------------------------------------------ */
.danger { background: linear-gradient(160deg, #241016, #120a0a); color: #fff; padding: 92px 0; }
.danger__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.danger .kicker { color: #ff8a4c; }
.danger h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.028em; margin-top: 10px; line-height: 1.08; }
.danger p { color: rgba(255,255,255,0.76); font-size: 18px; margin-top: 16px; }
.disclaimer { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 24px; }
.disclaimer__icon { font-size: 28px; }
.disclaimer h3 { margin-top: 8px; font-size: 20px; letter-spacing: -0.02em; }
.disclaimer p { color: rgba(255,255,255,0.68); font-size: 14.5px; margin-top: 10px; line-height: 1.6; }

/* --- Safe-viewing options grid ------------------------------------------- */
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.opt-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.opt-card__top { display: flex; justify-content: space-between; align-items: center; }
.opt-ic { font-size: 26px; line-height: 1; }
.opt-card h3 { margin-top: 14px; font-size: 17.5px; letter-spacing: -0.02em; }
.opt-card p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.opt-card--never { border-color: rgba(214,40,40,0.28); background: rgba(214,40,40,0.03); }
.tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.tag--rec { background: rgba(255,90,31,0.14); color: var(--accent-ink); }
.tag--safe { background: rgba(28,160,90,0.14); color: #1a7f47; }
.tag--caution { background: rgba(230,160,20,0.16); color: #a9760a; }
.tag--never { background: rgba(214,40,40,0.12); color: #cc2222; }

/* --- Safety band (dark) -------------------------------------------------- */
.safety { background: linear-gradient(160deg, #2a0f0f, #140a0a); color: #fff; padding: 92px 0; }
.safety__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.safety .kicker { color: #ff8a4c; }
.safety h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.028em; margin-top: 10px; line-height: 1.08; }
.safety p { color: rgba(255,255,255,0.74); font-size: 18px; margin-top: 18px; }
.safety__points { display: grid; gap: 12px; }
.safety__points .pt {
  display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 15px 16px; font-weight: 600;
}
.safety__points .pt .em { font-size: 20px; }
.warnmark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,138,76,0.16); font-size: 26px; }

/* --- How (steps) --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step__n { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin-top: 16px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* --- CTA band ------------------------------------------------------------ */
.cta { padding: 96px 0; }
.cta__inner {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 30px; padding: 66px 24px;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(255,122,40,0.35), transparent 55%),
    linear-gradient(160deg, var(--cosmic-1), var(--cosmic-2));
}
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -0.028em; }
.cta p { color: rgba(255,255,255,0.76); font-size: 19px; margin: 14px auto 26px; max-width: 32em; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.store-badge { height: 52px; opacity: .95; }
.store-badge svg { height: 100%; width: auto; }
.badges__soon { font-size: 12px; color: rgba(255,255,255,0.6); width: 100%; margin-top: 4px; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.footer__tag { color: var(--muted); font-size: 14px; max-width: 32em; }
.footer__links { margin-left: auto; display: flex; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { width: 100%; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* --- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .arrow { animation: none; } }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__links .lang { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__cta, .countdown__grid, .hero__note { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .feature-lg__inner, .safety__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-lg--reverse .feature-lg__visual { order: 0; }
  .ticks li, .safety__points .pt { justify-content: center; text-align: left; }
  .feature-lg__copy p { margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .danger__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .opt-grid { grid-template-columns: 1fr; }
  .sim__controls { flex-wrap: wrap; }
  .sim__play { width: 100%; }
}
@media (max-width: 420px) {
  .cd-cell { min-width: 0; flex: 1; }
  .phone { width: 260px; }
  .sim__stat { min-width: 0; flex: 1; }
}
