/* ═══════════════════════════════════════════════
   AGENT CONSULTING — Cleo Insight Brand System
   Design System V4 — April 2026
   ═══════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,900&display=swap');

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

/* ── Design Tokens ────────────────────────────── */
:root {
  /* Brand */
  --c-blue:          #0008CF;
  --c-blue-hover:    #0006A8;
  --c-blue-light:    rgba(0, 8, 207, 0.06);
  --c-blue-medium:   rgba(0, 8, 207, 0.12);

  /* Neutrals */
  --c-ink:           #1A1A1A;
  --c-ink-hover:     #333333;
  --c-white:         #FFFFFF;
  --c-surface:       #F9F8F6;
  --c-card:          #F0EFEC;
  --c-border:        rgba(0, 0, 0, 0.08);
  --c-border-hover:  rgba(0, 0, 0, 0.15);

  /* Text hierarchy */
  --c-text:          rgba(0, 0, 0, 0.87);
  --c-text-2:        rgba(0, 0, 0, 0.62);
  --c-text-3:        rgba(0, 0, 0, 0.45);
  --c-text-on-dark:  #FFFFFF;
  --c-text-on-dark-2: rgba(255, 255, 255, 0.6);

  /* Semantic (monochrome) */
  --c-pass:          #1A1A1A;
  --c-pass-bg:       rgba(0, 0, 0, 0.04);
  --c-risk:          #946B2D;
  --c-risk-bg:       rgba(148, 107, 45, 0.08);

  /* Modules */
  --c-mint:          #6EC9A0;
  --c-coral:         #F07060;
  --c-teal:          #00B4D8;
  --c-jaune:         #F5C800;
  --c-violet:        #7B3FA0;

  /* Radius — 4 tiers */
  --r-sm:            8px;
  --r-md:            16px;
  --r-lg:            24px;
  --r-pill:          9999px;

  /* Spacing — x4 scale */
  --s-4: 4px;   --s-8: 8px;    --s-12: 12px;
  --s-16: 16px; --s-24: 24px;  --s-32: 32px;
  --s-48: 48px; --s-64: 64px;  --s-96: 96px;
  --s-128: 128px;

  /* Semantic spacing */
  --gap-cards:       var(--s-16);
  --pad-card:        var(--s-24);
  --pad-section:     var(--s-128);
  --pad-page:        40px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.10);

  /* Glass */
  --glass-bg:           rgba(255, 255, 255, 0.55);
  --glass-blur:         saturate(180%) blur(28px);
  --glass-border:       0.5px solid rgba(255, 255, 255, 0.65);
  --glass-heavy-bg:     rgba(255, 255, 255, 0.72);
  --glass-heavy-blur:   saturate(200%) blur(40px);
  --glass-heavy-border: 0.5px solid rgba(255, 255, 255, 0.75);

  /* Motion */
  --ease-luxury:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-apple:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snappy:  cubic-bezier(0.2, 0, 0, 1);
  --dur-fast:     150ms;
  --dur-normal:   250ms;
  --dur-slow:     500ms;
  --dur-reveal:   800ms;

  /* Transitions */
  --transition-hover: all var(--dur-fast) var(--ease-apple);

  /* Focus */
  --focus-ring:      0 0 0 2px var(--c-white), 0 0 0 4px var(--c-blue);

  /* Touch target */
  --touch-min: 44px;

  /* Font */
  --font:      'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Fira Code', monospace;
}

/* ── Base ─────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 64px;
}

::selection { background: var(--c-blue-medium); }
img { display: block; max-width: 100%; }

/* ── Typography classes ───────────────────────── */
.t-display { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; color: var(--c-text); }
.t-h1      { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--c-text); }
.t-h2      { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--c-text); }
.t-h3      { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--c-text); }
.t-body    { font-size: 1rem; font-weight: 400; line-height: 1.7; color: var(--c-text-2); }
.t-caption { font-size: 0.8125rem; font-weight: 400; color: var(--c-text-3); }
.t-label   { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-text-3); }

/* ── Layout ───────────────────────────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.sec {
  padding: var(--pad-section) 0;
}

/* ── NAV — Glass ──────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-page);
  height: 64px;
  background: var(--glass-heavy-bg);
  backdrop-filter: var(--glass-heavy-blur);
  -webkit-backdrop-filter: var(--glass-heavy-blur);
  border-bottom: 1px solid var(--c-border);
}

.nav-wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-3);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: var(--transition-hover);
}

.nav-links a:hover {
  color: var(--c-text);
  background: rgba(0, 0, 0, 0.03);
}

.nav-links a.active {
  color: var(--c-text);
  font-weight: 600;
}

.nav-cta {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-white);
  background: var(--c-ink);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: var(--transition-hover);
  flex-shrink: 0;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--c-ink-hover);
  transform: translateY(-1px);
}

/* ── Mobile menu ──────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease-apple);
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--glass-heavy-bg);
  backdrop-filter: var(--glass-heavy-blur);
  -webkit-backdrop-filter: var(--glass-heavy-blur);
  padding: var(--s-24);
  flex-direction: column;
  gap: var(--s-8);
  border-bottom: 1px solid var(--c-border);
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  transition: var(--transition-hover);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--c-text);
  background: rgba(0, 0, 0, 0.04);
}

.mobile-menu .mobile-cta {
  margin-top: var(--s-8);
  text-align: center;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 14px 24px;
}

.mobile-menu .mobile-cta:hover { background: var(--c-ink-hover); }

/* ── Sections ─────────────────────────────────── */
.section-surface { background: var(--c-surface); }
.section-card { background: var(--c-card); }
.section-white { background: var(--c-white); }

.section-ink {
  background: var(--c-ink);
  color: var(--c-text-on-dark);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--pad-section) var(--pad-page);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 1.25rem;
}

.section-ink .section-label { color: var(--c-text-on-dark-2); }

/* ── Headings ─────────────────────────────────── */
h1 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--c-text);
}

h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--c-text);
}

h2 em {
  color: var(--c-ink);
  font-style: italic;
  font-weight: 700;
}

.section-ink h2 { color: var(--c-text-on-dark); }
.section-ink h2 em { color: rgba(255, 255, 255, 0.7); }

h3 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--c-text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-2);
  max-width: 500px;
  line-height: 1.7;
}

.section-ink .section-subtitle { color: var(--c-text-on-dark-2); }

/* ── Buttons — Landing (pill) ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition-hover);
  min-height: var(--touch-min);
  border-radius: var(--r-pill);
  padding: 14px 28px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled], .btn.disabled { opacity: 0.35; pointer-events: none; transform: none; }

.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-ink-hover); }

.btn-secondary {
  background: var(--c-white);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover { border-color: var(--c-border-hover); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Gradient Canvases ────────────────────────── */
.gc { border-radius: var(--r-lg); position: relative; padding: var(--s-48); }

.gc-hero {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,200,160,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(255,185,140,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(255,210,170,0.15) 0%, transparent 45%),
    var(--c-card);
}

.gc-blue {
  background:
    radial-gradient(ellipse at 25% 50%, rgba(0,8,207,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(0,8,207,0.06) 0%, transparent 50%),
    #EEEDF5;
}

.gc-warm {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(255,200,150,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(255,195,140,0.12) 0%, transparent 45%),
    var(--c-card);
}

.gc-mint {
  background:
    radial-gradient(ellipse at 35% 50%, rgba(110,201,160,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(110,201,160,0.08) 0%, transparent 50%),
    #EDF5F0;
}

/* ── Cards ────────────────────────────────────── */
.card-warm {
  background: var(--c-card);
  border-radius: var(--r-md);
  padding: var(--pad-card);
}

.card-white {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--pad-card);
  transition: var(--transition-hover);
}

.card-white:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--c-border-hover);
}

/* ── Glass ────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.glass-heavy {
  background: var(--glass-heavy-bg);
  backdrop-filter: var(--glass-heavy-blur);
  -webkit-backdrop-filter: var(--glass-heavy-blur);
  border: var(--glass-heavy-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass       { background: rgba(255, 255, 255, 0.88); }
  .glass-heavy { background: rgba(255, 255, 255, 0.92); }
}

/* ── Stats row (Sana pattern) ─────────────────── */
.stat-row {
  display: flex;
  border-top: 0.5px solid var(--c-border);
  border-bottom: 0.5px solid var(--c-border);
}

.stat {
  flex: 1;
  padding: var(--s-48) var(--s-24);
  text-align: center;
  border-right: 0.5px solid var(--c-border);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--c-text);
}

/* ── Badges ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-pass { background: var(--c-pass-bg); color: var(--c-pass); }
.badge-risk { background: var(--c-risk-bg); color: var(--c-risk); }

/* ── Tags ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Reveal animation (SexyScroll-inspired) ───── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-smooth),
              transform var(--dur-reveal) var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ── Lang FAB ─────────────────────────────────── */
.lang-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
}

.lang-fab button {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  color: var(--c-text-3);
  background: transparent;
  transition: var(--transition-hover);
}

.lang-fab button:hover { color: var(--c-text); }
.lang-fab button.active { background: var(--c-ink); color: var(--c-white); }

/* ── Footer ───────────────────────────────────── */
.footer {
  text-align: center;
  padding: var(--s-48) var(--pad-page);
  background: var(--c-card);
  color: var(--c-text-3);
  font-size: 0.8125rem;
  border-top: 1px solid var(--c-border);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 var(--s-24); }
  .nav-links a { padding: 6px 12px; font-size: 0.75rem; }
  .section-inner { padding: var(--s-96) var(--s-24); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .site-nav { padding: 0 var(--s-16); }
  .nav-wordmark { font-size: 0.7rem; letter-spacing: 0.1em; }
  .section-inner { padding: var(--s-64) var(--s-16); }
  .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .stat-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 0.5px solid var(--c-border); padding: var(--s-32) var(--s-24); }
  .stat:last-child { border-bottom: none; }
}

/* ── Reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════
   IDENTITÉ — Mark, Grain, Pull-quote (V2)
   Avril 2026 — Editorial × Boutique
   ═══════════════════════════════════════════════ */

/* ── Monogram / claw mark ─────────────────────── */
.oc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}
.oc-mark svg { width: 100%; height: 100%; }
.oc-mark--lg { width: 64px; height: 64px; margin-right: 0; }
.oc-mark--ink path,
.oc-mark--ink line,
.oc-mark--ink rect { stroke: var(--c-ink); }
.oc-mark--white path,
.oc-mark--white line,
.oc-mark--white rect { stroke: white; }

.nav-wordmark {
  display: inline-flex;
  align-items: center;
}

/* ── Grain texture overlay (subtle film grain) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ── Pull-quote (editorial) ───────────────────── */
.oc-pullquote-wrap {
  padding: var(--s-128) 0;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.oc-pullquote-wrap::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28rem;
  line-height: 1;
  color: var(--c-ink);
  opacity: 0.03;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.oc-pullquote {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
  position: relative;
  text-align: center;
}
.oc-pullquote-mark {
  display: inline-block;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--c-text-3);
  margin-bottom: var(--s-16);
  letter-spacing: -0.05em;
}
.oc-pullquote-text {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin-bottom: var(--s-32);
}
.oc-pullquote-text em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, transparent 0%, transparent 8%, rgba(0,8,207,0.1) 8%, rgba(0,8,207,0.1) 92%, transparent 92%);
  padding: 0 4px;
}
.oc-pullquote-attribution {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}
.oc-pullquote-attribution strong {
  color: var(--c-ink);
  font-weight: 600;
}

/* ── Editorial chapter divider ─────────────────── */
.oc-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-24);
  padding: var(--s-32) 0;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}
.oc-chapter::before, .oc-chapter::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--c-border);
}
.oc-chapter-num {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--c-ink);
  margin-right: 6px;
}
