/* ==========================================================================
   Quantix Technologies — Global Stylesheet
   Static HTML5 site (S3 / CloudFront ready)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #050b1c;
  --navy-800: #0a1330;
  --navy-700: #101c45;
  --navy-600: #16265c;
  --ink: #0d1b2a;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --teal-400: #2dd4bf;

  --accent: #22d3ee;
  --accent-2: #6366f1;
  --amber: #f59e0b;

  /* Neutrals */
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --text: #1e293b;
  --text-muted: #64748b;
  --text-invert: #e2e8f0;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 1px 3px rgba(13, 27, 42, .08);
  --shadow: 0 4px 6px -1px rgba(13, 27, 42, .07), 0 10px 24px -6px rgba(13, 27, 42, .12);
  --shadow-lg: 0 18px 40px -12px rgba(13, 27, 42, .22);
  --ring: 0 0 0 3px rgba(34, 211, 238, .35);

  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-700); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

strong { font-weight: 650; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--slate-200); margin: 3rem 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

::selection { background: rgba(34, 211, 238, .28); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--tight { padding: clamp(44px, 5vw, 68px) 0; }
.section--alt { background: var(--slate-50); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-invert);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 { color: var(--white); }
.section--dark p { color: #b6c2d9; }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.section--dark .section-head p { color: #9fb0cc; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: .85rem;
}
.section--dark .eyebrow { color: var(--cyan-400); }

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

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(8, 145, 178, .65);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(8, 145, 178, .8); }

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--slate-300);
}
.btn-outline:hover { color: var(--navy-700); border-color: var(--cyan-500); background: rgba(34,211,238,.07); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-arrow::after {
  content: "→";
  font-size: 1.05em;
  transition: transform .2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--cyan-600);
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(13, 27, 42, .28); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-800);
}
.brand__sub {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu li { margin: 0; }
.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 550;
  color: var(--slate-700);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--navy-800); background: var(--slate-100); }
.nav__link.is-active { color: var(--cyan-600); font-weight: 650; }

.nav__cta { flex-shrink: 0; }

/* The last item in the menu is a duplicate CTA used only in the mobile drawer.
   Hidden on desktop, where .nav__cta is shown instead. */
.nav__menu > li:last-child { display: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform .25s var(--ease);
}
.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); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 128px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(34, 211, 238, .20), transparent 62%),
    radial-gradient(900px 480px at 8% 108%, rgba(99, 102, 241, .22), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  color: var(--text-invert);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: .55em; }
.hero__lede {
  font-size: clamp(1.03rem, 1.5vw, 1.19rem);
  color: #b9c6dd;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 2.4rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 7px 15px 7px 11px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(34, 211, 238, .34);
  border-radius: 999px;
  background: rgba(34, 211, 238, .1);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #7fe6f7;
}
.hero__badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .22);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 46px);
  justify-content: start;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stat .num {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
}
.hero__stat .lbl {
  font-size: .78rem;
  font-weight: 500;
  color: #8fa2c0;
  letter-spacing: .01em;
}

/* Hero visual — data pipeline card */
.hero__visual { position: relative; }
.pipeline-card {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  background: rgba(12, 22, 52, .62);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .7);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.pipeline-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}
.pipeline-card__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.pipeline-card__bar i:nth-child(1) { background: #f87171; }
.pipeline-card__bar i:nth-child(2) { background: #fbbf24; }
.pipeline-card__bar i:nth-child(3) { background: #34d399; }
.pipeline-card__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #8fa2c0;
}
.pipeline-card__body { padding: 20px 18px; }

.pipe-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  font-size: .84rem;
  color: #d3ddef;
}
.pipe-row:last-child { margin-bottom: 0; }
.pipe-row .ico {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, .16);
  color: var(--cyan-400);
}
.pipe-row .ico svg { width: 16px; height: 16px; }
.pipe-row .meta { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: #7f92b3; }
.pipe-row .status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; font-weight: 600;
  color: var(--teal-400);
}
.pipe-row .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-400);
  animation: blip 2.2s var(--ease) infinite;
}
@keyframes blip { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.pipe-arrow {
  display: block;
  margin: -3px auto 6px;
  width: 14px;
  color: rgba(34, 211, 238, .5);
  text-align: center;
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   7. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0 clamp(46px, 6vw, 72px);
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(34, 211, 238, .17), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--text-invert);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: #b0bed6; font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .5em;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-size: .82rem; color: #7f92b3;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: #4f6182; }
.breadcrumb a { color: #9fb0cc; }
.breadcrumb a:hover { color: var(--cyan-400); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: var(--shadow-lg);
}
.card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }
.card p + .link-arrow { margin-top: 1rem; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(99,102,241,.16));
  color: var(--cyan-600);
}
.card__icon svg { width: 24px; height: 24px; }

.card--dark {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .11);
}
.card--dark:hover { border-color: rgba(34, 211, 238, .45); background: rgba(255,255,255,.07); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #a9b8d1; }
.card--dark .card__icon {
  background: rgba(34, 211, 238, .14);
  color: var(--cyan-400);
}

.card--flat { background: var(--slate-50); border-color: transparent; }
.card--flat:hover { background: #fff; }

/* Numbered card */
.card__num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--navy-800);
  color: var(--cyan-400);
  font-size: .95rem; font-weight: 700;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   9. Feature rows (alternating image/text)
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--slate-200);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.feature-row p { color: var(--text-muted); }

.feature-row__media {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  min-height: 240px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.feature-row__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
}
.feature-row__media > * { position: relative; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.85em;
  margin-bottom: .6em;
  font-size: .95rem;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.section--dark .checklist li { color: #a9b8d1; }
.section--dark .checklist li::before {
  background-color: rgba(34, 211, 238, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   10. Tech / logo strip
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
}
.tech-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 17px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .89rem;
  font-weight: 600;
  color: var(--slate-700);
  text-align: center;
  transition: all .22s var(--ease);
}
.tech-chip:hover {
  border-color: var(--cyan-500);
  color: var(--navy-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tech-chip .dot {
  width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0;
  background: var(--cyan-500);
}

/* --------------------------------------------------------------------------
   11. Stats band
   -------------------------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-band .stat { background: #fff; padding: 30px 22px; text-align: center; }
.stats-band .num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  background: linear-gradient(135deg, var(--cyan-600), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.stats-band .lbl {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. Region cards
   -------------------------------------------------------------------------- */
.region-card {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  transition: all .25s var(--ease);
}
.region-card:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); }
.region-card__flagline {
  display: flex; align-items: center; gap: .55em;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: .9rem;
}
.region-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: .5rem; }
.region-card p { font-size: .92rem; color: #a9b8d1; margin-bottom: .9rem; }
.region-card ul {
  list-style: none; padding: 0; margin: 0;
  font-size: .86rem; color: #8fa2c0;
}
.region-card li { margin-bottom: .3em; }

/* --------------------------------------------------------------------------
   13. Tabs (solutions page)
   -------------------------------------------------------------------------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
}
.tabs__btn {
  flex: 1 1 auto;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: .91rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.tabs__btn:hover { color: var(--navy-800); background: #fff; }
.tabs__btn[aria-selected="true"] {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow);
}
.tabs__panel { display: none; animation: fadeUp .35s var(--ease); }
.tabs__panel.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Accordion
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--slate-200); }
.accordion__item { border-bottom: 1px solid var(--slate-200); }
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.03rem;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.accordion__btn:hover { color: var(--cyan-600); }
.accordion__btn .chev {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1;
  transition: transform .28s var(--ease), background-color .2s var(--ease);
}
.accordion__btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  background: rgba(34,211,238,.16);
  color: var(--cyan-600);
}
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
}
.accordion__panel > div { padding: 0 4px 24px; color: var(--text-muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   15. Process / timeline
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; gap: 0; }
.step {
  position: relative;
  padding: 0 0 34px 58px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 19px; top: 40px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--slate-200), transparent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--accent-2));
  color: #fff;
  font-size: .9rem; font-weight: 700;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; padding-top: .3rem; }
.step p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Case study cards
   -------------------------------------------------------------------------- */
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-card__top {
  padding: 24px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
}
.case-card__tag {
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .18);
  border: 1px solid rgba(34, 211, 238, .3);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7fe6f7;
}
.case-card__top h3 { color: #fff; font-size: 1.13rem; margin-bottom: .3rem; }
.case-card__top .loc { font-size: .84rem; color: #9fb0cc; }
.case-card__body { padding: 24px; flex: 1; }
.case-card__body p { font-size: .94rem; color: var(--text-muted); }
.case-card__body h4 {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate-400);
  margin: 1.3rem 0 .5rem;
}
.case-card__body h4:first-child { margin-top: 0; }
.case-card__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.case-card__results .r { text-align: center; }
.case-card__results .rv {
  display: block;
  font-size: 1.22rem; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cyan-600);
  line-height: 1.2;
}
.case-card__results .rl { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }

/* --------------------------------------------------------------------------
   17. Contact / forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--slate-700);
}
.field label .req { color: #ef4444; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #f87171; }
.field .hint { font-size: .8rem; color: var(--text-muted); }

.form-note { font-size: .84rem; color: var(--text-muted); margin-top: 14px; }

.form-status {
  display: none;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 550;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
}
.form-status.is-error {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
}

.contact-panel {
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.office-card {
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  transition: all .25s var(--ease);
}
.office-card:hover { border-color: rgba(34,211,238,.5); box-shadow: var(--shadow); }
.office-card .city {
  display: flex; align-items: center; gap: .5em;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  margin-bottom: .2rem;
}
.office-card .country { font-size: .82rem; color: var(--slate-400); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
.office-card dl { margin: 0; font-size: .92rem; }
.office-card dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate-400);
  margin-top: .9rem;
}
.office-card dt:first-child { margin-top: 0; }
.office-card dd { margin: .15rem 0 0; color: var(--text-muted); }
.office-card dd a { font-weight: 550; }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0;
  background:
    radial-gradient(700px 340px at 15% 20%, rgba(99, 102, 241, .3), transparent 60%),
    radial-gradient(700px 340px at 85% 90%, rgba(34, 211, 238, .26), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: var(--text-invert);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #b0bed6; max-width: 60ch; margin-inline: auto; font-size: 1.06rem; }
.cta-band__actions {
  display: flex; flex-wrap: wrap; gap: 13px;
  justify-content: center; margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #93a3bf;
  padding: clamp(48px, 6vw, 72px) 0 0;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 42px;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #5f739b; }
.footer__brand p { margin-top: 1rem; color: #8296b5; font-size: .92rem; max-width: 34ch; }

.footer__col h4 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .58em; }
.footer__col a { color: #93a3bf; font-size: .92rem; }
.footer__col a:hover { color: var(--cyan-400); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .85rem;
  color: #6c7e9e;
}
.footer__bottom a { color: #6c7e9e; }
.footer__bottom a:hover { color: var(--cyan-400); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose h3 { margin-top: 2.2rem; }
.prose h4 { margin-top: 1.7rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose > p:first-child { font-size: 1.06rem; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 18px 32px -18px rgba(13, 27, 42, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__link { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .nav__menu > li:last-child { display: block; }
  .nav__menu .btn { margin-top: 12px; width: 100%; }

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

  .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row__media { min-height: 190px; padding: 22px; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .footer__brand p { max-width: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .tabs__nav { border-radius: var(--radius); }
  .tabs__btn { flex: 1 1 100%; }
  .case-card__results { grid-template-columns: 1fr; gap: 14px; }
  .case-card__results .r { display: flex; align-items: baseline; gap: .6em; text-align: left; }
  .step { padding-left: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav__toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-hero { background: none !important; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  a { color: #000; text-decoration: underline; }
}
