/* ============================================================
   LIDAFLOW — site vitrine
   Le vide révélé en néons LiDAR. Signature = le hero qui se scanne.
   ============================================================ */

:root {
  --void: #05060b;
  --panel: #0a0e19;
  --panel-2: #0d1322;
  --line: rgba(120, 180, 255, .10);
  --line-strong: rgba(120, 180, 255, .28);

  --scan: #38e1ff;   /* onde de révélation / HUD */
  --laser: #b06bff;  /* laser du drone */
  --danger: #ff4d5e; /* ennemis */
  --amber: #ffcf5c;
  --green: #5ee6a0;

  --ink: #eaf0fb;
  --muted: #8f9cb8;
  --dim: #59627e;

  --maxw: 1180px;
  --disp: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  /* grille du vide, très discrète (comme le jeu) */
  background-image:
    linear-gradient(rgba(120, 180, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: center top;
}

::selection { background: var(--scan); color: #04121b; }

a { color: inherit; text-decoration: none; }
b { color: #dbe6fb; font-weight: 600; }

/* fil de scan animé en haut de page */
.scanline {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--scan), var(--laser), transparent);
  background-size: 220px 100%;
  animation: run 5.5s linear infinite;
  opacity: .8;
}
@keyframes run { to { background-position: 220px 0; } }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 6, 11, .82), rgba(5, 6, 11, 0));
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 15px; height: 15px; border-radius: 3px;
  background: conic-gradient(from 210deg, var(--scan), var(--laser), var(--scan));
  box-shadow: 0 0 16px rgba(56, 225, 255, .6);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-name { font-family: var(--disp); font-weight: 700; letter-spacing: .16em; font-size: 1.02rem; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------------- boutons ---------------- */
.btn {
  --glow: 56, 225, 255;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
  border-radius: 12px; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background .25s, border-color .2s;
}
.btn-label { font-weight: 700; }
.btn-sub { font-size: .62rem; letter-spacing: .12em; opacity: .7; margin-top: 3px; text-transform: none; }
.btn-sm { padding: 10px 18px; font-size: .78rem; }
.btn-lg { padding: 17px 30px; font-size: .95rem; }
.btn-xl { padding: 22px 46px; font-size: 1.08rem; }

.btn-primary {
  color: #04121b;
  background: linear-gradient(120deg, var(--scan), var(--laser));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 14px 46px -12px rgba(var(--glow), .65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 22px 60px -14px rgba(var(--glow), .95); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong);
  background: rgba(120, 180, 255, .04);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--scan); background: rgba(56, 225, 255, .08); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px clamp(18px, 4vw, 48px) 90px;
  overflow: hidden;
}
#cloud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 15% 40%, transparent 30%, rgba(5, 6, 11, .55) 100%),
    linear-gradient(180deg, rgba(5, 6, 11, .35), transparent 30%, transparent 70%, var(--void));
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; width: 100%; margin: 0 auto 0 max(0px, calc((100vw - var(--maxw)) / 2)); }

.eyebrow {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--scan); display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.tick { width: 9px; height: 9px; border-radius: 50%; background: var(--scan); box-shadow: 0 0 12px var(--scan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.title {
  font-family: var(--disp); font-weight: 700; line-height: .9;
  font-size: clamp(3.6rem, 15vw, 10rem); letter-spacing: .01em;
  background: linear-gradient(100deg, #d6f2ff 0%, var(--scan) 32%, var(--laser) 68%, #ecd9ff 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
  text-shadow: 0 0 60px rgba(56, 225, 255, .18);
}
@keyframes shimmer { to { background-position: 220% 0; } }

.lede { max-width: 560px; font-size: clamp(1.02rem, 2.2vw, 1.25rem); color: #c3cde3; margin: 26px 0 34px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }

.hud-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 46px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hud-strip li { display: flex; flex-direction: column; gap: 3px; }
.hud-strip .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.hud-strip .v { font-family: var(--disp); font-weight: 600; font-size: .96rem; color: var(--ink); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--scan); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ================= sections communes ================= */
section { position: relative; }
.concept, .modes, .themes { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(18px, 4vw, 48px); }

.section-tag { font-family: var(--mono); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--laser); margin-bottom: 18px; }
.section-tag.center { text-align: center; }
.section-title { font-family: var(--disp); font-weight: 700; line-height: 1.04; font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: .005em; }
.section-title em { font-style: normal; color: var(--scan); }
.section-lede { color: var(--muted); max-width: 620px; font-size: 1.08rem; margin-top: 20px; }

/* ------ concept + stats ------ */
.stat-band {
  margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.stat { background: var(--panel); padding: 30px 24px; }
.stat .num { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); line-height: 1; }
.stat .unit { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--scan); margin-left: 6px; }
.stat .lbl { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); }

/* ------ modes / cards ------ */
.modes .section-title { margin-bottom: 46px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: 16px; padding: 30px 30px 32px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--scan), var(--laser)); opacity: .55; transition: opacity .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(120% 80% at 15% -10%, rgba(56, 225, 255, .16), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 60px -30px rgba(56, 225, 255, .5); }
.card:hover::after { opacity: 1; }
.card-tag { font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .24em; margin-bottom: 16px; }
.card-tag.scan { color: var(--scan); }
.card-tag.data { color: var(--green); }
.card-tag.combat { color: var(--danger); }
.card-tag.boss { color: var(--laser); }
.card h3 { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ------ guerre de territoire ------ */
.war {
  margin-top: 18px; border-radius: 16px; padding: 30px clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 77, 94, .22);
  background: linear-gradient(120deg, rgba(255, 77, 94, .07), rgba(13, 19, 34, .4));
}
.war-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--danger); margin-bottom: 12px; }
.war-line { font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-family: var(--disp); font-weight: 500; color: #e7ecf7; }

/* ------ thèmes ------ */
.themes .section-lede { margin-bottom: 42px; }
.swatches { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.swatches li { display: flex; align-items: center; gap: 20px; }
.ramp {
  flex: 1; height: 30px; border-radius: 8px; background: var(--g);
  box-shadow: 0 0 0 1px var(--line) inset, 0 8px 30px -14px rgba(0, 0, 0, .8);
  position: relative; overflow: hidden;
}
.ramp::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%);
}
.swatches li:hover .ramp::after { animation: sheen 1.1s ease; }
@keyframes sheen { to { transform: translateX(120%); } }
.ramp-name { font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; color: var(--muted); width: 190px; flex-shrink: 0; text-align: right; }

/* ================= CTA final ================= */
.final { padding: clamp(90px, 14vw, 180px) clamp(18px, 4vw, 48px); text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 120%, rgba(176, 107, 255, .18), transparent 70%),
              radial-gradient(50% 80% at 50% -10%, rgba(56, 225, 255, .14), transparent 70%);
}
.final-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final-title { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 8vw, 5rem); line-height: .96;
  background: linear-gradient(100deg, var(--scan), var(--laser)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-note { color: var(--muted); font-size: .92rem; max-width: 420px; }

/* ================= footer ================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px clamp(18px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
  font-family: var(--mono); font-size: .74rem; color: var(--dim); letter-spacing: .04em;
}
.foot-brand { font-family: var(--disp); font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.foot-attr { margin-right: auto; }

/* ================= scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cards .card { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.cards.in .card { opacity: 1; transform: none; }
.cards.in .card:nth-child(2) { transition-delay: .08s; }
.cards.in .card:nth-child(3) { transition-delay: .16s; }
.cards.in .card:nth-child(4) { transition-delay: .24s; }

/* ================= responsive ================= */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { margin-left: 0; }
  .swatches li { gap: 12px; }
  .ramp-name { width: 120px; font-size: .72rem; }
}
@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1; }
  .ramp-name { display: none; }
}

/* ================= accessibilité ================= */
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--scan); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .cards .card { opacity: 1; transform: none; }
}
