:root {
  --bg: #0f1115;
  --bg2: #14161a;
  --panel: #1c1e24;
  --panel2: #23262e;
  --border: #2c3038;
  --accent: #5b8def;
  --accent2: #8b5bef;
  --text: #e8e8e8;
  --muted: #8a909c;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 22px rgba(91,141,239,.32);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(91,141,239,.45); }
.btn-ghost {
  background: var(--panel2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  background: rgba(15,17,21,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand { font-size: 1.15rem; font-weight: 700; color: var(--text); display: flex; gap: 7px; align-items: center; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 90px 24px 70px; text-align: center; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(139,91,239,.22), transparent 70%),
              radial-gradient(ellipse 40% 40% at 30% 10%, rgba(91,141,239,.18), transparent 70%);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 99px;
  background: var(--panel2); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; letter-spacing: -.5px; }
.lead { font-size: clamp(1rem, 2vw, 1.18rem); color: #c4c8d0; max-width: 720px; margin: 0 auto 30px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* mini démo */
.hero-demo {
  margin: 46px auto 0; max-width: 640px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
}
.demo-input {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 15px; font-size: .9rem; color: #cfd3da; white-space: nowrap;
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #5be08a; box-shadow: 0 0 10px #5be08a; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.demo-arrow { color: var(--accent); font-size: 1.4rem; }
.demo-outputs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.demo-chip {
  background: linear-gradient(90deg, rgba(91,141,239,.16), rgba(139,91,239,.16));
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: .9rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  animation: chipIn .5s ease forwards;
  animation-delay: calc(.4s + var(--d) * .25s);
}
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }

/* ===== Strip / stats ===== */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 10px auto; padding: 28px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; gap: 16px;
}
.strip-item .num { display: block; font-size: 2.1rem; font-weight: 700; }
.strip-item .num.grad, .strip-item .num { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-item label { color: var(--muted); font-size: .88rem; }

/* ===== Sections ===== */
.section { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.section.alt { max-width: none; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.step-no {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.card-icon { font-size: 1.9rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card em { color: #c4c8d0; font-style: normal; font-weight: 600; }

/* audience */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.aud-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.aud-emoji { font-size: 2.4rem; }
.aud-card h3 { font-size: 1.3rem; margin: 12px 0 16px; }
.aud-card ul { list-style: none; padding: 0; margin: 0; }
.aud-card li { padding: 8px 0 8px 28px; position: relative; color: #c4c8d0; }
.aud-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(91,141,239,.18); }
.plan-tag {
  position: absolute; top: -12px; left: 24px; font-size: .75rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff;
}
.plan h3 { margin: 6px 0 4px; font-size: 1.3rem; }
.price { margin: 6px 0 18px; }
.price span { font-size: 2.4rem; font-weight: 700; }
.price small { color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 7px 0; color: #c4c8d0; font-size: .95rem; }
.plan .btn { width: 100%; text-align: center; }
.pricing-foot { text-align: center; color: var(--muted); margin-top: 28px; font-size: .92rem; }

/* final cta */
.final-cta { text-align: center; padding: 90px 24px; max-width: 720px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 14px; }
.final-cta p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }

/* footer */
.footer {
  border-top: 1px solid var(--border); padding: 28px 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #c4c8d0; font-size: .9rem;
}
.footer-muted { color: var(--muted); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .demo-dot { animation: none; }
  .demo-chip { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .steps, .cards, .audience, .plans, .strip { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
