/* ===============================================
   ARENA — Site bêta · Design tokens officiels
   =============================================== */

:root {
  /* Palette ARENA */
  --signal-blue: #4C7AFF;
  --signal-blue-dim: #1A2D5C;
  --neon-red: #FF2D55;
  --neon-red-dim: #5C1A2D;
  --void: #0A0A0F;
  --carbon: #14141C;
  --carbon-2: #1C1C26;
  --carbon-3: #25252F;
  --bone: #F5F5F0;
  --silver: #8B8B95;
  --silver-dim: #5A5A65;

  --status-ok: #00C896;
  --status-warn: #FFB020;

  --game-efoot: #00B4D8;
  --game-fifa: #06D6A0;
  --game-fc: #F77F00;

  /* Typo */
  --font-brand: 'Bebas Neue', sans-serif;
  --font-tagline: 'Instrument Serif', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===============================================
   RESET / BASE
   =============================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--signal-blue); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul, ol { list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--carbon-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--carbon-3);
}

::selection { background: var(--signal-blue); color: var(--bone); }

/* ===============================================
   NAV
   =============================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-bottom-color: var(--carbon-2);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 14px rgba(76, 122, 255, 0.5));
}
.nav__brand-text {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 700;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--signal-blue);
  transition: width .3s var(--ease-out);
}
.nav__links a:hover {
  color: var(--bone);
}
.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .3s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--signal-blue) 0%, #6E94FF 100%);
  color: var(--bone);
  box-shadow:
    0 12px 30px -10px rgba(76, 122, 255, 0.6),
    0 0 0 1px rgba(76, 122, 255, 0.3) inset;
}
.btn--primary:hover {
  color: var(--bone);
  box-shadow:
    0 18px 40px -10px rgba(76, 122, 255, 0.8),
    0 0 0 1px rgba(76, 122, 255, 0.5) inset;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  border-color: var(--carbon-3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--silver-dim);
  color: var(--bone);
}

.btn--xl {
  padding: 20px 36px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

/* ===============================================
   BADGES
   =============================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--bone);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--carbon-3);
}
.badge--solid {
  background: linear-gradient(135deg, rgba(76, 122, 255, 0.15) 0%, rgba(76, 122, 255, 0.05) 100%);
  border-color: rgba(76, 122, 255, 0.4);
  color: var(--signal-blue);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ===============================================
   HERO
   =============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.hero__orb--blue {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--signal-blue);
  animation: floatOrb 18s ease-in-out infinite;
}
.hero__orb--red {
  bottom: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--neon-red);
  opacity: 0.3;
  animation: floatOrb 22s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 122, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 122, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__content {
  max-width: 880px;
  text-align: center;
  position: relative;
}

.hero__title {
  margin: 24px 0 8px;
  line-height: 0.9;
}

.hero__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(72px, 14vw, 180px);
  letter-spacing: clamp(8px, 1.8vw, 24px);
  background: linear-gradient(180deg, var(--bone) 0%, rgba(245, 245, 240, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 80px rgba(76, 122, 255, 0.3);
}

.hero__tagline {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 1.5px;
  color: rgba(245, 245, 240, 0.75);
  margin-bottom: 24px;
}
.hero__tagline-dots {
  color: var(--signal-blue);
  margin-left: 4px;
}

.hero__sub {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--silver);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
}
.hero__sub strong {
  color: var(--bone);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--carbon-3);
  border-radius: var(--radius);
  min-width: 110px;
}
.hero__meta-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.hero__meta-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

/* ===============================================
   SECTION (générique)
   =============================================== */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, var(--void) 0%, var(--carbon) 50%, var(--void) 100%);
}
.section--alt > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(76, 122, 255, 0.08);
  border: 1px solid rgba(76, 122, 255, 0.25);
  border-radius: var(--radius-pill);
}
.section__title {
  font-family: var(--font-brand);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section__lead {
  font-size: 17px;
  color: var(--silver);
  line-height: 1.7;
}

/* ===============================================
   GAMES (features)
   =============================================== */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.game {
  position: relative;
  padding: 32px 28px;
  background: var(--carbon);
  border: 1px solid var(--carbon-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), border-color .3s;
}
.game:hover {
  transform: translateY(-6px);
  border-color: var(--carbon-3);
}

.game__halo {
  position: absolute;
  top: -60%;
  right: -30%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
  transition: opacity .35s;
}
.game:hover .game__halo { opacity: 0.4; }

.game--efoot .game__halo { background: var(--game-efoot); }
.game--fifa  .game__halo { background: var(--game-fifa); }
.game--fc    .game__halo { background: var(--game-fc); }

.game__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.game__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--carbon-2);
  border: 1px solid var(--carbon-3);
}
.game--efoot .game__chip { color: var(--game-efoot); border-color: rgba(0, 180, 216, 0.3); }
.game--fifa  .game__chip { color: var(--game-fifa); border-color: rgba(6, 214, 160, 0.3); }
.game--fc    .game__chip { color: var(--game-fc);   border-color: rgba(247, 127, 0, 0.3); }

.game__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
}
.game__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 8px var(--status-ok);
}

.game__title {
  font-family: var(--font-brand);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.game__desc {
  color: var(--silver);
  font-size: 14.5px;
  margin-bottom: 28px;
  min-height: 60px;
}

.game__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--carbon-2);
}
.game__stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game__stats span {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--bone);
}
.game__stats small {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--silver-dim);
}

/* ===============================================
   STEPS (how it works)
   =============================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--carbon);
  border: 1px solid var(--carbon-2);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .35s var(--ease-out);
}
.step:hover {
  border-color: rgba(76, 122, 255, 0.4);
  transform: translateY(-4px);
}

.step__num {
  font-family: var(--font-brand);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--signal-blue) 0%, var(--neon-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  display: inline-block;
}

.step__body h3 {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.step__body p {
  font-size: 14.5px;
  color: var(--silver);
  line-height: 1.65;
}

/* ===============================================
   DOWNLOAD CARD
   =============================================== */
.download {
  display: flex;
  justify-content: center;
}

.download__card {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
  background: linear-gradient(180deg, var(--carbon) 0%, var(--carbon-2) 100%);
  border: 1px solid var(--carbon-3);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.download__halo {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 122, 255, 0.25) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.download__title {
  font-family: var(--font-brand);
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: 2px;
  margin: 18px 0 12px;
}

.download__sub {
  color: var(--silver);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.download__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--carbon-3);
}
.download__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.download__meta-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.download__meta-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

/* ===============================================
   INSTALL
   =============================================== */
.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.install__step {
  padding: 32px 26px;
  background: var(--carbon);
  border: 1px solid var(--carbon-2);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .35s var(--ease-out);
}
.install__step:hover {
  border-color: var(--carbon-3);
  transform: translateY(-4px);
}

.install__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal-blue) 0%, var(--signal-blue-dim) 100%);
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -8px rgba(76, 122, 255, 0.6);
}

.install__step h3 {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.install__step p {
  font-size: 14.5px;
  color: var(--silver);
  line-height: 1.65;
}

.install__note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 176, 32, 0.07);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: var(--radius);
  color: var(--silver);
}
.install__note svg {
  color: var(--status-warn);
  flex-shrink: 0;
  margin-top: 1px;
}
.install__note div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
  line-height: 1.6;
}
.install__note strong {
  color: var(--bone);
  font-weight: 600;
}

/* ===============================================
   FAQ
   =============================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  background: var(--carbon);
  border: 1px solid var(--carbon-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.faq__item[open] {
  border-color: rgba(76, 122, 255, 0.3);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bone);
  cursor: pointer;
  list-style: none;
  transition: background .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: rgba(255, 255, 255, 0.02); }

.faq__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq__item[open] .faq__chevron {
  transform: rotate(-135deg);
  border-color: var(--signal-blue);
}

.faq__item p {
  padding: 0 24px 22px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
}
.faq__item p a {
  color: var(--signal-blue);
  border-bottom: 1px solid rgba(76, 122, 255, 0.4);
}
.faq__item p a:hover { border-color: var(--signal-blue); }

/* ===============================================
   FOOTER
   =============================================== */
.footer {
  padding: 48px var(--gutter) 32px;
  background: var(--carbon);
  border-top: 1px solid var(--carbon-2);
}

.footer__top {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px rgba(76, 122, 255, 0.4));
}
.footer__name {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: 700;
}
.footer__tagline {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--silver);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--carbon-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--silver-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.footer__build code {
  color: var(--signal-blue);
}

/* ===============================================
   REVEAL ON SCROLL
   =============================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 600px) {
  .nav { padding: 12px var(--gutter); }
  .nav__brand-text { font-size: 18px; letter-spacing: 3px; }

  .hero { padding-top: 100px; padding-bottom: 60px; }
  .hero__meta { gap: 8px; }
  .hero__meta li { min-width: 95px; padding: 8px 16px; }

  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
