/* =====================================================
   EURONEX TECHNOLOGIES — SHARED STYLESHEET
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1830;
  --navy-800: #0f2444;
  --navy-700: #16305c;
  --navy-600: #1e3f78;
  --black: #08090c;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #dde3ec;
  --gray-400: #94a1b5;
  --gray-500: #64748b;
  --gray-600: #4b5872;
  --gray-700: #33405c;

  --cyan: #1fc8dd;
  --electric: #2f8fff;
  --electric-soft: rgba(47,143,255,0.12);
  --cyan-soft: rgba(31,200,221,0.12);

  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(10,24,48,0.06);
  --shadow-md: 0 10px 26px rgba(10,24,48,0.09);
  --shadow-lg: 0 22px 54px rgba(10,24,48,0.16);

  --container: 1240px;
  --nav-height: 76px;
}

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-light h1, .on-light h2, .on-light h3, .on-light h4 { color: var(--navy-950); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--cyan);
}
.on-light .eyebrow { color: var(--electric); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); display: inline-block; }

.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 14px; }
.section-head p { font-size: 17px; margin-top: 16px; }
.on-dark .section-head p { color: rgba(255,255,255,0.62); }
.on-light .section-head p { color: var(--gray-500); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Section color blocks — enforced Black / White alternation */
.sec-black { background: var(--black); }
.sec-white { background: var(--white); }
.sec-navy  { background: var(--navy-950); } /* used only as the black-slot tone on hero/CTA blocks */
.section-pad { padding: 108px 0; }
@media (max-width: 640px) { .section-pad { padding: 72px 0; } }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 10px; font-weight: 700; font-size: 15px;
  font-family: var(--font-display);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cyan); color: var(--black); box-shadow: 0 10px 24px rgba(31,200,221,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,200,221,0.38); background: #33d6e9; }
.btn-outline-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-dark:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--navy-900); border: 1.5px solid var(--gray-200); }
.btn-outline-light:hover { border-color: var(--electric); color: var(--electric); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(8,9,12,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(8,9,12,0.96); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.nav-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--white); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--navy-800), var(--electric)); position: relative; flex-shrink: 0; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; }
.logo-mark::before { width: 12px; height: 3px; top: 11px; left: 8px; transform: rotate(45deg); }
.logo-mark::after { width: 12px; height: 3px; top: 19px; left: 8px; transform: rotate(-45deg); background: var(--white); }
.logo small { color: rgba(255,255,255,0.5); font-weight: 600; font-size: 10px; letter-spacing: 0.08em; display: block; }
.logo-img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 10px 15px; font-size: 14.5px; font-weight: 600;
  color: rgba(255,255,255,0.75); border-radius: 8px; position: relative;
  transition: color 0.2s ease; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.open, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.open::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .chev { width: 14px; height: 14px; transition: transform 0.25s ease, opacity 0.2s ease; color: var(--white); stroke: currentColor; opacity: 0.9; }
.nav-link.open .chev { transform: rotate(180deg); }
.nav-link:hover .chev, .nav-link.open .chev, .nav-link.active .chev { opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.mega-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 620px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; z-index: 500;
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
}
.mega-menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-item { display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background 0.2s ease; }
.mega-item:hover { background: var(--gray-50); }
.mega-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--electric-soft); color: var(--electric); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-icon svg { width: 19px; height: 19px; }
.mega-text strong { font-family: var(--font-display); font-size: 14.5px; color: var(--navy-950); display: block; margin-bottom: 3px; }
.mega-text span { font-size: 12.5px; color: var(--gray-500); line-height: 1.45; display: block; }
.mega-footer { grid-column: 1 / -1; border-top: 1px solid var(--gray-100); margin-top: 8px; padding-top: 14px; display: flex; justify-content: flex-end; }
.mega-footer a { font-weight: 700; font-size: 13.5px; color: var(--electric); font-family: var(--font-display); }
.services-link { padding: 10px 2px 10px 15px; display: inline-flex; align-items: center; }
.mega-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 14px; margin: 0 2px 0 0; border-radius: 6px; color: var(--white);
  flex-shrink: 0; transition: background 0.2s ease;
}
.mega-toggle::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.mega-toggle:hover, .mega-toggle:focus-visible { background: rgba(255,255,255,0.08); }
.mega-toggle .chev {
  pointer-events: none;
  color: var(--white);
  stroke: currentColor;
  fill: none;
  opacity: 1;
}

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.hamburger span { height: 2px; width: 22px; background: var(--white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- LinkedIn icon (header) ---- */
.linkedin-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  color: rgba(255,255,255,0.85); transition: background 0.2s ease, color 0.2s ease;
}
.linkedin-icon svg { width: 17px; height: 17px; }
.linkedin-icon:hover { background: rgba(255,255,255,0.08); color: var(--cyan); }
@media (max-width: 860px) { .nav-cta > .linkedin-icon { display: none; } }

.mobile-linkedin {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--white);
}
.mobile-linkedin svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

/* ---- Footer contact icons ---- */
.footer-col a[href^="mailto:"], .footer-col a[href^="tel:"] { display: inline-flex; align-items: center; gap: 9px; }
.footer-col li > span { display: flex; align-items: flex-start; gap: 9px; }
.footer-col a[href^="mailto:"]::before,
.footer-col a[href^="tel:"]::before,
.footer-col li > span::before {
  content: ""; display: inline-block; width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
  background-color: rgba(255,255,255,0.45);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.footer-col a[href^="mailto:"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 6 12 13 2 6'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 6 12 13 2 6'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E"); }
.footer-col a[href^="tel:"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.7A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 2 .6 2.9a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.5 2.9.6a2 2 0 0 1 1.8 2.1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.7A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 2 .6 2.9a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.5 2.9.6a2 2 0 0 1 1.8 2.1z'/%3E%3C/svg%3E"); }
.footer-col li > span::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.footer-linkedin { display: inline-flex !important; align-items: center; gap: 9px; }
.footer-linkedin svg { width: 15px; height: 15px; flex-shrink: 0; color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.footer-linkedin:hover svg { color: var(--cyan); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; background: var(--black); z-index: 999;
  padding: calc(var(--nav-height) + 24px) 24px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a.mobile-link { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--white); white-space: nowrap; }
.mobile-accordion-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--white); white-space: nowrap; text-align: left; -webkit-tap-highlight-color: transparent; }
.mobile-accordion-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; color: var(--cyan); flex-shrink: 0; }
.mobile-accordion-toggle.open svg { transform: rotate(180deg); }
.mobile-accordion-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.3s ease; }
.mobile-accordion-panel.open { opacity: 1; }
.mobile-accordion-panel a { display: flex; align-items: center; gap: 10px; padding: 12px 8px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.65); white-space: normal; }
.mobile-accordion-panel a:last-child { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; padding-top: 14px; color: var(--cyan); font-weight: 700; }
.mobile-menu .btn { margin-top: 24px; }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero { position: relative; padding: calc(var(--nav-height) + 64px) 0 64px; background: var(--black); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, #0d2140 0%, transparent 60%); pointer-events: none;
}
.page-hero .crumb { position: relative; z-index: 2; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.page-hero .crumb a { color: rgba(255,255,255,0.7); }
.page-hero .crumb a:hover { color: var(--cyan); }
.page-hero h1 { position: relative; z-index: 2; font-size: clamp(32px, 4vw, 50px); color: var(--white); margin-top: 14px; max-width: 760px; }
.page-hero p.lead { position: relative; z-index: 2; color: rgba(255,255,255,0.65); font-size: 17.5px; max-width: 620px; margin-top: 18px; }
.page-hero .hero-actions { position: relative; z-index: 2; display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ============ HOME HERO ============ */
.hero { position: relative; padding: calc(var(--nav-height) + 72px) 0 90px; background: radial-gradient(ellipse at top right, #0d2140 0%, var(--black) 55%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-copy h1 { color: var(--white); font-size: clamp(36px, 4.6vw, 58px); margin-top: 18px; }
.hero-copy p.lead { color: rgba(255,255,255,0.68); font-size: 18px; max-width: 540px; margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.hero-tags span { color: rgba(255,255,255,0.5); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.hero-visual svg { width: 100%; height: 100%; }
.node-pulse { animation: pulse-node 3s ease-in-out infinite; }
@keyframes pulse-node { 0%, 100% { opacity: 0.55; r: 3.2; } 50% { opacity: 1; r: 4.6; } }
.line-flow { stroke-dasharray: 6 10; animation: flow-dash 6s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -160; } }
.hero-orbit { animation: spin-slow 46s linear infinite; transform-origin: 260px 260px; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.float-group { animation: float-soft 6s ease-in-out infinite; transform-origin: 260px 260px; }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.glow-pulse { animation: glow-breathe 5s ease-in-out infinite; transform-origin: 260px 260px; }
@keyframes glow-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; height: 100%;
}
.on-black-context .service-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.service-icon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background 0.3s ease, transform .3s ease; }
.service-icon svg { width: 24px; height: 24px; color: var(--cyan); }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--cyan), var(--electric)); transform: scale(1.06) rotate(-4deg); }
.service-card:hover .service-icon svg { color: var(--white); }
.service-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.on-black-context .service-card h3 { color: var(--white); }
.service-card p { color: var(--gray-500); font-size: 14.5px; flex-grow: 1; }
.on-black-context .service-card p { color: rgba(255,255,255,0.55); }
.service-learn { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; font-family: var(--font-display); color: var(--electric); }
.on-black-context .service-learn { color: var(--cyan); }
.service-learn svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.service-card:hover .service-learn svg { transform: translateX(4px); }

/* ============ ECOSYSTEM STRIP ============ */
.ecosystem-track { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.eco-node { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; min-width: 96px; }
.eco-node .eco-icon { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; transition: border-color .3s ease, transform .3s ease, background .3s ease; }
.eco-node .eco-icon svg { width: 24px; height: 24px; color: var(--cyan); }
.eco-node span { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.72); text-align: center; }
.eco-node:hover .eco-icon { border-color: var(--cyan); background: rgba(31,200,221,0.08); transform: translateY(-4px); }
.eco-arrow { color: rgba(255,255,255,0.22); flex-shrink: 0; }
.eco-arrow svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .ecosystem-track { justify-content: center; } .eco-arrow { display: none; } .eco-node { min-width: 120px; } }

/* ============ WHY / FEATURE GRID ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--gray-100); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.on-black-context .why-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.09); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--electric-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.on-black-context .why-icon { background: rgba(31,200,221,0.14); }
.why-icon svg { width: 21px; height: 21px; color: var(--electric); }
.on-black-context .why-icon svg { color: var(--cyan); }
.why-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.on-black-context .why-card h3 { color: var(--white); }
.why-card p { color: var(--gray-500); font-size: 14px; }
.on-black-context .why-card p { color: rgba(255,255,255,0.55); }

/* ============ INDUSTRIES ============ */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 22px 20px; display: flex; align-items: center; gap: 14px; transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.on-black-context .industry-card { border-color: rgba(255,255,255,0.14); }
.industry-card:hover { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-3px); }
.industry-card svg { width: 23px; height: 23px; color: var(--electric); flex-shrink: 0; }
.on-black-context .industry-card svg { color: var(--cyan); }
.industry-card span { font-weight: 700; font-family: var(--font-display); font-size: 14.5px; }
.on-black-context .industry-card span { color: var(--white); }

/* ============ TESTIMONIALS ============ */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; transition: transform .3s ease, box-shadow .3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 15.5px; color: var(--navy-800); line-height: 1.65; }
.testimonial-quote::before { content: "\201C"; color: var(--cyan); font-size: 32px; font-family: Georgia, serif; line-height: 0; display: block; margin-bottom: 6px; }
.testimonial-person strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--navy-950); }
.testimonial-person span { font-size: 13px; color: var(--gray-500); }

/* ============ PROCESS ============ */
.process-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-track::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gray-200) 0 8px, transparent 8px 16px); z-index: 0; }
.on-black-context .process-track::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 8px, transparent 8px 16px); }
.process-line-fill { position: absolute; top: 27px; left: 12%; height: 2px; background: var(--cyan); width: 0; z-index: 1; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.process-line-fill.animate { width: 76%; }
.process-step { position: relative; z-index: 2; }
.process-badge { width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--navy-800); margin-bottom: 20px; transition: border-color 0.4s ease, color 0.4s ease, background .4s ease; }
.on-black-context .process-badge { background: var(--black); border-color: rgba(255,255,255,0.18); color: var(--white); }
.process-step.animate .process-badge { border-color: var(--cyan); background: var(--cyan); color: var(--black); }
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.on-black-context .process-step h3 { color: var(--white); }
.process-step p { color: var(--gray-500); font-size: 14px; }
.on-black-context .process-step p { color: rgba(255,255,255,0.55); }
@media (max-width: 860px) { .process-track { grid-template-columns: 1fr 1fr; row-gap: 40px; } .process-track::before, .process-line-fill { display: none; } }

/* ============ TWO-COL FEATURE (about / detail pages) ============ */
.split-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}
.split-grid > * {
  flex: 1 1 0;
  min-width: 0;
}
.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.3;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  align-self: center;
}
.on-light-context .split-visual { background: linear-gradient(155deg, var(--gray-900, #101826), var(--navy-700)); }
.split-visual svg { width: 100%; height: 100%; }
.split-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/8; margin-bottom: 56px; }
.section-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .section-banner { aspect-ratio: 4/3; margin-bottom: 36px; } }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 32px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; }
.feature-list li svg { width: 19px; height: 19px; color: var(--electric); flex-shrink: 0; background: var(--electric-soft); border-radius: 50%; padding: 4px; box-sizing: content-box; margin-top: 1px; }
.on-black-context .feature-list li svg { color: var(--cyan); background: rgba(31,200,221,0.14); }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* ============ SERVICE DETAIL PAGE ============ */
.capability-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 10px; }
.capability-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--gray-100); border-radius: var(--radius-md); }
.on-black-context .capability-item { border-color: rgba(255,255,255,0.1); }
.capability-item svg { width: 20px; height: 20px; color: var(--electric); flex-shrink: 0; margin-top: 2px; }
.on-black-context .capability-item svg { color: var(--cyan); }
.capability-item h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 5px; }
.on-black-context .capability-item h4 { color: var(--white); }
.capability-item p { font-size: 13.8px; color: var(--gray-500); }
.on-black-context .capability-item p { color: rgba(255,255,255,0.55); }
@media (max-width: 640px) { .capability-list { grid-template-columns: 1fr; } }

.benefit-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--gray-100); }
.on-black-context .benefit-row { border-color: rgba(255,255,255,0.1); }
.benefit-row:first-child { border-top: none; }
.benefit-row .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--cyan); flex-shrink: 0; width: 34px; }
.benefit-row p { font-size: 15px; color: var(--gray-600); }
.on-black-context .benefit-row p { color: rgba(255,255,255,0.65); }

/* ============ CTA ============ */
.cta-section { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, #123a68 100%); position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.cta-inner h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 44px); }
.cta-inner p { color: rgba(255,255,255,0.68); font-size: 17px; margin: 20px 0 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info-card { background: var(--black); border-radius: var(--radius-lg); padding: 40px 34px; color: var(--white); }
.contact-info-card h3 { color: var(--white); font-size: 20px; margin-bottom: 12px; }
.contact-info-card p { color: rgba(255,255,255,0.6); font-size: 14.5px; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-detail:first-of-type { border-top: none; }
.contact-detail svg { width: 19px; height: 19px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.contact-detail strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-bottom: 4px; font-family: var(--font-display); }
.contact-detail span { font-size: 14.5px; color: rgba(255,255,255,0.85); }
.contact-detail a { color: rgba(255,255,255,0.85); }
.contact-detail a:hover { color: var(--cyan); }

.contact-form { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13.5px; font-weight: 700; color: var(--navy-800); font-family: var(--font-display); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 15px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14.5px; color: var(--navy-900);
  background: var(--white); transition: border-color 0.2s ease, box-shadow 0.2s ease; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 4px var(--electric-soft); outline: none; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { font-size: 12.5px; color: #d64545; min-height: 16px; display: none; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #d64545; }
.form-group.error .form-error { display: block; }
.form-success { display: none; align-items: center; gap: 12px; background: #e9f9f0; border: 1px solid #b6ecd0; color: #146c43; padding: 16px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin-top: 18px; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============ INSIGHTS / COMING SOON ============ */
.coming-soon { border: 1.5px dashed var(--gray-200); border-radius: var(--radius-lg); padding: 70px 40px; text-align: center; }
.on-black-context .coming-soon { border-color: rgba(255,255,255,0.18); }
.coming-soon .cs-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--electric-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.on-black-context .coming-soon .cs-icon { background: rgba(31,200,221,0.14); }
.coming-soon .cs-icon svg { width: 26px; height: 26px; color: var(--electric); }
.on-black-context .coming-soon .cs-icon svg { color: var(--cyan); }
.coming-soon h3 { font-size: 21px; margin-bottom: 10px; }
.on-black-context .coming-soon h3 { color: var(--white); }
.coming-soon p { color: var(--gray-500); font-size: 15px; max-width: 460px; margin: 0 auto; }
.on-black-context .coming-soon p { color: rgba(255,255,255,0.58); }

/* ============ LEGAL PAGES ============ */
.legal-body h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--gray-600); font-size: 15.5px; margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body ul li { margin-bottom: 8px; }
.legal-body .updated { color: var(--gray-500); font-size: 13.5px; margin-bottom: 40px; }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-grid h3 { font-size: 15px; margin-bottom: 16px; color: var(--electric); }
.sitemap-grid li { margin-bottom: 10px; }
.sitemap-grid a { font-size: 14.5px; color: var(--gray-600); }
.sitemap-grid a:hover { color: var(--electric); }

/* ============ FOOTER ============ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 80px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { color: var(--white); }
.footer-brand p.tag { color: rgba(255,255,255,0.55); font-family: var(--font-display); font-weight: 700; margin: 16px 0 10px; font-size: 14.5px; }
.footer-brand p.desc { font-size: 13.8px; color: rgba(255,255,255,0.42); max-width: 300px; margin-bottom: 22px; }
.footer-newsletter { display: flex; gap: 8px; max-width: 320px; }
.footer-newsletter input { flex: 1; padding: 11px 13px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: var(--white); font-size: 13.5px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter button { padding: 11px 16px; border-radius: 9px; background: var(--cyan); color: var(--black); font-weight: 700; font-size: 13.5px; font-family: var(--font-display); transition: background .2s ease; }
.footer-newsletter button:hover { background: #33d6e9; }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 10px; }
.footer-col h4 { color: var(--white); font-size: 14.5px; margin-bottom: 18px; font-family: var(--font-display); }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 13.8px; color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { padding: 26px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s ease; z-index: 900;
  border: 1px solid rgba(255,255,255,0.1);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan); color: var(--black); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .services-grid, .why-grid, .industries-grid, .testimonial-track { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin-top: 40px; }
  .split-grid { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-outline-dark { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .services-grid, .why-grid, .industries-grid, .process-track, .feature-list, .testimonial-track, .capability-list { grid-template-columns: 1fr; }
  .split-grid { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .hero-actions, .cta-actions, .page-hero .hero-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 24px; }
  .contact-info-card { padding: 28px 22px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .hero-tags { gap: 14px 22px; }
  .eco-node { min-width: 84px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 14px; gap: 8px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .logo-img { height: 38px; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { width: 19px; }
  .mobile-menu a.mobile-link, .mobile-accordion-toggle { font-size: 16px; padding: 13px 4px; }
  .contact-form { padding: 18px; }
  .contact-info-card { padding: 22px 18px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .section-pad { padding: 56px 0; }
}