:root {
  --bg: #090a12;
  --bg-2: #101322;
  --panel: rgba(18, 21, 36, 0.78);
  --panel-strong: rgba(27, 32, 51, 0.92);
  --text: #f8fbff;
  --muted: #aeb8c8;
  --blue: #20d7ff;
  --violet: #9a5cff;
  --orange: #ffb13d;
  --pink: #ff4fd8;
  --green: #72f59a;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(32, 215, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 16% 35%, rgba(255, 177, 61, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 18, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(32, 215, 255, 0.28);
  background: rgba(9, 10, 18, 0.9);
  transform: translateX(-50%) translateY(-4px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet) 54%, var(--orange));
  color: #06101d;
  font-size: 0.86rem;
  box-shadow: 0 0 24px rgba(32, 215, 255, 0.24);
}

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

.site-nav a,
.header-cta {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.header-cta:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-cta {
  border: 1px solid rgba(255, 177, 61, 0.35);
  color: #ffe4b7;
}

.section-band {
  position: relative;
  overflow: hidden;
}

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

.hero {
  min-height: 760px;
  padding: 180px 0 90px;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 10, 18, 0.95) 0%, rgba(9, 10, 18, 0.82) 35%, rgba(9, 10, 18, 0.42) 66%, rgba(9, 10, 18, 0.86) 100%),
    linear-gradient(180deg, rgba(9, 10, 18, 0.1) 0%, rgba(9, 10, 18, 0.8) 100%);
}

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

.pixel-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.hero-content {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 12vw, 9.6rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.tagline {
  margin: 22px 0 10px;
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 610px;
  margin: 0;
  color: #dbe6f5;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

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

.button,
.game-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.game-link:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), #6be8ff);
  color: #06101d;
  box-shadow: 0 16px 48px rgba(32, 215, 255, 0.24);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.about,
.games,
.vision {
  padding: 98px 0;
}

.about {
  background: linear-gradient(180deg, rgba(12, 15, 27, 0.96), rgba(15, 17, 30, 0.82));
}

.two-column,
.vision-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.copy-stack {
  color: var(--muted);
  font-size: 1.08rem;
}

.copy-stack p {
  margin: 0 0 18px;
}

.studio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.studio-stats span {
  border: 1px solid rgba(32, 215, 255, 0.28);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(32, 215, 255, 0.08);
  color: #ddf9ff;
  font-size: 0.88rem;
  font-weight: 900;
}

.games {
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.92), rgba(13, 16, 29, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-8px);
}

.game-visual {
  position: relative;
  height: 248px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(32, 215, 255, 0.16), rgba(154, 92, 255, 0.18));
}

.game-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
}

.game-token {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(5, 7, 13, 0.68);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sigil-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  border: 3px solid rgba(32, 215, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(32, 215, 255, 0.42), inset 0 0 42px rgba(154, 92, 255, 0.36);
  transform: translate(-50%, -50%) rotate(15deg);
  animation: slow-spin 16s linear infinite;
}

.sigil-ring::before,
.sigil-ring::after {
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(255, 177, 61, 0.76);
  border-radius: 8px;
  content: "";
}

.sigil-ring::after {
  transform: rotate(45deg);
}

.card-spark {
  position: absolute;
  width: 84px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 20, 37, 0.95), rgba(154, 92, 255, 0.34));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.card-spark.one {
  top: 48px;
  left: 52px;
  transform: rotate(-14deg);
}

.card-spark.two {
  right: 86px;
  bottom: 40px;
  transform: rotate(16deg);
}

.kitchen .game-visual {
  background: linear-gradient(135deg, rgba(255, 177, 61, 0.2), rgba(255, 79, 216, 0.14), rgba(32, 215, 255, 0.12));
}

.tile-row {
  position: absolute;
  right: -14px;
  bottom: 38px;
  width: 72%;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.1) 24% 25%, transparent 25% 49%, rgba(255, 255, 255, 0.1) 49% 50%, transparent 50% 74%, rgba(255, 255, 255, 0.1) 74% 75%, transparent 75%),
    linear-gradient(180deg, rgba(255, 177, 61, 0.25), rgba(255, 79, 216, 0.18));
  transform: rotate(-5deg);
}

.food-chip {
  position: absolute;
  display: block;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.food-chip.tomato {
  top: 54px;
  left: 54px;
  width: 74px;
  height: 74px;
  border: 8px solid #ff7b57;
  border-radius: 50%;
  background: #e92d58;
}

.food-chip.lemon {
  top: 84px;
  right: 104px;
  width: 92px;
  height: 56px;
  border-radius: 56px 14px 56px 14px;
  background: #ffe66d;
  transform: rotate(24deg);
}

.food-chip.pan {
  left: 162px;
  bottom: 58px;
  width: 94px;
  height: 94px;
  border: 12px solid #3d4659;
  border-radius: 50%;
  background: #141a27;
}

.food-chip.pan::after {
  position: absolute;
  top: 34px;
  right: -74px;
  width: 76px;
  height: 16px;
  border-radius: 8px;
  background: #3d4659;
  content: "";
  transform: rotate(12deg);
}

.game-body {
  display: flex;
  min-height: 272px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
}

.game-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.available {
  background: rgba(114, 245, 154, 0.15);
  color: #a8ffbd;
}

.soon {
  background: rgba(255, 177, 61, 0.16);
  color: #ffdb9b;
}

.game-body p {
  margin: 0;
  color: var(--muted);
}

.game-link {
  align-self: flex-start;
  border: 1px solid rgba(32, 215, 255, 0.36);
  background: rgba(32, 215, 255, 0.1);
  color: #e1fbff;
}

.game-link.disabled {
  border-color: rgba(255, 177, 61, 0.3);
  color: #ffdb9b;
  cursor: default;
}

.game-link.disabled:hover {
  transform: none;
}

.vision {
  background: linear-gradient(180deg, rgba(12, 15, 27, 0.95), rgba(9, 10, 18, 1));
}

.vision-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.15fr);
}

.vision p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.vision-panel {
  position: relative;
  display: grid;
  min-height: 360px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.vision-panel span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 1.8rem),
    linear-gradient(135deg, rgba(32, 215, 255, 0.24), rgba(154, 92, 255, 0.18), rgba(255, 177, 61, 0.16));
}

.vision-panel span:nth-child(2) {
  transform: translateY(28px);
}

.vision-panel span:nth-child(3) {
  transform: translateY(-16px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  background: #070911;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.footer-links a:hover {
  border-color: rgba(32, 215, 255, 0.38);
  background: rgba(32, 215, 255, 0.08);
  color: var(--text);
}

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

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

@keyframes slow-spin {
  to {
    transform: translate(-50%, -50%) rotate(375deg);
  }
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.84rem;
  }

  .header-cta {
    padding-inline: 10px;
  }

  .hero {
    min-height: 720px;
    padding-top: 205px;
  }

  .hero-art::after {
    background:
      linear-gradient(90deg, rgba(9, 10, 18, 0.95) 0%, rgba(9, 10, 18, 0.76) 58%, rgba(9, 10, 18, 0.72) 100%),
      linear-gradient(180deg, rgba(9, 10, 18, 0.1) 0%, rgba(9, 10, 18, 0.85) 100%);
  }

  .two-column,
  .vision-layout,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .vision-panel {
    min-height: 280px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 700px;
    padding-top: 202px;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .button,
  .game-link {
    width: 100%;
  }

  .about,
  .games,
  .vision {
    padding: 72px 0;
  }

  .game-card {
    min-height: auto;
  }

  .game-meta {
    flex-direction: column;
  }

  .game-body {
    min-height: auto;
    padding: 22px;
  }

  .game-visual {
    height: 220px;
  }

  .food-chip.lemon {
    right: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
