/* Vexillum Parabellum landing page.
   Palette follows the game's own chrome: neon blue on near-black
   (client/public/assets/brand), with the rival side in warm orange-red.
   The brand is dark by design, so there is no light theme. */

@font-face {
  font-family: "Cinzel";
  src: url("/api/f/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #070c10;
  --bg-2: #0a1014;
  --panel: #0d151b;
  --panel-2: #111c24;
  --line: rgba(126, 196, 255, 0.14);
  --line-strong: rgba(126, 196, 255, 0.32);
  --text: #d7e6f5;
  --muted: #8aa0b4;
  --accent: #1f6feb;
  --accent-2: #7ec4ff;
  --accent-3: #bfe0ff;
  --rival: #ff6a4d;
  --radius: 10px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-2); }

h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: 0.02em; color: #eaf4ff; }
h3 { font-size: 1.05rem; color: #eaf4ff; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-cta { color: #fff; background: var(--accent); padding: 7px 14px; border-radius: 999px; box-shadow: 0 0 18px rgba(31, 111, 235, 0.45); }
.nav nav a.nav-cta:hover { background: #2f7cf5; }

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Darken the board under the copy and fade it into the page below. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 22% 50%, rgba(7, 12, 16, 0.92), rgba(7, 12, 16, 0.55) 60%, rgba(7, 12, 16, 0.25)),
    linear-gradient(to bottom, rgba(7, 12, 16, 0) 70%, var(--bg));
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(24px, 4vw, 56px);
}
.eyebrow { color: var(--accent-2); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.wordmark { display: block; width: min(520px, 100%); margin: 14px 0 8px -14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c3d5e6; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 24px rgba(31, 111, 235, 0.5); }
.btn-primary:hover { background: #2f7cf5; box-shadow: 0 0 34px rgba(47, 124, 245, 0.7); }
.btn-ghost { color: var(--accent-3); border-color: var(--line-strong); background: rgba(13, 21, 27, 0.6); }
.btn-ghost:hover { border-color: var(--accent-2); }

.hero-art { margin: 0; text-align: center; }
.hero-art img {
  width: min(420px, 100%);
  filter: drop-shadow(0 0 28px rgba(31, 111, 235, 0.55));
  animation: hover-bob 5s ease-in-out infinite;
}
.hero-art figcaption { margin-top: 10px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes hover-bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* ---------- Principle band ---------- */

.principle {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 40px);
  text-align: center;
}
.principle-title { font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.3; background: linear-gradient(#eaf4ff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.pillars article { padding: 22px; border-top: 2px solid var(--accent); background: linear-gradient(var(--panel), rgba(13, 21, 27, 0)); border-radius: 0 0 var(--radius) var(--radius); }
.pillars h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 8px; color: var(--accent-3); }
.pillars p { color: var(--muted); }

/* ---------- Generic section ---------- */

.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.kicker { color: var(--accent-2); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.section-lead { color: var(--muted); max-width: 46em; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feature { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 8px; color: var(--accent-2); background: rgba(31, 111, 235, 0.14); border: 1px solid var(--line-strong); font-size: 1.1rem; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Roster ---------- */

.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.unit { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.unit header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* Monogram badge stands in for unit portraits that aren't drawn yet. */
.badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; font: 700 1.25rem/1 var(--display); color: #fff; background: linear-gradient(135deg, var(--accent), #0b3f8f); box-shadow: 0 0 16px rgba(31, 111, 235, 0.45); }
.role { color: var(--muted); font-size: 0.85rem; }
.abilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }
.abilities li { display: flex; gap: 10px; align-items: baseline; }
kbd { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; font: 700 0.78rem/1 var(--body); color: var(--accent-3); background: var(--panel-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; }

/* ---------- Modes ---------- */

.modes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.modes li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.modes strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- Alpha access note ---------- */

.alpha { text-align: center; }
.alpha > p:last-child { color: var(--muted); max-width: 34em; margin: 14px auto 0; }
.alpha-mark { font-size: 2.2rem; color: var(--accent-2); text-shadow: 0 0 22px rgba(31, 111, 235, 0.7); margin-bottom: 6px; }

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

.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }

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

@media (max-width: 980px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(rgba(7, 12, 16, 0.78), rgba(7, 12, 16, 0.9)), linear-gradient(to bottom, rgba(7, 12, 16, 0) 70%, var(--bg)); }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 60vw); }
  .wordmark { margin-left: -8px; }
  .pillars, .features, .roster, .modes { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
