/* ============================================================
   DataNov Conseil — Design System
   Palette: Navy + Royal + Amber + Sand
   Fonts: Space Grotesk (display) + Inter (body) + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --navy: #0B1E3F;
  --navy-2: #122a55;
  --royal: #1E40AF;
  --royal-2: #3B82F6;
  --amber: #F59E0B;
  --amber-2: #FBBF24;
  --sand: #FAF7F2;
  --sand-2: #F1ECE2;
  --surface: #F8FAFC;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --success: #10B981;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ===== Container ===== */
.container-x { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px) { .container-x { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .container-x { padding-left: 3rem; padding-right: 3rem; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: all 200ms ease-out; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,30,63,0.25); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

/* ===== Navbar ===== */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all 250ms ease; }
.nav-wrap.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-wrap.scrolled .nav-link, .nav-wrap.scrolled .nav-brand-text { color: var(--text); }
.nav-wrap.scrolled .nav-cta-light { display: none; }
.nav-wrap.scrolled .nav-cta-dark { display: inline-flex; }
.nav-link { color: var(--text); font-weight: 500; font-size: 0.92rem; padding: 0.5rem 0.75rem; border-radius: 8px; transition: background 200ms; }
.nav-link:hover { background: var(--sand-2); }
.nav-link.active { color: var(--royal); }

/* When hero is dark and nav is transparent */
.nav-on-dark .nav-link, .nav-on-dark .nav-brand-text { color: rgba(255,255,255,0.92); }
.nav-on-dark .nav-link:hover { background: rgba(255,255,255,0.08); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 0%, rgba(30,64,175,0.35), transparent 60%),
              radial-gradient(800px 600px at 10% 100%, rgba(245,158,11,0.18), transparent 60%),
              linear-gradient(180deg, #081A38 0%, #0B1E3F 60%, #122a55 100%);
  color: #fff;
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  position: absolute; inset: 0; pointer-events: none; mask-image: radial-gradient(closest-side at 50% 40%, #000 30%, transparent 75%);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--amber-2); box-shadow: 0 0 12px var(--amber-2); }

/* Animated data-viz blob in hero */
.viz {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto;
}
.viz-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.viz-bar { position: absolute; bottom: 18%; width: 8%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--amber-2), var(--amber)); box-shadow: 0 0 24px rgba(245,158,11,0.4); }

/* ===== Section ===== */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-sand { background: var(--sand); }
.section-surface { background: var(--surface); }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--royal); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-dark .eyebrow { color: var(--amber-2); }

.section-title { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
.section-lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.section-dark .section-lede { color: rgba(255,255,255,0.75); }

/* ===== Logo Marquee ===== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; animation: marquee 38s linear infinite; width: max-content; align-items: center; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-cell { color: var(--muted); font-weight: 600; font-family: 'Space Grotesk'; font-size: 1.25rem; letter-spacing: -0.02em; opacity: 0.85; transition: opacity 200ms, color 200ms; white-space: nowrap; }
.logo-cell:hover { opacity: 1; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem;
  transition: transform 250ms ease, border-color 250ms, box-shadow 250ms;
}
.card:hover { border-color: var(--navy); box-shadow: 0 16px 40px -16px rgba(11,30,63,0.18); }
.card-dark { background: linear-gradient(180deg, #0e2347, #0B1E3F); color: #fff; border-color: rgba(255,255,255,0.08); }
.card-dark:hover { border-color: rgba(245,158,11,0.4); }

.icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(30,64,175,0.08); color: var(--royal); }
.card-dark .icon-wrap { background: rgba(245,158,11,0.12); color: var(--amber-2); }

/* ===== Stats ===== */
.stat-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff 0%, #9DB5E0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section:not(.section-dark) .stat-num { background: linear-gradient(180deg, var(--navy) 0%, var(--royal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Bento ===== */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento-1 { grid-column: span 1 / span 1; } @media (min-width: 768px) { .bento-1 { grid-column: span 3 / span 3; } }
.bento-2 { grid-column: span 1 / span 1; } @media (min-width: 768px) { .bento-2 { grid-column: span 3 / span 3; } }
.bento-3 { grid-column: span 1 / span 1; } @media (min-width: 768px) { .bento-3 { grid-column: span 2 / span 2; } }
.bento-4 { grid-column: span 1 / span 1; } @media (min-width: 768px) { .bento-4 { grid-column: span 2 / span 2; } }
.bento-5 { grid-column: span 1 / span 1; } @media (min-width: 768px) { .bento-5 { grid-column: span 2 / span 2; } }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Forms ===== */
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; display: block; }
.form-input, .form-textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 200ms, box-shadow 200ms;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(30,64,175,0.12); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.footer { background: #050F22; color: #cbd5e1; }
.footer a { color: #cbd5e1; transition: color 200ms; }
.footer a:hover { color: #fff; }
.footer-h { color: #fff; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 1rem; }

/* ===== Tags ===== */
.tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--sand-2); color: var(--navy); font-size: 0.78rem; font-weight: 500; }
.section-dark .tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

/* ===== Mobile nav ===== */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } .menu-toggle { display: none; } }
@media (max-width: 1023.99px) { .desktop-nav { display: none; } }

/* ===== Tech logos ===== */
.tech-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 500; font-size: 0.88rem; color: var(--text); transition: all 200ms; }
.tech-chip:hover { border-color: var(--navy); }
.tech-chip svg { width: 16px; height: 16px; }

/* ===== Job card ===== */
.job { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: #fff; transition: all 200ms; cursor: pointer; }
.job:hover { border-color: var(--navy); background: var(--sand); }
.job-arrow { transition: transform 200ms; }
.job:hover .job-arrow { transform: translateX(4px); }

/* ===== Case card ===== */
.case-card { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, var(--navy) 0%, #050F22 100%); color: #fff; padding: 2rem; min-height: 260px; }
.case-card .case-bg { position: absolute; inset: 0; opacity: 0.12; background-image: linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(135deg, #000, transparent 70%); }
.case-card .case-metric { font-family: 'Space Grotesk'; font-size: 2.6rem; line-height: 1; color: var(--amber-2); font-weight: 700; letter-spacing: -0.03em; }

/* ===== Utility helpers ===== */
.divider { height: 1px; background: var(--border); }
.divider-dark { height: 1px; background: rgba(255,255,255,0.08); }
.shadow-soft { box-shadow: 0 12px 40px -12px rgba(11,30,63,0.18); }
