/* ═══════════════════════════════════════════════════════════════════
   Studio Clarté — landing page
   Plain CSS, no framework, no build step (Cloudflare Pages serves /public)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --brand-blue: #3b82f6;
  --brand-blue-strong: #2563eb;
  --brand-violet: #8b5cf6;
  --brand-violet-strong: #7c3aed;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 5vw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue-strong), var(--brand-violet-strong));
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.brand-name strong { font-weight: 700; }

.site-nav { display: flex; gap: 1.4rem; color: var(--muted); font-size: 0.95rem; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.lang-link {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  color: var(--muted);
}
.lang-link:hover { color: var(--ink); }

.lang-link.active {
  color: var(--brand-blue-strong);
  background: rgba(37, 99, 235, 0.1);
}

.lang-sep { color: var(--line); }
.site-nav a:hover { color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-strong), var(--brand-violet-strong));
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45); }

.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand-blue-strong); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }

.btn:focus-visible, .site-nav a:focus-visible, .lang-link:focus-visible,
.site-footer nav a:focus-visible, .brand:focus-visible, .section-sub a:focus-visible {
  outline: 3px solid var(--brand-blue-strong);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 5vw clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
    radial-gradient(50% 50% at 85% 10%, rgba(139, 92, 246, 0.1), transparent 70%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-sub {
  max-width: 42rem;
  margin: 1.2rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Pipeline 1 → 2 → 3 → 4 */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-strong), var(--brand-violet-strong));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.pipeline-arrow { color: var(--brand-blue-strong); font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 5vw; }
.section-alt { background: var(--bg-alt); }

.section h2, .cta h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.015em;
}

.section-sub {
  max-width: 40rem;
  margin: 0.8rem auto 2.5rem;
  text-align: center;
  color: var(--muted);
}

.section-sub a {
  color: var(--brand-blue-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section-sub a:hover { text-decoration-thickness: 2px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.card {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-icon { font-size: 1.6rem; }
.card h3 { margin: 0.6rem 0 0.4rem; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Steps (how it works) */
.steps {
  list-style: none;
  max-width: 44rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps .step-num { margin-top: 0.15rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.95rem; grid-column: 2; }

/* Screenshot placeholders */
.shots { display: flex; justify-content: center; }
.shot-placeholder {
  padding: 2.5rem 3rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 5vw;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.08));
}

.cta p { max-width: 38rem; margin: 1rem auto 1.8rem; color: var(--muted); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer nav a:hover { color: var(--ink); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
}
