:root {
  color-scheme: dark;
  --bg: #080b0c;
  --panel: #111819;
  --panel-2: #16201f;
  --text: #f4f5ef;
  --muted: #bac5bd;
  --line: rgba(244, 245, 239, 0.16);
  --green: #75d39b;
  --ember: #f1a35a;
  --blue: #87b7d8;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 11, 12, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

nav a {
  padding: 8px 2px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 6vw, 84px) 64px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 12, 0.96) 0%, rgba(8, 11, 12, 0.78) 34%, rgba(8, 11, 12, 0.18) 72%),
    linear-gradient(0deg, rgba(8, 11, 12, 0.94) 0%, rgba(8, 11, 12, 0.08) 34%),
    url("assets/rtgames-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.5rem, 14vw, 9rem);
  max-width: 100%;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-copy,
.section-copy p,
.intro p,
.contact p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #06100b;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.intro,
.game-section,
.studio,
.contact {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  background: #0d1111;
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li,
.principles p,
.stats div {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px var(--shadow);
}

.feature-list strong,
.principles strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.game-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(94, 12, 14, 0.34), transparent 38%),
    linear-gradient(315deg, rgba(117, 211, 155, 0.08), transparent 32%),
    #100f10;
}

.infamous-logo {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 4px 0 20px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.52));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stats {
  display: grid;
  gap: 14px;
}

.stats span {
  display: block;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.stats strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 7vw, 84px);
  background: #080b0c;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles p {
  margin: 0;
}

.contact {
  background: var(--panel-2);
}

footer {
  padding: 24px clamp(20px, 6vw, 84px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    gap: 8px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    height: 42px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 56px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(8, 11, 12, 0.97) 0%, rgba(8, 11, 12, 0.72) 74%),
      linear-gradient(0deg, rgba(8, 11, 12, 0.96) 0%, rgba(8, 11, 12, 0.18) 38%),
      url("assets/rtgames-hero.png") center / cover no-repeat;
  }

  .intro,
  .game-section,
  .studio {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
