:root {
  color-scheme: dark;
  --bg: #050608;
  --ink: #f7f9fb;
  --muted: #abb3bd;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(10, 14, 18, 0.78);
  --panel-strong: rgba(4, 8, 12, 0.92);
  --cyan: #37d5ff;
  --green: #58f0a7;
  --red: #ff5f6d;
  --gold: #f4c96b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

body.footer-visible .final-reveal,
body.footer-visible .hero-video,
body.footer-visible .hero-shade,
body.footer-visible .hero-burst,
body.footer-visible .showcase-stage {
  display: none;
}

body.footer-visible .site-footer {
  z-index: 40;
}

a {
  color: inherit;
  text-decoration: none;
}
.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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 8px clamp(18px, 4vw, 46px);
  background: rgba(5, 6, 8, 0.34);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.34);
  border-color: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: clamp(140px, 15vw, 184px);
  height: clamp(70px, 8vw, 96px);
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(55, 213, 255, 0.42));
}

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

.site-nav a {
  padding: 10px 14px;
  color: rgba(247, 249, 251, 0.82);
  font-size: 14px;
  font-weight: 700;
}
.nav-auth { display:inline-flex; align-items:center; }
.nav-auth-btn { font-size:13px; padding:8px 14px; }
.auth-modal { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; }
.auth-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); }
.auth-modal-card { position:relative; width:min(420px, calc(100% - 24px)); background:#0e141c; border:1px solid var(--line); border-radius:12px; padding:24px; }
.auth-modal-card h2 { margin:0 0 6px; font-size:22px; }
.auth-hint { font-size:13px; color:var(--muted); margin:0 0 16px; }
.auth-modal-card label { display:block; margin-top:10px; font-size:13px; }
.auth-modal-card input { width:100%; margin-top:4px; padding:10px 12px; border-radius:8px; border:1px solid var(--line); background:rgba(255,255,255,.06); color:var(--ink); }
.auth-modal-close { position:absolute; top:10px; right:12px; background:none; border:none; color:var(--ink); font-size:22px; cursor:pointer; }

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  z-index: 8;
  min-height: 420vh;
  display: block;
  overflow: visible;
  isolation: isolate;
  --hero-video-rotate: 0deg;
  --hero-video-scale: 1.16;
  --hero-dim: 0;
  --hero-logo-scale: 1;
  --hero-content-opacity: 1;
  --hero-burst-progress: 0;
  --hero-burst-opacity: 0;
  --hero-bg-opacity: 1;
  --showcase-opacity: 0;
  --showcase-scale: 0.85;
  --showcase-y: 18px;
  --showcase-width: min(82vw, 1180px);
  --showcase-height: auto;
  --showcase-radius: clamp(14px, 2vw, 28px);
  --showcase-top: 104px;
  --showcase-side: clamp(18px, 4vw, 56px);
  --final-reveal-opacity: 0;
  --final-reveal-scale: 0.94;
  --final-reveal-events: none;
  background: #050608;
}

.hero-video,
.hero-shade,
.hero-burst {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  opacity: var(--hero-bg-opacity);
  pointer-events: none;
}

.hero-video {
  object-fit: cover;
  z-index: 0;
  transform: rotate(var(--hero-video-rotate)) scale(var(--hero-video-scale));
  transform-origin: center;
  transition: filter 120ms linear;
  will-change: transform, filter;
}

.hero-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 44%, rgba(55, 213, 255, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.82), rgba(5, 6, 8, 0.54)),
    linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, 0) 30%);
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #050608;
  opacity: var(--hero-dim);
  transition: opacity 120ms linear;
}


.hero-burst {
  z-index: 2;
  overflow: hidden;
  opacity: var(--hero-bg-opacity);
  perspective: 900px;
}

.burst-card {
  display: none;
}

.burst-particle {
  --particle-x: 0px;
  --particle-y: 0px;
  --particle-scale: 1;
  --particle-opacity: 1;
  --particle-tilt: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(160px, 20.7vw, 427px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: clamp(14px, 1.5vw, 24px);
  opacity: calc(var(--hero-burst-opacity) * var(--particle-opacity));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52), 0 0 34px rgba(55, 213, 255, 0.18);
  transform:
    translate3d(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y)), 0)
    rotate(var(--particle-tilt))
    scale(var(--particle-scale));
  transform-origin: center;
  will-change: transform, opacity;
}
.final-reveal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 104px 20px 40px;
  background: rgba(5, 6, 8, calc(var(--final-reveal-opacity) * 0.98));
  opacity: var(--final-reveal-opacity);
  pointer-events: var(--final-reveal-events);
}

.final-reveal-inner {
  padding-top: 0;
  transform: scale(var(--final-reveal-scale));
  filter: blur(calc((1 - var(--final-reveal-opacity)) * 10px));
  transition: filter 120ms linear;
  will-change: transform, opacity, filter;
}

.final-reveal .hero-logo,
.final-reveal .hero-actions {
  opacity: 1;
}
.showcase-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: start center;
  padding: var(--showcase-top) var(--showcase-side) 0;
  opacity: var(--showcase-opacity);
  pointer-events: none;
}

.showcase-frame {
  width: var(--showcase-width);
  height: var(--showcase-height);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--showcase-radius);
  background: #050608;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62), 0 0 42px rgba(55, 213, 255, 0.16);
  transform: translateY(var(--showcase-y)) scale(var(--showcase-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  z-index: 3;
}

.hero-copy {
  width: min(100%, calc(100vw - 24vw));
  padding-top: 104px;
}

.hero-logo-stage {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero-logo {
  width: min(76vw, 1120px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 52px);
  opacity: var(--hero-content-opacity);
  filter: drop-shadow(0 0 44px rgba(55, 213, 255, 0.56));
  transform: scale(var(--hero-logo-scale));
  transform-origin: center;
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: opacity, transform;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text {
  max-width: 650px;
  color: rgba(247, 249, 251, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  opacity: var(--hero-content-opacity);
  transition: opacity 120ms linear, transform 120ms linear;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 850;
  font-size: 15px;
}

.button.primary {
  color: #041016;
  background: var(--cyan);
  border-color: transparent;
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  position: relative;
  z-index: 4;
  padding: clamp(74px, 10vw, 128px) 0;
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.split > p,
.contact-layout p {
  color: var(--muted);
  font-size: 18px;
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #080c10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-number {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.statement {
  padding: clamp(54px, 7vw, 90px) 0;
}

.statement-inner {
  border-left: 4px solid var(--red);
  padding-left: clamp(20px, 4vw, 40px);
}

.statement p {
  max-width: 900px;
  color: rgba(247, 249, 251, 0.88);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
}

.contact {
  background: #f4f7f9;
  color: #111820;
}

.contact .section-kicker {
  color: #007d73;
}

.contact-layout p {
  color: #4a5561;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.contact-link {
  display: block;
  margin-bottom: 16px;
  color: #005d8f;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 46px) 24px;
  color: rgba(247, 249, 251, 0.62);
  background: #050608;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.footer-grid strong {
  display: block;
  color: #f7f9fb;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.6;
}

.pilot-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
}

.footer-contact a {
  display: block;
  color: rgba(247, 249, 251, 0.85);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-contact a:hover {
  color: #7dd3fc;
}

.footer-contact .contact-note {
  font-size: 12px;
  color: rgba(247, 249, 251, 0.45);
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(247, 249, 251, 0.18);
  border-radius: 999px;
  color: rgba(247, 249, 251, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-btn:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.footer-bottom {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 249, 251, 0.08);
  font-size: 12px;
  color: rgba(247, 249, 251, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


.subpage-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 148px 0 78px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.subpage-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(55, 213, 255, 0.34), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(244, 201, 107, 0.22), transparent 28%),
    linear-gradient(135deg, #050608 0%, #101820 52%, #07080b 100%);
}

.subpage-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.94), rgba(5, 6, 8, 0.36)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 92px);
}

.subpage-hero-inner {
  max-width: 900px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.subpage-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
}

.subpage-hero p:last-child {
  max-width: 720px;
  color: rgba(247, 249, 251, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

.games-section {
  background: #070a0d;
}

.games-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.games-toolbar h2 {
  max-width: 680px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.game-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-strong);
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 72% 18%, var(--tile-a), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 60%);
}

.game-tile > * {
  position: relative;
  z-index: 1;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 950;
}

.game-tile h3 {
  margin: auto 0 8px;
  font-size: 21px;
}

.game-tile p {
  margin-bottom: 0;
  color: rgba(247, 249, 251, 0.68);
  font-size: 14px;
  font-weight: 800;
}

.tone-a { --tile-a: rgba(55, 213, 255, 0.48); }
.tone-b { --tile-a: rgba(88, 240, 167, 0.42); }
.tone-c { --tile-a: rgba(244, 201, 107, 0.42); }
.tone-d { --tile-a: rgba(255, 95, 109, 0.38); }
.tone-e { --tile-a: rgba(152, 120, 255, 0.44); }

.compact-contact {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.games-catalog {
  padding-top: clamp(132px, 14vw, 178px);
  background:
    radial-gradient(circle at 18% 0%, rgba(55, 213, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(244, 201, 107, 0.12), transparent 28%),
    #070a0d;
}

.games-catalog .games-toolbar {
  align-items: start;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.games-catalog .section-kicker {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.games-catalog .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.games-catalog .game-tile {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(9, 13, 17, 0.74);
}

.games-catalog .game-tile::before {
  opacity: 0.42;
}

.game-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.games-catalog .game-tile h3 {
  margin: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 14px 12px 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 82px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 6, 8, 0.96);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 400vh;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 16vw));
    padding-top: 104px;
  }

  .hero-logo {
    width: min(84vw, 760px);
  }

  .burst-particle {
    width: clamp(113px, 38.7vw, 287px);
  }

  .showcase-frame {
    width: min(92vw, 760px);
  }

  .hero-shade {
    background:
      radial-gradient(circle at 50% 42%, rgba(55, 213, 255, 0.22), transparent 38%),
      linear-gradient(90deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.58)),
      linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, 0) 32%);
  }

  .split,
  .contact-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .games-toolbar {
    display: grid;
    align-items: start;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-hero {
    min-height: 520px;
  }

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

  .feature-number {
    margin-bottom: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-tile {
    min-height: 174px;
  }
}

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

  .hero-video,
  .hero-burst,
  .showcase-stage {
    display: none;
  }

  .hero {
    background: #050608;
  }
}
