/* ═══════════════════════════════════════════════════════════════
   BEATS — Design System
   Sobre · Minimaliste · Aligné avec la DA du jeu
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─── TOKENS ─── */
:root {
  /* Palette exacte du jeu */
  --bg:           #020203;
  --bg-elev:      #070709;
  --bg-card:      #0d0d0f;
  --primary:      #AEFF00;
  --primary-soft: rgba(174, 255, 0, 0.12);
  --accent:       #00F0FF;
  --text:         #ffffff;
  --text-muted:   #888888;
  --text-dim:     #4a4a4a;
  --line:         rgba(255, 255, 255, 0.07);
  --line-strong:  rgba(255, 255, 255, 0.14);

  /* Typographie cohérente avec le jeu */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing & ease */
  --ease:         cubic-bezier(0.25, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:        72px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── UTILS ─── */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 880px; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; }
.eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }
.lime { color: var(--primary); }
.dim  { color: var(--text-muted); }

/* ─── NAV ─── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(2, 2, 3, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 22px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--text); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.nav-cta:hover { background: #c8ff40; transform: translateX(2px); }
.nav-cta svg { transition: transform 0.25s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-burger {
  display: none;
  background: none; border: 0; padding: 8px;
  flex-direction: column; gap: 4px;
}
.nav-burger span {
  width: 22px; height: 1px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 0;
  position: relative;
  overflow: hidden;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover { background: #c8ff40; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--text); border-bottom-color: var(--text); }

.btn-lg { padding: 18px 32px; font-size: 0.78rem; }

/* ─── SECTIONS ─── */
.section { padding: 140px 0; position: relative; }
.section-sm { padding: 96px 0; }
.section-alt { background: var(--bg-elev); }

.section-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
}
.section-head .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-head .rule {
  flex: 1; height: 1px; background: var(--line);
  margin-left: auto; max-width: 120px;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.sec-title em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}
.sec-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 32px 36px;
}
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.footer-brand img { height: 20px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.86rem; max-width: 340px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  padding: 5px 0;
  transition: color 0.2s, padding 0.2s;
}
.footer-col a:hover { color: var(--primary); padding-left: 6px; }
.footer-meta {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS — reveal on scroll & entrance
   Activé uniquement quand JS est chargé (.js-ready sur <html>)
═══════════════════════════════════════════════════════════════ */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.js-ready [data-reveal-fade] {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-ready [data-reveal-fade].is-visible { opacity: 1; }

/* clip reveal pour titres */
.js-ready [data-clip] {
  display: inline-block;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-ready [data-clip].is-visible { clip-path: inset(0 0% 0 0); }

/* Hero title reveal par ligne : ne masquer les spans que si JS est prêt */
.js-ready .hero-title .row span {
  transform: translateY(110%);
}
.hero-title .row span {
  display: inline-block;
}

/* Respect du reduced-motion — tout reste visible sans animation */
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal],
  .js-ready [data-reveal-fade],
  .js-ready [data-clip],
  .js-ready .hero-title .row span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .ticker-track { animation: none !important; }
  .hero-eyebrow .dot { animation: none !important; }
}

/* ─── SHARED "FRAME" for images ─── */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-card);
}
.frame img { width: 100%; display: block; }
.frame-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: var(--primary);
  border: 1px solid var(--line-strong);
  z-index: 2;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 20px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    background: var(--bg);
    padding: 40px 20px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-link { font-size: 0.88rem; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .wrap { padding: 0 20px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .footer { padding: 40px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
}
