:root {
  --bg: #050b13;
  --bg-soft: #081220;
  --panel: rgba(13, 27, 45, 0.86);
  --panel-solid: #0d1b2d;
  --panel-raised: #12243a;
  --line: rgba(119, 215, 255, 0.17);
  --line-strong: rgba(119, 215, 255, 0.36);
  --text: #ecf7ff;
  --muted: #99afc1;
  --accent: #28a9ff;
  --accent-2: #77d7ff;
  --good: #52d273;
  --warn: #ffbd4a;
  --danger: #ff6476;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(40,169,255,.16), transparent 31rem),
    radial-gradient(circle at 92% 18%, rgba(50,98,170,.13), transparent 28rem),
    linear-gradient(180deg, #07111d 0%, #050a12 52%, #04080e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: white; }
button, input { font: inherit; }
code, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 999;
  background: white; color: #000; padding: .7rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 19, .78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: auto; min-height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 40px; height: 40px; border: 1px solid rgba(119,215,255,.42); border-radius: 12px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #163a58, #091421 68%);
  box-shadow: inset 0 0 22px rgba(40,169,255,.2), 0 8px 28px rgba(0,0,0,.35);
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--accent-2); }
.brand-mark::before { width: 24px; height: 4px; box-shadow: 0 8px 0 rgba(119,215,255,.48), 0 -8px 0 rgba(119,215,255,.25); }
.brand-mark::after { width: 4px; height: 26px; opacity: .65; }
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: white; z-index: 2; box-shadow: 0 0 12px var(--accent-2); }
.brand-copy small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #b8cad8; padding: .58rem .72rem; border-radius: 10px; font-size: .92rem; font-weight: 650;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(40,169,255,.1); color: white; }
.nav-toggle {
  display: none; border: 1px solid var(--line-strong); color: white; background: transparent;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}
main { min-height: 70vh; }
.container { max-width: var(--max); margin: auto; padding: 0 24px; }
.hero { padding: 88px 0 58px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -100px; top: 70px; width: 460px; height: 460px;
  background: repeating-radial-gradient(circle, rgba(40,169,255,.11) 0 1px, transparent 2px 25px);
  opacity: .38; mask-image: linear-gradient(90deg, transparent, black);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--accent-2); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); max-width: 930px; margin: 18px 0 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 16px; }
h3 { font-size: 1.22rem; }
.hero-copy { max-width: 760px; color: #b8cad8; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: .75rem 1.05rem; border-radius: 11px; border: 1px solid var(--line-strong);
  color: white; background: rgba(255,255,255,.025); font-weight: 800; transition: .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(119,215,255,.72); background: rgba(40,169,255,.08); }
.button.primary { color: #00131f; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; }
.button.primary:hover { color: #00131f; box-shadow: 0 12px 34px rgba(40,169,255,.25); }
.release-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 58px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line);
  box-shadow: var(--shadow);
}
.stat { background: rgba(8,18,32,.94); padding: 20px; min-width: 0; }
.stat-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.stat-value { display: block; margin-top: 5px; font-size: 1.05rem; font-weight: 850; overflow-wrap: anywhere; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--good); box-shadow: 0 0 12px var(--good); }
.section { padding: 72px 0; }
.section.compact { padding: 48px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); max-width: 650px; margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: linear-gradient(145deg, rgba(18,36,58,.78), rgba(8,18,32,.92));
  box-shadow: 0 18px 52px rgba(0,0,0,.18);
}
.card p { color: var(--muted); }
.card h3 { margin-top: 0; }
.card-link { display: block; color: inherit; transition: transform .18s ease, border-color .18s ease; }
.card-link:hover { color: inherit; transform: translateY(-3px); border-color: rgba(119,215,255,.48); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { border: 1px solid var(--line); color: #a9c7dc; border-radius: 999px; padding: .25rem .55rem; font-size: .72rem; font-weight: 750; }
.feature-category { margin: 58px 0; }
.feature-category:first-child { margin-top: 0; }
.feature-card { display: grid; grid-template-columns: minmax(210px, .78fr) 1.2fr; gap: 26px; align-items: stretch; }
.feature-copy ul, .docs-block ul, .trouble-card ol { padding-left: 1.15rem; color: #b8cad8; }
.visual {
  min-height: 210px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 40% 20%, rgba(40,169,255,.12), transparent 55%), #07111d;
  position: relative; padding: 18px; display: flex; flex-direction: column; justify-content: center;
}
.visual .mini-title { color: #dff5ff; font-weight: 850; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.visual .mini-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px;
  background: rgba(15,34,54,.88); border: 1px solid rgba(119,215,255,.15); border-radius: 8px; padding: 8px 10px; margin: 4px 0;
  font-size: .72rem; color: #cae1ef;
}
.visual .mini-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px currentColor; }
.visual .mini-badge { font-family: monospace; color: var(--accent-2); }
.visual .map-grid {
  position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(119,215,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(119,215,255,.15) 1px, transparent 1px);
  background-size: 27px 27px;
}
.visual .ring { position: absolute; border: 2px solid rgba(40,169,255,.52); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.visual .ring.r1 { width: 55px; height: 55px; }
.visual .ring.r2 { width: 110px; height: 110px; opacity: .65; }
.visual .ring.r3 { width: 170px; height: 170px; opacity: .3; }
.visual .pin { position: absolute; width: 13px; height: 13px; background: var(--danger); border: 3px solid white; border-radius: 50%; left: 47%; top: 47%; box-shadow: 0 0 18px var(--danger); }
.bookmark-row { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.bookmark { padding: 6px 9px; border-radius: 7px; background: #14304b; border: 1px solid #2b75a7; font-weight: 850; font-size: .72rem; }
.big-number { font-size: 2.4rem; font-weight: 900; letter-spacing: -.05em; color: var(--accent-2); }
.payout-banner { border: 1px solid rgba(255,189,74,.45); padding: 18px; background: linear-gradient(135deg, rgba(255,189,74,.18), rgba(255,80,90,.08)); text-align: center; }
.payout-banner strong { font-size: 1.5rem; display: block; }
.mode-devices { display: flex; align-items: end; justify-content: center; gap: 12px; }
.device { border: 2px solid #6c8fa8; border-radius: 8px; background: #0e1d2d; box-shadow: inset 0 0 0 4px #07111d; }
.device.desktop { width: 145px; height: 88px; }
.device.tablet { width: 92px; height: 68px; }
.device.phone { width: 36px; height: 68px; border-radius: 9px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.theme-card { padding: 0; overflow: hidden; }
.theme-preview { min-height: 260px; padding: 22px; position: relative; display: grid; align-content: center; }
.theme-preview::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 28px 28px;
}
.theme-ui { position: relative; z-index: 1; max-width: 360px; margin: auto; border: 1px solid currentColor; padding: 11px; box-shadow: 0 16px 35px rgba(0,0,0,.42); }
.theme-ui .bar { height: 12px; opacity: .82; margin-bottom: 9px; background: currentColor; }
.theme-ui .theme-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.theme-ui .theme-buttons span { height: 34px; border: 1px solid currentColor; background: rgba(255,255,255,.05); }
.theme-map-command { background: #07111f; color: #77d7ff; }
.theme-cyberpunk { background: #09020f; color: #00f0ff; }
.theme-cyberpunk .bar { background: #fcee09; }
.theme-fallout { background: #071008; color: #76ff70; font-family: monospace; }
.theme-umbrella { background: #07090d; color: #f1f3f5; }
.theme-umbrella .bar { background: #ed1c24; }
.theme-factorio { background: #16130f; color: #e79227; }
.theme-info { padding: 22px; }
.palette { display: flex; gap: 7px; margin-top: 14px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.search-box {
  width: min(100%, 430px); background: #07111d; color: white; border: 1px solid var(--line-strong);
  padding: .82rem 1rem; border-radius: 11px; outline: none;
}
.search-box:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(40,169,255,.12); }
.shortcut-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.shortcut { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(8,18,32,.75); }
kbd { min-width: 34px; text-align: center; padding: .34rem .48rem; border: 1px solid rgba(119,215,255,.4); border-bottom-width: 3px; border-radius: 7px; background: #12243a; color: white; font-weight: 900; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 34px; }
.docs-nav { position: sticky; top: 98px; align-self: start; }
.docs-nav a { display: block; color: var(--muted); padding: .48rem .6rem; border-left: 2px solid var(--line); }
.docs-nav a:hover { color: white; border-color: var(--accent); }
.docs-block { padding: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.docs-block:first-child { padding-top: 0; }
.docs-block h2 { font-size: 2rem; }
.docs-block h3 { margin-top: 28px; color: var(--accent-2); }
.callout { border-left: 3px solid var(--accent); padding: 14px 18px; background: rgba(40,169,255,.07); color: #bed4e3; border-radius: 0 10px 10px 0; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.status-table th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.health { display: inline-flex; align-items: center; gap: 7px; }
.health::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.changelog-release { border-left: 1px solid var(--line-strong); padding: 0 0 34px 28px; position: relative; }
.changelog-release::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.changelog-release h2 { font-size: 1.8rem; }
.changelog-release h3 { color: var(--accent-2); margin-top: 24px; }
.changelog-release li { color: #b8cad8; margin: .42rem 0; }
.footer { border-top: 1px solid var(--line); padding: 42px 0; margin-top: 60px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 26px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.page-hero { padding: 66px 0 34px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: center; }
.pipeline-step { position: relative; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px 10px; min-height: 88px; display: grid; place-items: center; background: rgba(8,18,32,.75); font-size: .78rem; font-weight: 850; }
.pipeline-step:not(:last-child)::after { content: "→"; position: absolute; right: -12px; color: var(--accent-2); z-index: 2; }
.issue-card { border-left: 3px solid var(--good); }
.issue-card.watch { border-left-color: var(--warn); }
.no-results { color: var(--muted); padding: 20px; border: 1px dashed var(--line-strong); border-radius: 12px; display: none; }
@media (max-width: 980px) {
  .release-strip { grid-template-columns: repeat(2,1fr); }
  .grid.three { grid-template-columns: repeat(2,1fr); }
  .feature-card { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2,1fr); }
  .pipeline { grid-template-columns: repeat(3,1fr); }
  .pipeline-step:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 20px 20px;
    background: rgba(5,11,19,.98); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { padding: .78rem; }
  .brand-copy small { display: none; }
  .hero { padding-top: 64px; }
  .release-strip, .grid.three, .grid.two, .theme-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 10px; }
  .docs-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid var(--line); }
  .pipeline { grid-template-columns: repeat(2,1fr); }
  .pipeline-step:nth-child(3)::after { display: block; }
  .pipeline-step:nth-child(even)::after { display: none; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 18px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 48px; }
  .release-strip, .shortcut-grid, .pipeline { grid-template-columns: 1fr; }
  .pipeline-step::after { display: none !important; }
  .card { padding: 19px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
