:root {
  /* Palette alignée sur polarsite */
  --bg: #080f1e;
  --bg-2: #0d1828;
  --card: #102030;
  --border: rgba(96, 165, 250, 0.18);
  --border-2: rgba(96, 165, 250, 0.3);
  --text: #e8f2ff;
  --muted: #7a91ae;
  --accent: #60a5fa;       /* bleu */
  --accent-dark: #3b82f6;
  --accent-2: #22d3ee;     /* cyan */
  --glow: rgba(96, 165, 250, 0.22);
  --radius: 16px;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Backgrounds */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.2;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  z-index: -2;
}
.bg-glow {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Logo */
.logo-img { width: 32px; height: 32px; object-fit: contain; }
.logo-text {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 1.2rem;
}
.logo-text .lt-polar { color: var(--accent); }
.logo-text .lt-ai { color: #fff; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(96, 165, 250, 0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(96, 165, 250, 0.1); }

/* Hero */
.hero {
  max-width: 860px;
  margin: 60px auto 100px;
  padding: 0 24px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #46e08a;
  box-shadow: 0 0 10px #46e08a;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta.center { margin-top: 6px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-2);
}
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 12px auto 50px;
  max-width: 520px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 60px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Console */
.console {
  background: var(--surface-3, #0b1624);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 760px;
  margin: 0 auto;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.c-dot { width: 12px; height: 12px; border-radius: 50%; }
.c-dot.red { background: #ff5f56; }
.c-dot.yellow { background: #ffbd2e; }
.c-dot.green { background: #27c93f; }
.console-title {
  margin-left: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}
.console-body {
  padding: 22px;
  min-height: 280px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}
.msg { margin-bottom: 16px; display: flex; gap: 10px; }
.msg .who { color: var(--accent-2); font-weight: 700; flex-shrink: 0; }
.msg.ai .who { color: var(--accent); }
.msg .txt { color: var(--text); white-space: pre-wrap; }
.cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Download */
.download-box {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}
.download-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.download-box p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.micro { font-size: 0.82rem; margin-top: 22px; }

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 50px 24px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer .brand { justify-content: center; margin-bottom: 14px; }
.footer p { color: var(--muted); max-width: 460px; margin: 0 auto 14px; }
.footer small { color: #5b6b85; }

/* Blocs publicitaires */
.ad-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px 30px;
  text-align: center;
  min-height: 90px;
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-stats { gap: 28px; }
}
