:root {
  --ink: #08131a;
  --text: #dce7e6;
  --muted: #8fa3a2;
  --paper: #f5f0e7;
  --panel: #101d25;
  --panel-2: #142833;
  --line: rgba(220, 231, 230, 0.16);
  --teal: #18d7c4;
  --amber: #f0a64a;
  --coral: #e06c52;
  --cream: #fff8ea;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--cream);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(8, 19, 26, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(330px, 54vw);
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 7px;
  padding: 10px 12px;
  color: rgba(255, 248, 234, 0.84);
  font-size: 0.93rem;
  font-weight: 780;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 248, 234, 0.12);
  color: var(--cream);
  outline: none;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 19, 26, 0.95), rgba(8, 19, 26, 0.72) 42%, rgba(8, 19, 26, 0.2)),
    linear-gradient(0deg, rgba(8, 19, 26, 0.95), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 82svh;
  width: min(820px, calc(100% - 36px));
  flex-direction: column;
  justify-content: center;
  padding: 156px 0 120px clamp(18px, 7vw, 86px);
}

.eyebrow,
.label {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 7.1rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--cream);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.hero-copy,
.section-heading p,
.studio-card p,
.game-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 248, 234, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 248, 234, 0.48);
  color: var(--cream);
}

.signal-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -76px auto 0;
  border: 1px solid rgba(255, 248, 234, 0.18);
  background: rgba(8, 19, 26, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-strip span {
  min-height: 84px;
  padding: 24px;
  color: var(--cream);
  font-weight: 900;
}

.signal-strip span + span {
  border-left: 1px solid rgba(255, 248, 234, 0.14);
}

.section {
  padding: clamp(76px, 10vw, 136px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  max-width: 920px;
}

.games-section {
  background: var(--ink);
}

.game-grid,
.single-game {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.single-game {
  grid-template-columns: 1fr;
}

.game-card,
.studio-card,
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 40, 51, 0.92), rgba(16, 29, 37, 0.98));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.game-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.game-card.featured {
  min-height: 480px;
}

.crown-feature {
  width: min(920px, 100%);
}

.game-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #050c10;
}

.reactor-banner {
  object-fit: contain;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(rgba(70, 189, 225, 0.08) 1px, transparent 1px) 0 0 / 37px 26px,
    linear-gradient(90deg, rgba(70, 189, 225, 0.08) 1px, transparent 1px) 0 0 / 37px 26px,
    #061423;
}

.game-copy {
  padding: 24px;
}

.text-link {
  display: inline-flex;
  margin: 0 24px 24px;
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.game-page-hero {
  padding: 138px 0 clamp(58px, 8vw, 96px);
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.84), var(--ink)),
    url("assets/brush-valley-software-hero.png") center / cover;
}

.reactor-page-hero {
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.76), var(--ink)),
    radial-gradient(circle at 50% 34%, rgba(24, 215, 196, 0.24), transparent 34%),
    linear-gradient(rgba(70, 189, 225, 0.08) 1px, transparent 1px) 0 0 / 37px 26px,
    linear-gradient(90deg, rgba(70, 189, 225, 0.08) 1px, transparent 1px) 0 0 / 37px 26px,
    #061423;
}

.game-page-logo {
  display: block;
  width: min(820px, 100%);
  margin: 0 0 34px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reactor-page-logo {
  width: min(760px, 100%);
  background: #061423;
  object-fit: contain;
}

.game-page-hero h1 {
  max-width: 940px;
}

.game-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.game-detail-section {
  background: var(--ink);
}

.game-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.game-copy-panel,
.game-facts {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 40, 51, 0.92), rgba(16, 29, 37, 0.98));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.game-copy-panel {
  padding: clamp(24px, 4vw, 44px);
}

.game-copy-panel p {
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.game-copy-panel h2 {
  margin: 34px 0 16px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.game-copy-panel p:last-child {
  margin-bottom: 0;
}

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

.game-copy-panel .feature-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.game-copy-panel .feature-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(24, 215, 196, 0.62);
  content: "";
}

.game-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.game-facts div {
  padding: 20px;
  background: rgba(255, 248, 234, 0.03);
}

.game-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-facts strong {
  color: var(--cream);
  font-size: 1.02rem;
}

.studio-section {
  background: var(--paper);
  color: var(--ink);
}

.studio-card {
  padding: clamp(30px, 6vw, 64px);
  background: var(--cream);
}

.studio-card h2,
.studio-card h3 {
  color: var(--ink);
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.studio-stats div {
  border: 1px solid rgba(8, 19, 26, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(8, 19, 26, 0.04);
}

.studio-stats strong,
.studio-stats span {
  display: block;
}

.studio-stats strong {
  color: var(--ink);
}

.studio-stats span {
  color: #526160;
}

.contact-section {
  background: var(--ink);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  padding: 20px;
  text-decoration: none;
}

.contact-links span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links strong {
  color: var(--cream);
  font-size: 1.05rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 30px clamp(18px, 4vw, 56px);
  background: #050c10;
  color: rgba(255, 248, 234, 0.72);
}

.footer-logo {
  display: block;
  width: min(340px, 100%);
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255, 248, 234, 0.84);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--teal);
  outline: none;
}

.site-footer strong {
  color: var(--cream);
}

.legal-page {
  background: var(--paper);
  color: var(--ink);
}

.legal-page .site-header.solid {
  color: var(--cream);
}

.legal-wrap {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 82px;
}

.legal-wrap h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal-wrap h2 {
  margin-top: 38px;
  color: var(--ink);
  font-size: 1.35rem;
}

.legal-wrap p {
  color: #526160;
}

.legal-wrap a {
  color: #0d746d;
  font-weight: 800;
}

.updated {
  font-weight: 750;
}

.legal-footer {
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
  }

  .menu-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: transparent;
    color: inherit;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav:not(.always) {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--panel);
    color: var(--cream);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-content {
    min-height: 84svh;
    padding: 146px 0 96px 18px;
  }

  .signal-strip,
  .game-grid,
  .contact-layout,
  .game-detail-layout,
  .studio-stats,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .signal-strip span + span {
    border-top: 1px solid rgba(255, 248, 234, 0.14);
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .brand img {
    width: min(250px, 64vw);
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .game-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .game-card,
  .game-card.featured {
    min-height: 360px;
  }
}
