/* =========================================================================
   VibeLeading — vibeleading.org
   Design language: dark cockpit · glassmorphism · neon cyan/pink
   ========================================================================= */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #e8ecf4;
  --muted: #8b93a7;
  --cyan: #00d4ff;
  --pink: #ff2d95;
  --cyan-soft: rgba(0, 212, 255, 0.12);
  --pink-soft: rgba(255, 45, 149, 0.12);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--cyan); color: #03151b; }

.text-grad {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background layers ---------- */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.orb--cyan {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5), transparent 70%);
  top: -180px; left: -140px;
}
.orb--pink {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.42), transparent 70%);
  bottom: -200px; right: -160px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
}

main, header.nav, .ticker, .footer { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav__logo { width: 26px; height: 26px; color: var(--cyan); }

.nav__links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.94rem; }
.nav__links a:not(.nav__cta) { color: var(--muted); transition: color 0.2s ease; }
.nav__links a:not(.nav__cta):hover { color: var(--text); }

.nav__cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan) !important;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover {
  background: var(--cyan);
  color: #03151b !important;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
}

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: sticky;
  top: 61px;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem max(1.25rem, calc((100vw - var(--max)) / 2)) 1rem;
  background: rgba(5, 6, 10, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 0.6rem 0; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav__mobile a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem max(1.25rem, 0) 5rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero__sub {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--primary {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #041018;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 44px rgba(255, 45, 149, 0.35); }
.btn--ghost {
  border: 1px solid var(--stroke);
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 212, 255, 0.2); transform: translateY(-2px); }

/* ---------- HUD ---------- */

.hud {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.08), inset 0 0 40px rgba(0, 212, 255, 0.03);
}

.hud__readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.hud__cell { padding: 0.6rem 0.2rem; }
.hud__cell + .hud__cell { border-left: 1px solid var(--stroke); }

.hud__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.hud__cell:nth-child(2) .hud__value { color: var(--pink); text-shadow: 0 0 18px rgba(255, 45, 149, 0.5); }

.hud__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--stroke);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--font-display);
}
.hud__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  width: max-content;
  animation: ticker 44s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker__track i { color: var(--cyan); font-style: normal; font-size: 0.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem max(1.25rem, 0) 1rem;
}

.section__head { max-width: 760px; margin-bottom: 3.25rem; }

.section__kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section__head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.section__lede { color: var(--muted); font-size: 1.06rem; }
.section__lede code { color: var(--cyan); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 1.25rem; margin-bottom: 4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 3rem; }

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 212, 255, 0.08);
}
.card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.card:nth-child(even) .card__glyph { background: var(--pink-soft); color: var(--pink); border-color: rgba(255,45,149,0.3); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card p strong { color: var(--text); font-weight: 600; }

.card--tool { display: flex; flex-direction: column; gap: 0.65rem; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__arrow { color: var(--muted); transition: color 0.2s ease; }
.card--tool:hover .card__arrow { color: var(--cyan); }
.card__role { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); font-family: var(--font-display); }
.card__link { margin-top: auto; padding-top: 0.6rem; font-size: 0.9rem; color: var(--cyan); font-weight: 600; }

.card--install {
  background: linear-gradient(160deg, var(--cyan-soft), var(--pink-soft));
  border-color: rgba(0, 212, 255, 0.3);
}

.tag {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 212, 255, 0.4); }
.tag--pink { color: var(--pink); border-color: rgba(255, 45, 149, 0.4); }

/* ---------- Copy pill ---------- */

.copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.copy code {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy__btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--stroke);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy__btn:hover { background: var(--cyan); color: #03151b; }
.copy__btn.copied { background: var(--pink); border-color: var(--pink); color: #1d0311; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
}
.chip--cyan { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.3); }
.chip--pink { background: var(--pink-soft); color: var(--pink); border: 1px solid rgba(255, 45, 149, 0.3); }
.chip small { font-family: var(--font-body); opacity: 0.8; }

/* ---------- Squad band ---------- */

.squad {
  margin: 6rem 0 1rem;
  padding: 5rem 0;
  border-block: 1px solid var(--stroke);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.07), transparent 60%),
    var(--bg-soft);
}

.squad__inner { max-width: var(--max); margin: 0 auto; padding: 0 max(1.25rem, 0); }

.squad__layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.squad__pilot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 1rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.14), rgba(255, 45, 149, 0.1));
  text-align: center;
}
.squad__ring {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(0, 212, 255, 0.4);
  border-radius: var(--radius);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.squad__pilot strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.4); }
.squad__pilot small { color: var(--muted); }

.squad__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-content: center; }
.squad__npcs { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.squad__npc {
  padding: 0.6rem 1rem;
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: ui-monospace, Menlo, monospace;
}
.squad__npc:last-child { color: var(--pink); border-color: rgba(255,45,149,0.4); }

/* ---------- Book ---------- */

.section--book { padding-top: 2rem; }

.book {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 45, 149, 0.1), transparent 50%),
    var(--panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.book__cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(160deg, #0d1b2a, #1a0a2e 55%, #0a0a0f);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.12);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
  padding: 1rem;
}
.book__cover span:nth-child(2) { color: var(--pink); text-shadow: 0 0 14px rgba(255, 45, 149, 0.6); }
.book__cover-sub { color: var(--text); font-weight: 400; }
.book__cover small { margin-top: 1.2rem; color: var(--muted); text-shadow: none; font-size: 0.72rem; letter-spacing: 0.2em; }

.book__body { max-width: 640px; }
.book__body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.4rem; }
.book__byline { color: var(--muted); margin-bottom: 0.3rem; }
.book__isbn { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 1.1rem; }
.book__body p:not(.book__byline):not(.book__isbn):not(.book__fine) { color: var(--muted); margin-bottom: 1.5rem; }
.book__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.book__fine { font-size: 0.76rem; color: rgba(139, 147, 167, 0.7); }

/* ---------- Oath ---------- */

.section--oath { padding-bottom: 0; }
.oath { text-align: center; padding: 4rem 1.25rem; }
.oath blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2rem;
}
.oath__cta { color: var(--muted); font-size: 1.08rem; }

/* ---------- Support ---------- */

.section--support { padding-top: 2rem; }
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  border: 1px solid rgba(255, 45, 149, 0.3);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--pink-soft), var(--cyan-soft));
}
.support h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.support p { color: var(--muted); max-width: 460px; }
.support__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 6rem;
  padding: 3.5rem max(1.25rem, calc((100vw - var(--max)) / 2)) 2.5rem;
  border-top: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.3);
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.footer__tagline { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-self: flex-end; }
.footer nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer nav a:hover { color: var(--cyan); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  color: rgba(139, 147, 167, 0.7);
  font-size: 0.8rem;
}
.footer__bar em { font-style: normal; color: var(--muted); }

/* ---------- FAQ ---------- */

.section--faq { padding-top: 5rem; }
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.6rem; }
.faq details {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.04); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}
.faq details a { color: var(--cyan); }
.faq details code {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 0.9em;
}

/* ---------- PWA toast ---------- */

.pwa-toast {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(8, 10, 16, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 2.5rem);
}
.pwa-toast.is-visible { opacity: 1; transform: none; }
.pwa-toast__msg { color: var(--text); font-size: 0.9rem; }
.pwa-toast__btn {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.pwa-toast__btn:hover { background: var(--cyan); color: #041018; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .squad__layout { grid-template-columns: 1fr; }
  .squad__pilot { order: 0; }
  .squad__specs { order: 2; grid-template-columns: 1fr 1fr; }
  .squad__npcs { order: 1; }
  .book { grid-template-columns: 1fr; text-align: center; }
  .book__cover { max-width: 240px; margin: 0 auto; }
  .book__actions, .book__actions .btn { justify-content: center; }
  .hud__readout { grid-template-columns: repeat(2, 1fr); }
  .hud__cell:nth-child(3) { border-left: 0; }
  .hud__cell:nth-child(n+3) { padding-top: 1rem; border-top: 1px solid var(--stroke); }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .squad__specs { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
  .hud { padding: 1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
}