:root {
  --bg: #07080d;
  --bg-soft: rgba(255,255,255,0.04);
  --bg-panel: rgba(10, 12, 18, 0.84);
  --bg-panel-2: rgba(14, 16, 24, 0.92);
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f3f4f7;
  --muted: #b7bdc9;
  --gold: #f1c878;
  --gold-2: #ffda95;
  --violet: #8072ff;
  --red: #bb556e;
  --shadow: 0 18px 44px rgba(0,0,0,0.42);
  --container: 1200px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(241, 200, 120, 0.08), transparent 16%),
    radial-gradient(circle at 80% 8%, rgba(128, 114, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #0a0b11 0%, #08090e 36%, #06070b 100%);
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.page-noise,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.page-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}
.page-glow {
  filter: blur(50px);
  opacity: 0.7;
}
.glow-left {
  background: radial-gradient(circle, rgba(241, 200, 120, 0.18), transparent 60%);
  width: 320px;
  height: 320px;
  top: 8%;
  left: 4%;
}
.glow-right {
  background: radial-gradient(circle, rgba(128, 114, 255, 0.22), transparent 60%);
  width: 360px;
  height: 360px;
  top: 10%;
  right: 3%;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 16, 0.74);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gold-2);
  background: linear-gradient(135deg, rgba(241,200,120,0.18), rgba(128,114,255,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  color: #1b1408;
  background: linear-gradient(135deg, var(--gold-2), #f1b95d);
  box-shadow: 0 16px 30px rgba(241, 200, 120, 0.24);
}
.btn-secondary {
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.section-first { padding-top: 62px; }
.section { padding: 42px 0 76px; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.section-kicker {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head {
  margin-bottom: 26px;
}
.section h2,
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.section p,
.section-head p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-grid,
.two-col,
.controls-layout,
.author-box {
  display: grid;
  gap: 28px;
}
.hero-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(241, 200, 120, 0.08);
  border: 1px solid rgba(241, 200, 120, 0.18);
  color: #f8dfab;
  margin-bottom: 16px;
}
.hero-text,
.hero-subtext {
  max-width: 64ch;
}
.hero-subtext { color: #d1d6e2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.stat-card,
.panel-card,
.how-card,
.controls-card,
.cta-box,
.author-box {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
}
.stat-card span,
.panel-label,
.screen-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-card strong { font-size: 1rem; }

.hero-copy,
.hero-media,
.panel-grid,
.screens-gallery,
.controls-layout,
.author-box {
  min-width: 0;
}
.hero-media {
  position: relative;
}
.screenshot-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #090b11;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.screenshot-frame:hover {
  text-decoration: none;
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.hero-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-image-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  color: #1b1408;
  background: linear-gradient(135deg, var(--gold-2), #f1b95d);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  font-weight: 800;
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: start;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.panel-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}
.panel-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.panel-card p {
  margin: 0;
  font-size: 0.96rem;
}

.section-head-tight {
  margin-bottom: 18px;
}

.screens-gallery {
  display: grid;
  /* Exact proportions for two 1672×941 images stacked beside one 941×1672 image. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6334855fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 1.4512156 / 1;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #080a0f;
  box-shadow: var(--shadow);
}
.gallery-tile {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #080a0f;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gallery-combat {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 1672 / 941;
}
.gallery-arsenal {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 1672 / 941;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gallery-mobile {
  grid-column: 2;
  grid-row: 1 / span 2;
  aspect-ratio: 941 / 1672;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.gallery-mobile img {
  object-position: center center;
}
.gallery-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5, 7, 11, 0.76);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.gallery-caption strong {
  display: block;
  color: #f5f6f8;
  font-size: 0.98rem;
  line-height: 1.25;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.how-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.how-step {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241,200,120,0.16), rgba(128,114,255,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gold-2);
  font-weight: 800;
  margin-bottom: 16px;
}
.how-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}
.how-card p { margin: 0; }

.controls-layout {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.controls-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}
.controls-card h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}
.controls-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.controls-list li {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.controls-list strong { color: #f2f4f8; }
.controls-list span {
  color: var(--muted);
  line-height: 1.55;
}

.cta-section { padding-top: 50px; }
.cta-box {
  padding: 30px;
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(120deg, rgba(241,200,120,0.10), rgba(128,114,255,0.10)),
    rgba(12, 14, 21, 0.94);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.author-box {
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
}
.author-mark {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(241,200,120,0.16), rgba(128,114,255,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gold-2);
  font-size: 2rem;
  font-weight: 800;
}

.footer {
  padding: 28px 0 40px;
}
.footer-inner {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer p { margin: 0; }

@media (max-width: 1160px) {
  .hero-grid,
  .two-col,
  .how-grid,
  .controls-layout,
  .author-box {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .screens-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    border-radius: 22px;
  }
  .gallery-combat,
  .gallery-arsenal,
  .gallery-mobile {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: auto;
    border-left: 0;
  }
  .gallery-arsenal,
  .gallery-mobile {
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .gallery-tile img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .gallery-caption {
    left: 10px;
    bottom: 10px;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .topbar-cta {
    margin-left: auto;
  }

  .topbar-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
  .hero-copy h1 {
    max-width: 14ch;
  }
  .hero-stats,
  .panel-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .topbar-inner {
    min-height: 68px;
    flex-wrap: nowrap;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .hero-image-cta {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
  .container {
    width: min(calc(100% - 24px), var(--container));
  }
  .section-first { padding-top: 40px; }
  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .controls-list li {
    grid-template-columns: 1fr;
  }
  .cta-box,
  .author-box {
    padding: 24px;
  }
  .author-box {
    grid-template-columns: 1fr;
  }
  .author-mark {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }
}
