/* ═══════════════════════════════════════════
   Design System — Conseil IA
   Pure CSS, zero frameworks
   ═══════════════════════════════════════════ */

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

:root {
  /* Colors */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --purple-600: #9333ea;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --cyan-500: #06b6d4;
  --teal-600: #0d9488;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* Radius */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background-color: var(--indigo-200);
  color: #312e81;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─── */
.font-display { font-family: var(--font-display); }

h1, h2, h3 { line-height: 1.15; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-6xl { font-size: 3.75rem; line-height: 1.05; }
.text-7xl { font-size: 4.5rem; line-height: 1.05; }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 896px; }
.container-md { max-width: 1024px; }
.container-narrow { max-width: 672px; }

/* ─── Gradient text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo-500) 0%, var(--violet-500) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 50%, var(--amber-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Noise texture ─── */
.noise-overlay { position: relative; }
.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ─── Glass cards ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ─── Dot grid ─── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo-600);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.15);
}
.btn-primary:hover {
  background: var(--indigo-700);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--indigo-700);
  padding: 1rem 2rem;
  font-weight: 700;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  background: var(--indigo-50);
}

.btn-ghost {
  color: var(--gray-700);
  font-weight: 600;
  padding: 0;
  gap: 0.5rem;
}
.btn-ghost:hover { color: var(--indigo-600); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-outline {
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
}
.btn-outline:hover {
  border-color: var(--indigo-300);
  color: var(--indigo-600);
}

.arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-indigo {
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.badge-dark {
  background: rgba(99, 102, 241, 0.2);
  color: var(--indigo-300);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--indigo-50);
  color: var(--indigo-600);
}

.tag {
  font-size: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: var(--gray-600);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ─── Sections ─── */
.section { padding: 5rem 1.5rem; }
.section-lg { padding: 6rem 1.5rem; }
.section-dark { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section-gray { background: var(--gray-50); }
.section-white { background: var(--white); }

/* ─── Section label ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

/* ─── Glow blobs ─── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.glow-indigo { background: var(--indigo-600); opacity: 0.1; }
.glow-violet { background: var(--violet-600); opacity: 0.08; }
.glow-indigo-soft { background: var(--indigo-50); opacity: 0.6; }

/* ─── Wave dividers ─── */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.wave-divider svg { width: 100%; display: block; }

.wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-1px);
  line-height: 0;
}
.wave-divider-top svg { width: 100%; display: block; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.logo:hover .logo-text { color: var(--indigo-600); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--indigo-600); }
.nav-link:hover::after, .nav-link[aria-current]::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 1rem; }

.lang-switcher { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.lang-switcher a { color: var(--gray-400); transition: color 0.2s; }
.lang-switcher a:hover { color: var(--gray-600); }
.lang-switcher a.active { font-weight: 600; color: var(--indigo-600); }
.lang-switcher .sep { color: var(--gray-200); user-select: none; }

.btn-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--indigo-600);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}
.btn-header:hover { background: var(--indigo-700); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Mobile menu button */
.hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 2rem; height: 2rem; gap: 5px; }
.hamburger span { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: all 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-100);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { max-width: 1152px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-50);
  transition: color 0.2s;
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover { color: var(--indigo-600); }
.mobile-cta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-600);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}
.mobile-cta:hover { background: var(--indigo-700); }

/* ─── Scroll progress ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo-500), var(--violet-500));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; max-width: 280px; }

.footer-nav h3, .footer-contact h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.footer-nav a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--indigo-500);
  transition: width 0.2s;
  display: block;
  overflow: hidden;
}
.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::before { width: 0.75rem; }

.footer-contact a { color: #94a3b8; transition: color 0.2s; }
.footer-contact a:hover { color: var(--indigo-400); }

.social-links { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-link:hover { background: var(--indigo-600); color: var(--white); }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.75rem;
  margin-top: 1.5rem;
}
.availability-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse 2s infinite;
}
.availability-badge span { font-size: 0.75rem; color: var(--emerald-400); font-weight: 500; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #475569;
}
.footer-bottom a { color: #475569; transition: color 0.2s; }
.footer-bottom a:hover { color: #94a3b8; }

/* ─── Hero sections ─── */
.hero { position: relative; overflow: hidden; padding: 6rem 1.5rem; }
.hero-home { min-height: 90vh; display: flex; align-items: center; background: var(--white); }
.hero-dark { background: var(--navy); padding: 7rem 1.5rem 9rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}

.hero-visual { display: none; }

.hero-content { max-width: 560px; }
.hero-content h1 {
  font-family: var(--font-display);
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-dark .hero-content h1 { color: var(--white); }
.hero-dark .hero-content p { color: #94a3b8; font-size: 1.25rem; }

.hero-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }

.trust-signals {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}
.trust-signals .label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.trust-signals .companies { display: flex; align-items: center; gap: 1.25rem; }
.trust-signals .company { font-size: 0.875rem; font-weight: 600; color: var(--gray-500); }
.trust-signals .dot { color: var(--gray-200); }

/* Code card in hero */
.code-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.12);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}
.code-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.code-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.code-dot-red { background: #f87171; }
.code-dot-amber { background: var(--amber-400); }
.code-dot-green { background: #4ade80; }
.code-filename { margin-left: 0.5rem; font-size: 0.75rem; color: var(--gray-400); font-family: monospace; }

.code-lines { font-family: 'Courier New', monospace; font-size: 0.75rem; line-height: 1.8; }
.code-lines .kw { color: var(--violet-500); }
.code-lines .fn { color: var(--indigo-600); }
.code-lines .str { color: var(--gray-700); }
.code-lines .num { color: var(--amber-600); }
.code-lines .var { color: var(--emerald-500); }
.code-lines .cmt { color: var(--gray-400); }

.code-status {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-stat {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  padding: 1rem;
  z-index: 20;
}
.floating-stat-dark {
  background: var(--indigo-600);
  border: none;
}
.floating-stat .stat-value { font-size: 1.5rem; font-weight: 900; color: var(--gray-900); letter-spacing: -0.02em; }
.floating-stat .stat-label { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.floating-stat-dark .stat-value { color: var(--white); }
.floating-stat-dark .stat-label { color: var(--indigo-200); }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* ─── Stats bar ─── */
.stats-bar {
  background: var(--navy);
  padding: 0.5rem 1.5rem 4rem;
  position: relative;
}
.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-item .stat-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ─── Bento services grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.bento-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bento-card-white {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.bento-card-white:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.bento-card-indigo {
  background: var(--indigo-600);
  color: var(--white);
}
.bento-card-indigo:hover {
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.25);
  transform: translateY(-2px);
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.bento-icon-indigo { background: var(--indigo-600); box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2); }
.bento-icon-white { background: rgba(255, 255, 255, 0.2); }
.bento-icon-amber { background: #fef3c7; }

.bento-link {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--indigo-600);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s;
}
.bento-card:hover .bento-link { gap: 0.75rem; }

.bento-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── Project cards ─── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card { border-radius: var(--radius-2xl); overflow: hidden; }

.project-gradient {
  height: 12rem;
  position: relative;
  overflow: hidden;
}
.project-gradient .client-badge {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-body {
  padding: 1.5rem;
  background: var(--white);
}
.project-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.project-card:hover .project-body h3 { color: var(--indigo-600); }
.project-body p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.project-coming-soon {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-2xl);
  opacity: 0.6;
  transition: opacity 0.2s;
  overflow: hidden;
}
.project-coming-soon:hover { opacity: 0.8; }
.coming-soon-gradient {
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.coming-soon-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.coming-soon-body { padding: 1.25rem; background: var(--white); }
.coming-soon-body h3 { font-weight: 600; color: var(--gray-600); font-size: 0.875rem; margin-bottom: 0.75rem; }
.coming-soon-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.coming-soon-tags .tag { background: var(--gray-50); color: var(--gray-400); border: none; font-size: 0.75rem; }

/* ─── Gradients for project cards ─── */
.grad-indigo-violet { background: linear-gradient(135deg, var(--indigo-500), var(--violet-600)); }
.grad-violet-purple { background: linear-gradient(135deg, var(--violet-500), var(--purple-600)); }
.grad-emerald-teal { background: linear-gradient(135deg, var(--emerald-500), var(--teal-600)); }
.grad-amber-orange { background: linear-gradient(135deg, var(--amber-500), #ea580c); }
.grad-rose-pink { background: linear-gradient(135deg, var(--rose-500), #ec4899); }
.grad-cyan-blue { background: linear-gradient(135deg, var(--cyan-500), #3b82f6); }

/* ─── Blog cards ─── */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.blog-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.blog-card-content { flex: 1; min-width: 0; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.blog-card:hover h2 { color: var(--indigo-600); }
.blog-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

.blog-card-arrow {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
}
.blog-card:hover .blog-card-arrow {
  background: var(--indigo-50);
  color: var(--indigo-600);
}

/* ─── CTA sections ─── */
.cta-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-inner {
  position: relative;
  max-width: 672px;
  margin: 0 auto;
}
.cta-section h2 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.cta-section p { color: #94a3b8; font-size: 1.125rem; margin-bottom: 2.5rem; }

/* ─── Services page ─── */
.service-block {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.service-block + .service-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}

.service-text .service-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.service-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.service-bullets { display: flex; flex-direction: column; gap: 0.75rem; }
.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.service-bullet .check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--indigo-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-bullet span { color: var(--gray-600); line-height: 1.6; }

.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual-box {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--radius-3xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}
.service-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 7.5rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  user-select: none;
}
.service-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-label span { color: var(--white); font-size: 0.875rem; font-weight: 600; }

/* ─── About page ─── */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: end;
  max-width: 1152px;
  margin: 0 auto;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.about-stat .about-stat-value { font-size: 1.5rem; font-weight: 900; color: var(--gray-900); letter-spacing: -0.02em; }
.about-stat .about-stat-label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.about-stat-divider { width: 1px; height: 2.5rem; background: var(--gray-100); }

.about-code {
  display: none;
}
.about-code-box {
  background: var(--gray-900);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1152px;
  margin: 0 auto;
}

/* Timeline */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--indigo-500), var(--indigo-300), transparent);
}
.timeline-items { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { position: relative; padding-left: 3.5rem; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.timeline-dot-default { background: var(--white); color: var(--indigo-600); border: 2px solid var(--indigo-200); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.timeline-dot-current { background: var(--indigo-600); color: var(--white); box-shadow: 0 4px 6px rgba(79,70,229,0.2); }
.timeline-year { font-size: 0.75rem; font-weight: 700; color: var(--indigo-600); text-transform: uppercase; letter-spacing: 0.1em; }
.timeline-label { color: var(--gray-700); line-height: 1.6; margin-top: 0.25rem; }

/* Principles */
.principles { display: flex; flex-direction: column; gap: 1.5rem; }
.principle { display: flex; gap: 1.25rem; }
.principle-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background: var(--indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15);
  transition: transform 0.2s;
}
.principle:hover .principle-icon { transform: scale(1.05); }
.principle h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.375rem; }
.principle p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ─── Contact page ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1152px;
  margin: 0 auto;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--gray-900);
  transition: all 0.2s;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--white);
}

textarea.form-input { resize: none; min-height: 7.5rem; }

.form-gdpr { font-size: 0.75rem; color: var(--gray-400); line-height: 1.5; }

.btn-submit {
  width: 100%;
  background: var(--indigo-600);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15);
  transition: all 0.2s;
}
.btn-submit:hover { background: var(--indigo-700); box-shadow: 0 10px 15px rgba(79, 70, 229, 0.2); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Side info cards */
.side-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}
.side-card-indigo {
  background: var(--indigo-600);
  border: none;
  color: var(--white);
}

.side-card-row { display: flex; align-items: center; gap: 0.75rem; }
.side-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-icon-emerald { background: var(--emerald-50); color: #059669; }

/* ─── Blog article page ─── */
.article-header { margin-bottom: 3rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Prose styles */
.prose { color: var(--gray-700); line-height: 1.8; font-size: 1.0625rem; }
.prose h1, .prose h2, .prose h3 {
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--indigo-600); transition: color 0.2s; }
.prose a:hover { color: var(--indigo-700); text-decoration: underline; }
.prose strong { color: var(--gray-900); font-weight: 600; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose li > ul, .prose li > ol { margin-top: 0.5rem; margin-bottom: 0; }
.prose blockquote {
  border-left: 3px solid var(--indigo-500);
  padding-left: 1rem;
  color: var(--gray-600);
  font-style: italic;
  margin: 1.5rem 0;
}
.prose code {
  background: var(--gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.prose th { font-weight: 600; color: var(--gray-900); background: var(--gray-50); }
.prose img { border-radius: var(--radius-xl); margin: 1.5rem 0; }
.prose hr { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

.article-cta {
  background: var(--indigo-50);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-top: 3rem;
}
.article-cta p { color: var(--gray-700); margin-bottom: 1rem; }
.article-cta a { color: var(--indigo-600); font-weight: 600; }
.article-cta a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--indigo-600); }

/* ─── Success state ─── */
.success-card {
  text-align: center;
  padding: 3rem;
}
.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ─── Animations ─── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.reveal { animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.25s; }
.reveal-d3 { animation-delay: 0.4s; }
.reveal-d4 { animation-delay: 0.55s; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in, .stagger-item { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ─── Back to top ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--indigo-50); color: var(--indigo-600); border-color: var(--indigo-200); }

/* ─── Utility helpers ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.hidden { display: none !important; }

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .btn-header { display: inline-flex; }
  .hamburger { display: none; }

  .text-5xl { font-size: 3rem; }
  .text-6xl { font-size: 3.75rem; }
  .text-7xl { font-size: 4.5rem; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item .stat-number { font-size: 2.25rem; }

  .bento-grid { grid-template-columns: repeat(12, 1fr); }
  .bento-7 { grid-column: span 7; }
  .bento-5 { grid-column: span 5; }
  .bento-12 { grid-column: span 12; }

  .bento-full { flex-direction: row; align-items: center; justify-content: space-between; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .project-8 { grid-column: span 1; }

  .blog-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .section { padding: 6rem 1.5rem; }
  .section-lg { padding: 7rem 1.5rem; }
  .hero { padding: 7rem 1.5rem; }
  .hero-dark { padding: 9rem 1.5rem; }

  .service-block { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .service-block.reverse { direction: rtl; }
  .service-block.reverse > * { direction: ltr; }

  .service-text h2 { font-size: 1.875rem; }

  .about-hero-grid { grid-template-columns: 1fr 1fr; }
  .about-code { display: block; }
  .about-grid { grid-template-columns: 1fr 1fr; }

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

  .footer-grid { grid-template-columns: 5fr 3fr 4fr; }

  .cta-section { padding: 7rem 1.5rem; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }

  .project-grid-masonry { grid-template-columns: repeat(12, 1fr); }
  .project-span-8 { grid-column: span 8; }
  .project-span-4 { grid-column: span 4; }
}
