/* ============================================================
   MOOEZ DESIGN HUB — MAIN STYLESHEET
   Design system + all component styles
   ============================================================ */

/* ---------- Fonts (self-hosted — place woff2 files in /assets/fonts/) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/HankenGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:          #FFFFFF;
  --surface:     #F1F6FC;
  --surface-2:   #E6F0FB;
  --navy:        #052A49;
  --navy-deep:   #04223B;
  --azure:       #067EF6;
  --cyan:        #02DAFF;
  --ink:         #0F2A40;
  --muted:       #5C7488;
  --txt-d:       #B9CFE2;
  --txt-d2:      #9FBBD6;
  --line:        rgba(5,42,73,.12);
  --line-cy:     rgba(6,126,246,.32);
  --line-d:      rgba(255,255,255,.13);
  --grad:        linear-gradient(100deg, #067EF6, #02DAFF);
  --grad-text:   linear-gradient(100deg, #067EF6, #0AA6D4);
  --grad-d:      linear-gradient(100deg, #3AA0FF, #02DAFF);
  --glow:        0 18px 45px -18px rgba(6,126,246,.5);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --section-pad: clamp(80px, 10vw, 130px);
  --side-pad:    clamp(20px, 5vw, 64px);
  --max-w:       1380px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

::selection { background: var(--azure); color: #fff; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
  box-sizing: border-box;
}
/* Section vertical rhythm — 50% of the base pad, top and bottom
   (matches the tightened "Full-stack capabilities" services section). */
.section { padding: calc(var(--section-pad) * 0.5) 0; position: relative; }
.section--dark { background: var(--navy-deep); color: var(--txt-d); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--surface { background: var(--surface); }
.section--white { background: var(--bg); }

/* Gradient text helper */
.grad, span.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section--dark .grad { background: var(--grad-d); -webkit-background-clip: text; background-clip: text; }
.cy { color: var(--cyan); }

/* ---------- Section head component ---------- */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--azure); }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark .eyebrow::before { background: var(--cyan); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); color: var(--navy); }
.section--dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 600px; }
.section--dark .section-head p { color: var(--txt-d2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--primary { background: var(--azure); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { background: var(--cyan); color: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-cy); color: var(--azure); background: transparent; }
.btn--ghost:hover { border-color: var(--azure); background: rgba(6,126,246,.06); }
.btn--ghost-d { border: 1px solid var(--line-d); color: #fff; background: transparent; }
.btn--ghost-d:hover { border-color: var(--cyan); color: var(--cyan); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Curtain intro ---------- */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curtain__logo--text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  letter-spacing: -0.02em;
}
.curtain__logo--text .grad { background: var(--grad-d); -webkit-background-clip: text; background-clip: text; }
.curtain__logo--img { height: 50px; width: auto; }
.curtain.is-done { display: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(5,42,73,.25);
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .3s ease;
}
.brand img { height: 50px; width: auto; }
.site-header.is-scrolled .brand { color: var(--navy); }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-header.is-scrolled .nav-list > li > a { color: var(--ink); }
.site-header.is-scrolled .nav-list > li > a:hover { color: var(--azure); background: var(--surface); }
.nav-list .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.nav-list > li:hover .caret { transform: rotate(-135deg) translateY(-2px); }

.nav-cta { margin-left: 14px; }
.nav-cta .btn { padding: 11px 24px; font-size: 14px; }

/* ---------- Mega menu ---------- */
.has-mega { position: static !important; }
.mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  /* Transparent positioning wrapper — the visible card is .mega__panel,
     constrained to the content width so it isn't a full-bleed sheet. */
  background: transparent;
  padding: 12px var(--side-pad) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__panel {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 26px 56px -26px rgba(5,42,73,.24);
  padding: clamp(18px, 1.8vw, 26px) clamp(18px, 2vw, 30px);
}
/* minmax(0,1fr) keeps every column an equal track — the per-column padding
   below must not feed back into track sizing. */
.mega__row { display: grid; }
.mega__row--cols-1 { grid-template-columns: minmax(0, 1fr); }
.mega__row--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega__row--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__row--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__row--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega__row + .mega__row {
  border-top: 1px solid var(--line);
  margin-top: clamp(12px, 1.3vw, 18px);
  padding-top: clamp(12px, 1.3vw, 18px);
}
.mega__col { min-width: 0; padding: 0 clamp(12px, 1.5vw, 24px); }
.mega__col:first-child { padding-left: 0; }
.mega__col:last-child { padding-right: 0; }
.mega__col + .mega__col { border-left: 1px solid var(--line); }

.mega__num {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--azure);
  margin-bottom: 4px;
}
.mega__num i { display: block; width: 18px; height: 1px; background: var(--line-cy); }
.mega__col h5 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.mega__col h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  border-radius: 2px;
  background: var(--azure);
}
.mega__col ul li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .15s ease;
}
.mega__col ul li:last-child a { border-bottom: none; }
.mega__link-icon {
  width: 17px; height: 17px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--azure);
}
.mega__link-icon svg { width: 15px; height: 15px; }
.mega__link-text { flex: 1; }
.mega__col ul li a:hover { color: var(--azure); }
/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.is-open span { background: #fff; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px var(--side-pad) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__close {
  position: absolute;
  top: 20px; right: 18px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; line-height: 1;
  color: #fff;
  background: none; border: 0;
  cursor: pointer;
  z-index: 3;
  transition: color .2s ease, transform .2s ease;
}
.mobile-nav__close:hover { color: var(--cyan); transform: rotate(90deg); }
/* The dedicated X handles closing, so hide the morphed hamburger when open. */
.nav-toggle.is-open { display: none; }
.mobile-nav > a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 6.5vw, 38px);
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-d);
}
.mobile-nav > a:hover { color: var(--cyan); }
.mobile-nav .btn { margin-top: 28px; font-family: var(--font-body); font-size: 16px; border-bottom: none; display: inline-flex; align-self: flex-start; }

/* Mobile Services accordion */
.mnav-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-d);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(26px, 6.5vw, 38px);
  letter-spacing: -0.03em;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
}
.mnav-acc__caret {
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex: none;
}
.mnav-acc.is-open .mnav-acc__caret { transform: rotate(-135deg); }
.mnav-acc__panel { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.mnav-acc.is-open .mnav-acc__panel { max-height: 2600px; }

/* Level 2 — service categories */
.mnav-sub + .mnav-sub { border-top: 1px solid rgba(255,255,255,.08); }
.mnav-sub__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease;
}
.mnav-sub__num {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.mnav-sub__label { flex: 1; }
.mnav-sub__caret {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--txt-d2);
  transform: rotate(45deg);
  transition: transform .3s ease, color .2s ease;
}
.mnav-sub.is-open .mnav-sub__btn { color: var(--cyan); }
.mnav-sub.is-open .mnav-sub__caret { transform: rotate(-135deg); color: var(--cyan); }

/* Level 3 — links with the same icons as the desktop mega menu */
.mnav-sub__panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.mnav-sub.is-open .mnav-sub__panel { max-height: 900px; }
.mnav-sub__panel a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--txt-d);
  padding: 9px 0 9px 2px;
}
.mnav-sub__panel a:last-child { padding-bottom: 16px; }
.mnav-sub__panel a:hover { color: var(--cyan); }
.mnav-sub__icon {
  flex: none;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.mnav-sub__icon svg { width: 17px; height: 17px; }

@media (max-width: 1023px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  color: var(--txt-d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(560px circle at var(--mx, 78%) var(--my, 26%), rgba(6,126,246,.16), transparent 62%);
  pointer-events: none;
  transition: background .12s linear;
}
.hero__grid {
  display: block;
  position: relative;
  z-index: 5;
  width: 100%;
}
.hero__content { position: relative; z-index: 5; max-width: 640px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--line-d);
  border-radius: 999px;
  padding: 8px 15px;
  margin-bottom: 20px;
}
.hero__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 59px);
  color: #fff;
  margin-bottom: 26px;
  max-width: 18ch;
}
.hero h1 .grad { background: var(--grad-d); -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--txt-d2); max-width: 540px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__metrics { display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.hero__metric .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  color: #fff;
  display: flex;
  align-items: baseline;
}
.hero__metric .num::after { content: '+'; color: var(--cyan); margin-left: 2px; }
.hero__metric .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-d2);
  margin-top: 6px;
}
/* ---- Cinematic hero space scene (layered images) ---- */
/* Layer 1 — galaxy background (full cover, parallax via GSAP transform). */
.hero__bg {
  position: absolute;
  inset: -4%;                 /* slight overscan so parallax never reveals edges */
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
/* Navy veil — keeps headline legible over the imagery (heavier on the left). */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 94%) 0%, rgb(4 34 59 / 82%) 42%, rgba(4, 34, 59, 0) 70%),
    linear-gradient(0deg, rgb(4 34 59) 0%, rgba(4, 34, 59, 0) 28%);
}
/* Layers 2 & 3 — nebula + planet, positioned on the right. */
.hero__scene { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__nebula-wrap,
.hero__planet-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  will-change: transform;
}
.hero__nebula-wrap { z-index: 1; }
.hero__planet-wrap { z-index: 2; }

.hero__nebula {
  width: clamp(520px, 62vw, 980px);
  margin-right: clamp(-120px, -4vw, -40px);
  margin-bottom: 4%;
  opacity: .55;               /* transparent PNG — normal compositing, no blend */
  animation: nebulaDrift 26s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero__planet-float { animation: heroFloat 7s ease-in-out infinite; will-change: transform; }
.hero__planet {
  width: clamp(360px, 44vw, 640px);
  height: auto;               /* transparent PNG — shown exactly as-is */
  margin-right: clamp(-40px, 1vw, 30px);
  animation: heroSpin 160s linear infinite;
  will-change: transform;
}

/* Layer 4 — particle / star canvas. */
.hero__particles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

@keyframes heroSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes nebulaDrift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .45; }
  50%      { transform: scale(1.08) rotate(4deg); opacity: .62; }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 42px); line-height: 1.3; }
  .hero__veil { background: linear-gradient(0deg, rgba(4, 34, 59, .86) 0%, rgb(0 0 0 / 85%) 50%, rgb(13 35 53 / 45%) 100%); }
  .hero__content { text-shadow: 0 1px 14px rgba(4,34,59,.55); }
  /* Planet drops into the lower-middle of the hero (behind CTAs/stats), larger. */
  .hero__planet-wrap { top: 46%; align-items: center; justify-content: center; }
  .hero__planet { width: clamp(340px, 96vw, 540px); margin: 0; }
  .hero__nebula-wrap { top: 36%; align-items: center; justify-content: center; }
  .hero__nebula { width: clamp(460px, 120vw, 760px); margin: 0; opacity: .38; }
}

@media (max-width: 640px) {
  .hero__lead { font-size: 15px; margin-bottom: 28px; }
  .hero__ctas {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 36px;
  }
  .hero__ctas .btn {
    flex: 1 1 0;
    padding: 11px 14px;
    font-size: 12.5px;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
  }
  .hero__metrics {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .hero__metric { flex: 1 1 0; min-width: 0; }
  .hero__metric .num { font-size: 22px; }
  .hero__metric .lbl {
    font-size: 9.5px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__planet, .hero__planet-float, .hero__nebula { animation: none !important; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line-d);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: clamp(40px, 6vh, 80px);
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-d2);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee__track span::after { content: '◆'; font-size: 8px; color: var(--azure); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   LOGO WALL
   ============================================================ */
.logo-wall { padding: clamp(40px, 6vw, 56px) 0; border-bottom: 1px solid var(--line); }
.logo-wall__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.logo-wall__reel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-wall__track { display: inline-flex; gap: 0; align-items: center; animation: marquee 46s linear infinite; white-space: nowrap; will-change: transform; }
.logo-wall__item {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: rgba(92, 116, 136, .7);
  padding: 0 40px;
  flex-shrink: 0;
  transition: color .3s ease;
}
.logo-wall__item:hover { color: var(--navy); }
.logo-wall__item img { height: 60px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.logo-wall__item:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logo-wall__track { animation: none; } }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 20px);
  position: relative;
  overflow: hidden;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.service-card:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 30px 55px -28px rgba(6,126,246,.4);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card--wide { grid-column: span 2; }
.service-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--azure);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6,126,246,.1);
  border: 1px solid var(--line-cy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure);
  margin: 20px 0;
  transition: background .5s ease, color .5s ease, border-color .5s ease;
}
.service-card:hover .service-card__icon { background: var(--grad); color: #fff; border-color: transparent; }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: clamp(22px, 2vw, 27px); color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15.5px; flex: 1; margin-bottom: 20px; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service-card__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  transition: color .3s ease, border-color .3s ease;
}
.service-card:hover .service-card__tags span { border-color: var(--line-cy); color: var(--azure); }
.services-cta {
  grid-column: 1 / -1;
  background: var(--grad);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.services-cta h3 { font-size: clamp(22px, 2.4vw, 30px); color: #fff; max-width: 720px; }
.services-cta .btn { background: #fff; color: var(--navy); }
.services-cta .btn:hover { background: var(--navy-deep); color: #fff; }
.services-cta__label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.services-cta__sub { margin-top: 12px; color: rgba(255,255,255,.92); font-size: 15.5px; max-width: 640px; }
.services-cta__arrow { flex: none; font-size: 30px; color: #fff; transition: transform .3s ease; }
.services-cta:hover .services-cta__arrow { transform: translate(4px, -4px); }
/* Outside .services-grid (home carousel), so it needs its own top spacing. */
.services-cta--standalone { margin-top: 22px; }
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
}

/* ============================================================
   RESULTS (dark)
   ============================================================ */
.results-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.chart-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
}
.chart-card h4 { font-size: 17px; color: #fff; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.chart-card .chart-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-d2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.chart-card svg { width: 100%; height: auto; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.kpi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: 18px;
  padding: 28px;
  transition: border-color .3s ease, background .3s ease;
}
.kpi-card:hover { border-color: var(--line-cy); background: rgba(6,126,246,.08); }
.kpi-card .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  background: var(--grad-d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-card .lbl { font-size: 14px; color: var(--txt-d2); margin-top: 10px; line-height: 1.45; }
.results-footnote { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-d2); opacity: .6; margin-top: 28px; }
@media (max-width: 1023px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .results-charts { grid-template-columns: 1fr; } .kpi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ROI CALCULATOR
   ============================================================ */
.roi-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 30px 60px -40px rgba(5,42,73,.25);
}
.roi-slider { margin-bottom: 30px; }
.roi-slider label {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.roi-slider label output { font-family: var(--font-mono); color: var(--azure); font-weight: 500; }
.roi-slider input[type=range] {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface-2);
  border-radius: 999px;
  outline: none;
}
.roi-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--azure);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(6,126,246,.4);
  cursor: grab;
}
.roi-slider input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--azure);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(6,126,246,.4);
  cursor: grab;
}
.roi-output {
  background: var(--navy-deep);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
  color: var(--txt-d);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roi-output .roi-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-d); font-size: 14.5px; }
.roi-output .roi-row .val { font-family: var(--font-mono); color: #fff; }
.roi-output .roi-total { margin-top: 22px; }
.roi-output .roi-total .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-d2); }
.roi-output .roi-total .big {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 50px);
  background: var(--grad-d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}
.roi-output .btn { margin-top: 26px; align-self: flex-start; }
.roi-disclaimer { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 20px; opacity: .7; }
@media (max-width: 860px) { .roi-box { grid-template-columns: 1fr; } }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.solrow {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background .35s ease;
}
.solrow:hover { background: var(--surface-2); }
.solrow .sx { font-family: var(--font-mono); color: var(--azure); font-size: 13px; flex: none; }
.solrow h3 { font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.solrow .arr { margin-left: auto; color: var(--muted); transition: color .35s ease, transform .35s ease; }
.solrow:hover .arr { color: var(--azure); transform: translateX(4px); }
.solrow.custom { background: rgba(6, 126, 246, .07); }
.solrow.custom h3, .solrow.custom .arr { color: var(--azure); }
@media (max-width: 720px) { .solgrid { grid-template-columns: 1fr; } }

/* ============================================================
   INDUSTRIES (dark)
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.industry-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.industry-tile:hover { border-color: var(--line-cy); background: rgba(6,126,246,.1); transform: translateY(-4px); }
.industry-tile .ico { width: 34px; height: 34px; color: var(--cyan); }
.industry-tile .ico svg { width: 100%; height: 100%; }
.industry-tile .name { font-size: 14.5px; font-weight: 600; color: #fff; }
@media (max-width: 1023px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   WHY MOOEZ
   ============================================================ */
.why-st {
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  max-width: 18ch;
  margin-top: 20px;
  line-height: .98;
  letter-spacing: -.03em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 54px);
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 48px;
}
.why-pillar { }
.why-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--azure);
  margin-bottom: 16px;
}
.why-pillar h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; }
.why-pillar p { color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; margin-top: 40px; padding-top: 32px; } }

/* ============================================================
   STATS STRIP (dark)
   ============================================================ */
.stats-strip { padding: clamp(56px, 7vw, 90px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  color: #fff;
  display: flex;
  align-items: baseline;
}
.stat .suffix { color: var(--cyan); }
.stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-d2); margin-top: 8px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.carousel { overflow: hidden; cursor: grab; }
.carousel:active { cursor: grabbing; }
.carousel__track { display: flex; gap: 22px; will-change: transform; }
.testimonial-card {
  flex: 0 0 calc((100% - 44px) / 3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  user-select: none;
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--azure); margin-bottom: 14px; }
.testimonial-card blockquote { font-size: 16.5px; color: var(--ink); line-height: 1.55; flex: 1; }
.testimonial-card .who { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-card .who .name { font-weight: 600; color: var(--navy); font-size: 15px; }
.testimonial-card .who .role { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.carousel__dots button.is-active { background: var(--azure); width: 24px; border-radius: 999px; }
@media (max-width: 1023px) { .testimonial-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 680px) { .testimonial-card { flex-basis: 100%; } }

.carousel .feature-card { flex: 0 0 calc((100% - 44px) / 3); }
@media (max-width: 1023px) { .carousel .feature-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 680px) { .carousel .feature-card { flex-basis: 100%; } }

/* Home "Full-stack capabilities" — same cards as the grid, carousel-sized.
   Scoped to .carousel so the /services/ archive grid is untouched. */
.carousel .service-card { flex: 0 0 calc((100% - 44px) / 3); }
@media (max-width: 1023px) { .carousel .service-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 680px) { .carousel .service-card { flex-basis: 100%; } }

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.platform-card:hover { border-color: var(--line-cy); box-shadow: 0 24px 45px -28px rgba(6,126,246,.35); transform: translateY(-3px); }
.platform-card .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-cy);
  background: rgba(6, 126, 246, .08);
  color: var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-card .ico svg { width: 20px; height: 20px; }
/* Official-colour brand logos: neutral chip so the brand colours read true. */
.platform-card .ico--brand {
  background: #fff;
  border-color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.platform-card .ico--brand svg { width: 26px; height: 26px; }
.platform-card:hover .ico--brand { border-color: var(--line-cy); }
.platform-card .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.2;
}
.platform-card .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 1080px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CONTACT CTA (dark card on white)
   ============================================================ */
.contact-card {
  background: var(--navy-deep);
  border-radius: 28px;
  padding: clamp(34px, 5vw, 72px);
  color: var(--txt-d);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(6,126,246,.22), transparent 65%);
  pointer-events: none;
}
.contact-card::after {
  content: '';
  position: absolute;
  top: -35%; right: -12%;
  width: 46%; height: 85%;
  background: radial-gradient(circle, rgba(2,218,255,.16), transparent 68%);
  pointer-events: none;
}
.contact-card h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.contact-card .grad { background: var(--grad-d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.contact-card--banner {
  display: block;
  text-align: center;
  padding: clamp(26px, 3.5vw, 48px) clamp(12px, 2.5vw, 32px);
}
.contact-card--banner h2 {
  max-width: 800px;
  margin: 0 auto 16px;
}
.contact-card--banner .btn { position: relative; z-index: 1; }
.contact-card .subline { color: var(--txt-d2); font-size: 17px; margin-bottom: 36px; }
.contact-details { font-size: 15px; line-height: 2; }
.contact-details a { color: var(--cyan); }
.contact-details a:hover { text-decoration: underline; }
.contact-details .registered { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-d2); opacity: .7; margin-top: 18px; display: block; }

.contact-form { position: relative; z-index: 1; }
.contact-form .field { margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-d);
  border-radius: 12px;
  padding: 15px 18px;
  color: #fff;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--txt-d2); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--azure); background: rgba(255,255,255,.09); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 14px; font-size: 14px; display: none; }
.form-msg.is-ok { display: block; color: var(--cyan); }
.form-msg.is-err { display: block; color: #ff7b7b; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--txt-d2);
  padding: 45px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-d);
}
.footer-brand .brand { display: inline-flex; }
.footer-brand .brand img { height: 50px; width: auto; }
.footer-brand__tagline { font-size: 14.5px; margin-top: 16px; max-width: 300px; color: #fff; }
.footer-brand__about { font-size: 14px; margin-top: 10px; max-width: 300px; line-height: 1.6; }
.footer-address { font-size: 14.5px; line-height: 1.6; padding: 6px 0; max-width: 220px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-col ul li a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--txt-d2); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-d2);
  transition: border-color .2s, color .2s;
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-socials svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  /* Compact mobile footer: brand on top, Services + Company side by side,
     Contact (incl. address) spans full width below. */
  .site-footer { padding: 36px 0 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 22px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__tagline, .footer-brand__about { margin-top: 10px; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-bottom { padding-top: 20px; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--navy-deep);
  color: var(--txt-d);
  padding: clamp(160px, 22vh, 240px) 0 clamp(70px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(6,126,246,.16), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); color: #fff; margin-bottom: 22px; max-width: 900px; }
.page-hero .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--txt-d2); max-width: 600px; }
.page-hero--full { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; }

/* Mission / editorial */
.editorial-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  color: var(--navy);
  max-width: 1000px;
}
.editorial-text .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.team-card .info { padding: 22px 24px; }
.team-card .name { font-weight: 600; font-size: 17px; color: var(--navy); }
.team-card .role { font-family: var(--font-mono); font-size: 12px; color: var(--azure); margin: 4px 0 10px; }
.team-card .bio { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* FAQ accordion — two-column boxed grid */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  align-items: start;
}
.faq-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 26px;
  transition: background .3s ease;
}
.faq-item[open] { background: #fff; box-shadow: 0 20px 40px -28px rgba(6, 126, 246, .35); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.62; }
@media (max-width: 780px) { .faq-list { grid-template-columns: 1fr; } }

/* Process timeline */
.process-steps { counter-reset: step; display: grid; gap: 0; max-width: 900px; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.process-step h3 { font-size: clamp(20px, 2vw, 25px); color: var(--navy); margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 15.5px; }

/* Case study cards */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cs-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  display: block;
}
.cs-card:hover { border-color: var(--line-cy); box-shadow: var(--glow); transform: translateY(-4px); }
.cs-card .thumb { aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.cs-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cs-card:hover .thumb img { transform: scale(1.04); }
.cs-card .body { padding: 26px 28px; }
.cs-card .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--azure); margin-bottom: 10px; }
.cs-card h3 { font-size: clamp(20px, 2vw, 25px); color: var(--navy); }
.cs-card .excerpt { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
@media (max-width: 760px) { .cs-grid { grid-template-columns: 1fr; } }

/* Metrics before/after */
.metric-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.metric-compare {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}
.metric-compare .before { font-family: var(--font-mono); font-size: 14px; color: var(--txt-d2); text-decoration: line-through; opacity: .6; }
.metric-compare .after {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  background: var(--grad-d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0;
}
.metric-compare .lbl { font-size: 13.5px; color: var(--txt-d2); }
@media (max-width: 680px) { .metric-compare-grid { grid-template-columns: 1fr; } }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; display: block; }
.post-card:hover { box-shadow: var(--glow); transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; }
.post-card .date { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { font-size: 20px; color: var(--navy); }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.prose { max-width: 760px; font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(21px, 2.2vw, 27px); color: var(--navy); margin: 1.4em 0 .5em; }
.prose p { margin-bottom: 1.2em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1.2em; }
.prose a { color: var(--azure); text-decoration: underline; }
.prose img { border-radius: 14px; margin: 1.6em 0; }
.prose blockquote { border-left: 3px solid var(--azure); padding-left: 1.4em; color: var(--muted); font-style: italic; margin: 1.6em 0; }

/* 404 */
.error-404 { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--navy-deep); color: var(--txt-d); padding: 120px var(--side-pad) 80px; }
.error-404 .code {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  background: var(--grad-d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.error-404 h1 { font-size: clamp(24px, 3vw, 38px); color: #fff; margin: 20px 0 14px; }
.error-404 p { color: var(--txt-d2); margin-bottom: 32px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  transition: all .2s;
}
.pagination .page-numbers:hover { border-color: var(--azure); color: var(--azure); }
.pagination .page-numbers.current { background: var(--azure); border-color: var(--azure); color: #fff; }

/* Archive header on dark hero variants */
.archive-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.archive-filters a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-d);
  color: var(--txt-d2);
  transition: all .2s;
}
.archive-filters a:hover, .archive-filters a.is-active { border-color: var(--cyan); color: var(--cyan); }

/* Single service layout variants — hero accents */
.layout-a .page-hero::before { background: radial-gradient(circle, rgba(2,218,255,.16), transparent 60%); }
.layout-b .page-hero::before { background: radial-gradient(circle, rgba(6,126,246,.22), transparent 60%); top: auto; bottom: -30%; }
.layout-c .page-hero { background: var(--navy); }
.layout-d .page-hero h1 { font-family: var(--font-mono); letter-spacing: -0.01em; font-weight: 500; }
.layout-e .page-hero::before { background: radial-gradient(circle, rgba(2,218,255,.12), transparent 55%); left: -10%; right: auto; }

/* ============================================================
   PAGE HERO — tighter height, wider measure
   ============================================================ */
.page-hero--full {
  min-height: 56vh;
  padding-top: clamp(128px, 15vh, 168px);
  padding-bottom: clamp(56px, 7vh, 88px);
}
.page-hero h1 { max-width: 1100px; }
.page-hero .lead { max-width: 820px; }
.page-hero--full .hero__ctas { margin-bottom: 0; }

/* ============================================================
   SERVICE CONTENT SECTIONS
   Shared surface logic: cards invert against their section.
   ============================================================ */
.feature-card,
.flow-node,
.chip,
.link-row { background: #fff; }
.section--white .feature-card,
.section--white .flow-node,
.section--white .chip,
.section--white .link-row { background: var(--surface); }

/* ---- Feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 2.6vw, 34px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.feature-card:hover {
  background: #fff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 30px 58px -30px rgba(6, 126, 246, .45);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.feature-card__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--azure);
  background: rgba(6, 126, 246, .09);
  border: 1px solid var(--line-cy);
  transition: background .5s ease, color .5s ease, border-color .5s ease;
}
.feature-card__icon svg { width: 25px; height: 25px; }
.feature-card__icon b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.feature-card:hover .feature-card__icon { background: var(--grad); color: #fff; border-color: transparent; }
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  opacity: .75;
}
.feature-card h3 {
  font-size: clamp(19px, 1.5vw, 22px);
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.28;
}
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.62; margin: 0; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; margin-top: 40px; } }

/* ---- Step rail ---- */
.step-rail { margin-top: 56px; }
.step-rail__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step-rail__item:last-child { border-bottom: 1px solid var(--line); }
.step-rail__mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--azure);
  transition: background .45s ease, color .45s ease, border-color .45s ease, transform .45s ease;
}
.section--white .step-rail__mark { background: var(--surface); }
.step-rail__mark svg { width: 24px; height: 24px; }
.step-rail__mark b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.step-rail__item:hover .step-rail__mark {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}
.step-rail__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 9px;
}
.step-rail__item h3 { font-size: clamp(19px, 1.6vw, 24px); color: var(--navy); margin-bottom: 9px; }
.step-rail__item p { color: var(--muted); max-width: 68ch; margin: 0; line-height: 1.65; }
@media (max-width: 640px) {
  .step-rail { margin-top: 40px; }
  .step-rail__item { grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; }
  .step-rail__mark { width: 46px; height: 46px; border-radius: 13px; }
  .step-rail__mark svg { width: 20px; height: 20px; }
}

/* ---- Step rail: 3-up grid variant ---- */
.step-rail--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-rail--grid .step-rail__item {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 2.6vw, 34px);
}
@media (max-width: 980px) { .step-rail--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .step-rail--grid { grid-template-columns: 1fr; }
  .step-rail--grid .step-rail__item { padding: 24px; }
}

/* ---- Flow chain ---- */
.flow-chain {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease, background .4s ease;
}
.flow-node:hover {
  background: #fff;
  border-color: var(--line-cy);
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -30px rgba(6, 126, 246, .5);
}
.flow-node__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 126, 246, .09);
  border: 1px solid var(--line-cy);
  color: var(--azure);
}
.flow-node__ico svg { width: 21px; height: 21px; }
.flow-node__step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.flow-node h3 { font-size: 16.5px; font-weight: 600; color: var(--navy); line-height: 1.42; margin: 0; }
.flow-node::after {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  width: 9px; height: 9px;
  border-top: 1.6px solid var(--line-cy);
  border-right: 1.6px solid var(--line-cy);
  transform: translateY(-50%) rotate(45deg);
}
.flow-node:nth-child(3n)::after, .flow-node:last-child::after { display: none; }
@media (max-width: 980px) {
  .flow-chain { grid-template-columns: repeat(2, 1fr); }
  .flow-node:nth-child(3n)::after { display: block; }
  .flow-node:nth-child(2n)::after { display: none; }
  .flow-node:last-child::after { display: none; }
}
@media (max-width: 640px) {
  .flow-chain { grid-template-columns: 1fr; margin-top: 40px; }
  .flow-node::after { display: none; }
}

/* ---- Integration chips ---- */
.chip-grid { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, background .35s ease;
}
.chip:hover {
  background: #fff;
  border-color: var(--line-cy);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -22px rgba(6, 126, 246, .6);
}
.chip .ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 126, 246, .09);
  color: var(--azure);
  flex: none;
}
.chip .ico svg { width: 14px; height: 14px; }

/* ---- Related link rows ---- */
.link-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, background .35s ease;
}
a.link-row:hover {
  background: #fff;
  border-color: var(--line-cy);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -28px rgba(6, 126, 246, .5);
}
.link-row .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 126, 246, .09);
  border: 1px solid var(--line-cy);
  color: var(--azure);
  flex: none;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.link-row .ico svg { width: 19px; height: 19px; }
a.link-row:hover .ico { background: var(--grad); color: #fff; border-color: transparent; }
.link-row h3 { font-size: 16.5px; font-weight: 600; color: var(--navy); margin: 0; }
.link-row .arr { margin-left: auto; color: var(--muted); transition: color .35s ease, transform .35s ease; }
a.link-row:hover .arr { color: var(--azure); transform: translateX(4px); }
@media (max-width: 720px) { .link-grid { grid-template-columns: 1fr; margin-top: 36px; } }

/* ---- Section closing line ---- */
.svc-outro { margin-top: 40px; max-width: 72ch; }

/* ============================================================
   HERO SHADER — silk background canvas (AI Chatbots page only)
   ============================================================ */
.page-hero--shader::before { display: none; }
.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.page-hero--shader .wrap { position: relative; z-index: 2; }
.page-hero--shader .lead { font-size: 17px; }
.page-hero--shader h1 { font-size: clamp(34px, 4.5vw, 55px); }
.has-shader-page .section-head h2 { font-size: 40px; }
.svc-outro p { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin: 0; }
