/* ===== VARIABLES ===== */
:root {
  --bg: #0b1220;
  --surface: #121a2b;
  --text: #e8eefc;
  --muted: #a7b3d2;
  --primary: #5dd6c7;
  --primary-2: #7aa7ff;
  --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(93, 214, 199, 0.15), transparent),
    radial-gradient(900px 500px at 80% 0%, rgba(122, 167, 255, 0.12), transparent),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
}

.section__title {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.section__subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 80%, transparent),
    color-mix(in srgb, var(--primary-2) 70%, transparent)
  );
  color: #0b1220;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.lead {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ===== GRILLES ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== PAIN CARDS ===== */
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
}

.pain-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 14px;
}

.pain-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
}

.feature-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== WAITLIST ===== */
.waitlist {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.waitlist__form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.waitlist__input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist__input:focus {
  border-color: var(--primary);
}

.waitlist__input::placeholder {
  color: var(--muted);
}

.waitlist__msg {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.waitlist__msg--ok { color: var(--primary); }
.waitlist__msg--err { color: #f87171; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__inner a {
  color: var(--primary);
  text-decoration: none;
}

.footer__inner a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .lead { font-size: 1rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .waitlist__form {
    flex-direction: column;
  }

  .waitlist__input {
    width: 100%;
  }

  .section { padding: 50px 0; }
  .hero { padding: 60px 0 40px; }
}
