/* HelloSEO — Design System
   Type: Plus Jakarta Sans (display) + Inter (body)
   Aesthetic: Framer-modern, minimal, sophisticated, electric blue
*/

:root {
  /* Palette */
  --bg: oklch(0.99 0.003 240);
  --bg-elev: #ffffff;
  --bg-soft: oklch(0.97 0.005 240);
  --ink: oklch(0.16 0.012 250);
  --ink-soft: oklch(0.32 0.012 250);
  --ink-muted: oklch(0.52 0.01 250);
  --ink-faint: oklch(0.72 0.008 250);
  --line: oklch(0.92 0.006 240);
  --line-soft: oklch(0.95 0.005 240);

  /* Accents — bleu électrique principal */
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-light: #DBEAFE;
  --accent-soft: oklch(0.96 0.025 255);
  --accent-glow: oklch(0.55 0.22 258);

  /* Secondaires */
  --violet: #7C3AED;
  --green: #10B981;
  --green-soft: oklch(0.95 0.04 160);

  /* Type */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 18px 50px -18px rgba(37, 99, 235, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.012 250);
  --bg-elev: oklch(0.20 0.013 250);
  --bg-soft: oklch(0.22 0.013 250);
  --ink: oklch(0.98 0.003 240);
  --ink-soft: oklch(0.85 0.008 240);
  --ink-muted: oklch(0.68 0.01 240);
  --ink-faint: oklch(0.45 0.012 250);
  --line: oklch(0.28 0.013 250);
  --line-soft: oklch(0.24 0.013 250);
  --accent-light: oklch(0.30 0.08 258);
  --accent-soft: oklch(0.25 0.04 258);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* Type scale */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  hyphens: none;
  word-break: keep-all;
}

h1 { font-size: clamp(48px, 6.5vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; color: var(--ink-soft); text-wrap: pretty; hyphens: none; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--bg-elev);
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* Section spacing */
section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }

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

[data-anim="off"] .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Glass card */
.glass {
  background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
}

/* Grid utility */
.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Pill badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 20%, transparent);
}

/* Number marker */
.num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pulse for live dots */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

@keyframes draw-line {
  from { stroke-dashoffset: var(--len, 1000); }
  to { stroke-dashoffset: 0; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
