/* autonomywars.com: the game's own look (Orbitron headings, Exo 2 text, dark steel, cyan and amber). */
@font-face { font-family: "Orbitron"; src: url("fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("fonts/Exo2.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
	--bg: #05090f;
	--bg2: #0a121c;
	--panel: #0e1824;
	--line: #1d3346;
	--text: #e6eef7;
	--dim: #93a6b8;
	--cyan: #59d9ff;
	--amber: #ffb83f;
	--red: #ff5a44;
	--blue: #3d7bff;
	--wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Exo 2", system-ui, sans-serif; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, .brand, .kicker, .btn, .num, .stat b, .chip { font-family: "Orbitron", sans-serif; letter-spacing: 0.04em; }
h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.kicker { color: var(--amber); font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 10px; }
.lead { font-size: 20px; color: #c9d7e4; max-width: 720px; }
.dim { color: var(--dim); }

/* Beta bar and navigation */
.beta-bar { background: linear-gradient(90deg, #3a1d00, #5a2c00, #3a1d00); color: #ffe2b0; text-align: center; font-size: 14px; padding: 7px 14px; }
.beta-bar strong { color: #fff; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 9, 15, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 18px; }
.brand img { width: 40px; height: 40px; }
.brand:hover { text-decoration: none; }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.links a { color: var(--dim); }
.links a:hover, .links a.on { color: var(--text); text-decoration: none; }
.links a.btn { color: #1a1000; }
.two > *, .lessons > *, .maps > *, .download > *, .rdetail > *, .features > *, .stats > * { min-width: 0; }
html, body { overflow-x: hidden; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 4px; background: linear-gradient(180deg, #ffc65a, #f29b12); color: #1a1000; font-weight: 800; font-size: 15px; text-transform: uppercase; border: 0; box-shadow: 0 0 0 1px #ffcf73 inset, 0 8px 30px rgba(255, 170, 40, 0.25); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.btn.small { padding: 9px 16px; font-size: 12px; }

/* Hero: the battle film behind the title */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero video.bg, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 9, 15, 0.95) 0%, rgba(5, 9, 15, 0.7) 45%, rgba(5, 9, 15, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero .emblem { width: 120px; margin-bottom: 18px; filter: drop-shadow(0 0 24px rgba(89, 217, 255, 0.45)); }
.hero .tag { color: var(--cyan); font-family: "Orbitron"; font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.badge { display: inline-block; font-family: "Orbitron"; font-size: 11px; letter-spacing: 0.14em; padding: 3px 8px; border: 1px solid var(--amber); color: var(--amber); border-radius: 3px; vertical-align: middle; }

/* Sections */
section { padding: 90px 0; }
section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.video { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(89, 217, 255, 0.08); }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.stat b { display: block; font-size: 34px; color: var(--cyan); line-height: 1.1; }
.stat span { color: var(--dim); font-size: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cyan); opacity: 0.7; }
.feature p { color: var(--dim); margin: 0; font-size: 15.5px; }

/* Lessons */
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 34px; }
.lesson { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lesson .body { padding: 18px 22px 22px; }
.lesson .num { color: var(--amber); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.lesson p { color: var(--dim); margin: 0; font-size: 15.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; font-size: 15px; color: var(--dim); }
.steps li::before { content: counter(s); display: block; font-family: "Orbitron"; font-size: 28px; color: var(--cyan); margin-bottom: 6px; }
.steps li b { color: var(--text); }
kbd { font-family: "Orbitron"; font-size: 12px; background: #dfe8f2; color: #0b1320; padding: 2px 7px; border-radius: 3px; box-shadow: 0 2px 0 #7d8b99; }

/* Robots */
.robots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 30px; }
.robot { background: radial-gradient(120% 80% at 50% 20%, #13263a 0%, var(--panel) 70%); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 16px; color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.robot:hover { transform: translateY(-3px); border-color: var(--cyan); text-decoration: none; }
.robot img { height: 150px; width: 100%; object-fit: contain; margin: 0 auto 8px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.robot .role { color: var(--amber); font-size: 13px; }
.robot .meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip { font-size: 10.5px; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 3px; background: #142436; color: #b9cadb; border: 1px solid var(--line); }
.chip.t1 { color: #9be7a6; } .chip.t2 { color: var(--cyan); } .chip.t3 { color: #ff9bd0; }
.chip.air { color: #ffd77a; }

/* Robot detail rows */
.rdetail { display: grid; grid-template-columns: 300px 1fr; gap: 34px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.rdetail .pics img { background: radial-gradient(90% 70% at 50% 40%, #18304a, #0b1520); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.rdetail h2 { margin-bottom: 4px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.numbers div { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; color: var(--dim); }
.numbers b { display: block; font-family: "Orbitron"; font-size: 17px; color: var(--text); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc h3 { font-size: 14px; letter-spacing: 0.12em; }
.pc .pro h3 { color: #7ee49b; } .pc .con h3 { color: #ff8d7a; }
.pc ul { margin: 0; padding-left: 18px; color: #c9d7e4; font-size: 15.5px; }
.pc li { margin-bottom: 5px; }
.vs { margin-top: 14px; font-size: 15px; color: var(--dim); }
.vs b { color: var(--text); }

/* Maps */
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.map { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #000; }
.map .body { padding: 18px 22px 22px; }
.map p { color: var(--dim); font-size: 15.5px; margin-bottom: 10px; }

/* Download */
.download { background: linear-gradient(135deg, #0f1f30, #0a131d); border: 1px solid #2a4964; border-radius: 8px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.download ol { padding-left: 20px; color: #c9d7e4; }
.download li { margin-bottom: 8px; }
.warn { border-left: 3px solid var(--amber); background: rgba(255, 184, 63, 0.07); padding: 14px 18px; border-radius: 4px; color: #e9d7b6; font-size: 15px; }

/* Text pages */
.page { padding: 60px 0 90px; }
.page h1 { font-size: clamp(30px, 4vw, 46px); }
.page h2 { font-size: 22px; margin-top: 34px; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 24px; }
.page th, .page td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--panel); font-family: "Orbitron"; font-size: 12px; letter-spacing: 0.06em; }
.page td { color: #c9d7e4; word-break: break-word; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; background: #04070c; }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start; }
footer img { width: 64px; }
footer .links { flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
footer .legal { color: #7f91a3; font-size: 13.5px; max-width: 820px; }
footer .legal strong { color: #cfdbe7; }

@media (max-width: 900px) {
	.two, .download, .rdetail { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr 1fr; }
	.lessons, .maps { grid-template-columns: 1fr; }
	.stats, .steps { grid-template-columns: 1fr 1fr; }
	.hide-sm { display: none; }
	section { padding: 60px 0; }
}
@media (max-width: 560px) {
	.features, .stats, .steps, .numbers, .pc { grid-template-columns: 1fr; }
	.links { gap: 12px; font-size: 14px; }
	.brand { font-size: 13px; gap: 8px; }
	.brand img { width: 30px; height: 30px; }
	.nav .btn.small { padding: 7px 10px; font-size: 10px; }
	.download { padding: 22px; }
	footer .wrap { grid-template-columns: 1fr; }
}
