/* ==========================================================================
   Omfuse — shared styles
   Design tokens · base · layout · components · page sections · animations
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #050C1F;
  --navy-900: #071330;
  --navy-800: #0A1A3A;
  --navy-700: #13275A;
  --blue-700: #1446D6;
  --blue-600: #1F5BFF;
  --blue-500: #3B74FF;
  --blue-100: #E6EEFF;
  --blue-50:  #F2F6FF;
  --cyan-500: #14B8D4;
  --cyan-400: #22D3EE;
  --cyan-300: #67E8F9;
  --green-500: #22C55E;

  --ink: #0A1530;
  --text: #3B4763;
  --muted: #64708A;
  --line: #E3E9F3;
  --line-strong: #D3DCEA;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FD;

  --grad: linear-gradient(110deg, #1F5BFF 0%, #2F7BFF 40%, #22C3E6 75%, #1F5BFF 100%);
  --grad-text: linear-gradient(100deg, #1F5BFF 0%, #22C3E6 50%, #1F5BFF 100%);

  --font-head: "Rajdhani", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(10, 21, 48, .05), 0 2px 8px rgba(10, 21, 48, .04);
  --shadow: 0 2px 4px rgba(10, 21, 48, .04), 0 12px 32px rgba(10, 21, 48, .08);
  --shadow-lg: 0 4px 10px rgba(10, 21, 48, .05), 0 24px 60px rgba(20, 60, 160, .14);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 5.6vw, 4.75rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.65rem); line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: calc(var(--section-y) * .5); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad);
}
.eyebrow--badge {
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.eyebrow--badge::before { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(34,211,238,.18); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--text); max-width: 40em; }
.gradient-text {
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  transition: background-position .6s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  color: #fff;
  background-image: var(--grad);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 22px rgba(31, 91, 255, .28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { color: #fff; background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 91, 255, .34), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--blue-600); border-color: var(--blue-500); transform: translateY(-2px); }
.btn--light { color: var(--navy-800); background: #fff; }
.btn--light:hover { color: var(--blue-600); transform: translateY(-2px); }
.btn--sm { --btn-h: 44px; padding: 0 20px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue-600);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 21, 48, .07); border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: .98rem;
  background: none; border: 0;
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item--active > .nav__link { color: var(--blue-600); }
.nav__link[aria-current="page"]::after, .nav__item--active > .nav__link::after { content: none; }
.nav__link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item { position: relative; }
.nav__cta { margin-left: 12px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 380px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown,
.nav__item--dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--dropdown:hover .chev, .nav__item--dropdown.is-open .chev { transform: rotate(180deg); }
.dropdown a {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  padding: 12px; border-radius: 14px; color: var(--ink);
  transition: background-color .2s;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--blue-50); }
.dropdown strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.dropdown span.desc { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.dropdown .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.dropdown .icon-tile svg { width: 20px; height: 20px; }
.dropdown__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown__all a { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .92rem; color: var(--blue-600); }
.dropdown__all svg { width: 16px; height: 16px; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), background-color .2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    /* header has backdrop-filter, so it is the containing block: size explicitly */
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: auto;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 12px var(--gutter) 32px;
    background: #fff; border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; font-family: var(--font-head); font-weight: 600; }
  .nav__item--dropdown .chev { display: none; }
  .dropdown {
    position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; background: transparent;
  }
  .dropdown::before { display: none; }
  .nav__item--dropdown:hover .dropdown, .nav__item--dropdown:focus-within .dropdown, .nav__item--dropdown.is-open .dropdown { transform: none; }
  .dropdown a { padding: 10px 4px; }
  .dropdown__all { display: none; }
  .nav__menu > li.nav__cta { border-bottom: 0; margin: 24px 0 0; }
  .nav__cta .btn { width: 100%; --btn-h: 54px; }
}

/* ---------- Icon tile ---------- */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  color: var(--blue-600);
  background: linear-gradient(140deg, #EAF1FF 0%, #E3FAFF 100%);
  border: 1px solid #DCE7FF;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(31, 91, 255, .08), transparent 60%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
  isolation: isolate;
}
.hero::before { /* fine grid, faded at edges */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(19, 39, 90, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 39, 90, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, .30) 0%, rgba(34, 211, 238, .12) 35%, rgba(31, 91, 255, 0) 70%);
  filter: blur(10px);
  animation: glowBreathe 8s ease-in-out infinite;
}
.hero__glow--left { left: -300px; right: auto; top: auto; bottom: 0; width: 600px; height: 600px; animation-delay: -4s; opacity: .7;
  background: radial-gradient(circle, rgba(31, 91, 255, .16) 0%, rgba(31, 91, 255, 0) 70%); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__content { max-width: 640px; }
.hero__content--center { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__content--center .lead { margin-left: auto; margin-right: auto; }
.hero__content--center .btn-row { justify-content: center; }
.hero__content--center .breadcrumb { justify-content: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current] { color: var(--blue-600); font-weight: 600; }
.breadcrumb--pill { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm); }

/* Hero stagger-in */
[data-hero] > * { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
[data-hero] > *:nth-child(1) { animation-delay: .05s; }
[data-hero] > *:nth-child(2) { animation-delay: .17s; }
[data-hero] > *:nth-child(3) { animation-delay: .29s; }
[data-hero] > *:nth-child(4) { animation-delay: .41s; }
[data-hero] > *:nth-child(5) { animation-delay: .53s; }
.hero__visual { opacity: 0; animation: fadeUp 1s var(--ease) .45s forwards; }

/* Rotating headline */
.rotator { display: inline-grid; vertical-align: top; }
.rotator__item {
  grid-area: 1 / 1;
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  opacity: 0; transform: translateY(60%);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  padding-bottom: .06em;
}
.rotator__item.is-active { opacity: 1; transform: translateY(0); }
.rotator__item.is-leaving { opacity: 0; transform: translateY(-60%); }

/* Home hero visual: the "fusion" diagram */
.fusion {
  position: relative;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
}
.fusion__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fusion__dots { display: flex; gap: 6px; }
.fusion__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.fusion__label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fusion__cols { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: stretch; }
.fusion__col { align-content: start; }
.fusion__col { display: grid; gap: 10px; }
.fusion__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 2px; }
.fusion__chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.fusion__chip i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fusion__col--mkt .fusion__chip i { background: var(--blue-600); }
.fusion__col--sw .fusion__chip i { background: var(--cyan-500); }
.fusion__core { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.fusion__core svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fusion__core .flow { stroke-dasharray: 4 6; animation: dashFlow 1.6s linear infinite; }
.fusion__node {
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800); box-shadow: 0 0 0 8px rgba(34, 211, 238, .12), 0 10px 26px rgba(10, 26, 58, .35);
}
.fusion__node svg { width: 34px; height: 34px; }
.fusion__foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 20px; padding: 13px 16px; border-radius: 14px;
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: .92rem;
}
.fusion__foot .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2s infinite; }

/* Service-detail hero aside */
.hero-index {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero-index__label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hero-index__label .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.hero-index__label .icon-tile svg { width: 20px; height: 20px; }
.hero-index ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.hero-index li a {
  display: grid; grid-template-columns: 40px 1fr 18px; align-items: center; gap: 8px;
  padding: 14px 6px; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .98rem;
  transition: color .2s, padding .25s var(--ease);
}
.hero-index li:first-child a { border-top: 0; }
.hero-index li a:hover { color: var(--blue-600); padding-left: 10px; }
.hero-index .n { font-family: var(--font-head); font-weight: 700; color: var(--blue-600); font-size: 1.05rem; }
.hero-index svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Service cards (home) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::after { /* gradient border on hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.service-card:hover::after { opacity: 1; }
.service-card:hover .icon-tile { transform: scale(1.1) rotate(-8deg); background: var(--grad); color: #fff; border-color: transparent; }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-card__num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--muted); letter-spacing: .06em; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text); flex: 1; margin-bottom: 26px; }
.service-card .link-arrow { margin-top: auto; }
.service-card:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Numbered points (Why / principles) ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.point { padding-top: 26px; border-top: 1px solid var(--line-strong); position: relative; }
.point::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--grad); }
.point__num {
  font-family: var(--font-head); font-weight: 700; font-size: 3.25rem; line-height: 1;
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; display: block;
}
.point h3 { margin-bottom: 10px; }
.point p { color: var(--text); }

.points--cards .point {
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.points--cards .point::before { top: -1px; left: 28px; }
.points--cards .point:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---------- Stacked service rows (Services page) ---------- */
.service-rows { display: grid; gap: 20px; }
.service-row {
  position: relative;
  display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line);
  color: var(--text); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 240px at 100% 50%, rgba(34, 211, 238, .12), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: var(--text); }
.service-row:hover::before { opacity: 1; }
.service-row__num {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
  transition: -webkit-text-stroke-color .3s;
}
.service-row:hover .service-row__num { -webkit-text-stroke-color: var(--blue-500); }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 10px; }
.service-row p { max-width: 46em; }
.service-row__go {
  width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background .35s var(--ease), color .3s, border-color .3s, transform .35s var(--ease);
}
.service-row__go svg { width: 22px; height: 22px; }
.service-row:hover .service-row__go { background: var(--grad); background-size: 200% 100%; color: #fff; border-color: transparent; transform: rotate(-45deg); }

/* ---------- Feature list (service pages) ---------- */
.features { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.features__head { position: sticky; top: calc(var(--header-h) + 40px); }
.features__head p { color: var(--muted); font-size: 1.08rem; }
.feature-list { counter-reset: f; }
.feature {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--blue-600);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.feature:hover .feature__num { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(-6deg) scale(1.05); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text); }

/* ---------- Check cards (Who it's for) ---------- */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.check-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; font-size: 1.04rem; line-height: 1.5;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.check-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(31, 91, 255, .25);
}
.check svg { width: 15px; height: 15px; stroke-width: 3; }
.fit-lead { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- Story (About) ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.story__body p { font-size: 1.12rem; line-height: 1.75; }

/* ---------- Location block ---------- */
.location { text-align: center; max-width: 760px; margin: 0 auto; }
.status-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 22px;
}
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: pulseGreen 2s infinite; }
.location p { font-size: 1.12rem; color: var(--text); }
.offices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.office {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  font-size: .95rem; line-height: 1.5; color: var(--text);
}
.office strong { display: block; color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.office svg { width: 20px; height: 20px; color: var(--blue-600); margin-top: 2px; flex-shrink: 0; }

/* ---------- Closing CTA ---------- */
.cta-band { padding: 0 0 var(--section-y); }
.section--soft + .cta-band, .cta-band--soft { background: var(--bg-soft); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--navy-800);
  color: #C9D4EC; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%);
}
.cta__glow {
  position: absolute; z-index: -1; left: 50%; top: -340px; width: 760px; height: 560px; margin-left: -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(31, 91, 255, .18) 40%, transparent 70%);
  animation: glowBreathe 8s ease-in-out infinite;
}
.cta h2 { color: #fff; max-width: 16em; margin: 0 auto 18px; }
.cta p { max-width: 38em; margin: 0 auto 34px; font-size: 1.12rem; color: #C9D4EC; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue-600); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #FBFCFE;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364708A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #98A2B8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C5DA; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 91, 255, .12);
}
.field.has-error input, .field.has-error textarea { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.field__error { font-size: .85rem; color: #D13438; min-height: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.form-status {
  display: none; margin-top: 22px; padding: 16px 18px; border-radius: 14px; font-size: .97rem;
}
.form-status.is-success { display: block; background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; }
.form-status.is-info { display: block; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy-700); }
.hp { position: absolute; left: -10000px; }

.info-stack { display: grid; gap: 16px; }
.info-block {
  padding: 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
}
.info-block__label {
  display: flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.info-block__label svg { width: 18px; height: 18px; color: var(--blue-600); }
.info-block__value { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.2; display: inline-block; margin-bottom: 4px; }
a.info-block__value:hover { color: var(--blue-600); }
.info-block__value--sm { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.info-block p { color: var(--muted); font-size: .95rem; }
.info-block--dark { background: var(--navy-800); border-color: var(--navy-800); color: #C9D4EC; }
.info-block--dark .info-block__label { color: var(--cyan-300); }
.info-block--dark .info-block__label svg { color: var(--cyan-300); }
.expect { display: grid; gap: 12px; margin-top: 4px; }
.expect li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .97rem; line-height: 1.5; color: #E3EAF7; }
.expect .check { width: 22px; height: 22px; box-shadow: none; }
.expect .check svg { width: 12px; height: 12px; }

.calendar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden;
}
.calendly-inline-widget { min-width: 320px; height: 720px; }
.calendar-fallback { padding: 18px 24px; border-top: 1px solid var(--line); text-align: center; font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9B6D3; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding: 80px 0 60px; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 26em; font-size: .98rem; line-height: 1.7; }
.footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 6px 0 20px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: #A9B6D3; font-size: .98rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__addr { font-size: .9rem; line-height: 1.6; color: #8796B8; font-style: normal; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .9rem; color: #8796B8;
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glowBreathe {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.14); opacity: 1; }
}
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes dashFlow { to { stroke-dashoffset: -20; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 720px; }
  .hero__visual { max-width: 600px; }
  .features { grid-template-columns: 1fr; }
  .features__head { position: static; }
  .story { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cards-3, .points, .checks { grid-template-columns: 1fr; }
  .cards-3 { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row__num { grid-column: 1 / -1; font-size: 2.6rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .fusion { padding: 18px; }
  .hero__glow { width: 440px; height: 440px; right: -180px; top: -160px; }
  .hero__glow--left { display: none; }
  .fusion__cols { grid-template-columns: 1fr 48px 1fr; }
  .fusion__chip { font-size: .8rem; padding: 9px 10px; gap: 8px; }
  .fusion__node { width: 44px; height: 44px; }
  .fusion__node svg { width: 26px; height: 26px; }
  .footer__grid { grid-template-columns: 1fr; padding-top: 64px; }
  .service-row { padding: 26px 22px; }
  .service-row__go { width: 48px; height: 48px; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .office { width: 100%; }
  .calendly-inline-widget { height: 1000px; }
}

/* ---------- Reduced motion: everything resolves instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  [data-hero] > *, .hero__visual { opacity: 1; }
}
