/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:           #ffffff;
  --bg-dark:      #050A14;
  --bg-dark-2:    #080F1E;
  --bg-dark-3:    #0D1628;
  --blue-900:     #0A1628;
  --blue-800:     #0F2044;
  --blue-700:     #1A3A6E;
  --blue-600:     #1D4ED8;
  --blue-500:     #2563EB;
  --blue-400:     #3B82F6;
  --blue-300:     #60A5FA;
  --blue-200:     #93C5FD;
  --blue-100:     #DBEAFE;
  --silver:       #C0C8D8;
  --silver-2:     #8A95A8;
  --silver-3:     #4A5568;
  --white:        #FFFFFF;
  --ink:          #0A1628;
  --ink-soft:     #1E293B;
  --ink-mute:     #475569;
  --ink-faint:    #94A3B8;
  --accent:       #2563EB;
  --accent-glow:  rgba(37, 99, 235, 0.35);
  --line:         rgba(10, 22, 40, 0.1);
  --line-dark:    rgba(255,255,255,0.08);
  --glass:        rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);

  --sans:       'Space Grotesk', system-ui, sans-serif;
  --body:       'Inter', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container:  1200px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:      80px;
  --radius:     16px;
  --radius-lg:  24px;
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--sans); text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; }
ul[role="list"] { list-style: none; }
::selection { background: var(--blue-500); color: white; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--white); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s;
}
.skip-link:focus { top: 1rem; }
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-500);
  padding: .35rem .85rem;
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  background: rgba(37,99,235,0.06);
}
.tag-light {
  color: var(--blue-300);
  border-color: rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.08);
}
.grad-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 40%, var(--silver) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.grad-text-silver {
  background: linear-gradient(135deg, #C0C8D8 0%, #E8EDF5 50%, #A0AEC0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* =============================================================
   4. Reveal animations
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   5. Logo — real PNG, white-bg handled per context
   ============================================================= */

/* SPLASH — transparent logo direct on dark bg */
.splash-logo-img {
  width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(59,130,246,0.35));
}

/* NAV — white pill baked into the img tag styling */

/* FOOTER — transparent logo, subtle blue glow */
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-logo-img {
  width: 160px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(59,130,246,0.3)) brightness(1.05);
  transition: filter .25s;
}
.footer-logo:hover .footer-logo-img {
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.5)) brightness(1.1);
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9997;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; transform: translateY(-8px); } }
.splash.is-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.splash-logo-icon { width: 80px; height: 60px; animation: splashIconPulse 1.5s ease-in-out infinite; }
@keyframes splashIconPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.splash-wordmark {
  font-family: var(--sans); font-size: 2rem; font-weight: 700;
  letter-spacing: .12em;
}
.splash-neura { color: var(--white); }
.splash-lab { color: var(--blue-400); }
.splash-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  border-radius: 2px;
  animation: splashLoad 1.8s var(--ease-out) forwards;
}
@keyframes splashLoad { from { width: 0; } to { width: 100%; } }

/* =============================================================
   7. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  transition: background .4s var(--ease-out), box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans); font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--blue-300);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  color: var(--white) !important;
  background: var(--blue-600);
  padding: .5rem 1.25rem !important;
  border-radius: 8px;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--blue-500) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav-right: groups lang toggle + hamburger — always on far right */
.nav-right {
  display: flex; align-items: center; gap: .75rem;
  margin-left: auto; /* push to far right even when nav-links is hidden */
}
/* On desktop, nav-links handles the right side; nav-right just adds lang toggle */
@media (min-width: 960px) {
  .nav-right { margin-left: 1.5rem; }
  .nav-container { justify-content: flex-start; gap: 0; }
  .nav-links { margin-left: auto; }
}

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 0;
  user-select: none;
}
.lang-opt {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none; border-radius: 100px;
  padding: .3rem .65rem;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s;
  line-height: 1;
}
.lang-opt[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,0.45);
}
.lang-opt:hover:not([aria-pressed="true"]) {
  color: rgba(255,255,255,0.85);
}
.lang-divider {
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)) drop-shadow(0 0 18px rgba(59,130,246,0.25));
  transition: filter .3s, transform .3s;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.5)) drop-shadow(0 0 28px rgba(59,130,246,0.55));
  transform: scale(1.04);
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .55;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle 700px at var(--mx, 50%) var(--my, 60%),
      rgba(37,99,235,0.18) 0%, transparent 60%),
    radial-gradient(circle 500px at calc(var(--mx, 50%) + 15%) calc(var(--my, 60%) - 20%),
      rgba(96,165,250,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,22,40,0.8), transparent);
  transition: background 0.25s ease;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(5,10,20,0.35) 70%, rgba(5,10,20,0.75) 100%),
    linear-gradient(180deg, rgba(5,10,20,0.5) 0%, transparent 25%, transparent 70%, rgba(5,10,20,0.8) 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 4;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  max-width: 960px;
  margin-inline: auto;
  width: 100%;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 2rem;
}
.hero-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 8px var(--blue-300);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--blue-300); }
  50% { box-shadow: 0 0 18px var(--blue-300), 0 0 30px rgba(96,165,250,0.4); }
}
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .1em;
}
.hero-title-line { display: block; }
.hero-title-accent {
  font-style: italic;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  font-size: .85em;
}
.hero-title-gradient {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 40%, #C0C8D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  max-width: 600px; margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.hero-br { display: none; }
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 4; color: rgba(255,255,255,0.35);
  font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .4; }
  50% { transform: translateX(-50%) translateY(6px); opacity: .7; }
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
}

/* =============================================================
   9. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .02em;
  padding: .85rem 2rem;
  border-radius: 10px;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4), 0 0 0 1px rgba(37,99,235,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(37,99,235,0.55), 0 0 0 1px rgba(37,99,235,0.5); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-full { width: 100%; }

/* =============================================================
   10. Section Header (shared)
   ============================================================= */
.section-header {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--ink);
}
.section-title-light { color: var(--white); }
.section-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--ink-mute); max-width: 560px;
  line-height: 1.7;
}

/* =============================================================
   11. Manifesto
   ============================================================= */
.manifesto {
  padding: clamp(3rem, 4vw, 4rem) 0 clamp(3.5rem, 5vw, 5rem);
  background: var(--bg);
}
.manifesto-eyebrow { margin-bottom: 1.5rem; }
.manifesto-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; color: var(--ink);
  margin-bottom: 2rem;
  line-height: 1.08;
}
.manifesto-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.manifesto-lead,
.manifesto-col-right p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 1rem;
}


/* =============================================================
   12. Solutions
   ============================================================= */
.solutions {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: #F8FAFF;
}
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.sol-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
  cursor: default;
}
.sol-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.sol-card:hover::before { opacity: 1; }
.sol-card:hover {
  box-shadow: 0 12px 40px rgba(37,99,235,0.12), 0 0 0 1px rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-4px);
}
.sol-card-num {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; color: var(--blue-400);
  margin-bottom: 1rem;
}
.sol-card-icon {
  width: 44px; height: 44px;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}
.sol-card h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin-bottom: .6rem; line-height: 1.2;
  letter-spacing: -.02em;
}
.sol-card p { font-size: .9rem; color: var(--ink-mute); line-height: 1.7; }
.sol-card-arrow {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 1.2rem; color: var(--blue-400);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.sol-card:hover .sol-card-arrow { opacity: 1; transform: translateX(0); }

/* =============================================================
   13. Process
   ============================================================= */
.process {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.process-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37,99,235,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(96,165,250,0.08), transparent);
}
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative; z-index: 1;
}
.process-step {
  display: grid; grid-template-columns: auto 1fr;
  gap: 2rem; align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  font-family: var(--sans); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; color: rgba(37,99,235,0.2);
  line-height: 1; letter-spacing: -.04em;
  min-width: 90px;
  transition: color .4s;
}
.process-step:hover .process-step-num { color: var(--blue-500); }
.process-step-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white); font-weight: 700;
  margin-bottom: 1rem; letter-spacing: -.03em;
}
.process-step-content p {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.55); line-height: 1.75;
  max-width: 580px;
}

/* =============================================================
   14. Cases
   ============================================================= */
.cases {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: var(--bg);
}
.cases-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem;
}
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s;
}
.case-card:hover {
  box-shadow: 0 20px 60px rgba(37,99,235,0.1), 0 0 0 1px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.18);
  transform: translateY(-6px);
}
.case-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, #EEF4FF, #F8FAFF);
  border-bottom: 1px solid var(--line);
}
.case-category {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600);
}
.case-client {
  font-family: var(--sans); font-size: .85rem; font-weight: 700;
  color: var(--ink);
}
.case-card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.case-block {}
.case-label {
  display: block;
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}
.case-block p { font-size: .88rem; color: var(--ink-mute); line-height: 1.7; }
.case-result {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(96,165,250,0.03));
  border-radius: 10px;
  border: 1px solid rgba(37,99,235,0.1);
}
.case-result-icon {
  font-size: 1.25rem; color: var(--blue-500);
  font-weight: 700; line-height: 1.4;
  flex-shrink: 0;
}
.case-result div { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
.case-result strong { color: var(--blue-600); }

/* =============================================================
   15. Why NEURALAB
   ============================================================= */
.why {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: var(--bg-dark-2);
  position: relative; overflow: hidden;
}
.why-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(37,99,235,0.1), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(96,165,250,0.06), transparent);
}
.why-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative; z-index: 1;
}
.why-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(5,10,20,0.8);
  transition: background .3s;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), transparent);
  opacity: 0; transition: opacity .3s;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { background: rgba(13,22,40,0.9); }
.why-card-icon {
  width: 40px; height: 40px;
  color: var(--blue-400);
  margin-bottom: 1.25rem;
}
.why-card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: .6rem; letter-spacing: -.02em;
}
.why-card p { font-size: .88rem; color: rgba(255,255,255,0.5); line-height: 1.7; }


/* =============================================================
   17. Contact / CTA
   ============================================================= */
.contact {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(37,99,235,0.2), transparent),
    radial-gradient(ellipse 40% 40% at 0% 50%, rgba(96,165,250,0.08), transparent);
}
.contact-grain {
  position: absolute; inset: 0; z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem; position: relative; z-index: 2;
}
.contact-copy {}
.contact-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  color: var(--white); font-weight: 700;
  line-height: 1.05; letter-spacing: -.04em;
  margin: 1rem 0 1.5rem;
}
.contact-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.55); line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 420px;
}
.contact-trust {
  list-style: none; display: flex; flex-direction: column; gap: .75rem;
}
.contact-trust li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: rgba(255,255,255,0.6);
}
.check {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4);
  color: var(--blue-300); font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .contact-form-wrap { background: rgba(13,22,40,0.8); }
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.form-row input, .form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-family: var(--body); font-size: .9rem;
  color: var(--white);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.form-success {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 10px; padding: 1.25rem;
}
.form-success[hidden] { display: none; }
.form-success svg {
  width: 28px; height: 28px; flex-shrink: 0;
  color: var(--blue-300);
}
.form-success p { font-size: .9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.check-path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .5s .2s; }
.form-success:not([hidden]) .check-path { stroke-dashoffset: 0; }
#form-submit .btn-sending { display: none; }
#form-submit.is-sending .btn-text { display: none; }
#form-submit.is-sending .btn-sending { display: inline; }
#form-submit.is-sending { opacity: .7; pointer-events: none; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer {
  background: #020509;
  padding: clamp(3.5rem, 5vw, 5rem) 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand {}
.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: .875rem; color: rgba(255,255,255,0.35);
  line-height: 1.65; margin-bottom: 1.5rem;
}
.footer-social {
  display: flex; gap: .75rem;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover {
  background: rgba(37,99,235,0.2);
  color: var(--blue-300);
  border-color: rgba(37,99,235,0.3);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav-col h4 {
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: .6rem; list-style: none; }
.footer-nav-col a {
  font-size: .85rem; color: rgba(255,255,255,0.5);
  transition: color .2s;
}
.footer-nav-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p {
  font-size: .78rem; color: rgba(255,255,255,0.25);
}

/* =============================================================
   19. Animated gradient border (sol cards on hover)
   ============================================================= */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* =============================================================
   20. Responsive — Tablet
   ============================================================= */
@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 1fr 1fr; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-br { display: inline; }
}

/* =============================================================
   21. Responsive — Desktop
   ============================================================= */
@media (min-width: 960px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .solutions-grid > *:nth-child(4) { grid-column: 1; }
  .solutions-grid > *:nth-child(5) { grid-column: 2; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-top { grid-template-columns: 2fr 3fr; }
  .nav-hamburger { display: none; }
  .nav-links { display: flex !important; }
  .process-step { grid-template-columns: 120px 1fr; gap: 3rem; }
}

/* =============================================================
   22. Mobile nav
   ============================================================= */
@media (max-width: 959px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,10,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    display: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { width: 100%; text-align: center; }
}

/* =============================================================
   23. Client Catalog
   ============================================================= */
.clients {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
  background: var(--bg);
}
.clients-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
.client-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.client-card:hover {
  box-shadow: 0 24px 70px rgba(37,99,235,0.11), 0 0 0 1px rgba(37,99,235,0.13);
  transform: translateY(-5px);
}
.client-preview-wrap {
  background: #EEF4FF;
  border-bottom: 1px solid var(--line);
}
.client-browser-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem 1rem;
  background: #E2EAFF;
  border-bottom: 1px solid rgba(37,99,235,0.1);
}
.cb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(37,99,235,0.2);
}
.cb-dot:nth-child(1) { background: #fc5f57; }
.cb-dot:nth-child(2) { background: #febc2e; }
.cb-dot:nth-child(3) { background: #28c840; }
.cb-url {
  margin-left: .75rem;
  font-family: var(--body); font-size: .72rem;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.7);
  border-radius: 4px; padding: .2rem .6rem;
  flex: 1; max-width: 260px;
}
.client-iframe-wrap {
  position: relative;
  height: 340px; overflow: hidden;
}
.client-iframe-wrap iframe {
  width: 1280px;
  height: 900px;
  border: none;
  transform-origin: top left;
  transform: scale(var(--iframe-scale, 0.42));
  pointer-events: none;
  display: block;
}
.client-overlay-link {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,20,0);
  transition: background .3s;
  text-decoration: none;
}
.client-overlay-link:hover { background: rgba(5,10,20,0.55); }
.client-visit-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--blue-600);
  color: white;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.client-visit-btn svg { width: 16px; height: 16px; }
.client-overlay-link:hover .client-visit-btn { opacity: 1; transform: translateY(0); }
.client-info {
  padding: 1.75rem;
}
.client-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.client-category {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600);
}
.client-ext-link {
  font-size: 1.1rem; color: var(--blue-400);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid rgba(37,99,235,0.2);
  transition: background .2s, color .2s;
}
.client-ext-link:hover { background: var(--blue-600); color: white; }
.client-info h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  margin-bottom: .6rem; letter-spacing: -.02em;
}
.client-info p {
  font-size: .88rem; color: var(--ink-mute); line-height: 1.7;
  margin-bottom: 1.1rem;
}
.client-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.client-tags span {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.15);
  padding: .25rem .65rem; border-radius: 100px;
}


/* =============================================================
   25. WhatsApp Button
   ============================================================= */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  display: flex; align-items: center; gap: .6rem;
  background: #25D366;
  color: white;
  padding: .7rem 1.1rem .7rem .9rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  white-space: nowrap;
  max-width: 220px;
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.18);
}
.whatsapp-icon { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-label { line-height: 1.2; }

/* =============================================================
   26. Chatbot
   ============================================================= */
.chatbot-wrapper {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 600;
}
.chatbot-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 4px 20px rgba(37,99,235,0.45), 0 2px 8px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  position: relative;
}
.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37,99,235,0.55);
}
.chatbot-toggle svg { width: 24px; height: 24px; transition: opacity .2s, transform .2s; }
.chat-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.chatbot-toggle.is-open .chat-icon-open { opacity: 0; transform: rotate(90deg); }
.chatbot-toggle.is-open .chat-icon-close { opacity: 1; transform: rotate(0); }
.chatbot-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: white;
  font-family: var(--sans); font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.chatbot-toggle.is-open .chatbot-badge { display: none; }

.chatbot-panel {
  position: absolute; bottom: 70px; left: 0;
  width: clamp(300px, 90vw, 380px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(37,99,235,0.08);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatOpen .3s var(--ease-out) forwards;
}
.chatbot-panel[hidden] { display: none; }
@keyframes chatOpen {
  from { opacity: 0; transform: scale(.9) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chatbot-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.1rem;
  background: var(--blue-600);
  color: white;
}
.chatbot-head-avatar {
  width: 38px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 3px;
}
.chatbot-head-avatar svg { width: 32px; height: 24px; }
.chatbot-head-info { flex: 1; }
.chatbot-head-info strong { display: block; font-size: .88rem; font-weight: 700; }
.chatbot-head-info span { font-size: .72rem; opacity: .8; display: flex; align-items: center; gap: .35rem; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}
.chatbot-close-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.chatbot-close-btn svg { width: 16px; height: 16px; }
.chatbot-close-btn:hover { background: rgba(255,255,255,0.3); }

.chatbot-messages {
  padding: 1rem;
  max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .75rem;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.2); border-radius: 4px; }

.chat-msg { display: flex; max-width: 90%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg p {
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .85rem; line-height: 1.55;
  margin: 0;
}
.chat-msg.bot p {
  background: #F0F4FF;
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}
.chat-msg.user p {
  background: var(--blue-600);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-typing p {
  background: #F0F4FF; color: var(--ink-mute);
  border-bottom-left-radius: 4px;
  display: flex; gap: 4px; align-items: center;
  padding: .75rem .9rem;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400);
  animation: typingBounce .9s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

.chatbot-quick-wrap { padding: .25rem 0 .5rem; }
.quick-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .5rem; padding: 0 .15rem;
}
.quick-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick-btn {
  font-family: var(--sans); font-size: .75rem; font-weight: 500;
  color: var(--blue-600);
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px; padding: .35rem .8rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: left;
}
.quick-btn:hover { background: var(--blue-600); color: white; border-color: var(--blue-600); }

.chatbot-input-area {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line);
}
.chatbot-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: .6rem 1rem;
  font-family: var(--body); font-size: .85rem;
  color: var(--ink); background: #F8FAFF;
  transition: border-color .2s;
}
.chatbot-input:focus { outline: none; border-color: var(--blue-400); }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-600); color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s, transform .2s;
}
.chatbot-send svg { width: 16px; height: 16px; }
.chatbot-send:hover { background: var(--blue-500); transform: scale(1.08); }

/* =============================================================
   27. Responsive — new sections
   ============================================================= */
@media (min-width: 960px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .whatsapp-label { display: none; }
  .whatsapp-btn { padding: .75rem; border-radius: 50%; }
}

/* =============================================================
   28. Reduced-motion (intrusive only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
  .splash-bar-fill { animation: none; width: 100%; }
  .hero-scroll-hint { animation: none; }
  .hero-kicker-dot { animation: none; }
  .badgePulse, .onlinePulse, .typingBounce { animation: none; }
}
