* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0b0d;
  --panel: #111318;
  --panel-2: #151821;
  --text: #f5f7fb;
  --muted: #9ea6b5;
  --line: rgba(255,255,255,.12);
  --accent: #f5df37;
  --accent-2: #7b61ff;
  --max: 1240px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 78px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,11,13,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .15em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #101010;
  font-weight: 1000;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
  color: #d7dbe4;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--accent);
  transition: right .22s ease;
}

.nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 6px 0;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 5vw;
  padding: 130px max(24px, calc((100vw - var(--max)) / 2)) 70px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  right: -130px;
  top: 70px;
  background: radial-gradient(circle, rgba(123,97,255,.28), transparent 65%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: -180px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(245,223,55,.14), transparent 65%);
  z-index: -2;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 950;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(58px, 7vw, 108px);
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
}

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

.btn {
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #0d0e10;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.hero-art {
  position: relative;
  min-height: 540px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 80px rgba(0,0,0,.48);
}

.hero-card-back {
  width: 76%;
  height: 76%;
  right: 0;
  top: 2%;
  transform: rotate(8deg);
  background: linear-gradient(145deg, #7b61ff, #281d66 60%, #0d0e10);
}

.hero-card-main {
  width: 86%;
  left: 0;
  bottom: 0;
  background: #101218;
  transform: rotate(-3deg);
}

.hero-card-main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px 20px;
}

.hero-card-caption span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
}

.hero-card-caption strong {
  font-size: 18px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  color: #838b99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 125px 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 46px;
}

.section-heading h2,
.about h2 {
  font-size: clamp(48px, 6vw, 86px);
}

.section-index {
  color: #555e6e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
}

.featured-game {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 0;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--panel);
}

.featured-media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -80px 0 90px rgba(17,19,24,.4);
  pointer-events: none;
}

.featured-media img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}

.featured-game:hover .featured-media img {
  transform: scale(1.025);
}

.platform-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(10,11,13,.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.featured-copy {
  padding: 50px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.featured-copy h3,
.game-card h3 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.04em;
}

.featured-copy > p:not(.game-kicker),
.game-card-body > p:not(.game-kicker) {
  color: var(--muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.game-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cdd2dc;
  font-size: 11px;
  font-weight: 800;
}

.text-link {
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  font-size: 14px;
  font-weight: 850;
}

.text-link span {
  margin-left: 6px;
}

.mobile-games {
  padding-top: 60px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.25);
}

.game-image {
  overflow: hidden;
  background: #0d0f14;
}

.game-image img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform .55s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.035);
}

.game-card-body {
  padding: 25px;
}

.game-card h3 {
  font-size: 30px;
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-copy {
  max-width: 720px;
  padding-top: 30px;
  color: #c4cad4;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.55;
}

.about-copy p:first-child {
  margin-top: 0;
}

.contact {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(123,97,255,.16), transparent 35%),
    linear-gradient(180deg, #0a0b0d, #0e1015);
}

.contact h2 {
  font-size: clamp(70px, 12vw, 170px);
}

.contact-mail {
  margin-top: 34px;
  font-size: clamp(18px, 2.4vw, 30px);
  color: var(--accent);
  font-weight: 850;
  border-bottom: 1px solid currentColor;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 130px;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #7f8794;
  font-size: 12px;
}

.footer-brand {
  color: white;
  font-weight: 950;
  letter-spacing: .12em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    padding: 18px;
    flex-direction: column;
    gap: 16px;
    background: #111318;
    border: 1px solid var(--line);
    border-radius: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero-art {
    min-height: 430px;
  }

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

  .featured-media {
    min-height: 390px;
  }

  .featured-copy {
    padding: 34px 26px 38px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-copy {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero-art {
    min-height: 340px;
  }

  .hero-card-main {
    width: 92%;
  }

  .section {
    padding: 90px 18px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-index {
    display: none;
  }

  .featured-media {
    min-height: 290px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Steam portfolio refinements */
.steam-games {
  padding-top: 110px;
}

.steam-games .section-heading {
  margin-bottom: 52px;
}

.steam-games .game-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%),
    var(--panel);
}

.steam-games .game-card-body {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.steam-games .game-card-body .text-link {
  margin-top: auto;
}

.steam-games .game-card-body > p:not(.game-kicker) {
  line-height: 1.7;
}

/* Contact and social links */
.contact-copy {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.social-link {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: #e9ecf3;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.25);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link svg .social-fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 560px) {
  .steam-games {
    padding-top: 80px;
  }

  .contact-copy {
    font-size: 15px;
  }

  .social-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .social-link {
    width: 100%;
  }
}


/* Higher-quality presentation for Steam artwork */
.hero-card-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.steam-games .game-image {
  background: #0b0d12;
}

.steam-games .game-image img {
  width: 100%;
  aspect-ratio: 616 / 353;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 900px) {
  .steam-games .game-image img {
    aspect-ratio: 16 / 9;
  }
}


/* Updated brand with uploaded logo */
.brand {
  gap: 14px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
}

.brand-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .15em;
  color: #f5f7fb;
}

/* Hero stacked cards */
.hero-card-back {
  width: 76%;
  height: 76%;
  right: 0;
  top: 2%;
  transform: rotate(8deg);
  background: #101218;
  display: block;
}

.hero-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-back-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)),
    linear-gradient(90deg, rgba(16,18,24,.08), rgba(16,18,24,.38));
}

.hero-card-back-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.hero-card-back-caption span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-card-back-caption strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* Keep the front card more prominent */
.hero-card-main {
  z-index: 2;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  .brand-logo {
    height: 30px;
  }

  .brand-text {
    font-size: 12px;
    letter-spacing: .12em;
  }

  .hero-card-back-caption strong {
    font-size: 15px;
  }
}
