@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Geist:wght@300;400;500&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:     #000000;
  --surf:   #0a0a0a;
  --surf2:  #111111;
  --b1:     rgba(255,255,255,0.08);
  --b2:     rgba(255,255,255,0.12);
  --text:   #ffffff;
  --text2:  rgba(255,255,255,0.6);
  --text3:  rgba(255,255,255,0.3);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ════════════════════
   NAV
════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--b1);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border-radius: 8px;
  padding: .5rem 1.1rem;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

/* ════════════════════
   HERO
════════════════════ */
.hero {
  width: 100%;
  padding: 9rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  animation: fadeUp .6s ease both;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.hero-line { display: block; }
.hero-line-accent {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeUp .6s .2s ease both;
}

/* ── Cartes hero ── */
.hero-right {
  position: relative;
  height: 320px;
  animation: fadeUp .8s .3s ease both;
}
.hc {
  position: absolute;
  width: 155px;
  height: 235px;
  background: var(--surf2);
  border: 1px solid var(--b2);
  border-radius: 20px;
  padding: 1rem .9rem;
  display: grid;
  grid-template-rows: 36px 1fr 90px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.hc[data-rarity="legendary"] { border-color: rgba(251,191,36,0.35); box-shadow: 0 0 25px rgba(251,191,36,0.12), 0 20px 60px rgba(0,0,0,0.6); }
.hc[data-rarity="epic"]      { border-color: rgba(192,132,252,0.35); box-shadow: 0 0 25px rgba(192,132,252,0.12), 0 20px 60px rgba(0,0,0,0.6); }
.hc[data-rarity="rare"]      { border-color: rgba(96,165,250,0.35);  box-shadow: 0 0 25px rgba(96,165,250,0.12),  0 20px 60px rgba(0,0,0,0.6); }
.hc-1 { top: 10px; left: 50%; transform: translateX(-50%) rotate(-3deg); z-index: 3; }
.hc-2 { top: 70px; left: 0;   transform: rotate(-8deg); z-index: 2; }
.hc-3 { top: 90px; right: 0;  transform: rotate(6deg);  z-index: 1; }
.hc-top { display: flex; justify-content: space-between; }
.hc-num, .hc-cat { font-size: .55rem; color: var(--text3); font-weight: 500; }
.hc-mid { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.hc-bot { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.hc-rarity {
  font-size: .55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: .15rem .5rem; border-radius: 999px;
}
.hc[data-rarity="legendary"] .hc-rarity { background: rgba(251,191,36,0.15); color: #fbbf24; }
.hc[data-rarity="epic"]      .hc-rarity { background: rgba(192,132,252,0.15); color: #c084fc; }
.hc[data-rarity="rare"]      .hc-rarity { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.hc-title { font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.hc-desc  { font-size: .62rem; color: var(--text3); line-height: 1.3; }

/* ── Boutons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-ghost {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color .15s;
}
.btn-ghost:hover { color: var(--text); }

/* ════════════════════
   SECTIONS COMMUNES
════════════════════ */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.section-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s, transform .5s;
}
.section-badge.visible { opacity: 1; transform: none; }
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s .1s, transform .5s .1s;
}
.section-title.visible { opacity: 1; transform: none; }
.section-sub {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 3.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s .2s, transform .5s .2s;
}
.section-sub.visible { opacity: 1; transform: none; }

/* ════════════════════
   HOW IT WORKS
════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b1);
  border: 1px solid var(--b1);
  border-radius: 20px;
  overflow: hidden;
}
.step-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s, transform .5s, background .2s;
}
.step-card.visible { opacity: 1; transform: none; }
.step-card:nth-child(2).visible { transition-delay: .1s; }
.step-card:nth-child(3).visible { transition-delay: .2s; }
.step-card:hover { background: var(--surf); }
.step-num  { font-size: .68rem; font-weight: 700; color: var(--text3); letter-spacing: 2px; margin-bottom: 1.2rem; }
.step-ico  { font-size: 1.8rem; margin-bottom: .75rem; }
.step-title { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .6rem; }
.step-desc  { font-size: .875rem; color: var(--text2); line-height: 1.65; }

/* ════════════════════
   CARDS SHOWCASE
════════════════════ */
.cards-showcase-section {
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}
.cards-showcase-section .section-badge,
.cards-showcase-section .section-title,
.cards-showcase-section .section-sub {
  padding: 0 2rem;
}

.cards-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.cards-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  padding: .5rem 0 1rem;
  animation: scroll 35s linear infinite;
}
.cards-track:hover { animation-play-state: paused; }

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}



/* ════════════════════
   RARITIES
════════════════════ */
.rarities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--b1);
  border: 1px solid var(--b1);
  border-radius: 20px;
  overflow: hidden;
}
.rarity-item {
  flex: 1;
  min-width: 130px;
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s, transform .5s, background .2s;
}
.rarity-item.visible { opacity: 1; transform: none; }
.rarity-item:nth-child(2) { transition-delay: .08s; }
.rarity-item:nth-child(3) { transition-delay: .16s; }
.rarity-item:nth-child(4) { transition-delay: .24s; }
.rarity-item:nth-child(5) { transition-delay: .32s; }
.rarity-item:hover { background: var(--surf); }
.rarity-dot  { width: 10px; height: 10px; border-radius: 50%; }
.rarity-name { font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; }
.rarity-pts  { font-size: .75rem; color: var(--text3); }

/* ════════════════════
   CTA
════════════════════ */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
}
.cta-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-title em { font-style: italic; font-weight: 300; }
.cta-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* ════════════════════
   FOOTER
════════════════════ */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--b1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: -.04em;
}
.footer-tagline, .footer-copy { font-size: .7rem; color: var(--text3); }

/* ════════════════════
   ANIMATIONS
════════════════════ */

/* ── Spotlight souris ── */


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════
   RESPONSIVE
════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-right { height: 220px; }
  .hc-2, .hc-3 { display: none; }
  .hc-1 { left: 50%; }
  .section-inner { padding: 5rem 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .rarities-grid { flex-direction: column; }
}

/* ── Cartes showcase — CSS validé ── */
.preview-card {
  flex-shrink: 0;
  width: 190px;
  height: 300px;
  box-sizing: border-box;
  padding: 1rem .9rem;
  display: grid;
  grid-template-rows: 36px 1fr 115px;
  text-align: center;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .2s;
}
.preview-card:hover { transform: translateY(-4px); }

.preview-card[data-rarity="common"]    { background: linear-gradient(160deg, rgba(168,168,192,0.12) 0%, rgba(168,168,192,0.03) 100%); border-color: rgba(168,168,192,0.25); }
.preview-card[data-rarity="uncommon"]  { background: linear-gradient(160deg, rgba(52,211,153,0.18)  0%, rgba(52,211,153,0.05)  100%); border-color: rgba(52,211,153,0.3); }
.preview-card[data-rarity="rare"]      { background: linear-gradient(160deg, rgba(96,165,250,0.18)  0%, rgba(96,165,250,0.05)  100%); border-color: rgba(96,165,250,0.3); }
.preview-card[data-rarity="epic"]      { background: linear-gradient(160deg, rgba(192,132,252,0.18) 0%, rgba(192,132,252,0.05) 100%); border-color: rgba(192,132,252,0.4); }
.preview-card[data-rarity="legendary"] { background: linear-gradient(160deg, rgba(251,191,36,0.18)  0%, rgba(251,191,36,0.05)  100%);  border-color: rgba(251,191,36,0.4); }

.preview-card[data-rarity="common"]:hover    { box-shadow: 0 0 30px rgba(168,168,192,0.2); }
.preview-card[data-rarity="uncommon"]:hover  { box-shadow: 0 0 30px rgba(52,211,153,0.2); }
.preview-card[data-rarity="rare"]:hover      { box-shadow: 0 0 30px rgba(96,165,250,0.2); }
.preview-card[data-rarity="epic"]:hover      { box-shadow: 0 0 30px rgba(192,132,252,0.2); }
.preview-card[data-rarity="legendary"]:hover { box-shadow: 0 0 30px rgba(251,191,36,0.2); }

.preview-card .tc-top { display: flex; justify-content: space-between; }
.preview-card .t-num  { font-size: .56rem; color: rgba(255,255,255,.3); font-weight: 600; letter-spacing: 1px; }
.preview-card .t-cat  { font-size: .56rem; color: rgba(255,255,255,.3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.preview-card .tc-mid { display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.preview-card .tc-bot { display: flex; flex-direction: column; align-items: center; }
.preview-card .t-title { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: -.3rem; margin-bottom: auto; }
.preview-card .t-desc  { font-size: .66rem; color: rgba(255,255,255,.55); line-height: 1.4; margin-bottom: auto; }
.preview-card .t-rarity { font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: .2rem .6rem; border-radius: 999px; }

.r-common    { background: rgba(168,168,192,0.15); color: #a8a8c0; }
.r-uncommon  { background: rgba(52,211,153,0.15);  color: #34d399; }
.r-rare      { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.r-epic      { background: rgba(192,132,252,0.15); color: #c084fc; }
.r-legendary { background: rgba(251,191,36,0.15);  color: #fbbf24; }