:root {
  --bg: #0b1118;
  --panel: rgba(16, 24, 34, 0.84);
  --panel2: rgba(24, 35, 48, 0.8);
  --line: rgba(255,255,255,0.12);
  --text: #f6ead4;
  --muted: #b7c0c9;
  --gold: #d59b42;
  --blue: #3da0ff;
  --red: #c54b45;
  --green: #70d07d;
  --shadow: 0 28px 80px rgba(0,0,0,.46);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at top left, #172231 0, var(--bg) 42%, #06090d 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 64px);
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #32210d, #c88d34 55%, #ffe0a4);
  color: #101010; font-weight: 900; letter-spacing: -1px;
  box-shadow: 0 10px 28px rgba(213,155,66,.24);
}
.brand strong { display: block; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
nav { display: flex; gap: 18px; color: var(--muted); }
nav a:hover { color: var(--text); }
.hero {
  position: relative; overflow: hidden;
  min-height: 760px;
  display: grid; grid-template-columns: 1fr minmax(320px, 660px); gap: 40px;
  padding: 72px clamp(16px, 4vw, 64px) 48px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,14,20,.96), rgba(10,14,20,.76), rgba(10,14,20,.5)), url('/assets/previews/gameplay_preview.png') center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
  opacity: .72;
}
.hero::after {
  content:""; position:absolute; inset:auto 0 0 0; height: 220px;
  background: linear-gradient(transparent, var(--bg)); pointer-events:none;
}
.hero-content, .hero-card { position: relative; z-index: 1; }
.hero-content { align-self: center; max-width: 720px; }
.pill, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffe5b8; background: rgba(213,155,66,.16);
  border: 1px solid rgba(213,155,66,.28);
  border-radius: 999px; padding: 8px 12px;
  font-weight: 700; letter-spacing: .04em;
}
h1 { font-size: clamp(42px, 7vw, 94px); line-height: .95; margin: 20px 0; letter-spacing: -0.06em; }
.hero p, .section-head p, .status-grid p, .hint, footer { color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.btn, button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; border-radius: 12px;
  padding: 12px 18px; border: 1px solid var(--line);
  color: var(--text); background: rgba(255,255,255,.06);
  cursor: pointer; font-weight: 800;
}
.btn.primary, button:hover { background: linear-gradient(135deg, #a9671b, #d59b42); color: #160d05; border-color: transparent; }
button.secondary { background: rgba(255,255,255,.06); color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.metrics div, .status-grid article, .control-panel, .canvas-card, .gallery-grid figure, .hero-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.metrics div { padding: 16px; }
.metrics strong { display:block; font-size: 30px; color: var(--gold); }
.metrics span { color: var(--muted); }
.hero-card { align-self: center; overflow: hidden; }
.hero-card figcaption, .gallery-grid figcaption { padding: 12px 14px; color: var(--muted); border-top: 1px solid var(--line); }
.section { padding: 72px clamp(16px, 4vw, 64px); }
.section-head { max-width: 820px; margin-bottom: 28px; }
.section h2 { font-size: clamp(30px, 4vw, 56px); margin: 16px 0 8px; letter-spacing: -0.04em; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: stretch; }
.canvas-card { position: relative; overflow: hidden; background: #10161d; }
#siegeCanvas { width: 100%; height: auto; display: block; background: #1b261c; }
.demo-hud {
  position: absolute; left: 16px; right: 16px; top: 16px;
  display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
}
.demo-hud span { background: rgba(0,0,0,.55); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; font-weight: 800; }
.control-panel { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.control-panel h3 { margin: 10px 0 2px; color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-grid figure { margin: 0; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #090d12; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.status-grid article { padding: 22px; }
.status-grid h3 { margin: 0 0 12px; color: var(--gold); }
ol { padding-left: 20px; color: var(--muted); line-height: 1.8; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px clamp(16px, 4vw, 64px); border-top: 1px solid var(--line); background: rgba(0,0,0,.3); }
@media (max-width: 980px) {
  .hero, .demo-layout, .status-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { display: none; }
}
@media (max-width: 620px) {
  .gallery-grid, .metrics { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; min-height: auto; }
  .section { padding-block: 46px; }
}
