/* Sky Shield — design system
   Palette: night-sky radar. Deep navy ground, cyan interceptor accent,
   warm ember for warnings/CTAs — mirrors the in-game HUD. */
:root {
  --void: #060B16;
  --night: #0B1424;
  --night-soft: #101B30;
  --panel: #131F38;
  --line: #223252;
  --cyan: #4CE0E8;
  --cyan-deep: #2BB8C4;
  --ember: #FF7A45;
  --ember-deep: #E85A2A;
  --ink: #EAF2FF;
  --ink-soft: #9FB0CC;
  --ink-faint: #6C7C9C;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(2, 6, 16, 0.45);
  --shadow-lg: 0 24px 70px rgba(2, 6, 16, 0.6);
  --grad-cyan: linear-gradient(135deg, #6FF3F9 0%, #4CE0E8 45%, #2BB8C4 100%);
  --grad-bg: radial-gradient(ellipse 120% 60% at 50% -10%, #16233F 0%, #0B1424 45%, #060B16 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Menlo", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--void);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; color: var(--ink-soft); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* radar-sweep background wash used behind hero + CTA */
.sky {
  background: var(--grad-bg);
}
.stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 45% 55%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 10% 75%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(255,255,255,.3), transparent);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: .8;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-cyan);
  color: #04141A;
  box-shadow: 0 8px 24px rgba(76, 224, 232, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(76, 224, 232, 0.4); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--cyan-deep); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(76, 224, 232, 0.1);
  border: 1px solid rgba(76, 224, 232, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.badge-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(19, 31, 56, 0.6);
}
.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  align-self: start;
}
.hero-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 740;
  object-fit: cover;
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  font-weight: 600;
}
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-badge .lines small { font-size: 0.68rem; color: #cfcfcf; font-weight: 400; }
.appstore-badge .lines strong { font-size: 1.05rem; }

.googleplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink-faint);
  padding: 9px 17px 9px 13px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-weight: 600;
  cursor: default;
}
.googleplay-badge svg { width: 24px; height: 24px; opacity: 0.6; }
.googleplay-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.googleplay-badge .lines small { font-size: 0.68rem; color: var(--ink-faint); font-weight: 400; }
.googleplay-badge .lines strong { font-size: 1.05rem; color: var(--ink-soft); }

/* Screenshot strip */
.screens {
  padding: 20px 0 80px;
}
.screens-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.screens-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 740;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.screens-strip img:hover { transform: translateY(-4px); }
.screens-strip img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .screens-strip {
    grid-template-columns: 1fr;
  }
}

/* Section headers */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .kicker { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

/* How it works */
.how { padding: 90px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step .num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* Feature rows */
.features { padding: 20px 0 100px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.flip .media { order: 2; }
.feature-row .media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 740;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-row h3 { font-size: 1.5rem; margin-bottom: 14px; }
.feature-row p { font-size: 1rem; }
.feature-row ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-row li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-row li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 7px;
  flex-shrink: 0;
}

/* FAQ */
.faq { padding: 20px 0 100px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-size: 1.4rem;
  color: var(--cyan);
  transition: transform .2s ease;
  font-weight: 400;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; font-size: 0.94rem; }

/* CTA band */
.cta-band {
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { margin: 16px auto 30px; max-width: 46ch; font-size: 1.05rem; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: var(--night);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-bottom .disclaimer { max-width: 60ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row .media { order: -1 !important; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.96rem; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.legal a.inline { color: var(--cyan); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 20px 0 0;
}
.back-link:hover { color: var(--cyan); }
