:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(9, 14, 24, 0.78);
  --line: rgba(125, 231, 255, 0.18);
  --text: #edf8ff;
  --muted: #8ea7b7;
  --cyan: #7de7ff;
  --green: #7affb8;
  --gold: #ffe19b;
  --rose: #ff6cae;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(125, 231, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 18% 78%, rgba(255, 108, 174, 0.13), transparent 26rem),
    linear-gradient(180deg, #05070d 0%, #080b13 54%, #030409 100%);
  color: var(--text);
  font-family: Rajdhani, Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(125, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 231, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px);
  opacity: 0.13;
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.86), rgba(5, 7, 13, 0.52));
  border-bottom: 1px solid rgba(125, 231, 255, 0.12);
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
}

.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(125, 231, 255, 0.28)); }

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #b8cedb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-links a { opacity: 0.82; transition: color 0.18s ease, opacity 0.18s ease; }
.nav-links a:hover { color: var(--cyan); opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(125, 231, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(125, 231, 255, 0.12), rgba(10, 18, 32, 0.2));
  color: #effbff;
  box-shadow: inset 0 0 24px rgba(125, 231, 255, 0.06), 0 0 24px rgba(125, 231, 255, 0.08);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 255, 184, 0.62);
  box-shadow: inset 0 0 24px rgba(122, 255, 184, 0.08), 0 0 28px rgba(122, 255, 184, 0.14);
}

.btn.gold { border-color: rgba(255, 225, 155, 0.42); color: var(--gold); }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.76) 32%, rgba(5, 7, 13, 0.18) 72%), url("assets/iron-crawl-key-art.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.studio-hero,
.studio-page-hero {
  background:
    radial-gradient(circle at 74% 42%, rgba(125, 231, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 24% 66%, rgba(255, 225, 155, 0.12), transparent 22rem),
    linear-gradient(135deg, #05070d 0%, #09111d 48%, #030409 100%);
}

.studio-hero::before,
.studio-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 225, 155, 0.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(125, 231, 255, 0.04) 0 1px, transparent 1px 90px);
  opacity: 0.74;
}

.studio-orbit {
  position: absolute;
  right: max(4vw, 28px);
  top: 15vh;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  z-index: -1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 231, 255, 0.18);
  border-radius: 50%;
  opacity: 0.58;
  animation: orbitPulse 9s ease-in-out infinite alternate;
}

.studio-orbit::before,
.studio-orbit::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 225, 155, 0.16);
  border-radius: 50%;
  transform: rotate(24deg) scaleX(1.18);
}

.studio-orbit::after {
  inset: 26%;
  border-color: rgba(122, 255, 184, 0.18);
  transform: rotate(-18deg) scaleX(1.32);
}

.studio-orbit img {
  width: 46%;
  filter: drop-shadow(0 0 32px rgba(125, 231, 255, 0.28));
}

@keyframes orbitPulse {
  from { transform: translate3d(0, -8px, 0) rotate(-3deg); }
  to { transform: translate3d(0, 10px, 0) rotate(5deg); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(-8px, -4px, 0); }
  to { transform: scale(1.08) translate3d(10px, 6px, 0); }
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 92px;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero-logo {
  width: min(720px, 100%);
  margin: 24px 0 18px;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,0.45));
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(125, 231, 255, 0.28);
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 28px;
  color: #bed1dd;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.35;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.02;
  text-transform: uppercase;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.84), rgba(5, 8, 15, 0.72));
  box-shadow: inset 0 0 32px rgba(125, 231, 255, 0.035);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(125, 231, 255, 0.08), transparent);
  transform: translateX(-120%);
  animation: scan 7s ease-in-out infinite;
}

@keyframes scan {
  0%, 46% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}

.panel b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.panel p { margin: 0; font-size: 16px; }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 26px;
  align-items: stretch;
}

.game-media {
  min-height: 420px;
  border: 1px solid rgba(255, 225, 155, 0.18);
  border-radius: 8px;
  background: url("assets/iron-crawl-key-art.jpg") center / cover;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
}

.game-info {
  padding: 28px;
  border: 1px solid rgba(125, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.82);
}

.feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 155, 0.2);
  border-radius: 8px;
  background: rgba(7, 11, 19, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.feature-art {
  min-height: 360px;
  background:
    linear-gradient(90deg, transparent, rgba(5, 7, 13, 0.18)),
    url("assets/iron-crawl-key-art.jpg") center / cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10, 16, 27, 0.92), rgba(5, 8, 15, 0.82));
}

.feature-copy strong {
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}

.feature-copy small {
  color: #b9ceda;
  font-size: 18px;
  line-height: 1.45;
}

.feature-copy em {
  color: var(--gold);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.feature-link:hover .feature-copy em { color: var(--green); }

.split,
.game-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.compact-section { padding-top: 42px; }

.facts.large {
  align-self: stretch;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(125, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.76);
  box-shadow: inset 0 0 34px rgba(125, 231, 255, 0.045);
}

.facts.large span:last-child { border-bottom: 0; }

.game-hero .hero-art {
  background-image:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.76) 36%, rgba(5, 7, 13, 0.24) 74%),
    url("assets/iron-crawl-key-art.jpg");
}

.game-title {
  margin: 0 0 10px;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  text-transform: uppercase;
}

.facts {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  color: #c6d8e2;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.facts span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(125, 231, 255, 0.12);
}

.facts em { color: var(--green); font-style: normal; }

.contact-band {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid rgba(122, 255, 184, 0.2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(122, 255, 184, 0.1), rgba(125, 231, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer {
  border-top: 1px solid rgba(125, 231, 255, 0.12);
  padding: 32px 0;
  color: #7892a4;
}

.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.privacy-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 72px;
}

.privacy-page h1,
.privacy-page h2 {
  font-family: Orbitron, Rajdhani, sans-serif;
  text-transform: uppercase;
}

.privacy-page h1 { font-size: clamp(32px, 6vw, 58px); }
.privacy-page h2 { margin-top: 34px; color: var(--cyan); }
.privacy-page p,
.privacy-page li { color: #b9cad4; font-size: 18px; line-height: 1.58; }
.privacy-page a { color: var(--gold); }

@media (max-width: 820px) {
  .nav { min-height: 68px; }
  .brand { letter-spacing: 2px; font-size: 13px; }
  .brand img { width: 34px; height: 34px; }
  .nav-links { gap: 12px; font-size: 11px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-inner { padding-bottom: 64px; }
  .grid,
  .game-card,
  .feature-link,
  .split,
  .game-page-grid { grid-template-columns: 1fr; }
  .studio-orbit {
    width: min(82vw, 420px);
    right: -18vw;
    top: 12vh;
    opacity: 0.34;
  }
  .feature-link { min-height: 0; }
  .game-media { min-height: 300px; }
  .contact-band { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
