/* Ice Break — "Midnight & Neon" website styles
   Palette ported from the app's AppColors.swift */
:root {
  --bg-base: #000000;
  --bg-elevated: #121216;
  --surface: #16161c;
  --surface-high: #1c1c24;
  --line: #2a2a35;

  --text-primary: #f4f4f6;
  --text-dim: #8d8d99;
  --text-faint: #55555f;

  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --coral: #ff5c7a;
  --amber: #ffb84d;
  --green: #4dffa1;
  --violet: #a060ff;
  --blue: #4d7cff;

  --maxw: 1080px;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient neon glow behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 22% 12%, rgba(0, 229, 255, 0.14), transparent 70%),
    radial-gradient(55% 55% at 82% 22%, rgba(255, 43, 214, 0.13), transparent 70%),
    radial-gradient(70% 60% at 50% 108%, rgba(160, 96, 255, 0.10), transparent 70%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Top bar ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 17px; }

.lang-toggle { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: transparent; border: 0; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang-toggle button.active { color: #000; background: var(--cyan); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.32);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 32px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-icon {
  width: 132px; height: 132px; margin: 0 auto 30px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 70px rgba(0, 229, 255, 0.22), 0 12px 50px rgba(255, 43, 214, 0.18);
}
.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan), var(--pink) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-dim);
  max-width: 620px; margin: 0 auto 40px;
}

/* store badges */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 20px; min-width: 200px;
  transition: border-color .2s, transform .2s;
}
.store:hover { border-color: var(--cyan); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store .txt { text-align: left; line-height: 1.15; }
.store .txt small { display: block; font-size: 11px; color: var(--text-dim); }
.store .txt strong { font-size: 16px; font-weight: 600; }
.store .soon { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--amber); text-transform: uppercase; margin-left: auto; }

/* ---------- Features ---------- */
section.block { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); max-width: 560px; margin: 0 auto; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.feature:hover { transform: translateY(-4px); }
.feature .ficon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.feature h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-dim); font-size: 15px; }
.feature.decks:hover  { border-color: var(--cyan); }
.feature.games:hover  { border-color: var(--pink); }
.feature.tests:hover  { border-color: var(--amber); }
.feature.astro:hover  { border-color: var(--violet); }
.feature.decks  .ficon { background: rgba(0,229,255,.12);  color: var(--cyan); }
.feature.games  .ficon { background: rgba(255,43,214,.12); color: var(--pink); }
.feature.tests  .ficon { background: rgba(255,184,77,.12); color: var(--amber); }
.feature.astro  .ficon { background: rgba(160,96,255,.12); color: var(--violet); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: 250px; aspect-ratio: 663 / 1280;
  scroll-snap-align: center;
  border-radius: 30px; border: 1px solid var(--line);
  background: var(--surface-high);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-faint); text-align: center; padding: 20px;
}
.shot.placeholder .ph-ico { font-size: 34px; opacity: .6; }
.shot.placeholder small { font-size: 12px; }

/* ---------- Languages strip ---------- */
.langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.langs .chip {
  font-size: 14px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot .brand span { font-size: 15px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.foot nav a:hover { color: var(--cyan); }
.foot .copy { color: var(--text-faint); font-size: 13px; width: 100%; }

/* ---------- Privacy page ---------- */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.01em; color: var(--text-primary); }
.legal p { color: var(--text-dim); margin-bottom: 14px; }
.legal a { color: var(--cyan); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--cyan); }

/* Bilingual toggle: hide only the inactive language, keep the active one at its
   natural display. body carries data-lang="en" from markup, so no flash on load. */
body[data-lang="en"] .lang-de { display: none !important; }
body[data-lang="de"] .lang-en { display: none !important; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .store { min-width: 0; flex: 1 1 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
