:root {
  --bg: #030812;
  --bg-deep: #02050b;
  --panel: rgba(18, 29, 45, 0.76);
  --panel-strong: #101a29;
  --panel-border: rgba(102, 220, 255, 0.15);
  --text: #f5f8fb;
  --muted: #98a5b7;
  --cyan: #45d1fa;
  --cyan-soft: #9beaff;
  --red: #ff4254;
  --green: #34e778;
  --blue: #158dff;
  --yellow: #ffd51d;
  --magenta: #dc2be2;
  --body-font: 'Outfit', 'Inter', sans-serif;
  --display-font: 'Space Grotesk', 'Inter', sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 84% 8%, rgba(31, 191, 229, 0.14), transparent 31rem),
    radial-gradient(circle at 9% 43%, rgba(100, 39, 168, 0.1), transparent 28rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(85, 150, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 150, 199, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(550px) rotateX(55deg) scale(1.7) translateY(-12%);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
}

img,
h1,
h2,
h3,
.eyebrow,
.app-badge,
.cta-button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(3, 8, 18, 0.76);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display-font);
  font-weight: 800;
}

.logo-mark {
  display: block;
  width: 28px;
  height: auto;
}

.brand-name {
  color: #fff;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-divider {
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0.45rem;
}

.subtitle-game {
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.hero {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.eyebrow {
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  text-wrap: balance;
}

.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;
}

.hero-banner {
  width: 100%;
  display: block;
  border: 1px solid rgba(69, 209, 250, 0.2);
  border-radius: clamp(14px, 2.2vw, 26px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

.hero-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(0.15rem, 1vw, 0.75rem) 0;
}

.hero-intro {
  max-width: 52rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
  min-height: 58px;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.app-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 209, 250, 0.5);
}

.app-badge img {
  width: 22px;
  filter: invert(1);
}

.app-badge span {
  display: grid;
  line-height: 1.05;
}

.app-badge small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
}

.app-badge strong {
  font-size: 1.18rem;
}

.feature-section,
.system-section,
.showcase,
.closing-cta {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.feature-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
}

.section-heading .eyebrow,
.system-copy .eyebrow,
.closing-cta .eyebrow {
  margin-bottom: 0.9rem;
}

.section-heading h2,
.system-copy h2,
.closing-cta h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child,
.system-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

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

.feature-grid article {
  min-height: 320px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(69, 209, 250, 0.08), transparent 45%),
    var(--panel);
}

.feature-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(114, 182, 228, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 182, 228, 0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 58%);
  pointer-events: none;
}

.feature-grid h3 {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.feature-grid p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ray-icon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 76px;
  margin-top: 1.2rem;
}

.feature-label {
  position: relative;
  z-index: 1;
  min-height: 76px;
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--cyan-soft);
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.colour-rays {
  display: grid;
  gap: 11px;
  align-content: center;
}

.colour-rays i {
  display: block;
  width: 74px;
  height: 5px;
  border-radius: 99px;
}

.colour-rays i:nth-child(1) {
  background: var(--red);
  box-shadow: 0 0 13px var(--red);
}

.colour-rays i:nth-child(2) {
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
}

.colour-rays i:nth-child(3) {
  background: var(--blue);
  box-shadow: 0 0 13px var(--blue);
}

.star-icon {
  position: relative;
  z-index: 1;
  height: 76px;
  margin-top: 1rem;
  color: var(--yellow);
  font-size: 4.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255, 213, 29, 0.58));
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.system-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 4vw, 3.9rem);
}

.spectrum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  font-family: var(--display-font);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.spectrum span:not(.spectrum-plus, .spectrum-equals) {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 50%;
}

.spectrum-red {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 66, 84, 0.48);
}

.spectrum-green {
  color: #04150a;
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 231, 120, 0.42);
}

.spectrum-blue {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(21, 141, 255, 0.48);
}

.spectrum .spectrum-white {
  min-width: auto;
  padding: 0 1.15rem;
  border-radius: 999px;
  color: #07111c;
  background: #f4fbff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.4);
}

.spectrum-plus,
.spectrum-equals {
  color: var(--muted);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-border);
}

.mechanics-grid article {
  min-height: 155px;
  padding: 1.5rem;
  background: rgba(9, 16, 27, 0.96);
}

.mechanics-grid span {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--cyan-soft);
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mechanics-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.showcase {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.showcase > h2 {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.screenshot-strip {
  --shot-gap: clamp(0.8rem, 2vw, 1.25rem);
  display: flex;
  align-items: flex-start;
  gap: var(--shot-gap);
  overflow-x: auto;
  padding: 0.2rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(69, 209, 250, 0.85) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

.screenshot-strip img {
  flex: 0 0 auto;
  width: auto;
  height: 562px;
  display: block;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--bg-deep);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  scroll-snap-align: start;
}

.screenshot-strip::-webkit-scrollbar {
  height: 10px;
}

.screenshot-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.screenshot-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(69, 209, 250, 0.85);
}

.closing-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  margin-bottom: clamp(5rem, 10vw, 8rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(69, 209, 250, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(69, 209, 250, 0.12), rgba(220, 43, 226, 0.07)),
    var(--panel);
}

.closing-cta > img {
  width: clamp(90px, 12vw, 135px);
  border-radius: 22%;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
}

.closing-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.cta-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: 999px;
  color: #05101a;
  background: linear-gradient(100deg, #edfaff, var(--cyan));
  font-weight: 800;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(69, 209, 250, 0.22);
}

footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: var(--text);
  margin: 0 0.5rem;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-section {
    grid-template-columns: 1fr;
  }

  .system-copy h2 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  header {
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  nav {
    width: 100%;
    gap: 1.25rem;
  }

  .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .logo-divider {
    margin: 0;
  }

  .subtitle-game {
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .feature-grid article {
    min-height: 285px;
  }

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

  .closing-cta {
    grid-template-columns: auto 1fr;
  }

  .closing-cta .cta-button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
