/* everixstudio.com: white neon on a dark wall, matching the crown logo. Tokens mirror the Figma "Neon" collection. */
:root {
  --bg: #060608;
  --surface: #0e0e14;
  --surface-raised: #16161e;
  --line: #24242e;
  --line-strong: #4a4a58;
  --text: #f4f4f6;
  --muted: #8b8b97;
  --neon: #fff;
  --live: #3dff8b;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(24px, 5.5vw, 80px);
  --text-glow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 32px rgba(255, 255, 255, 0.25);
  --tube-glow: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.35));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

.label {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.glow { color: var(--neon); text-shadow: var(--text-glow); }
.kicker { color: var(--neon); }

/* ---------- crown ---------- */
.crown { color: var(--neon); filter: var(--tube-glow); overflow: visible; }
.crown--hero { width: 150px; height: 104px; }
.crown--sm { width: 38px; height: 27px; }
.crown--xs { width: 29px; height: 20px; }

/* ---------- surfaces: lit from above, like light catching a wall ---------- */
.surface {
  border: 1px solid transparent;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.085), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.04)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- pills & buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(61, 255, 139, 0.4);
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.75);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 4px rgba(61, 255, 139, 0.9), 0 0 12px rgba(61, 255, 139, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.45; } }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 700 15px/1 var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.button--primary {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 0 48px rgba(255, 255, 255, 0.15);
}
.button--primary:hover { box-shadow: 0 0 22px rgba(255, 255, 255, 0.55), 0 0 64px rgba(255, 255, 255, 0.25); }

.button--ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.button--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.button:active { transform: scale(0.98); }

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font: 500 17px/1 var(--font-display); letter-spacing: 0.16em; }

.nav__links { display: flex; gap: 40px; font-weight: 600; color: var(--muted); }
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 562px;
  align-items: center;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 120px;
}

.hero::after {
  /* glossy floor line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.hero__intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__pill { display: none; }

.wall-light {
  position: absolute;
  z-index: -1;
  left: 75px;
  top: 52px;
  width: 1100px;
  height: 820px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(closest-side, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04) 55%, transparent);
  pointer-events: none;
}

h1 {
  font: 500 clamp(40px, 4.6vw, 66px)/1.04 var(--font-display);
  letter-spacing: -0.03em;
}

.hero__sub { max-width: 480px; color: var(--muted); font: 400 19px/1.6 var(--font-body); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
}

.stat { display: flex; flex-direction: column-reverse; gap: 14px; padding: 40px 36px; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat dd { font: 300 56px/1 var(--font-display); letter-spacing: -0.03em; }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; gap: 32px; padding-bottom: 140px; scroll-margin-top: 24px; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head > div { display: flex; flex-direction: column; gap: 18px; }
h2 { font: 500 clamp(30px, 3.4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.section__note { color: var(--muted); }

/* ---------- games ---------- */
.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: var(--surface-raised);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.thumb__pill { position: absolute; top: 10px; left: 10px; }

.slot { display: contents; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 16px 48px 16px 16px;
  border-radius: 32px;
}
.featured__thumb { border-radius: 22px; }
.featured__thumb .thumb__pill { top: 16px; left: 16px; }
.featured__info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.featured h3 { font: 500 36px/1.15 var(--font-display); letter-spacing: -0.02em; }
.featured__tagline { color: var(--muted); font: 400 19px/1.6 var(--font-body); }
.featured__stats { display: flex; gap: 40px; padding-block: 8px; }
.featured__stats div { display: flex; flex-direction: column-reverse; gap: 10px; }
.featured__stats dd { font: 300 32px/1 var(--font-display); letter-spacing: -0.02em; }

.rail-head { display: none; }

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

.game-card { display: flex; flex-direction: column; gap: 18px; padding: 12px 12px 20px; border-radius: 24px; }
.game-card__info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding-inline: 8px; }
.game-card h3 { font: 500 19px/1.25 var(--font-display); letter-spacing: -0.01em; }
.game-card__tagline { flex: 1; color: var(--muted); }
.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.game-card__footer strong { color: var(--text); font-size: 16px; font-weight: 700; }
.play { font-weight: 700; font-size: 14px; }

.featured:hover .thumb img,
.game-card:hover .thumb img { transform: scale(1.04); }

/* ---------- communities ---------- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.community-card { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 28px; }
.community-card__head { display: flex; align-items: center; gap: 16px; }
.community-card__head > div { display: flex; flex-direction: column; gap: 8px; }
.community-card__icon { width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-raised); }
.community-card h3 { font: 500 19px/1.25 var(--font-display); letter-spacing: -0.01em; }
.community-card__members { display: flex; flex-direction: column; gap: 10px; }
.community-card__members .glow { font: 300 32px/1 var(--font-display); letter-spacing: -0.02em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer__right { display: flex; align-items: center; gap: 28px; }
.footer__link { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.footer__link:hover { text-decoration-color: var(--neon); }
.footer__x { display: inline-flex; align-items: center; gap: 8px; }
.footer__x svg { flex: none; }
.footer__divider { width: 1px; height: 14px; background: var(--line-strong); }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .stats { max-width: 720px; }
  .featured { grid-template-columns: 1fr 1fr; padding: 16px 32px 16px 16px; gap: 32px; }
  .featured h3 { font-size: 28px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 14px; }

  .nav { padding-block: 18px; }
  .nav__pill, .brand__studio { display: none; }
  .wordmark { font-size: 15px; }
  .brand { gap: 10px; }
  .crown--sm { width: 33px; height: 23px; }
  .menu-button { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: calc(100% - 6px);
    left: var(--pad);
    right: var(--pad);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(14, 14, 20, 0.96);
    backdrop-filter: blur(12px);
    color: var(--text);
  }
  .nav__links a { padding: 14px 16px; border-radius: 12px; }
  .nav__links a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav--open .nav__links { display: flex; }

  .hero { gap: 28px; padding-top: 32px; padding-bottom: 72px; }
  .hero::after { bottom: 32px; }
  .hero__intro { gap: 22px; }
  .hero__pill { display: inline-flex; }
  .crown--hero { width: 104px; height: 72px; }
  .wall-light { left: 52px; top: 36px; width: 520px; height: 420px; }
  .hero__sub { font-size: 16px; }
  .hero__ctas { flex-direction: column; width: 100%; gap: 12px; }
  .hero__ctas .button { width: 100%; }

  .stats { border-radius: 24px; }
  .stat { gap: 10px; padding: 24px 20px; }
  .stat dd { font-size: 32px; }
  .hide-sm { display: none; }

  .section { gap: 24px; padding-bottom: 72px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section__head > div { gap: 14px; }
  .section__note { font-size: 14px; margin-top: -4px; }

  .featured { grid-template-columns: 1fr; gap: 18px; padding: 12px 12px 20px; border-radius: 24px; }
  .featured__thumb { border-radius: 16px; }
  .featured__thumb .thumb__pill { top: 10px; left: 10px; }
  .featured__info { gap: 12px; padding-inline: 8px; }
  .featured h3 { font-size: 22px; }
  .featured__tagline { font-size: 15px; }
  .featured__stats dd { font-size: 26px; }
  .featured__info .button { width: 100%; margin-top: 4px; }

  .rail-head { display: flex; justify-content: space-between; margin-bottom: -8px; padding-top: 8px; }
  .game-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 264px;
    gap: 14px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .game-grid::-webkit-scrollbar { display: none; }
  .game-card { scroll-snap-align: start; }

  .community-grid { grid-template-columns: 1fr; gap: 14px; }
  .community-card { gap: 20px; padding: 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 32px 40px; }
  .footer__right { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .thumb img, .button { transition: none; }
}
