/* Eclipse — BigBalli.com/Eclipse
   Palette lifted straight from the app's Theme.swift: the umbral near-black of the
   shadow, the white of the corona, and the warm amber of a Sun 2–10° above the horizon. */

:root {
  --umbra: #080910;
  --penumbra: #131627;
  --indigo: #25294A;
  --corona: #F5F7FF;
  --chromosphere: #F9A445;
  --flare: #EF5D42;
  --muted: #8C93AD;
  --surface: rgba(19, 22, 39, .75);
  --hairline: rgba(245, 247, 255, .08);
  --radius: 22px;
  --wrap: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--corona);
  background: var(--umbra);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(249, 164, 69, .16) 0%, rgba(239, 93, 66, .05) 34%, transparent 62%),
    linear-gradient(180deg, var(--umbra) 0%, var(--penumbra) 46%, var(--indigo) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--chromosphere); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:where(a, label, button):focus-visible {
  outline: 2px solid var(--chromosphere);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- Language switch: two real URLs, so hreflang and per-locale titles work ---- */
.langbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: flex-end; gap: .35rem;
  padding: .7rem max(1.25rem, calc((100% - var(--wrap)) / 2)) .5rem;
  background: linear-gradient(180deg, rgba(8, 9, 16, .92), rgba(8, 9, 16, 0));
  backdrop-filter: blur(8px);
}
.langbar a {
  display: inline-block; text-decoration: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  padding: .4rem .72rem; border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.langbar a:hover { color: var(--corona); }
.langbar a[aria-current="true"] {
  color: var(--umbra); background: var(--chromosphere); border-color: var(--chromosphere);
}

/* ---- Hero ---- */
.hero { padding: 1rem 0 4.5rem; text-align: center; }
.hero-icon {
  width: 112px; height: 112px; border-radius: 26px; display: block;
  margin: 0 auto 1.9rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px var(--hairline), 0 0 70px rgba(249, 164, 69, .22);
}
.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  color: var(--chromosphere); margin-bottom: 1.05rem;
}
.hero h1 { font-size: clamp(2.35rem, 7.2vw, 4.05rem); font-weight: 800; }
.hero .lede {
  max-width: 40ch; margin: 1.35rem auto 0;
  font-size: clamp(1.03rem, 2.4vw, 1.2rem); color: var(--muted);
}
.hero .lede strong { color: var(--corona); font-weight: 600; }

.badge { display: inline-block; margin-top: 2.2rem; transition: transform .25s ease; }
.badge img { display: block; width: 176px; height: auto; }
.badge:hover { transform: translateY(-2px) scale(1.02); }
.badge-note { margin-top: .95rem; font-size: .85rem; color: var(--muted); }

/* ---- Stat strip ---- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  max-width: 620px; margin: 3rem auto 0;
}
.stat {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 1.05rem .6rem;
}
.stat b {
  display: block; font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat span { display: block; font-size: .77rem; color: var(--muted); margin-top: .25rem; }

/* ---- Sections ---- */
section { padding: 4rem 0; }
.section-head { max-width: 46ch; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: 1.03rem; }

/* ---- Screenshots ---- */
.shots {
  display: flex; gap: 1.5rem; justify-content: center; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--indigo) transparent;
}
.shot { flex: 0 0 auto; width: 260px; scroll-snap-align: center; text-align: center; margin: 0; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 26px;
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
}
.shot figcaption { margin-top: 1rem; font-size: .89rem; color: var(--muted); line-height: 1.45; }

/* ---- Features ---- */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.feature h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.feature p { margin-top: .65rem; color: var(--muted); font-size: .95rem; }
.feature .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 1rem;
  background: rgba(249, 164, 69, .13); border: 1px solid rgba(249, 164, 69, .26);
  font-size: 1.02rem; line-height: 1;
}

/* ---- Also-in-the-app list ---- */
.also {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
  margin-top: 2.2rem; padding: 0; list-style: none;
}
.also li {
  font-size: .86rem; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .42rem .9rem; background: rgba(19, 22, 39, .5);
}

/* ---- Closing CTA ---- */
.cta { text-align: center; }
.cta-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 30px; padding: 3.2rem 1.75rem;
  background-image: linear-gradient(180deg, rgba(249, 164, 69, .1) 0%, rgba(239, 93, 66, .03) 40%, transparent 75%);
}
.cta-card h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
.cta-card p { margin-top: 1rem; color: var(--muted); max-width: 42ch; margin-inline: auto; }

/* ---- Safety note ---- */
.safety {
  max-width: 60ch; margin: 3rem auto 0; text-align: center;
  font-size: .9rem; color: var(--muted);
  border-top: 1px solid var(--hairline); padding-top: 1.6rem;
}
.safety strong { color: var(--chromosphere); font-weight: 600; }

/* ---- Footer ---- */
footer { padding: 3rem 0 4rem; text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.7; }
footer p + p { margin-top: .5rem; }

@media (max-width: 640px) {
  .shots { justify-content: flex-start; }
  .shot { width: 235px; }
  .stats { grid-template-columns: 1fr; max-width: 320px; }
  section { padding: 3rem 0; }
}

/* Scroll-driven reveal where the browser supports it — no JS, and it degrades to plain visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge { transition: none; }
}
