@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #060a12;
  --bg-elevated: #0c1422;
  --card: rgba(14, 24, 42, 0.72);
  --card-hover: rgba(20, 36, 58, 0.85);
  --card-border: rgba(76, 158, 235, 0.12);
  --text: #eef4fb;
  --muted: #8fa8c4;
  --accent: #4c9eeb;
  --accent-bright: #7ec0ff;
  --accent-glow: rgba(76, 158, 235, 0.45);
  --success: #4ade9a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --section-y: clamp(80px, 11vw, 128px);
  --container: min(1080px, calc(100% - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* —— Fond moderne (pas de bande bleue) —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 158, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 158, 235, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black 20%, transparent 75%);
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.page-bg__orb--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  left: -8%;
  background: rgba(76, 158, 235, 0.22);
  animation: orb-drift-1 22s ease-in-out infinite;
}

.page-bg__orb--2 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  top: 35%;
  right: -12%;
  background: rgba(45, 100, 180, 0.18);
  animation: orb-drift-2 26s ease-in-out infinite;
}

.page-bg__orb--3 {
  width: min(35vw, 320px);
  height: min(35vw, 320px);
  bottom: 5%;
  left: 25%;
  background: rgba(74, 222, 154, 0.08);
  animation: orb-drift-3 20s ease-in-out infinite;
}

.page-bg__beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(126, 192, 255, 0.35),
    transparent
  );
  box-shadow: 0 0 40px rgba(76, 158, 235, 0.25);
  animation: beam-scan 7s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -25px) scale(1.05); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}

@keyframes beam-scan {
  0% { top: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(6, 10, 18, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  gap: 2px;
}

.lang-switch__btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  color: #fff;
  background: rgba(76, 158, 235, 0.35);
  box-shadow: 0 2px 12px rgba(76, 158, 235, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2d6eb8 100%);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-windows {
  background: linear-gradient(135deg, #fff 0%, #e2eef8 100%);
  color: #0a3d6e;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
  padding: 16px 28px;
}

.btn-windows:hover {
  box-shadow: 0 16px 44px rgba(76, 158, 235, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-play {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.btn-play:hover {
  border-color: rgba(126, 192, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 100px) 0 clamp(88px, 12vw, 140px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(76, 158, 235, 0.12), transparent 65%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.flight-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
}

.flight-path--animated path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-path 4s ease forwards 0.5s;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

.flight-path--animated circle {
  opacity: 0;
  animation: dot-in 0.4s ease forwards;
}

.flight-path--animated circle:nth-of-type(1) { animation-delay: 2.2s; }
.flight-path--animated circle:nth-of-type(2) { animation-delay: 2.8s; }

@keyframes dot-in {
  to { opacity: 1; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(76, 158, 235, 0.12);
  border: 1px solid var(--card-border);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.45; transform: scale(0.9); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  display: block;
  margin-top: 0.12em;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-bright),
    #fff,
    var(--accent),
    var(--accent-bright)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-cta .windows-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero-note strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Carte avec bordure animée */
.glow-card {
  position: relative;
  border-radius: 22px;
  isolation: isolate;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(126, 192, 255, 0.6),
    rgba(76, 158, 235, 0.1),
    rgba(74, 222, 154, 0.35),
    rgba(126, 192, 255, 0.5)
  );
  background-size: 300% 300%;
  animation: border-flow 8s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

@keyframes border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  max-width: 380px;
  width: 100%;
  backdrop-filter: blur(16px);
}

.cockpit-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.hero-card img {
  width: 96px;
  display: block;
  margin: 0 auto 24px;
  border-radius: 18px;
  animation: icon-float 4s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.notif-demo {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  margin-top: 10px;
}

.notif-demo.alt {
  border-left-color: var(--success);
}

.notif-slide {
  opacity: 0;
  transform: translateX(16px);
  animation: notif-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.notif-slide-d2 {
  animation-delay: 0.35s;
}

@keyframes notif-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notif-demo .from {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.notif-demo .callsign {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--accent-bright);
  margin-top: 2px;
}

.notif-demo .msg {
  font-weight: 500;
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.plane-float {
  position: absolute;
  top: -18px;
  right: -12px;
  width: 48px;
  height: 48px;
  animation: plane-drift 6s ease-in-out infinite;
}

@keyframes plane-drift {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(-8px, -12px) rotate(2deg); }
}

/* Sections */
section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 30rem;
  font-weight: 300;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2) 50%, transparent);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 192, 255, 0.3);
  background: var(--card-hover);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(76, 158, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-bright);
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
}

.steps-wrap {
  position: relative;
}

.steps-path {
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(126, 192, 255, 0.25) 0,
    rgba(126, 192, 255, 0.25) 10px,
    transparent 10px,
    transparent 20px
  );
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2a6eb5);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
}

.download-band {
  position: relative;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.download-windows {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(12px);
}

.download-windows .win-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(76, 158, 235, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.download-windows h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.download-windows .subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 300;
  line-height: 1.6;
}

.download-windows ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.download-windows li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.download-windows li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.download-android {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.download-android h3 {
  margin: 0 0 10px;
}

.download-android > p {
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 300;
  flex: 1;
  line-height: 1.6;
}

.pricing-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(74, 222, 154, 0.12);
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.faq {
  max-width: 640px;
  margin-inline: auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease;
}

.faq details[open] {
  border-color: rgba(126, 192, 255, 0.25);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
}

.faq code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
}

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-bright);
}

@media (max-width: 900px) {
  .hero-grid,
  .features,
  .steps,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .steps-path {
    display: none;
  }

  .hero-visual {
    order: -1;
  }

  .nav a:not(.btn):not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 520px) {
  .btn-windows {
    width: 100%;
  }

  .hero-cta .windows-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
