/* ============================================================
   NDIA5 — Global Stylesheet
   Tech You Can Bank Upon
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap");
/* ── TOKENS ── */
:root {
  --white: #ffffff;
  --snow: #f8f9fc;
  --paper: #f4f6fb;
  --mist: #edf0f8;
  --steel: #d4dbe8;
  --border: #dde3f0;
  --text: #0c1424;
  --body: #374260;
  --muted: #7a88a8;
  --dim: #aab4cc;

  --navy: #103375;
  --navyd: #0b2558;
  --orange: #f68b23;
  --oranged: #e07010;
  --teal: #0277b1;
  --green: #14b250;

  --sh1: 0 2px 8px rgba(12, 20, 36, 0.06);
  --sh2: 0 6px 24px rgba(12, 20, 36, 0.08);
  --sh3: 0 14px 56px rgba(12, 20, 36, 0.11);
  --sh4: 0 28px 88px rgba(12, 20, 36, 0.13);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23c)' opacity='0.055'/%3E%3C/svg%3E");
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Instrument Sans", serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* ── WAX / CRAYON TEXTURE ── */
.wax {
  position: relative;
}

.wax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 300px 300px;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.wax > * {
  position: relative;
  z-index: 1;
}

.bg-navy {
  background: linear-gradient(135deg, #e8eef8 0%, #edf2fb 40%, #e4ecf7 100%);
}

.bg-warm {
  background: linear-gradient(135deg, #fef5eb 0%, #fdf0e3 40%, #fceedd 100%);
}

.bg-mint {
  background: linear-gradient(135deg, #e8f7ee 0%, #eaf8ef 40%, #e3f6e8 100%);
}

.bg-sky {
  background: linear-gradient(135deg, #e5f2fa 0%, #e8f4fb 40%, #e0f0f9 100%);
}

.bg-white {
  background: var(--white);
}

.bg-dark {
  background: linear-gradient(135deg, #0c1424, #0f1a30, #0c1a2e);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--sh2);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--body);
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    color 0.18s,
    background 0.18s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a:hover {
  color: var(--navy);
  background: var(--snow);
}

.nav-links > li > a.active {
  color: var(--navy);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 12px;
  /* bridge gap — invisible hover zone */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  z-index: 200;
}

/* Inner box is the visible card */
.nav-dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 230px;
  box-shadow: var(--sh4);
  padding: 8px;
}

.nav-dropdown-wide .nav-dropdown-inner {
  min-width: 240px;
}

/* JS adds .open to the <li> */
li.has-dropdown.open > .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--body);
  border-radius: 9px;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--snow);
  color: var(--navy);
}

.btn-demo {
  background: var(--navy);
  color: white !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.83rem;
  box-shadow: 0 4px 16px rgba(16, 51, 117, 0.22);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.btn-demo:hover {
  background: var(--navyd);
  color: var(--body) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(16, 51, 117, 0.3);
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.93rem;
  padding: 14px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 24px rgba(16, 51, 117, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(16, 51, 117, 0.34);
  background: var(--navyd);
}

.btn-secondary {
  border: 2px solid var(--steel);
  color: var(--text);
  background: transparent;
  padding: 12px 26px;
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(16, 51, 117, 0.04);
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: #0c1424;
  box-shadow: 0 8px 32px rgba(246, 139, 35, 0.38);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(246, 139, 35, 0.46);
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1rem;
}

/* ── SECTION UTILS ── */
.section {
  padding: 100px 5%;
}

.section-sm {
  padding: 60px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.stag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 18px;
}

.stag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  border-radius: 2px;
}

.stitle {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
}

.stitle em {
  font-style: normal;
  color: var(--navy);
}

.stitle-white {
  color: white;
}

.stitle-white em {
  color: var(--orange);
}

.ssub {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.78;
  max-width: 540px;
}

.ssub-white {
  color: rgba(255, 255, 255, 0.7);
}

.text-center {
  text-align: center;
}

.text-center .ssub {
  margin: 0 auto;
}

.ptag {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 100px;
  border: 1.5px solid var(--steel);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Manrope", sans-serif;
  display: inline-block;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(20, 178, 80, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(20, 178, 80, 0.06);
  }
}

@keyframes marqslide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

/* ── MARQUEE ── */
.marq {
  background: var(--navy);
  padding: 14px 0;
  overflow: hidden;
}

.marq-track {
  display: flex;
  width: max-content;
  animation: marqslide 30s linear infinite;
}

.marq-item {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.marq-item::after {
  content: "◆";
  color: var(--orange);
  font-size: 0.45rem;
}

/* ── STATS BAND ── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat-cell {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell:hover {
  background: var(--snow);
}

.stat-bar {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.stat-num {
  font-family: "Instrument Sans", serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-num b {
  color: var(--orange);
  font-style: normal;
}

.stat-lbl {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── CLIENTS TICKER ── */
.clients-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-lbl {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 28px;
  font-family: "Manrope", sans-serif;
}

.ctrack {
  display: flex;
  gap: 12px;
  animation: marqslide 30s linear infinite;
  width: max-content;
}

.chip {
  flex-shrink: 0;
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 26px;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--steel);
}

.chip-logo {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-logo img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.chip-logo span {
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── DARK DIGITAL VISUAL PANEL ── */
.digi-panel {
  background: #0c1424;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.digi-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(2, 119, 177, 0.16) 0%,
    transparent 55%
  );
}

.digi-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
}

.digi-panel svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}

/* ── PRODUCT FEATURE PANEL ── */
.fpanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
  min-height: 520px;
}

.fpanel:hover {
  box-shadow: var(--sh4);
  z-index: 2;
}

.fpanel.rev {
  direction: rtl;
}

.fpanel.rev > * {
  direction: ltr;
}

.fp-text {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.fp-bignum {
  font-family: "Instrument Sans", serif;
  font-size: 8rem;
  font-weight: 900;
  color: var(--text);
  opacity: 0.035;
  position: absolute;
  bottom: 16px;
  right: 32px;
  line-height: 1;
  pointer-events: none;
}

.fp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.fp-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
}

.fp-text p {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.82;
  margin-bottom: 28px;
}

.fp-kpis {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.fkv {
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
}

.fkl {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-vis {
  background: #0c1424;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.fp-vis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(2, 119, 177, 0.16) 0%,
    transparent 55%
  );
}

.fp-vis::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
}

.fp-vis svg {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── COMPACT PRODUCT GRID ── */
.cpgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.cpc {
  background: var(--white);
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  cursor: pointer;
  position: relative;
}

.cpc:hover {
  box-shadow: var(--sh4);
  transform: translateY(-4px);
  z-index: 2;
}

.cpc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.cpc:hover::after {
  transform: scaleX(1);
}

.cpc-vis {
  background: #0c1424;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cpc-vis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cpc-vis svg {
  position: relative;
  z-index: 1;
}

.cpc-body {
  padding: 26px 28px 28px;
}

.cpc-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.cpc-body p {
  font-size: 0.83rem;
  color: var(--body);
  line-height: 1.72;
}

.cpc-body .ptag {
  margin-top: 14px;
}

.cpc-cta {
  background: var(--navy);
}

.cpc-cta .cpc-vis {
  background: #091e45;
}

.cpc-cta .cpc-body h3 {
  color: white;
}

.cpc-cta .cpc-body p {
  color: rgba(255, 255, 255, 0.65);
}

.cpc-cta .ptag {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.45);
}

/* ── CARDS ── */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.card {
  background: var(--white);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
}

.card:hover {
  box-shadow: var(--sh3);
  transform: translateY(-3px);
  z-index: 2;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.card:hover::after {
  transform: scaleX(1);
}

/* ── TEAM CARDS ── */
.tcard {
  background: var(--white);
  padding: 36px;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  position: relative;
  overflow: hidden;
}

.tcard:hover {
  box-shadow: var(--sh3);
  transform: translateY(-3px);
  z-index: 2;
}

.tcard::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.tcard:hover::after {
  transform: scaleX(1);
}

.tcard-avatar {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.tcard h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  font-family: "Manrope", sans-serif;
}

.tcard-role {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}

.tcard-bio {
  font-size: 0.78rem;
  color: var(--body);
  line-height: 1.62;
}

.tcard-prev {
  margin-top: 14px;
  font-size: 0.71rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

.tcard-prev::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--steel);
  display: inline-block;
}

/* ── TRUST STRIP ── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.trust-cell {
  background: var(--navy);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-cell .tv {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}

.trust-cell .tl {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.trust-cell .tic {
  font-size: 1.5rem;
}

/* ── SUCCESS / CASE CARDS ── */
.sc-card {
  background: var(--white);
  padding: 40px;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  position: relative;
  overflow: hidden;
}

.sc-card:hover {
  box-shadow: var(--sh4);
  transform: translateY(-4px);
  z-index: 2;
}

.sc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.sc-card:hover::before {
  transform: scaleX(1);
}

.sc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.sc-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: white;
  font-family: "Manrope", sans-serif;
}

.sc-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.sc-type {
  font-size: 0.72rem;
  color: var(--muted);
}

.sc-kpis {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}

.sc-kv {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
}

.sc-kl {
  font-size: 0.69rem;
  color: var(--dim);
  margin-top: 2px;
}

.sc-card p {
  font-size: 0.83rem;
  color: var(--body);
  line-height: 1.72;
}

.sc-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--steel);
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── TESTIMONIALS ── */
.testi-card {
  background: var(--white);
  padding: 40px;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
}

.testi-card:hover {
  box-shadow: var(--sh3);
  transform: translateY(-3px);
  z-index: 2;
}

.tq {
  font-size: 3rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  font-family: "Instrument Sans", serif;
}

.testi-card p {
  font-size: 0.87rem;
  color: var(--body);
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 22px;
}

.ta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ta-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: white;
  font-family: "Manrope", sans-serif;
  flex-shrink: 0;
}

.ta-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.ta-co {
  font-size: 0.73rem;
  color: var(--muted);
}

/* ── HOW IT WORKS ── */
.step-box {
  background: var(--white);
  padding: 44px 36px;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  position: relative;
}

.step-box:hover {
  box-shadow: var(--sh3);
  transform: translateY(-3px);
  z-index: 2;
}

.sn {
  font-family: "Instrument Sans", serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 18px;
}

.si {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.step-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.step-box p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.72;
}

/* ── RESOURCE CARDS ── */
.rcard {
  background: var(--white);
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  cursor: pointer;
}

.rcard:hover {
  box-shadow: var(--sh3);
  transform: translateY(-3px);
  z-index: 2;
}

.rcard-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.rcard-body {
  padding: 24px;
}

.rcat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
}

.rcard-body h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
}

.rcard-body p {
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.68;
}

.rdate {
  font-size: 0.7rem;
  color: var(--dim);
  margin-top: 10px;
}

/* ── API TERMINAL ── */
.terminal {
  background: #080d15;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    var(--sh4),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #050810;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-lbl {
  font-size: 0.72rem;
  font-family: "Manrope", sans-serif;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.term-tabs {
  display: flex;
  gap: 3px;
  padding: 10px 16px;
  background: #060a12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ttab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.71rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.32);
  border: none;
  background: none;
  transition: all 0.15s;
}

.ttab.on {
  background: rgba(246, 139, 35, 0.18);
  color: var(--orange);
}

.term-body {
  padding: 22px;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #e2e8f0;
  transition: opacity 0.15s;
}

.cc {
  color: #3a4a60;
}

.ck {
  color: #f68b23;
}

.cs {
  color: #14b250;
}

.cn {
  color: #2e9fd4;
}

.cf {
  color: #a78bfa;
}

.cok {
  color: #14b250;
  font-weight: 700;
}

.cw {
  color: #e2e8f0;
}

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--sh2);
}

.fg {
  margin-bottom: 14px;
}

.fg label {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--body);
  display: block;
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--snow);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16, 51, 117, 0.08);
}

.fg textarea {
  height: 110px;
  resize: none;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── CAREERS ── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
}

.jcard {
  background: var(--white);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    background 0.18s,
    box-shadow 0.18s;
  cursor: pointer;
}

.jcard:hover {
  background: var(--snow);
}

.ji h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  font-family: "Manrope", sans-serif;
}

.ji p {
  font-size: 0.77rem;
  color: var(--muted);
}

.jtags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.jtag {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--snow);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "Manrope", sans-serif;
}

.jarr {
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.jcard:hover .jarr {
  transform: translateX(4px);
}

.cult-panel {
  background: var(--navy);
  border-radius: 20px;
  padding: 40px;
}

.cult-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 28px;
  font-family: "Manrope", sans-serif;
}

.cult-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ci {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ci-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ci strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.ci span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ── CTA BAND ── */
.cta-band {
  padding: 110px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navyd) 60%,
    #091e45 100%
  );
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(246, 139, 35, 0.12) 0%,
    transparent 65%
  );
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 300px 300px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.cta-band h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 800px 500px at 20% 30%,
      rgba(16, 51, 117, 0.055) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 600px 400px at 80% 20%,
      rgba(246, 139, 35, 0.06) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 700px 500px at 60% 80%,
      rgba(20, 178, 80, 0.045) 0%,
      transparent 70%
    );
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb span {
  color: var(--dim);
}

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cert-vis {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
}

.yb {
  position: absolute;
  top: -18px;
  right: 24px;
  background: var(--orange);
  color: white;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(246, 139, 35, 0.3);
  font-family: "Manrope", sans-serif;
}

.yb .yv {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.yb .yl {
  font-size: 0.7rem;
  opacity: 0.9;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.cbox {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}

.cbox:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(16, 51, 117, 0.1);
}

.cv {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.cl {
  font-size: 0.67rem;
  color: var(--dim);
  margin-top: 3px;
}

/* ── CONTACT PAGE ── */
.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  font-family: "Manrope", sans-serif;
}

.cd {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.cd-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cd-t h5 {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  font-family: "Manrope", sans-serif;
}

.cd-t p {
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.58;
}

/* ── FOOTER ── */
.footer {
  background: #07090f;
  color: rgba(255, 255, 255, 0.55);
  padding: 68px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 32px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.72;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-slink {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.18s;
}

.footer-slink:hover {
  background: var(--orange);
  color: #0c1424;
  border-color: var(--orange);
}

.footer-col h5 {
  font-family: "Manrope", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .fpanel,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .fpanel.rev {
    direction: ltr;
  }

  .stats-band,
  .trust-strip,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fp-vis {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--sh3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li > a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Mobile dropdowns: show inline when li.open */
  .nav-dropdown {
    position: static;
    opacity: 1 !important;
    pointer-events: none;
    transform: none !important;
    padding-top: 0;
    display: none;
    transition: none;
  }

  li.has-dropdown.open .nav-dropdown {
    display: block;
    pointer-events: all;
  }

  .nav-dropdown-inner {
    box-shadow: none;
    border: none;
    background: var(--snow);
    border-radius: 8px;
    margin: 4px 16px 8px;
  }

  .nav-hamburger {
    display: flex;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .cpgrid,
  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .frow {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO — WHITE BACKGROUND · DARK NAVY CAROUSEL
═══════════════════════════════════════════════════════════ */

:root {
  --grain-uri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  --carousel-bg: #0d1e3a;
  --carousel-bg2: #0a1830;
  --carousel-card: #132244;
  --carousel-border: rgba(255, 255, 255, 0.09);
  --carousel-muted: rgba(255, 255, 255, 0.42);
  --carousel-dim: rgba(255, 255, 255, 0.22);
}

/* ── Keyframes ── */
@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes blinkCaret {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 178, 80, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(20, 178, 80, 0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.06);
  }
}

@keyframes meshScroll {
  to {
    background-position: 56px 56px;
  }
}

/* ═══════════════════════════════
   HERO OUTER — WHITE BACKGROUND
═══════════════════════════════ */
.hero-outer {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Light crayon washes on white */
.hero-dark-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 700px 500px at 15% 30%,
      rgba(16, 51, 117, 0.048) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 500px 420px at 78% 18%,
      rgba(246, 139, 35, 0.042) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 560px 400px at 50% 88%,
      rgba(20, 178, 80, 0.032) 0%,
      transparent 65%
    );
}

/* Grain texture on white */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image: var(--grain-light);
  background-size: 280px 280px;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

/* Subtle dot grid */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(circle, #103375 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-glow,
.hero-grain-ov {
  display: none;
}

/* not needed on white */

/* ── Layout ── */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  padding: 108px 5% 72px 5%;
  min-height: 100vh;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ═══════════════════════════════
   LEFT PANEL — on white
═══════════════════════════════ */
.hero-left {
  display: flex;
  flex-direction: column;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(16, 51, 117, 0.06);
  border: 1px solid rgba(16, 51, 117, 0.14);
  border-radius: 100px;
  padding: 7px 18px 7px 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 30px;
  width: fit-content;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b250;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

/* Floating headline */
.hero-float-wrap {
  margin-bottom: 4px;
  animation: fadeSlideUp 0.7s 0.08s ease both;
}

.hero-float-line {
  display: inline-block;
  font-family: "Instrument Sans", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.01em;
  animation: floatUpDown 5s ease-in-out infinite;
  text-shadow: none;
}

/* Typewriter line */
.hero-tw-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  animation: fadeSlideUp 0.7s 0.16s ease both;
}

.hero-tw-for {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--muted);
  font-style: normal;
}

.hero-tw-text {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
  min-height: 1.1em;
}

.hero-tw-cursor {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--orange);
  font-weight: 300;
  animation: blinkCaret 0.7s step-end infinite;
  margin-left: 1px;
}

.hero-tw-cursor.done {
  display: none;
}

/* Sub copy */
.hero-sub {
  font-family: "Manrope", sans-serif;
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.78;
  max-width: 480px;
  margin-bottom: 30px;
  animation: fadeSlideUp 0.7s 0.22s ease both;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.7s 0.28s ease both;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 13px 28px;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(16, 51, 117, 0.28);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}

.hero-btn-primary:hover {
  background: var(--navyd);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(16, 51, 117, 0.36);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--steel);
  color: var(--text);
  padding: 12px 26px;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.18s;
}

.hero-btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(16, 51, 117, 0.04);
}

/* Stat chips */
.hero-stats {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
  width: fit-content;
  padding: 16px 22px;
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: fadeSlideUp 0.7s 0.34s ease both;
  position: relative;
  overflow: hidden;
}

.hero-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain-light);
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.hero-stat {
  text-align: center;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hs-val {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.hs-val span {
  font-size: 1rem;
  color: var(--orange);
}

.hs-lbl {
  font-size: 0.64rem;
  color: var(--muted);
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-div {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

/* Product pills */
.hero-product-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.hpp {
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.18s;
  cursor: default;
}

.hpp:hover {
  background: rgba(16, 51, 117, 0.06);
  border-color: rgba(16, 51, 117, 0.25);
  color: var(--navy);
}

/* ═══════════════════════════════════════════════
   RIGHT PANEL — DARK NAVY CAROUSEL
═══════════════════════════════════════════════ */
.hero-right {
  animation: fadeSlideUp 0.8s 0.18s ease both;
}

/* Panel shell */
.updates-panel {
  background: var(--carousel-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 72px rgba(13, 30, 58, 0.55),
    0 4px 16px rgba(13, 30, 58, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
}

/* Grain on dark panel */
.updates-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--grain-uri);
  background-size: 260px 260px;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

/* Subtle top glow arc */
.updates-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(
    ellipse,
    rgba(2, 119, 177, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.updates-panel > * {
  position: relative;
  z-index: 1;
}

/* Header */
.updates-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--carousel-border);
  background: rgba(255, 255, 255, 0.03);
}

.updates-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b250;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

.updates-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--carousel-muted);
  flex: 1;
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 5px;
}

.cdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.28s;
}

.cdot.active {
  background: var(--orange);
  width: 20px;
  border-radius: 3px;
}

/* Track */
.carousel-track-wrap {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base card ── */
.update-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 22px 20px 18px;
  position: relative;
  background: var(--carousel-bg);
}

/* Grain per-card */
.uc-wax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain-uri);
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

.uc-header-row {
  margin-bottom: 15px;
}

/* Tag pill */
.uc-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
}

.uc-tag-pill.integration {
  background: rgba(2, 119, 177, 0.2);
  border: 1px solid rgba(2, 119, 177, 0.35);
  color: #6db8e8;
}

.uc-tag-pill.advisory {
  background: rgba(246, 139, 35, 0.18);
  border: 1px solid rgba(246, 139, 35, 0.35);
  color: #f68b23;
}

.uc-tag-pill.milestone {
  background: rgba(20, 178, 80, 0.15);
  border: 1px solid rgba(20, 178, 80, 0.32);
  color: #3dd678;
}

/* ── Integration card ── */
.uc-integration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--carousel-card);
  border: 1px solid var(--carousel-border);
  border-radius: 12px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.uc-bank-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.uc-bank-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.uc-bank-name {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.uc-bank-detail {
  font-size: 0.7rem;
  color: var(--carousel-muted);
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
}

.uc-footer-note {
  margin-top: 13px;
  font-size: 0.66rem;
  color: var(--carousel-dim);
  font-family: "Manrope", sans-serif;
  text-align: center;
}

/* ── Advisory / sketch card ── */
.uc-advisory {
  padding: 0;
}

.uc-advisory-inner {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 270px;
}

.uc-sketch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--carousel-border);
  padding: 20px 12px 14px;
}

.uc-sketch-frame {
  position: relative;
  width: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.uc-sketch-img {
  width: 100%;
  height: auto;
  display: block;
}

.uc-sketch-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain-uri);
  background-size: 150px 150px;
  mix-blend-mode: overlay;
  opacity: 1;
}

.uc-sketch-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.uc-sketch-caption {
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.61rem;
  font-weight: 700;
  color: var(--carousel-muted);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uc-advisory-text {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.uc-headline {
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.uc-body {
  font-size: 0.77rem;
  color: var(--carousel-muted);
  line-height: 1.68;
  font-family: "Manrope", sans-serif;
}

.uc-body strong {
  color: rgba(255, 255, 255, 0.82);
}

/* ── Milestone card ── */
.uc-milestone-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-big-stat {
  font-family: "Instrument Sans", serif;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  text-shadow: 0 0 40px rgba(246, 139, 35, 0.35);
}

.uc-big-stat span {
  color: var(--orange);
  font-style: normal;
}

.uc-ms-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--carousel-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.uc-ms-desc {
  font-size: 0.77rem;
  color: var(--carousel-muted);
  line-height: 1.68;
  font-family: "Manrope", sans-serif;
}

.uc-ms-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.uc-ms-tags span {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--carousel-border);
  color: var(--carousel-muted);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Arrows */
.carousel-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--carousel-border);
  background: rgba(0, 0, 0, 0.15);
}

.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.carousel-arrow:hover {
  background: var(--orange);
  color: #0d1e3a;
  border-color: var(--orange);
  transform: scale(1.08);
}

/* ════════════════════════════════════════════════════════════
   HERO + INDEX PAGE — FULLY RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── 1100px: shrink right panel ── */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 36px;
  }
}

/* ── 900px: stack to single column ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 100px 6% 56px;
    min-height: auto;
    align-items: start;
    overflow: visible;
  }

  /* CRITICAL: grid children must have min-width:0
     so they can shrink below their content width */
  .hero-left,
  .hero-right {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-right {
    max-width: 520px;
    margin: 0 auto;
  }

  /* Constrain all hero-left children to not overflow */
  .hero-badge,
  .hero-btns,
  .hero-stats,
  .hero-product-pills {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Buttons: full width stacked from 900px down */
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-ghost {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Stats: switch to 2x2 grid from 900px down — prevents horizontal overflow */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 10px;
    margin-bottom: 22px;
  }
  .hero-stats::before { display: none; }
  .hero-stat-div { display: none; }
  .hero-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 10px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
  }
  .hero-stat:first-child { padding-left: 10px; }
  /* Coloured accent bar per stat */
  .hero-stat:nth-child(1)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--orange); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(3)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--green); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(5)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--teal); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(7)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--navy); border-radius: 14px 14px 0 0; }

  /* Updates panel: never overflow */
  .updates-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .carousel-track-wrap {
    overflow: hidden;
    max-width: 100%;
  }

  /* Disable all hero enter-animations on mobile/tablet
     so elements are NEVER invisible due to animation fill-mode */
  .hero-badge,
  .hero-float-wrap,
  .hero-float-line,
  .hero-tw-wrap,
  .hero-sub,
  .hero-btns,
  .hero-stats,
  .hero-product-pills,
  .hero-right {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 768px: tablet ── */
@media (max-width: 768px) {

  /* Hero */
  .hero-inner {
    padding: 88px 5% 48px;
    gap: 32px;
  }

  .hero-right {
    max-width: 480px;
    margin: 0 auto;
  }

  /* Buttons: stack full width */
  .hero-btns { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .hero-btn-primary,
  .hero-btn-ghost { width: 100%; justify-content: center; }

  /* Pills: wrap */
  .hero-product-pills { flex-wrap: wrap; }

  /* Sections */
  .section        { padding: 60px 5%; }
  .section-sm     { padding: 40px 5%; }
  .cta-band       { padding: 72px 5%; }
  .clients-strip  { padding: 32px 0; }

  /* Products intro header: 2-col → 1-col */
  .product-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
  }

  /* Feature panels */
  .fp-text { padding: 36px 24px; }
  .fp-vis  { min-height: 260px; }
}

/* ── 600px: carousel advisory card stacks ── */
@media (max-width: 600px) {
  .uc-advisory-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .uc-sketch-col {
    border-right: none;
    border-bottom: 1px solid var(--carousel-border);
    padding: 24px 20px 20px;
  }

  /* keep frame wide enough to show the full uncropped photo */
  .uc-sketch-frame { width: 150px; }
}

/* ── 480px: mobile ── */
@media (max-width: 480px) {

  /* Disable all hero animations — prevents opacity:0 invisible elements */
  .hero-badge, .hero-float-wrap, .hero-tw-wrap, .hero-sub,
  .hero-btns, .hero-stats, .hero-product-pills, .hero-right,
  .hero-float-line { animation: none; opacity: 1; transform: none; }

  /* Hero layout */
  .hero-inner {
    padding: 80px 5% 44px;
    gap: 32px;
  }

  /* Center-align all hero-left content on mobile */
  .hero-left {
    align-items: center;
    text-align: center;
  }

  /* Badge: centered */
  .hero-badge { margin: 0 auto 20px; }

  /* Headline: gradient text, tighter size */
  .hero-float-line {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--navy) 0%, #0277b1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Typewriter row: center */
  .hero-tw-wrap  { justify-content: center; margin-bottom: 18px; }
  .hero-tw-for   { font-size: 1.2rem; }
  .hero-tw-text,
  .hero-tw-cursor { font-size: 1.4rem; }

  /* Sub-copy */
  .hero-sub { text-align: center; max-width: 100%; font-size: 0.88rem; margin-bottom: 24px; }

  /* Buttons: full-width stacked */
  .hero-btns { flex-direction: column; gap: 10px; margin-bottom: 28px; width: 100%; }
  .hero-btn-primary,
  .hero-btn-ghost { width: 100%; justify-content: center; }

  /* Stats: 2×2 colored accent cards */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-stats::before { display: none; }
  .hero-stat-div { display: none; }
  .hero-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 10px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
  }
  /* Coloured top accent bar per stat */
  .hero-stat:nth-child(1)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--orange); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(3)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--green); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(5)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--teal); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(7)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--navy); border-radius: 14px 14px 0 0; }
  .hero-stat:first-child { padding-left: 10px; }

  /* Stat text */
  .hs-val { font-size: 1.3rem; }
  .hs-lbl { font-size: 0.58rem; letter-spacing: 0; white-space: nowrap; margin-top: 5px; }

  /* Pills: centered */
  .hero-product-pills { justify-content: center; }

  /* Right panel: full width */
  .hero-right { max-width: 100%; }

  /* Feature panels */
  .fp-text { padding: 28px 20px; }
  .fp-vis  { min-height: 200px; }

  /* Section spacing */
  .section    { padding: 48px 4%; }
  .section-sm { padding: 32px 4%; }
  .cta-band   { padding: 56px 4%; }

  /* Clients */
  .clients-lbl { padding: 0 16px; font-size: 0.66rem; }
}

/* ── 390px: small phones (iPhone SE, Galaxy S8) ── */
@media (max-width: 390px) {

  .hero-inner { padding: 72px 4% 36px; gap: 24px; }

  .hero-float-line { font-size: 1.9rem; }
  .hero-tw-for     { font-size: 1.05rem; }
  .hero-tw-text,
  .hero-tw-cursor  { font-size: 1.2rem; }
  .hero-sub        { font-size: 0.82rem; margin-bottom: 18px; }
  .hero-badge      { margin-bottom: 14px; font-size: 0.68rem; }
  .hero-tw-wrap    { margin-bottom: 14px; gap: 6px; }
  .hero-btns       { margin-bottom: 18px; }
  .hero-stats      { gap: 8px; margin-bottom: 16px; }
  .hero-stat       { padding: 12px 8px 10px; border-radius: 12px; }

  .hs-val { font-size: 1.15rem; }
  .hs-lbl { font-size: 0.52rem; }

  .hpp { font-size: 0.6rem; padding: 3px 9px; }
  .hero-product-pills { gap: 5px; }
}

/* ════════════════════════════════════════════════════════════
   ALL INNER PAGES — FULLY RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── Page Hero ── */
@media (max-width: 768px) {
  .page-hero { padding: 110px 5% 60px; }
  .page-hero-content { max-width: 100%; }
}
@media (max-width: 480px) {
  .page-hero { padding: 90px 4% 48px; }
  .breadcrumb { font-size: .7rem; gap: 5px; flex-wrap: wrap; }
  .fkv { font-size: 1.3rem; }
  .fkl { font-size: .67rem; }
  .ptag { font-size: .72rem; padding: 4px 12px; }
}

/* ── Demo page split layout ── */
@media (max-width: 900px) {
  .demo-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .demo-split > div:first-child { padding: 60px 40px 48px !important; }
  .demo-split > .wax { padding: 48px 40px !important; }
}
@media (max-width: 600px) {
  .demo-split > div:first-child { padding: 48px 24px 36px !important; }
  .demo-split > .wax { padding: 36px 24px !important; }
}
@media (max-width: 480px) {
  .demo-split > div:first-child { padding: 40px 20px 28px !important; }
  .demo-split > .wax { padding: 28px 16px !important; }
}

/* ── Contact page grid ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}
@media (max-width: 480px) {
  .contact-grid { gap: 28px !important; }
}

/* ── Name row (first + last) — stays 2-col until very small ── */
@media (max-width: 360px) {
  .name-row { grid-template-columns: 1fr !important; }
}

/* ── Product split (escrow, payouts, apihub, careers) ── */
@media (max-width: 900px) {
  .product-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}
@media (max-width: 480px) {
  .product-split { gap: 28px !important; }
}

/* ── Resources 3-col grid ── */
@media (max-width: 768px) {
  .resources-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .resources-grid { grid-template-columns: 1fr !important; }
}

/* ── About page vision/mission card grid ── */
@media (max-width: 480px) {
  .about-cards-grid { grid-template-columns: 1fr !important; }
}

/* ── About grid gap on tablet ── */
@media (max-width: 768px) {
  .about-grid { gap: 40px; }
}

/* ── cert-vis badge: give room when stacked below text ── */
@media (max-width: 1024px) {
  .cert-vis { margin-top: 28px; }
}
@media (max-width: 480px) {
  .cert-vis { padding: 28px 22px; margin-top: 24px; }
  .yb { top: -16px; right: 16px; padding: 10px 16px; }
  .yb .yv { font-size: 1.25rem; }
  .cert-grid { gap: 10px; }
  .cbox { padding: 14px; }
  .cv { font-size: 1.1rem; }
}

/* ── CTA Band ── */
@media (max-width: 768px) {
  .cta-band { text-align: center; padding: 72px 5%; }
  .cta-band::before { width: 100%; }
}
@media (max-width: 480px) {
  .cta-band { padding: 56px 4%; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band p  { font-size: .88rem; }
}

/* ── Job cards (careers) ── */
@media (max-width: 600px) {
  .jcard { padding: 14px 16px; gap: 10px; }
  .jcard h4 { font-size: .88rem; }
  .jcard p  { font-size: .76rem; }
  .jtag { font-size: .68rem; padding: 2px 8px; }
  .cult-panel { padding: 20px; }
  .cult-panel h3 { font-size: 1rem; }
  .ci { gap: 10px; }
  .ci-ic { width: 32px; height: 32px; font-size: .9rem; }
}

/* ── Resource cards ── */
@media (max-width: 480px) {
  .rcard-img { height: 120px; font-size: 2.5rem; }
  .rcard-body { padding: 18px; }
  .rcard-body h4 { font-size: .88rem; }
  .rcard-body p  { font-size: .78rem; }
  .rcat { font-size: .68rem; }
}

/* ── Trust strip + stats band on very small screens ── */
@media (max-width: 480px) {
  .trust-strip  { grid-template-columns: 1fr 1fr; gap: 2px; }
  .stats-band   { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-grid-4  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .trust-strip  { grid-template-columns: 1fr; }
  .stats-band   { grid-template-columns: 1fr; }
}

/* ── API Hub terminal block ── */
@media (max-width: 480px) {
  #termBody {
    font-size: .7rem !important;
    padding: 16px !important;
    overflow-x: auto;
  }
  .ttab { font-size: .7rem !important; padding: 5px 10px !important; }
}

/* ── ssub / stitle size on mobile ── */
@media (max-width: 480px) {
  .ssub { font-size: .88rem; }
  .stitle { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}

/* ── Footer on very small screens ── */
@media (max-width: 480px) {
  .footer-links { flex-wrap: wrap; gap: 10px; }
}

/* ── Card padding on mobile ── */
@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  .section    { padding: 48px 4%; }
  .section-sm { padding: 32px 4%; }
}

/* ════════════════════════════════════════════════════════════
   INDEX PAGE — FULL MOBILE PASS  480px → 350px
════════════════════════════════════════════════════════════ */

/* ── 480px: feature panels + testimonials ── */
@media (max-width: 480px) {
  /* Feature panels */
  .fp-icon      { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 16px; }
  .fp-text h3   { font-size: 1.4rem; }
  .fp-text p    { font-size: 0.84rem; margin-bottom: 18px; }
  .fkv          { font-size: 1.5rem; }
  .fp-kpis      { gap: 20px; margin-bottom: 16px; }
  .fp-vis       { padding: 20px; min-height: auto; }
  .fp-bignum    { font-size: 5rem; bottom: 8px; right: 18px; }

  /* Testimonials */
  .testi-card   { padding: 28px 22px; }
  .tq           { font-size: 2.4rem; margin-bottom: 10px; }
  .testi-card p { font-size: 0.83rem; line-height: 1.72; }
  .ta-name      { font-size: 0.84rem; }
  .ta-co        { font-size: 0.7rem; }

  /* Clients strip label */
  .clients-lbl  { font-size: 0.63rem; margin-bottom: 20px; }
}

/* ── 390px: tighter everything ── */
@media (max-width: 390px) {
  /* Feature panels */
  .fp-text      { padding: 24px 16px; }
  .fp-text h3   { font-size: 1.25rem; }
  .fp-text p    { font-size: 0.82rem; }
  .fkv          { font-size: 1.3rem; }
  .fkl          { font-size: 0.62rem; }
  .fp-kpis      { gap: 14px; }
  .fp-vis       { padding: 14px; }
  .fp-icon      { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 14px; }

  /* Testimonials */
  .testi-card   { padding: 22px 18px; }
  .tq           { font-size: 2rem; }
  .testi-card p { font-size: 0.81rem; }

  /* Hero badge: allow wrap on very tight screens */
  .hero-badge   { white-space: normal; text-align: center; line-height: 1.5; max-width: 240px; }
}

/* ── 350px: smallest supported viewport ── */
@media (max-width: 350px) {

  /* Hero */
  .hero-inner     { padding: 66px 3.5% 28px; gap: 18px; }
  .hero-badge     { font-size: 0.59rem; padding: 5px 11px; max-width: 200px; }
  .hero-float-line { font-size: 1.6rem; }
  .hero-tw-wrap   { gap: 5px; margin-bottom: 12px; }
  .hero-tw-for    { font-size: 0.88rem; }
  .hero-tw-text,
  .hero-tw-cursor { font-size: 1rem; }
  .hero-sub       { font-size: 0.75rem; margin-bottom: 18px; }

  .hero-btns      { gap: 7px; margin-bottom: 14px; }
  .hero-btn-primary,
  .hero-btn-ghost { font-size: 0.82rem; padding: 11px 14px; }

  .hero-stats     { gap: 6px; margin-bottom: 12px; }
  .hero-stat      { padding: 9px 5px 7px; border-radius: 10px; }
  .hs-val         { font-size: 0.9rem; }
  .hs-lbl         { font-size: 0.43rem; }

  .hpp            { font-size: 0.54rem; padding: 2px 7px; }
  .hero-product-pills { gap: 4px; }

  /* Feature panels */
  .fp-text        { padding: 20px 14px; }
  .fp-text h3     { font-size: 1.15rem; }
  .fp-text p      { font-size: 0.79rem; }
  .fkv            { font-size: 1.15rem; }
  .fkl            { font-size: 0.59rem; }
  .fp-vis         { padding: 10px; }
  .fp-icon        { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 12px; border-radius: 12px; }

  /* Testimonials */
  .testi-card     { padding: 20px 16px; }
  .tq             { font-size: 1.8rem; }
  .testi-card p   { font-size: 0.79rem; }

  /* Section spacing */
  .section        { padding: 36px 3.5%; }
  .section-sm     { padding: 26px 3.5%; }
  .cta-band       { padding: 44px 3.5%; }
  .cta-band h2    { font-size: 1.35rem; }
  .cta-band p     { font-size: 0.82rem; }

  /* Type scale */
  .stitle         { font-size: 1.55rem; }
  .ssub           { font-size: 0.82rem; }

  /* Marquee */
  .marq-item      { font-size: 0.72rem; padding: 0 16px; }

  /* Clients strip */
  .clients-lbl    { font-size: 0.59rem; letter-spacing: 0.08em; margin-bottom: 16px; }
  .chip           { padding: 9px 16px; font-size: 0.72rem; }
  .chip-logo span { font-size: 0.72rem; }
}

/* ════════════════════════════════════════════════════════════
   PRODUCT-INTRO-GRID — desktop default (was inline style)
════════════════════════════════════════════════════════════ */
.product-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}

/* ════════════════════════════════════════════════════════════
   INDEX PAGE — COMPREHENSIVE MOBILE PASS  768px → 350px
   Covers: nav, hero, products, testimonials, CTA, footer
════════════════════════════════════════════════════════════ */

/* ── Prevent any horizontal overflow globally ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Ensure all sections stay within viewport ── */
.section, .section-sm, .cta-band, .marq, .clients-strip,
.hero-outer, .hero-inner, .footer {
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Nav: ensure hamburger menu doesn't overflow ── */
.nav {
  box-sizing: border-box;
}

/* ════════ 768px TABLET ════════ */
@media (max-width: 768px) {

  /* Product intro grid: single column */
  .product-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  /* Feature panel: single col, remove RTL trick */
  .fpanel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .fpanel.rev {
    direction: ltr;
  }
  .fpanel.rev > * {
    direction: ltr;
  }

  /* Keep SVG panels from overflowing */
  .fp-vis {
    min-height: 240px;
    padding: 20px;
  }
  .fp-vis svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  /* Testimonials: collapse to 1 col */
  .card-grid-3.testi-grid-wrap,
  section .card-grid-3 {
    grid-template-columns: 1fr;
  }

  /* CTA band */
  .cta-band {
    padding: 72px 5%;
    text-align: center;
  }
  .cta-band > * {
    position: relative;
    z-index: 1;
  }

  /* Footer grid 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Nav mobile menu improvements */
  .nav-links {
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links > li > a {
    padding: 13px 16px;
    font-size: 0.9rem;
  }
  .btn-demo {
    margin: 8px 16px 4px;
    display: block;
    text-align: center;
    padding: 12px 22px;
  }
}

/* ════════ 600px NARROW TABLET / LARGE PHONE ════════ */
@media (max-width: 600px) {

  /* Testimonials: definitely single col */
  .card-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Stats 2×2 */
  .hero-stats {
    flex-wrap: wrap;
  }

  /* Feature panel text wider padding */
  .fp-text {
    padding: 32px 22px;
  }

  /* Carousel advisory card: stack image on top */
  .uc-advisory-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .uc-sketch-col {
    border-right: none;
    border-bottom: 1px solid var(--carousel-border);
    padding: 22px 20px 18px;
  }

  /* Product intro */
  .product-intro-grid {
    gap: 16px;
    margin-bottom: 32px;
  }
}

/* ════════ 480px MOBILE ════════ */
@media (max-width: 480px) {

  /* ── Nav ── */
  .nav {
    padding: 0 4%;
    height: 64px;
  }
  .nav-logo img {
    height: 34px;
  }
  .nav-links {
    top: 64px;
  }

  /* ── Hero ── */
  .hero-inner {
    padding: 76px 5% 44px;
    gap: 28px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-badge {
    margin: 0 auto 18px;
    font-size: 0.72rem;
    padding: 6px 14px 6px 9px;
    max-width: 90%;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }
  .hero-float-line {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }
  .hero-tw-wrap {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
  }
  .hero-tw-for { font-size: 1.1rem; }
  .hero-tw-text,
  .hero-tw-cursor { font-size: 1.35rem; }

  .hero-sub {
    text-align: center;
    max-width: 100%;
    font-size: 0.88rem;
    margin-bottom: 22px;
  }

  .hero-btns {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-btn-primary,
  .hero-btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  /* Stats: 2×2 accent card grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-stats::before { display: none; }
  .hero-stat-div { display: none; }
  .hero-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 10px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
  }
  .hero-stat:first-child { padding-left: 10px; }
  .hero-stat:nth-child(1)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--orange); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(3)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--green); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(5)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--teal); border-radius: 14px 14px 0 0; }
  .hero-stat:nth-child(7)::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--navy); border-radius: 14px 14px 0 0; }
  .hs-val { font-size: 1.3rem; }
  .hs-lbl { font-size: 0.58rem; white-space: nowrap; margin-top: 4px; }

  .hero-product-pills {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-right { max-width: 100%; }

  /* ── Products section ── */
  .product-intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .fpanel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .fpanel.rev {
    direction: ltr;
  }
  .fpanel.rev > * {
    direction: ltr;
  }
  .fp-text {
    padding: 28px 20px;
    order: 1;
  }
  .fp-vis {
    order: 2;
    min-height: 200px;
    padding: 20px;
    overflow: hidden;
  }
  .fp-vis svg {
    width: 100%;
    height: auto;
  }
  .fp-icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 16px; }
  .fp-text h3 { font-size: 1.3rem; }
  .fp-text p  { font-size: 0.85rem; margin-bottom: 18px; }
  .fkv        { font-size: 1.5rem; }
  .fp-kpis    { gap: 20px; margin-bottom: 16px; }
  .fp-bignum  { font-size: 4.5rem; bottom: 8px; right: 16px; }

  /* ── Testimonials ── */
  .card-grid-3 { grid-template-columns: 1fr !important; }
  .testi-card  { padding: 28px 22px; }
  .tq          { font-size: 2.4rem; margin-bottom: 10px; }
  .testi-card p { font-size: 0.84rem; line-height: 1.72; }
  .ta-name     { font-size: 0.84rem; }
  .ta-co       { font-size: 0.7rem; }

  /* ── Clients strip ── */
  .clients-strip { padding: 28px 0; }
  .clients-lbl   { font-size: 0.63rem; margin-bottom: 18px; padding: 0 16px; }

  /* ── CTA band ── */
  .cta-band      { padding: 56px 5%; text-align: center; }
  .cta-band h2   { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 12px; }
  .cta-band p    { font-size: 0.88rem; margin-bottom: 32px; }
  .cta-band .btn { display: inline-flex; width: auto; max-width: 90%; }

  /* ── Footer ── */
  .footer        { padding: 56px 5% 28px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-links  { flex-wrap: wrap; justify-content: center; gap: 10px; }

  /* ── Section spacing ── */
  .section    { padding: 48px 4%; }
  .section-sm { padding: 32px 4%; }

  /* ── Type scale ── */
  .stitle { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .ssub   { font-size: 0.88rem; }
}

/* ════════ 390px SMALL PHONES ════════ */
@media (max-width: 390px) {

  .hero-inner {
    padding: 70px 4% 36px;
    gap: 22px;
  }

  .hero-badge {
    font-size: 0.67rem;
    padding: 5px 12px 5px 8px;
    margin-bottom: 14px;
    max-width: 95%;
  }
  .hero-float-line { font-size: 1.75rem; }
  .hero-tw-for     { font-size: 1rem; }
  .hero-tw-text,
  .hero-tw-cursor  { font-size: 1.2rem; }
  .hero-sub        { font-size: 0.83rem; margin-bottom: 18px; }
  .hero-tw-wrap    { margin-bottom: 14px; gap: 5px; }
  .hero-btns       { margin-bottom: 18px; }
  .hero-stats      { gap: 8px; margin-bottom: 16px; }
  .hero-stat       { padding: 12px 8px 10px; border-radius: 12px; }
  .hs-val          { font-size: 1.15rem; }
  .hs-lbl          { font-size: 0.53rem; }
  .hpp             { font-size: 0.6rem; padding: 3px 9px; }
  .hero-product-pills { gap: 5px; }

  /* Feature panels tighter */
  .fp-text   { padding: 24px 16px; }
  .fp-text h3 { font-size: 1.2rem; }
  .fp-text p  { font-size: 0.82rem; }
  .fkv        { font-size: 1.3rem; }
  .fkl        { font-size: 0.62rem; }
  .fp-kpis    { gap: 14px; }
  .fp-vis     { padding: 14px; min-height: 180px; }
  .fp-icon    { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 14px; }

  /* Testimonials tighter */
  .testi-card  { padding: 24px 18px; }
  .tq          { font-size: 2rem; }
  .testi-card p { font-size: 0.82rem; }

  /* CTA tighter */
  .cta-band { padding: 48px 4%; }
  .cta-band h2 { font-size: 1.5rem; }

  /* Type */
  .stitle { font-size: 1.6rem; }
  .ssub   { font-size: 0.84rem; }
}

/* ════════ 350px SMALLEST SUPPORTED VIEWPORT ════════ */
@media (max-width: 350px) {

  /* Nav */
  .nav { padding: 0 3.5%; height: 60px; }
  .nav-logo img { height: 30px; }
  .nav-links { top: 60px; }

  /* Hero */
  .hero-inner     { padding: 64px 3.5% 28px; gap: 18px; }
  .hero-badge     { font-size: 0.59rem; padding: 5px 10px 5px 7px; max-width: 100%; }
  .hero-float-line { font-size: 1.55rem; letter-spacing: -0.02em; }
  .hero-tw-wrap   { gap: 4px; margin-bottom: 12px; }
  .hero-tw-for    { font-size: 0.88rem; }
  .hero-tw-text,
  .hero-tw-cursor { font-size: 1rem; }
  .hero-sub       { font-size: 0.75rem; margin-bottom: 16px; }

  .hero-btns      { gap: 7px; margin-bottom: 14px; }
  .hero-btn-primary,
  .hero-btn-ghost { font-size: 0.8rem; padding: 11px 14px; border-radius: 10px; }

  .hero-stats     { gap: 6px; margin-bottom: 14px; }
  .hero-stat      { padding: 10px 5px 8px; border-radius: 10px; }
  .hs-val         { font-size: 0.95rem; }
  .hs-lbl         { font-size: 0.44rem; white-space: nowrap; }

  .hpp            { font-size: 0.54rem; padding: 2px 7px; letter-spacing: 0.04em; }
  .hero-product-pills { gap: 4px; }

  /* Products */
  .product-intro-grid { gap: 12px; margin-bottom: 24px; }
  .fp-text        { padding: 20px 14px; }
  .fp-text h3     { font-size: 1.1rem; }
  .fp-text p      { font-size: 0.79rem; }
  .fkv            { font-size: 1.1rem; }
  .fkl            { font-size: 0.58rem; }
  .fp-vis         { padding: 10px; min-height: 160px; }
  .fp-icon        { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 12px; border-radius: 12px; }
  .fp-bignum      { font-size: 3.5rem; }
  .fp-kpis        { gap: 12px; }

  /* Testimonials */
  .testi-card     { padding: 20px 14px; }
  .tq             { font-size: 1.8rem; }
  .testi-card p   { font-size: 0.79rem; }
  .ta-av          { width: 36px; height: 36px; font-size: 0.76rem; }
  .ta-name        { font-size: 0.82rem; }
  .ta-co          { font-size: 0.67rem; }

  /* CTA */
  .cta-band       { padding: 44px 3.5%; }
  .cta-band h2    { font-size: 1.3rem; }
  .cta-band p     { font-size: 0.82rem; }

  /* Section spacing */
  .section        { padding: 36px 3.5%; }
  .section-sm     { padding: 26px 3.5%; }

  /* Type */
  .stitle         { font-size: 1.5rem; }
  .ssub           { font-size: 0.82rem; }

  /* Marquee */
  .marq-item      { font-size: 0.7rem; padding: 0 14px; }

  /* Clients */
  .clients-lbl    { font-size: 0.59rem; letter-spacing: 0.07em; margin-bottom: 14px; }
  .chip           { padding: 8px 14px; font-size: 0.7rem; }
  .chip-logo span { font-size: 0.7rem; }
  .chip-logo img  { height: 20px; width: 20px; }

  /* Footer */
  .footer         { padding: 44px 3.5% 24px; }
  .footer-grid    { gap: 22px; padding-bottom: 28px; }
  .footer-col h5  { font-size: 0.68rem; margin-bottom: 14px; }
  .footer-col ul li a { font-size: 0.76rem; }

  /* Buttons */
  .btn            { padding: 12px 22px; font-size: 0.86rem; }

  /* Cards / testimonials single col always */
  .card-grid-3    { grid-template-columns: 1fr !important; }

  /* Tags / Pills */
  .ptag           { font-size: 0.64rem; padding: 3px 10px; }
}

/* ── Overflow safety catch-all for very small screens ── */
@media (max-width: 400px) {
  * {
    word-break: break-word;
  }

  .uc-advisory-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .uc-sketch-col {
    border-right: none;
    border-bottom: 1px solid var(--carousel-border);
  }
  .uc-sketch-frame { width: min(140px, 60%); }

  /* Carousel cards: constrain height */
  .update-card {
    padding: 18px 16px 14px;
  }

  /* Ensure SVG never causes scroll */
  svg {
    max-width: 100%;
  }
}
