:root {
  --night: #0a0e1e;
  --night-2: #101d35;
  --board: #0f1530;
  --meadow: #161d3a;
  --meadow-line: #232c54;
  --stone: #2b3355;
  --fly: #fff3b0;
  --halo: #ffd968;
  --good: #79e0a6;
  --ink: #eef1ff;
  --muted: #8f98c6;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #17264a 0%, rgba(23, 38, 74, 0) 60%),
    linear-gradient(180deg, #0a0e1e 0%, #0b1224 45%, #0a0e1e 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.glow-text { color: var(--halo); text-shadow: 0 0 24px rgba(255, 217, 104, 0.45); }
.fly-text { color: var(--fly); }

/* ---------- Ciel étoilé / lucioles flottantes ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fly);
  box-shadow: 0 0 8px 2px rgba(255, 217, 104, 0.7);
  opacity: 0;
  animation: drift linear infinite, blink ease-in-out infinite;
}
@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-40px) translateX(24px); }
}
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.9; }
}

.content { position: relative; z-index: 1; }

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.3px;
}
/* Luciole : corps lumineux + deux ailes translucides qui battent (repris du jeu). */
.brand .dot {
  position: relative;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fffbe6, var(--fly) 46%, var(--halo) 82%);
  box-shadow: 0 0 14px 4px rgba(255, 217, 104, 0.55), 0 0 30px 8px rgba(255, 206, 110, 0.22);
}
.brand .dot::before, .brand .dot::after {
  content: "";
  position: absolute;
  top: 2%;
  width: 58%;
  height: 74%;
  background: linear-gradient(180deg, rgba(255, 249, 220, 0.62), rgba(255, 228, 150, 0.1));
  border-radius: 72% 72% 54% 54%;
  z-index: -1;
}
.brand .dot::before { left: -30%; transform-origin: 86% 82%; animation: wingL 1.35s ease-in-out infinite; }
.brand .dot::after { right: -30%; transform-origin: 14% 82%; animation: wingR 1.35s ease-in-out infinite; }
@keyframes wingL { 0%, 100% { transform: rotate(-20deg) scaleX(1); } 50% { transform: rotate(-31deg) scaleX(0.9); } }
@keyframes wingR { 0%, 100% { transform: rotate(20deg) scaleX(1); } 50% { transform: rotate(31deg) scaleX(0.9); } }
.head-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.lang-switch a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lang-switch a.active { color: var(--night); background: var(--halo); }
.lang-switch a:not(.active):hover { color: var(--ink); }
.nav-cta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 217, 104, 0.12);
  border: 1px solid rgba(255, 217, 104, 0.3);
  color: var(--halo);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: rgba(255, 217, 104, 0.2); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding: 56px 0 40px;
}
.hero-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero-copy .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 14px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.pill {
  font-size: 13.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--ink);
}
.pill .ic { color: var(--halo); margin-right: 6px; }

/* ---------- Boutons store ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #14192e;
  border: 1px solid var(--card-border);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 217, 104, 0.4);
  box-shadow: 0 10px 30px -12px rgba(255, 217, 104, 0.35);
}
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .st-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .st-txt small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.store-btn .st-txt span { font-family: var(--display); font-weight: 600; font-size: 18px; }

/* Official store badges */
.store-badge { display: inline-block; height: 52px; border-radius: 11px; transition: transform 0.2s, box-shadow 0.2s; }
.store-badge .badge-svg { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.store-badge--soon { position: relative; cursor: default; }
.store-badge--soon .badge-svg { filter: grayscale(1); opacity: 0.45; }
.store-badge--soon:hover { transform: none; box-shadow: none; }
.store-badge--soon .soon-tag {
  position: absolute; top: -9px; right: -6px;
  background: var(--halo); color: #0e1220;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.3px; padding: 2px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}

/* ---------- Hero mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #222b47, #0d1224);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(255, 217, 104, 0.25);
}
.phone img { width: 100%; display: block; border-radius: 31px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; position: relative; }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 44px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 14px;
  align-items: center;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255, 217, 104, 0.25); }
.feature .emoji {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 217, 104, 0.1);
  font-size: 26px;
  line-height: 1;
  box-sizing: border-box;
  padding-top: 4px;
}
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0; }
.feature p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.shot {
  border-radius: 32px;
  padding: 8px;
  background: linear-gradient(160deg, #1b2340, #0c1122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}
.shot:hover { transform: translateY(-6px); }
.shot:nth-child(2) { transform: translateY(-18px); }
.shot:nth-child(2):hover { transform: translateY(-24px); }
.shot img { width: 100%; display: block; border-radius: 25px; }

/* ---------- CTA final ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 217, 104, 0.12), rgba(255, 217, 104, 0) 70%);
  border-radius: 32px;
  padding: 64px 24px;
  border: 1px solid var(--card-border);
  margin: 40px 0;
}
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.cta .store-row { justify-content: center; }

/* ---------- Partage ---------- */
.share { margin-top: 36px; }
.share-label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.share-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.share-btn {
  position: relative;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.share-btn svg { width: 20px; height: 20px; fill: currentColor; }
.share-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 217, 104, 0.4);
  background: rgba(255, 217, 104, 0.08);
  color: var(--halo);
}
.share-copy .copied-tag {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--halo); color: #0e1220;
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.3px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 34px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer .brand { justify-content: center; margin-bottom: 12px; font-size: 18px; }

/* Herbe décorative en bas de page */
.grass {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(6px 6px at 82% 40%, rgba(255, 217, 104, 0.9), transparent 70%),
    linear-gradient(180deg, transparent, rgba(10, 14, 30, 0.6));
  -webkit-mask-image: linear-gradient(180deg, transparent, black 60%);
          mask-image: linear-gradient(180deg, transparent, black 60%);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .pill-row, .store-row { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .shot:nth-child(2) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .firefly { animation: blink 4s ease-in-out infinite; }
  * { scroll-behavior: auto; }
}
