/* VOLTERRA: Machine Siege – site styles. Self-hosted, system fonts only. */
:root {
  --bg: #07090c;
  --bg-2: #0d1218;
  --panel: #111922;
  --line: #1f2d3a;
  --text: #dbe4ec;
  --muted: #9aabba;
  --accent: #3fd6f2;
  --accent-strong: #7fe8fb;
  --accent-dim: #0f3a46;
  --orange: #ff9a3c;
  --radius: 10px;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, .btn-play:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--accent-dim);
  color: var(--accent-strong);
  padding: 0 .3em;
  border-radius: 4px;
  font-size: .95em;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 16px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, .92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; letter-spacing: .18em; font-size: .95rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand small {
  display: block; color: var(--orange); font-size: .62rem; letter-spacing: .3em; font-weight: 700;
}
.site-nav { display: flex; gap: 14px; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,9,12,.55) 0%, rgba(7,9,12,.75) 55%, var(--bg) 100%),
    url("img/01_fortress_assault.jpg") center / cover no-repeat;
  padding: 56px 0 48px;
  text-align: center;
}
.hero-icon {
  width: 96px; height: 96px; margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 0 40px rgba(63, 214, 242, .35);
}
.logo {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 24px rgba(63, 214, 242, .45);
}
.logo span {
  display: block;
  font-size: clamp(.95rem, 4.2vw, 1.5rem);
  letter-spacing: .38em;
  color: var(--orange);
  margin-top: .45em;
  text-shadow: none;
}
.pitch {
  max-width: 34em;
  margin: 22px auto 28px;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  color: #eef4f8;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  background: #000;
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .95rem;
  box-shadow: 0 0 0 1px rgba(63,214,242,.15), 0 0 22px rgba(63,214,242,.25);
  transition: box-shadow .15s, transform .15s;
}
.btn-play:hover {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(63,214,242,.4), 0 0 30px rgba(63,214,242,.45);
  transform: translateY(-1px);
}
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play .lbl { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.btn-play .lbl small { font-size: .66rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.btn-play .lbl b { font-size: 1.05rem; letter-spacing: .04em; }

.hero-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--accent); margin-top: 10px; border-radius: 2px;
}
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.feature p { margin: 0; color: var(--text); }
.feature .tag {
  display: inline-block; margin-bottom: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  color: var(--orange);
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } }
.shots figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.shots li.wide { grid-column: 1 / -1; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(63,214,242,.12), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta p { color: var(--muted); margin: 0 auto 22px; max-width: 34em; }

/* ---------- Document pages (privacy, terms, delete) ---------- */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 780px; }
.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1.2;
  color: #fff;
}
.doc h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
  color: var(--accent-strong);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.doc h2:first-of-type { border-top: 0; }
.doc .meta { color: var(--muted); font-size: .92rem; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc strong { color: #fff; }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.placeholder {
  background: rgba(255, 154, 60, .12);
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffd2a6;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0; }
.notfound .code {
  font-size: clamp(4rem, 22vw, 8rem); font-weight: 900; line-height: 1;
  color: var(--accent); text-shadow: 0 0 30px rgba(63,214,242,.4); margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px 0 36px;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer nav ul {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 4px 0; }

@media (max-width: 420px) {
  .site-nav { gap: 10px; font-size: .82rem; }
  .brand { font-size: .82rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-play { transition: none; }
}
.cta .section-title::after { margin-left: auto; margin-right: auto; }
