:root {
  --bg:            #080812;
  --bg-alt:        #0e0e1c;
  --bg-panel:      #14142a;
  --surface:       rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.1);
  --text:          #eef0ff;
  --text-muted:    #9aa0c0;
  --accent:        #7c5cff;
  --accent-2:      #22d3ee;
  --accent-3:      #ff4d8d;
  --radius:        18px;
  --radius-sm:     10px;
  --maxw:          1180px;
  --nav-h:         65px;
  --ease:          cubic-bezier(.22, 1, .36, 1);
  --font-body:     system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
                   'Noto Sans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --font-display:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
                   'Noto Sans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(124, 92, 255, .95);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .28);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn--sm { padding: 7px 18px; font-size: .84rem; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(8, 8, 18, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .9);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .1em;
  flex-shrink: 0;
}
.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 18px -2px rgba(124, 92, 255, .9);
  transform: rotate(45deg);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(135deg) scale(1.08); }
.logo__text span { color: var(--accent-2); }

/* Desktop menu */
.nav__menu { display: flex; align-items: center; gap: 30px; }

.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 23px; }

.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%,  rgba(34, 211, 238, .22), transparent 65%),
    radial-gradient(ellipse 70% 60% at 10% 70%,  rgba(255, 77, 141, .18), transparent 65%),
    var(--bg);
}
/* Subtle grid overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .4), transparent 62%);
  filter: blur(20px);
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -56%) scale(1.08); }
}

.hero__inner { text-align: center; position: relative; }

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .08);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

/* Scroll-down indicator (chevron only, no ring) */
.hero__scroll {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 40px auto 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
/* animate the icon so :hover transform on the link still works */
.hero__scroll svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero__scroll:hover {
  color: var(--accent-2);
  transform: scale(1.12);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  background: linear-gradient(100deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding: 100px 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section__eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 14px;
}

.section__desc { color: var(--text-muted); margin: 0; }

/* ---------- Game cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 900px;   /* keeps 2 cards from stretching too wide */
  margin-inline: auto;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, .55);
  box-shadow: 0 26px 50px -24px rgba(124, 92, 255, .75);
}

/* Placeholder: question mark over a gradient background — swap body for <img> later */
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 -70px 90px -70px rgba(0, 0, 0, .7);
}
.card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .7;
}
.card__media::after {
  content: '?';
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .5);
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.card__media--a { background: linear-gradient(140deg, #2b1b6b, #7c5cff 55%, #22d3ee); }
.card__media--b { background: linear-gradient(140deg, #0b3d4d, #22d3ee 55%, #a3f7bf); }
.card__media--c { background: linear-gradient(140deg, #3a1030, #ff4d8d 55%, #ffb86c); }
.card__media--d { background: linear-gradient(140deg, #143a24, #3ddc97 55%, #d9f99d); }

.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 18, .6);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}
.card__tag--new {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-color: transparent;
}

.card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title { font-size: 1.2rem; margin-bottom: 10px; }
.card__text { color: var(--text-muted); font-size: .93rem; margin-bottom: 20px; flex: 1; }

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}
.card__link {
  font-weight: 600;
  color: var(--accent-2);
  transition: gap .25s var(--ease);
  white-space: nowrap;
}
.card__link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 56px;
  align-items: center;
}
.about__text p { color: var(--text-muted); }
.about__text .section__title { margin-bottom: 18px; }

.about__list { margin-top: 22px; display: grid; gap: 12px; }
.about__list li {
  position: relative;
  padding-top: 5px;
  padding-left: 30px;
  color: var(--text);
  font-size: .95rem;
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}

.about__panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.about__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.about__stat:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, .5); }
.about__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  background: linear-gradient(100deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__stat span {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Footer (incl. Contact) ---------- */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(124, 92, 255, .16), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 92, 255, .75) 50%, transparent 100%);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { max-width: 540px; }
.footer__brand p { color: var(--text-muted); font-size: .9rem; margin-top: 16px; }
.logo--footer { font-size: 1.05rem; }

.footer__contact { flex: 0 1 260px; }
.footer__contact h4,
.footer__links h4 {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.footer__contact p {
  margin: 0 0 8px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-muted);
  word-break: break-word;
}
.footer__contact p.footer__contact-name { color: var(--text); font-weight: 600; }
.footer__contact a {
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.footer__contact a:hover { border-bottom-color: var(--accent-2); }

.footer__links { display: flex; gap: 48px; flex: 0 1 auto; }
.footer__links > div { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer__links a:hover { color: var(--accent-2); transform: translateX(3px); }

.footer__bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.footer__bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive — Media Queries
   ============================================================ */

/* Tablet & below: stack about + footer */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
}

/* Mobile: burger menu, single column */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .hamburger { display: block; }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(10, 10, 22, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 22px 40px -22px #000;
    /* animation states */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    padding: 15px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; width: 100%; padding: 13px; }

  /* Full-screen modules on mobile (footer excluded: too little content) */
  .hero,
  .section {
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* stable viewport: ignores mobile browser chrome */
  }

  .hero { padding: calc(var(--nav-h) + 24px) 0 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 28px 36px; }
  .hero__scroll { width: 36px; height: 36px; margin-top: 26px; }
  .hero__scroll svg { width: 24px; height: 24px; }

  .grid { grid-template-columns: 1fr; gap: 20px; }

  .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 32px) 0;
  }
  .section__head { margin-bottom: 36px; }

  /* About: larger, airier type on mobile */
  .section__title { font-size: clamp(1.5rem, 6.4vw, 2.1rem); }
  .about__text p { font-size: 1rem; line-height: 1.85; }
  .about__list { margin-top: 20px; gap: 14px; }
  .about__list li { font-size: .98rem; line-height: 1.65; }
  .about__panel { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about__stat { padding: 24px 14px; }
  .about__stat strong { font-size: 2rem; }
  .about__stat span { font-size: .72rem; }

  /* Footer: compact single-column layout (mobile) */
  .footer {
    text-align: center;
    padding-top: calc(var(--nav-h) + 24px);
  }
  .footer__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__brand p { margin-top: 10px; font-size: .95rem; line-height: 1.75; color: var(--text-muted); }

  /* Company links as pill chips */
  .footer__links { justify-content: center; }
  .footer__links h4 { display: none; }
  .footer__links > div {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .footer__links a {
    font-size: .9rem;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
  }
  .footer__links a:hover {
    transform: none;
    border-color: rgba(124, 92, 255, .65);
    color: #fff;
    background: rgba(124, 92, 255, .12);
  }

  /* Contact card */
  .footer__contact {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
  }
  .footer__contact h4 { display: block; margin-bottom: 45px; }
  .footer__contact p { font-size: .93rem; line-height: 1.65; margin-bottom: 6px; }
  .footer__contact p:last-child { margin-bottom: 0; }
  .footer__contact a { color: var(--accent-2); }
  .footer__inner h4 { font-size: .76rem; letter-spacing: .2em; }

  .footer__bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding-block: 14px;
    font-size: .76rem;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .about__panel { grid-template-columns: 1fr; }
  .about__stat { padding: 20px 14px; }
  .hero__stats { gap: 20px 28px; }
  .section { padding: calc(var(--nav-h) + 20px) 0; }
  .footer { padding-top: calc(var(--nav-h) + 24px); }
}

/* Large screens polish */
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Touch devices: disable heavy hover transforms */
@media (hover: none) {
  .card:hover { transform: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
