/* Vantaris site. Palette matches the in-game login screen (Menu_Login.uss). */

:root {
  --bg: #05090f;
  --bg-2: #070c13;
  --panel: rgba(12, 19, 29, 0.78);
  --panel-solid: #0c131d;
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #eef3f6;
  --muted: #acb9c3;
  --faint: #82909b;
  --accent: #3ee08f;
  --accent-hover: #62eca6;
  --accent-soft: rgba(62, 224, 143, 0.14);
  --event: #7fb8ff;
  --event-soft: rgba(127, 184, 255, 0.14);
  --warn: #f5b942;
  --warn-soft: rgba(245, 185, 66, 0.13);
  --danger: #ff6860;
  --vx-purple: #8a4dff;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --font: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #021; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ── header / footer ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.brand:hover { color: var(--text); }
.brand--small { font-size: 0.9rem; margin-bottom: 6px; }
.brand-mark {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--vx-purple) 0 50%, transparent 50%);
  border-radius: 3px;
  flex: none;
}

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.site-footer { border-top: 1px solid var(--stroke); margin-top: 72px; padding: 32px 0; background: var(--bg-2); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0; font-size: 0.88rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }

/* ── buttons ─────────────────────────────────────── */

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font: 600 0.98rem/1 var(--font);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #03140b; }
.btn--primary:hover { background: var(--accent-hover); color: #03140b; }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--stroke-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.link-arrow, .link-back { font-weight: 600; font-size: 0.95rem; }
.link-arrow::after { content: " →"; }
.link-back::before { content: "← "; }
.link-back { display: inline-block; margin-bottom: 28px; color: var(--muted); }

/* ── hero ────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stroke);
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 78% 38%, rgba(138, 77, 255, 0.34), transparent 70%),
    radial-gradient(ellipse 40% 45% at 88% 70%, rgba(62, 224, 143, 0.20), transparent 70%),
    radial-gradient(ellipse 60% 50% at 15% 100%, rgba(40, 90, 160, 0.22), transparent 70%),
    url("/assets/stars.svg") center / cover,
    linear-gradient(180deg, #03060b, var(--bg));
}
.hero-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 15, 0.92) 0%, rgba(5, 9, 15, 0.55) 55%, rgba(5, 9, 15, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner { padding-top: 96px; padding-bottom: 96px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(62, 224, 143, 0.32);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.wordmark {
  font-size: clamp(3.2rem, 11vw, 7.4rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 18px;
  line-height: 1;
  text-transform: uppercase;
  margin-right: -0.22em;
  background: linear-gradient(180deg, #ffffff 30%, #a9bccb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #c9d3da; max-width: 36ch; margin: 0; }
.lede--post { max-width: 60ch; margin-bottom: 32px; }

/* ── notice ──────────────────────────────────────── */

.notice { margin-top: 36px; }
.notice-box {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 20px;
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-left: 4px solid var(--warn);
  background: rgba(40, 29, 6, 0.55);
  border-radius: var(--radius-sm);
}
.notice-box strong { color: var(--warn); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; white-space: nowrap; }
.notice-box p { margin: 0; color: #e7dcc5; font-size: 0.95rem; }

/* ── sections ────────────────────────────────────── */

.section { margin-top: 88px; }
.section--tight { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-intro { max-width: 62ch; margin-bottom: 28px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }

.page-head { padding-top: 64px; }
.page-head h1 { max-width: 22ch; }
.page-head--center { text-align: center; padding-top: 120px; }
.page-head--center h1 { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; margin-bottom: 36px; }
.split h2 { margin: 0; }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.96rem; }

.feature h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

.faction { border-top: 3px solid var(--fc, var(--stroke-strong)); }
.faction h3 { font-size: 1.02rem; }
.faction p { font-size: 0.9rem; }
.faction--terran { --fc: #8fb3d9; }
.faction--loktar { --fc: #e0703a; }
.faction--zephyrian { --fc: #4fd8e8; }
.faction--cambrizian { --fc: #d9b25a; }
.faction--xorthak { --fc: #b25ae0; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(62, 224, 143, 0.22);
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(62, 224, 143, 0.12), transparent 70%), var(--panel);
}
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; }

/* ── news ────────────────────────────────────────── */

.news-card { transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.news-card:hover { border-color: var(--stroke-strong); background: rgba(16, 26, 38, 0.9); }
.news-card h3 { margin: 12px 0 8px; }
.news-card h3 a { color: var(--text); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--faint); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9d3da;
  background: #242c36;
}
.tag--patch { color: var(--accent); background: var(--accent-soft); }
.tag--event { color: var(--event); background: var(--event-soft); }
.tag--maintenance { color: var(--warn); background: var(--warn-soft); }
.pin { color: var(--accent); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  font: 500 0.9rem/1 var(--font);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.list { display: grid; gap: 14px; }
.list .news-card { padding: 22px 26px; }

/* ── article ─────────────────────────────────────── */

.post { max-width: 780px; padding-top: 56px; }
.post h1 { margin-top: 16px; }
.prose { color: #d4dde3; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose code { background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; border-radius: var(--radius-sm); }
.prose strong { color: var(--text); }

/* ── contact ─────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.contact-aside { display: grid; gap: 18px; }
.form { display: grid; gap: 18px; padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--text);
  background: #0a111a;
  border: 1px solid #2e3a48;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form--narrow { max-width: 480px; }
.form--narrow p { margin: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* ── responsive ──────────────────────────────────── */

@media (max-width: 1000px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .grid--3, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 16px; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .notice-box { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .brand { letter-spacing: 0.22em; }
  .site-nav a { padding: 8px 10px; }
  .grid--5, .field-row { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 72px; padding-bottom: 72px; }
  .wordmark { letter-spacing: 0.14em; margin-right: -0.14em; }
  .section { margin-top: 64px; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
