:root {
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-blue-accent: #3b82f6;
  --color-background: #0a0a0f;
  --color-surface: #0f0f1a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);
  --bg-color: var(--color-background);
  --card-bg: rgba(10, 15, 45, 0.4);
  --text-main: var(--color-text);
  --text-muted: var(--color-text-muted);
  --accent-purple: var(--color-primary);
  --accent-purple-glow: rgba(99, 102, 241, 0.3);
  --accent-blue: var(--color-blue-accent);
  --deep-blue: #121C55;
  --border-light: var(--color-border);
}

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

html {
  overflow-x: clip;
  overflow-y: scroll;
  scroll-behavior: smooth;
  min-height: 100%;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* FIX OVERFLOW-X : clipper les glow-blobs absolus (right:-100px / left:-100px) */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

span,
a {
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.container,
[class*="container"],
[class*="wrapper"],
[class*="inner"],
[class*="content"] {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
  box-sizing: border-box;
}

section,
[class*="Section"],
[class*="-section"] {
  padding: 8rem 0;
  position: relative;
  overflow-x: clip;
  scroll-margin-top: 80px;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), #6D28D9);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  contain: paint; /* FIX OVERFLOW-X : le blur ne doit pas étendre le scrollWidth */
}

.glow-purple {
  background: var(--accent-purple);
  width: 400px;
  height: 400px;
  top: -150px;
  right: 0; /* FIX OVERFLOW-X : remplace right:-100px qui dépassait le viewport */
}

.glow-blue {
  background: var(--accent-blue);
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 0; /* FIX OVERFLOW-X : remplace left:-100px qui dépassait le viewport */
  opacity: 0.2;
}

.site-header {
  padding: 14px 40px;
  position: fixed;
  left: 0;
  width: 100%;
  top: 0;
  z-index: 9999;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  touch-action: auto;
}

.site-header.scrolled {
  padding: 12px 40px;
  background: rgba(11, 11, 15, 0.95);
}

.site-header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.nav-right,
.nav-links {
  display: flex;
  align-items: center;
}

.navbar,
.header,
[class*="nav"],
[class*="header"] {
  pointer-events: auto;
  touch-action: auto;
}

.nav-right {
  gap: 32px;
}

.nav-links {
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--accent-purple);
}

.brand-title {
  font-family: 'Ethnocentric', 'Orbitron', sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em; /* Coller les lettres */
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}

.egapia-text {
  font-family: 'Ethnocentric', 'Orbitron', sans-serif;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}

.egapia-text .e-letter {
  color: #3B82F6;
}

.brand-title .blue-e {
  color: #4A6FFF;
  background: linear-gradient(135deg, #2563EB 0%, #4A6FFF 45%, #8EA2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(74, 111, 255, 0.35));
}

.brand-e {
  color: #3B82F6;
  font-family: inherit;
  font-weight: 700;
}

.brand-gapia {
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
}

.brand-inline {
  font-size: 0.95em;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #fff;
}

.brand-subtitle .blue-text {
  color: #4A6FFF;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-main-logo {
  max-width: 300px;
  height: auto;
  margin: 0 auto 2rem auto;
  filter: drop-shadow(0 0 20px #3B5BDB);
  animation: logoFadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
  background: rgba(99, 102, 241, 0.3);
  mix-blend-mode: screen; /* Rend le fond noir/sombre de l'image transparent */
  isolation: isolate;
}

@keyframes logoFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-main-logo {
    max-width: 200px;
  }
}

.hero {
  padding-top: 9rem;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-title {
  max-width: 980px;
  margin: 0 auto 2rem auto;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
}

.hero .hero-title span {
  color: #4A6FFF;
}

h1,
h2,
h3,
h4,
.section-title,
.cta-title {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p,
.subtitle,
.description {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
    overflow-x: clip;
    overflow-y: scroll;
  }

  section,
  .section,
  [class*="section"] {
    position: relative !important;
    overflow-x: clip;
  }

  .site-header {
    padding: 12px 20px;
  }

  .site-header.scrolled {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 1rem;
  }

  .nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 7rem;
    min-height: auto;
  }

  .hero-title {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .hero-visual {
    margin-top: 3rem;
    position: relative !important;
  }

  .abstract-ui,
  .automation-impact {
    height: auto !important;
    overflow-x: hidden;
    padding: 1.25rem !important;
    gap: 1.25rem !important;
  }

  .automation-impact > div:first-child {
    position: relative;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
    padding-right: 0;
  }

  .stats-card,
  [class*="impact"],
  [class*="stats"] {
    width: 100% !important;
    margin: 0 auto 16px auto !important;
    position: relative !important;
  }

  .badge,
  [class*="badge"],
  [class*="status"] {
    position: static !important;
    top: auto;
    right: auto;
  }

  .situations-title,
  [class*="situations"] h2 {
    position: relative !important;
    z-index: 1;
    margin-top: 24px;
    padding: 0 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

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

  .grid-4 {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  footer .nav-links,
  footer nav,
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 0;
  }

  footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    align-items: flex-start !important;
  }

  .legal-links {
    flex-direction: column;
    gap: 8px !important;
  }
}

@media (max-width: 768px) {
  .container,
  [class*="container"],
  [class*="wrapper"],
  [class*="inner"],
  [class*="content"] {
    padding-left: 20px;
    padding-right: 20px;
  }

  section {
    padding-top: clamp(48px, 10vw, 80px);
    padding-bottom: clamp(48px, 10vw, 80px);
  }

  [class*="grid"],
  [class*="Grid"] {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  [class*="flex-row"],
  [class*="row"] {
    flex-direction: column;
    align-items: stretch;
  }

  [class*="card"],
  [class*="Card"],
  [class*="item"],
  [class*="Item"] {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .container,
  [class*="container"],
  [class*="wrapper"],
  [class*="inner"],
  [class*="content"] {
    padding-left: 18px;
    padding-right: 18px;
  }

  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 4rem !important;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 2.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
  transform: translateX(-50%);
}

footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-purple);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-visual {
  margin-top: 5rem;
  position: relative;
}

.abstract-ui {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  height: 400px;
  background: rgba(25, 25, 30, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.automation-impact {
  height: auto;
}

.abstract-sidebar {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.abstract-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-number {
  color: transparent;
  background: linear-gradient(135deg, #fff, #9CA3AF);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

/* Icons styling */
.icon-container {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.icon-container i {
  font-size: 1.5rem;
  color: var(--accent-purple);
}

.legal-page {
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content p {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .legal-content {
    padding: 2rem 1.25rem;
  }
}

/* =====================
   PREMIUM NAVBAR
   ===================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(4, 6, 18, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
  touch-action: auto;
}

#navbar.scrolled {
  background: rgba(4, 6, 18, 0.92);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  color: #fff;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 34px;
}

.logo-crop {
  display: inline-block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-crop img,
.nav-logo .logo-crop img,
.hero-title-line1 .logo-crop img {
  position: absolute;
  top: -505%;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.logo-crop-nav {
  width: 156px;
  height: 34px;
}

.logo-crop-hero {
  width: clamp(150px, 24vw, 260px);
  height: clamp(32px, 5vw, 58px);
}

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

.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a[href^="mailto"] {
  color: rgba(255, 255, 255, 0.6);
}

.nav-cta {
  padding: 0;
}

.btn-audit {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  white-space: nowrap;
}

.btn-audit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5);
}

/* =====================
   HERO SECTION
   ===================== */

.hero-section {
  position: relative;
  min-height: 100svh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip; /* FIX OVERFLOW-X : clipper les orbs absolus (left:-100px / right:-150px) */
  padding: 64px 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow-x: clip;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
  contain: paint; /* FIX OVERFLOW-X : le blur ne doit pas étendre le scrollWidth */
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4F46E5, transparent 70%);
  top: -150px;
  left: 0; /* FIX OVERFLOW-X : remplace left:-100px */
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  top: -100px;
  right: 0; /* FIX OVERFLOW-X : remplace right:-150px */
  animation-delay: -3s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2563EB, transparent 70%);
  bottom: 0;
  left: 30%;
  animation-delay: -5s;
  opacity: 0.12;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeSlideDown 0.6s ease both;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(129, 140, 248, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Ethnocentric', 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  color: #fff;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(3.5rem, 4.5vw, 5.5rem);
    max-width: 850px;
    text-align: center;
    line-height: 1.08;
  }
}

.hero-title-line1 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
}

.hero-title-line1 img,
.hero-title-line1 svg {
  height: clamp(32px, 5vw, 58px);
  width: auto;
}

.hero-title-line1 .logo-crop img {
  height: auto;
}

.hero-brand {
  font-family: 'Ethnocentric', 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.hero-brand-e {
  color: var(--brand-blue, #3B82F6);
  font-family: inherit;
  font-weight: 700;
  font-style: normal;
}

.hero-brand-gapia {
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-style: normal;
}

.hero-title-verb {
  color: #FFFFFF;
  font-style: normal;
  font-weight: 700;
  font-family: inherit;
}

.hero-title-line2,
.hero-title-line3 {
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85em;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.hero-highlight {
  color: #FFFFFF;
  font-weight: 700;
  font-style: normal;
  background: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #FFFFFF;
  background-clip: text;
  filter: none;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 540px;
  font-weight: 400;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}

.impact-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.impact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  overflow-x: hidden;
}

.impact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.impact-titles h2 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.impact-titles p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #22c55e;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  width: 100%;
}

.stat-block,
.dashboard-card,
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.stat-value {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-unit {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.stat-trend {
  font-size: 12px;
}

.stat-trend.positive {
  color: #22c55e;
}

.stat-trend.neutral {
  color: rgba(255,255,255,0.35);
}

.impact-chart,
.chart-container,
.dashboard-chart {
  width: 100%;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
  position: relative;
}

.impact-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.impact-chart-header p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(142, 162, 255, 0.75);
}

.impact-chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 130px;
  padding: 48px 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  overflow: visible;
}

.impact-bar {
  flex: 1;
  min-width: 36px;
  background: rgba(99, 102, 241, 0.32);
  border-radius: 5px 5px 0 0;
}

.impact-bar:nth-child(1) {
  background: rgba(99, 102, 241, 0.28);
}

.impact-bar:nth-child(2) {
  background: rgba(99, 102, 241, 0.38);
}

.impact-bar:nth-child(3) {
  background: rgba(99, 102, 241, 0.48);
}

.impact-bar:nth-child(4) {
  background: rgba(99, 102, 241, 0.62);
}

.impact-bar-active {
  position: relative;
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.45);
}

.impact-bar-active span {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(120px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 12px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0b1020;
  font-size: clamp(0.6rem, 2.5vw, 0.85rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.chart-label,
.today-label,
[class*="today"] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.6rem, 2.5vw, 0.85rem);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.3), 0 4px 32px rgba(124, 58, 237, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.5), 0 8px 40px rgba(124, 58, 237, 0.5);
}

.btn-primary-hero:hover::before {
  opacity: 1;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-secondary-hero:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

.proof-dot {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   LEGAL MODALS
   ===================== */

.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal-inner {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 14px;
}

.legal-modal-inner h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}

.legal-modal-inner p + p {
  margin-top: 12px;
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.5);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.legal-modal-close:hover {
  background: rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  section {
    position: relative !important;
    overflow-x: clip;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo img {
    height: 30px;
  }

  .logo-crop-nav {
    width: 138px;
    height: 30px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 18, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
  }

  .nav-cta .btn-audit {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-section {
    min-height: 100svh;
    height: auto;
    padding: 100px 0 60px;
    align-items: center;
    overflow-x: hidden;
  }

  .hero-content {
    padding: 0 20px;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    line-height: 1.15;
    gap: 6px;
    text-align: center;
    max-width: 100%;
  }

  .hero-title-line1 {
    gap: 10px;
  }

  .hero-title-line1 img,
  .hero-title-line1 svg {
    height: clamp(26px, 7vw, 36px);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
  }

  .impact-card {
    padding: 24px 20px;
  }

  .impact-section {
    padding: 60px 20px;
  }

  .impact-chart-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .impact-chart-bars {
    gap: 10px;
    height: 110px;
    padding-top: 44px;
  }

  .impact-bar {
    min-width: 0;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 5px 12px 5px 8px;
  }

  .hero-proof {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .proof-dot {
    display: none;
  }

  .orb-1 { width: 300px; height: 300px; opacity: 0.12; }
  .orb-2 { width: 250px; height: 250px; opacity: 0.12; }
  .orb-3 { width: 200px; height: 200px; opacity: 0.08; }

  [class*="problem"] h2,
  [class*="situation"] h2,
  [class*="recognize"] h2,
  .section-heading {
    position: relative !important;
    z-index: auto !important;
    margin-top: 40px !important;
    transform: none !important;
  }

  [class*="impact"],
  [class*="stats"],
  [class*="dashboard"] {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin-bottom: 40px !important;
  }

  h1,
  h2,
  h3,
  h4,
  p {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  footer {
    padding: 40px 20px 32px;
  }

  footer .footer-grid,
  footer .footer-columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  footer nav,
  footer .footer-nav,
  footer .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: flex-start !important;
  }

  footer .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    font-size: 12px !important;
  }

  .legal-links {
    align-items: center;
  }

  .legal-modal-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
  }
}

/* =====================
   REQUESTED NAV + SITUATIONS REFINEMENTS
   ===================== */

.nav-inner {
  justify-content: space-between;
}

.nav-logo .brand-title,
.nav-logo .egapia-text {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.nav-cta {
  margin-left: 0;
}

.situations-section {
  padding-top: 7rem;
}

.situations-title {
  max-width: 760px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(79, 70, 229, 0.28);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: rgba(167, 139, 250, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.situations-title h2 {
  margin-bottom: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.055em;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.situations-title h2 span {
  color: transparent;
  background: linear-gradient(135deg, #ffffff, #8ea2ff 48%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
}

.situations-title p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(232, 236, 255, 0.62);
}

.situations-section .grid-3 {
  align-items: stretch;
}

.situations-section .card {
  min-height: 100%;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
    height: 64px;
  }

  .nav-links {
    display: none !important;
  }

  .nav-logo .brand-title,
  .nav-logo .egapia-text {
    font-size: 1.2rem;
  }

  .btn-audit {
    padding: 8px 14px;
    font-size: 13px;
  }

  .situations-section {
    padding-top: 4.5rem;
  }

  .situations-title {
    margin-bottom: 2.5rem;
    padding: 0;
  }

  .situations-title h2 {
    font-size: clamp(2.05rem, 8.5vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .situations-title p {
    font-size: 0.98rem;
  }
}

/* V4 mobile navbar behavior */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 18, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s;
  }

  .nav-cta .btn-audit {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (min-width: 769px) {
  .nav-burger {
    display: none;
  }
}