:root {
  --void: #0b0b14;
  --panel: #141426;
  --ink: #ece8f6;
  --muted: #a7a2bd;
  --cyan: #48e0f0;
  --red: #ff3b3b;
  --gold: #f2c14e;
  --purple: #b067ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 11, 20, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #23233d;
}
.brand { font-weight: 900; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--purple); }
nav { display: flex; gap: 1.1rem; align-items: center; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
nav .signin { color: var(--void); background: var(--cyan); padding: .35rem .8rem; border-radius: 999px; font-weight: 700; }

main > section { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); max-width: 1180px; margin: 0 auto; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-art { border-radius: 14px; box-shadow: 0 0 0 1px #2a2a48, 0 20px 60px rgba(72, 224, 240, .18); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--gold); margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.lede { color: var(--muted); font-size: 1.1rem; }
.fine { color: var(--muted); font-size: .85rem; }

.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 .6rem; }
.cta {
  display: inline-block; padding: .85rem 1.3rem; border-radius: 10px;
  font-weight: 800; text-decoration: none; color: var(--ink);
  border: 2px solid var(--purple);
}
.cta.primary { background: linear-gradient(135deg, var(--purple), #6b2fa0); border-color: transparent; }
.cta:hover { filter: brightness(1.12); }

.brain { counter-reset: b; list-style: none; padding: 0; display: grid; gap: .9rem; }
.brain li { background: var(--panel); border-left: 4px solid var(--cyan); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; }
.brain li:nth-child(2) { border-color: var(--gold); }
.brain li:nth-child(3) { border-color: var(--red); }
.brain li:nth-child(4) { border-color: var(--purple); }

.grid { display: grid; gap: 1rem; }
.ships-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
figure { margin: 0; background: var(--panel); border-radius: 12px; overflow: hidden; }
figcaption { padding: .6rem .8rem; font-size: .9rem; color: var(--muted); }

.intro { color: var(--muted); max-width: 70ch; }
.faction {
  display: grid; grid-template-columns: 96px 1fr 200px; gap: 1.2rem; align-items: center;
  background: var(--panel); border-radius: 14px; padding: 1.1rem; margin-top: 1.1rem;
  border: 1px solid #23233d;
}
.faction .emblem { border-radius: 12px; width: 96px; }
.faction .leader { border-radius: 10px; width: 200px; }
.faction h3 small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.faction.globois { border-color: rgba(72, 224, 240, .45); }
.faction.trihardchy { border-color: rgba(255, 59, 59, .45); }
.faction.lcm { border-color: rgba(176, 103, 255, .45); }
.faction.neutral { grid-template-columns: 1fr 200px; border-color: rgba(242, 193, 78, .4); }

.final { text-align: center; }
.final .ctas { justify-content: center; }

footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); border-top: 1px solid #23233d; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .faction, .faction.neutral { grid-template-columns: 72px 1fr; }
  .faction .emblem { width: 72px; }
  .faction .leader { grid-column: 1 / -1; width: 100%; max-width: 360px; margin: 0 auto; }
  .faction.neutral > div { grid-column: 1 / -1; }
  nav a:not(.signin) { display: none; }
}
