/* ═══════════════════════════════════════════════════
   flaynn.eu v3 — Carte de visite immersive
   Design System + Responsive
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #0D0D0D;
  --violet: #7B2D8E;
  --orange: #E8651A;
  --gradient: linear-gradient(135deg, #7B2D8E, #E8651A);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Canvas layers ── */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#warp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ── Permanent vignette overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* ── Main content ── */
.page {
  position: relative;
  z-index: 2;
}

/* ── Stations ── */
.station {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* ── STATION 1 — Le Signal ── */
.station-1 {
  text-align: center;
}

.hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.hero-title .line-2 {
  color: var(--orange);
  display: block;
  margin-top: 0.15em;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Warp travel zones (long empty space you scroll through) ── */
.warp-zone {
  height: 150vh;
  width: 100%;
  position: relative;
  pointer-events: none;
}

/* ── STATION 2 — La Vérité ── */
.station-2 {
  min-height: auto;
  padding: 0 1.5rem;
}

.station-2-intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.station-2-intro h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
  max-width: 600px;
  color: var(--text-secondary);
}

/* Stat blocks */
.stat-block {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.stat-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 auto;
}

.stat-source {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 1.2rem;
  text-align: right;
  width: 100%;
  max-width: 480px;
}

/* Quote block */
.quote-block {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quote-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.quote-source {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 1rem;
}

/* Punchline */
.punchline {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.punchline p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 500px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── STATION 3 — La Carte ── */
.station-3 {
  text-align: center;
  min-height: 100vh;
  height: auto;
  padding: 3rem 1.5rem;
  gap: 1.8rem;
}

.station-3-headline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  line-height: 1.4;
  max-width: 600px;
}

.station-3-headline .accent {
  color: var(--orange);
}

/* Scoring card */
.scoring-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
  box-shadow: 0 0 60px rgba(123, 45, 142, 0.12), 0 0 120px rgba(123, 45, 142, 0.05);
}

.scoring-card:hover {
  box-shadow: 0 0 80px rgba(123, 45, 142, 0.22), 0 0 160px rgba(123, 45, 142, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.card-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-score {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  color: var(--orange);
}

/* Score rows */
.score-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
}

.score-row-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 90px;
  text-align: left;
  flex-shrink: 0;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0.8rem;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient);
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-row-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  width: 45px;
  text-align: right;
  flex-shrink: 0;
}

/* Verdict */
.card-verdict {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verdict-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
}

.card-badge {
  margin-top: 1.2rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* Below card text */
.price-line {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
}

.closing-line {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--orange);
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  margin-top: 0.5rem;
}

.btn-cta:hover {
  opacity: 1;
  background: #d15a14;
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
}

/* ── Footer ── */
.site-footer {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-divider {
  width: 120px;
  height: 1px;
  background: var(--glass-border);
  margin: 0 auto 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  height: 40px;
  opacity: 0.6;
}

.footer-tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-legal {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.footer-legal:hover {
  opacity: 1;
}

/* ── Mobile logo (fixed) ── */
.mobile-logo {
  display: none;
}

/* ── Legal modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.modal-content p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

/* Mobile ≤ 639px */
@media (max-width: 639px) {
  .mobile-logo {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    opacity: 0.4;
    height: 20px;
  }

  .station {
    padding: 1.5rem 1.25rem;
  }

  .station-3 {
    padding: 2rem 1.25rem;
    gap: 1.2rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .warp-zone {
    height: 120vh;
  }

  .scoring-card {
    padding: 2rem 1.5rem;
  }

  .score-row-label {
    width: 72px;
    font-size: 0.7rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }
}

/* Tablet 640-767px */
@media (min-width: 640px) and (max-width: 767px) {
  .mobile-logo {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    z-index: 50;
    opacity: 0.4;
    height: 22px;
  }
}

/* Desktop 1024+ */
@media (min-width: 1024px) {
  .station {
    padding: 2rem 3rem;
  }

  .station-3 {
    min-height: 100vh;
    height: auto;
    padding: 4rem 3rem;
    gap: 2rem;
  }

  .warp-zone {
    height: 180vh;
  }

  .scoring-card {
    max-width: 440px;
    padding: 3rem 2.5rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .score-bar-fill {
    transition: none;
  }

  .btn-cta {
    transition: none;
  }

  .scoring-card {
    transition: none;
  }
}
