/* ===========================================================
   Angel Hero — Landing page
   Palette dérivée directement de theme_app_theme.dart
   =========================================================== */

@font-face {
  font-family: 'VarelaRound';
  src: url('./assets/VarelaRound-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Couleurs — identiques à AppTheme (Flutter) */
  --gold: #E6A817;
  --gold-dark: #B18112;
  --gold-light: #F2C053;
  --sapphire: #0F52BA;
  --ivory: #FFFFF0;
  --navy-card: #1E3A8A;
  --emerald: #059669;
  --crimson: #DC2626;
  --text-dark: #1F2937;
  --text-light: #FEFEFE;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 3px 8px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 14px rgba(230, 168, 23, 0.35);

  --font-display: 'VarelaRound', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--text-dark);
}

p { margin: 0; }

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

/* ===================== NAVBAR ===================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 168, 23, 0.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy-card);
}

.nav-logo .crest {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
}

.nav-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-gold);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-links a:hover { color: var(--gold-dark); }

.nav-cta {
  background: var(--gold);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,168,23,0.45); }

.nav-toggle { display: none; }

/* --- Language switcher --- */

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(230,168,23,0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}
.lang-current:hover { border-color: var(--gold); }
.lang-caret { font-size: 10px; color: var(--gold-dark); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(230,168,23,0.3);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 140px;
  display: none;
  z-index: 60;
}
.lang-menu.open { display: block; }

.lang-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.lang-menu li:hover { background: var(--ivory); }
.lang-menu li[aria-selected="true"] { color: var(--gold-dark); background: rgba(230,168,23,0.12); }

/* ===================== HERO ===================== */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,168,23,0.25), transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 168, 23, 0.15);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--gold); }

.hero p.lead {
  font-family: var(--font-body);
  font-size: 17px;
  color: #4B5160;
  max-width: 460px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-card);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn .store-icon { font-size: 20px; line-height: 1; display: flex; align-items: center; }
.store-btn .store-icon.apple-icon svg { display: block; }
.store-btn span.label-stack { display: flex; flex-direction: column; align-items: flex-start; }
.store-btn span.small { font-size: 10px; font-weight: 500; opacity: 0.8; }

.store-btn.disabled {
  background: #C9CDD6;
  color: #6B7280;
  cursor: default;
  box-shadow: none;
}
.store-btn.disabled:hover { transform: none; }

.hero-trust {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 600;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* --- Signature element: level-up evolution (before/after) --- */

.hero-visual {
  position: relative;
}

.evolution-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-portrait-frame {
  position: relative;
  flex: 1;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-card), #15275c);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-missing-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  padding: 0 14px;
}
.img-missing-label span {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.hero-portrait-frame.img-missing .hero-portrait-img { display: none; }
.hero-portrait-frame.img-missing .img-missing-label { display: flex; }

.evolution-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 18px;
  box-shadow: var(--shadow-gold);
}

/* --- Hero icon (above store buttons) --- */

.hero-icon-img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-gold);
  object-fit: cover;
  margin-bottom: 26px;
}
.hero-icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--navy-card), #15275c);
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}

/* ===================== SECTION GENERIC ===================== */

section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.section-head p {
  font-family: var(--font-body);
  color: #4B5160;
  font-size: 16px;
}

/* ===================== HOW IT WORKS ===================== */

.how-it-works { background: white; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid rgba(230,168,23,0.25);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
}

.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: #4B5160; font-family: var(--font-body); }

/* ===================== FEATURES ===================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.feature-card .f-icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
}

.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: #4B5160; font-family: var(--font-body); }

.feature-card.combat { border-color: rgba(220,38,38,0.18); }
.feature-card.combat .f-icon { color: var(--crimson); }
.feature-card.stats .f-icon { color: var(--sapphire); }
.feature-card.social .f-icon { color: var(--emerald); }

/* ===================== SCREENSHOTS ===================== */

.screenshots { background: var(--navy-card); }
.screenshots .section-head h2,
.screenshots .section-head p { color: var(--text-light); }
.screenshots .section-head p { color: rgba(255,255,255,0.75); }
.screenshots .eyebrow { background: rgba(255,255,255,0.12); color: var(--gold-light); }

.screens-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.screens-row::-webkit-scrollbar { height: 6px; }
.screens-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }

.phone-frame {
  flex: 0 0 200px;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: linear-gradient(160deg, #2a4cad, var(--navy-card));
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-frame.img-missing .phone-img { display: none; }
.phone-frame .placeholder-label {
  display: none;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 0 16px;
}
.phone-frame.img-missing .placeholder-label { display: block; }
.phone-frame .placeholder-label span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  z-index: 2;
}

/* ===================== MULTIPLAYER ===================== */

.multiplayer-visuals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.mp-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-card), #15275c);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.mp-frame-portrait {
  width: 300px;
  aspect-ratio: 9 / 16;
}

.mp-frame-landscape {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  aspect-ratio: 16 / 9;
}

.mp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-frame.img-missing .mp-img { display: none; }
.mp-frame .img-missing-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  padding: 0 14px;
}
.mp-frame.img-missing .img-missing-label { display: flex; }
.mp-frame .img-missing-label span {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.multiplayer-body {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-dark);
}

.multiplayer-body .accent {
  color: var(--gold-dark);
}

/* ===================== FAQ ===================== */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: white;
  border: 1px solid rgba(230,168,23,0.25);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-dark);
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: '–'; }

.faq-item p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #4B5160;
  padding-bottom: 20px;
  line-height: 1.6;
}

/* ===================== CTA FINAL ===================== */

.final-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  color: var(--text-light);
  font-size: 30px;
  margin-bottom: 14px;
}
.final-cta p {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 30px;
}

.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }
.final-cta .store-btn { background: var(--navy-card); }
.final-cta .store-btn.disabled { background: rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); }

/* ===================== FOOTER ===================== */

footer {
  padding: 40px 0 28px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(230,168,23,0.25);
  padding-top: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-card);
  font-size: 15px;
}

.footer-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 600;
}
.footer-links a:hover { color: var(--gold-dark); }

.footer-copy {
  font-size: 12px;
  color: #9CA3AF;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 34px; }
  .steps-row, .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-trust { flex-wrap: wrap; gap: 12px; }
  .footer-row { flex-direction: column; text-align: center; }
  .mp-frame-landscape { min-width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  section { padding: 60px 0; }
  .multiplayer-body { font-size: 19px; }
}

@media (max-width: 420px) {
  .evolution-row { flex-direction: column; }
  .evolution-arrow { transform: rotate(90deg); }
  .hero-portrait-frame { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}