/* Astra website (and the wiki's base). No web fonts: the system's own, so nothing is loaded from elsewhere. */
:root {
  --bg: #0b0f17;
  --panel: #131a26;
  --panel-2: #182132;
  --text: #eef2f8;
  --muted: #a6b0c2;
  --mint: #5ce0a8;
  --gold: #f6c75a;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--mint); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mint); color: #062317; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 12px 28px;
  background: rgba(11, 15, 23, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font-size: 20px; padding: 4px 12px; cursor: pointer; }

.lang { color: var(--text); text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, color .2s; }
.lang:hover, .lang:focus-visible { color: var(--mint); border-color: var(--mint); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--mint); color: #062317; font-weight: 800; text-decoration: none; font-size: 16px; box-shadow: 0 10px 30px rgba(92, 224, 168, 0.25);
  transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(92, 224, 168, 0.35); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-big { padding: 18px 40px; font-size: 19px; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

/* hero: the 3D cube behind the words, the creatures walking at the bottom */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: 110px 6vw 230px; overflow: hidden; background: radial-gradient(1200px 700px at 75% 35%, #1d3550 0%, transparent 60%), linear-gradient(180deg, #0e1a2b 0%, #0b0f17 70%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: 12vw; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 199, 90, .18), transparent 65%); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
.hero-text { position: relative; z-index: 2; max-width: 620px; pointer-events: none; }
.hero-text a, .hero-text .actions { pointer-events: auto; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(92, 224, 168, 0.12); color: var(--mint); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.hero h1 { margin: 18px 0 0; }
.wordmark { width: min(520px, 80vw); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); animation: rise .9s ease-out both; }
.tagline { color: var(--gold); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 14px; margin: 6px 0 0; }
.lead { font-size: 20px; color: #d6dce8; max-width: 540px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 18px; opacity: .8; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; }
.facts li { display: grid; }
.facts b { font-size: 24px; line-height: 1.1; color: var(--text); }
.facts span { color: var(--muted); font-size: 13px; }
.parade { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 210px; z-index: 1; cursor: pointer; }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.section h2, .split h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: linear-gradient(180deg, var(--panel), #101622); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(92, 224, 168, .35); }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.icon { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(92, 224, 168, 0.1); }
.split { max-width: 1240px; margin: 0 auto; padding: 70px 24px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; }
.split.reverse > img { order: 2; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.split img.shot-ui { background: #0b0f17; }
.card > .kicker { display: block; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.chapters { counter-reset: c; list-style: none; padding: 0; display: grid; gap: 10px; }
.chapters li { counter-increment: c; display: flex; gap: 12px; align-items: baseline; }
.chapters li::before { content: counter(c); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--gold); font-weight: 800; font-size: 14px; }
.ticks { padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 10px; }

/* the creature viewer */
.viewer { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; background: linear-gradient(180deg, #121c2c, #0f1520); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.viewer-canvas { width: 100%; height: 480px; display: block; cursor: grab; touch-action: pan-y; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-ui { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.viewer-head { display: flex; align-items: center; gap: 12px; }
.viewer-head h3 { margin: 0; font-size: 28px; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--panel-2); font-size: 13px; color: var(--muted); }
.chip.hostile, .chip.aggressive { color: #ff8a8a; }
.chip.passive, .chip.shy { color: var(--mint); }
.chip.neutral { color: var(--gold); }
.anim-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.anim-buttons button, .mob-list button { font: 600 14px var(--font); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.anim-buttons button.on, .mob-list button.on { border-color: var(--mint); color: var(--mint); }
.anim-buttons button:hover, .mob-list button:hover { background: #22304a; }
.mob-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 230px; overflow: auto; padding-right: 4px; }
.mob-list button { padding: 6px 10px; font-size: 13px; }

/* trailers, gallery */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
.videos figure { margin: 0; }
.videos video { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.videos figcaption { color: var(--muted); margin-top: 8px; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }
.lightbox .close { position: fixed; top: 18px; right: 22px; font-size: 26px; background: none; color: #fff; border: 0; cursor: pointer; }

/* download, faq, footer */
.download { text-align: center; }
.download .sub { margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 26px; text-align: left; }
.steps div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(92, 224, 168, .15); color: var(--mint); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 30px; text-align: left; }
.specs div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.specs span { color: var(--muted); font-size: 15px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
.footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; padding: 40px 24px; color: var(--muted); border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }

/* scroll reveal (main.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav { gap: 12px; padding: 10px 16px; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 4px; }
  .nav > .btn-small { display: none; }
  .lang { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 96px 20px 220px; text-align: left; }
  .split, .viewer { grid-template-columns: 1fr; }
  .split.reverse > img { order: 0; }
  .viewer-ui { padding: 0 20px 24px; }
  .viewer-canvas { height: 380px; }
  .videos { grid-template-columns: 1fr; }
  .section { padding: 72px 16px; }
}
