/* CQube Solutions — shared styles */
:root {
  --coral: #E8334A;
  --coral-700: #C42539;
  --coral-300: #FF6B7E;
  --slate-950: #0B0F1A;
  --slate-900: #111827;
  --slate-800: #1F2937;
  --slate-700: #2A3344;
  --slate-600: #3B4658;
  --slate-400: #8A93A6;
  --slate-300: #B8BFCC;
  --off-white: #F9FAFB;
  --white: #FFFFFF;
  --border-light: #E6E8EC;
  --text-primary: #0B0F1A;
  --text-secondary: #4A5468;
  --text-muted: #6B7588;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 2px rgba(11, 15, 26, 0.04), 0 4px 12px rgba(11, 15, 26, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(11, 15, 26, 0.08), 0 16px 40px rgba(11, 15, 26, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}
.site-header.on-light {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border-light);
}
.site-header.on-light.scrolled {
  background: rgba(255, 255, 255, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.site-header.on-light .logo { color: var(--text-primary); }
.logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-name { font-weight: 700; }
.logo-name em { font-style: normal; color: var(--coral); }

.nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-primary > a,
.nav-item-has-children > a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-primary > a:hover,
.nav-item-has-children > a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-primary > a.active,
.nav-item-has-children > a.active { color: var(--white); }
.site-header.on-light .nav-primary > a,
.site-header.on-light .nav-item-has-children > a { color: var(--text-secondary); }
.site-header.on-light .nav-primary > a:hover,
.site-header.on-light .nav-item-has-children > a:hover { color: var(--text-primary); background: rgba(11, 15, 26, 0.04); }
.site-header.on-light .nav-primary > a.active,
.site-header.on-light .nav-item-has-children > a.active { color: var(--text-primary); }

/* Active nav indicator — coral underline */
.nav-primary > a::after,
.nav-item-has-children > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(.2,.8,.2,1);
}
.nav-primary > a:hover::after,
.nav-item-has-children > a:hover::after { width: calc(100% - 24px); }
.nav-primary > a.active::after,
.nav-item-has-children > a.active::after { width: calc(100% - 24px); }
.nav-item-has-children.active-parent > a::after { width: calc(100% - 24px); }

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(232, 51, 74, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 90;
  cursor: pointer;
  border: none;
}
.scroll-top:hover { background: var(--coral-700); transform: translateY(0) scale(1.08); }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-mobile-menu {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--white);
}
.site-header.on-light .btn-mobile-menu { color: var(--text-primary); }
.btn-mobile-menu:hover { background: rgba(255,255,255,0.08); }
.site-header.on-light .btn-mobile-menu:hover { background: rgba(11,15,26,0.05); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(85vw, 360px);
  background: var(--slate-950);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 150;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  color: var(--white);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.mobile-drawer nav a {
  color: var(--white);
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
}
.mobile-drawer nav a:hover { background: rgba(255,255,255,0.06); }
.mobile-drawer .btn { margin-top: 16px; }

/* Logo image */
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Dark header: white chip so brand colours (red cube + dark text) show through */
.site-header:not(.on-light) .logo {
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 14px;
  border-radius: 8px;
  gap: 0;
}
.logo-img-footer { height: 44px; }
.footer-logo {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 14px;
  border-radius: 8px;
  gap: 0;
  display: inline-flex;
}

/* ============ MEGA MENU ============ */
.nav-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item-has-children > a {
  display: flex !important;
  align-items: center;
  gap: 4px;
}
.nav-item-has-children .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-item-has-children.open .chevron,
.nav-item-has-children:hover .chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 700px;
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}
.nav-item-has-children.open .mega-menu,
.nav-item-has-children:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner { display: flex; flex-direction: column; gap: 20px; }
.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mega-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 3px;
}
.mega-tagline { font-size: 13px; color: rgba(255,255,255,0.45); }
.mega-view-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  white-space: nowrap;
  margin-top: 2px;
}
.mega-view-all:hover { text-decoration: underline; }

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
.mega-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.mega-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(232,51,74,0.14);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--coral);
}
.mega-icon svg { width: 15px; height: 15px; }

/* Light header mega menu */
.site-header.on-light .mega-menu {
  background: var(--white);
  border-color: var(--border-light);
  box-shadow: 0 24px 64px rgba(11,15,26,0.12);
}
.site-header.on-light .mega-tagline { color: var(--text-muted); }
.site-header.on-light .mega-item { color: var(--text-secondary); }
.site-header.on-light .mega-item:hover { background: var(--off-white); color: var(--text-primary); }
.site-header.on-light .mega-eyebrow { color: var(--coral); }

/* ============ DRAWER SUB-MENU ============ */
.drawer-has-children { display: flex; flex-direction: column; }
.drawer-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--white);
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.drawer-section-toggle:hover { background: rgba(255,255,255,0.06); }
.drawer-section-toggle .chevron { transition: transform 0.2s; }
.drawer-section-toggle.open .chevron { transform: rotate(180deg); }

.drawer-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 12px;
}
.drawer-sub.open { display: flex; }
.drawer-sub a {
  color: rgba(255,255,255,0.65);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.drawer-sub a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.drawer-sub .drawer-sub-all {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  padding: 11px 20px;
  border-radius: 10px;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 18px rgba(232, 51, 74, 0.32);
}
.btn-primary:hover {
  background: var(--coral-700);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 24px rgba(232, 51, 74, 0.4);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); transform: translateY(-1px); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-ghost-dark:hover { background: var(--off-white); transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--text-primary);
}
.btn-white:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-1px); }

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 11px; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============ DARK HERO ============ */
.hero {
  position: relative;
  background: var(--slate-950);
  color: var(--white);
  overflow: hidden;
  padding: 160px 0 180px;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(closest-side, rgba(232, 51, 74, 0.18), transparent 70%);
  filter: blur(40px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(58, 100, 255, 0.12), transparent 70%);
  filter: blur(60px);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--coral); }
.hero p.subhead {
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero illustration */
.hero-illust {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}
.hero-illust .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-illust .ring.r2 { inset: 12%; }
.hero-illust .ring.r3 { inset: 24%; }
.hero-illust .ring.r4 { inset: 36%; }
.hero-illust .core {
  position: absolute;
  inset: 30%;
  background: linear-gradient(135deg, var(--coral) 0%, #FF6B7E 100%);
  border-radius: 24px;
  transform: rotate(45deg);
  box-shadow: 0 20px 80px rgba(232, 51, 74, 0.4);
  display: grid; place-items: center;
}
.hero-illust .core::before {
  content: '';
  position: absolute;
  inset: 14%;
  background: var(--slate-950);
  border-radius: 16px;
}
.hero-illust .core svg {
  position: relative;
  width: 40%;
  color: var(--coral);
  transform: rotate(-45deg);
}
.hero-illust .floater {
  position: absolute;
  background: rgba(20, 26, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.hero-illust .floater .icon-sq {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(232, 51, 74, 0.16);
  color: var(--coral);
  display: grid; place-items: center;
}
.hero-illust .f1 { top: 8%; right: -4%; }
.hero-illust .f2 { bottom: 18%; left: -8%; }
.hero-illust .f3 { top: 50%; right: -10%; }
.hero-illust .dot-decoration {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--coral);
}
.hero-illust .d1 { top: 22%; left: 12%; }
.hero-illust .d2 { bottom: 28%; right: 22%; }
.hero-illust .d3 { top: 60%; left: 4%; }

/* ============ STATS ============ */
.stats {
  background: var(--slate-950);
  color: var(--white);
  position: relative;
  padding: 0 0 96px;
  /* diagonal clip on bottom */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin-bottom: -60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 64px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-value .plus, .stat-value .pct { color: var(--coral); -webkit-text-fill-color: var(--coral); }
.stat-label {
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============ SERVICES SECTION ============ */
.services {
  background: var(--off-white);
  padding: 160px 0 120px;
  position: relative;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .head-left { max-width: 640px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--coral);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 18px;
  max-width: 540px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  background: #141A2B;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px 24px;
  color: var(--white);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(232,51,74,0.4), transparent 60%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.service-card:hover {
  transform: translateY(-6px);
  background: #182039;
  box-shadow: 0 24px 60px rgba(11, 15, 26, 0.28);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(232, 51, 74, 0.12);
  color: var(--coral);
  display: grid; place-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--white);
  position: relative; z-index: 1;
}
.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
  position: relative; z-index: 1;
}
.service-card .read-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative; z-index: 1;
  transition: gap 0.2s;
}
.service-card:hover .read-more { gap: 10px; }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--coral) 0%, #C42539 60%, #9F1B2D 100%);
  padding: 96px 0;
  color: var(--white);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.cta-band-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}
.cta-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.cta-band p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.cta-band .ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 18px; }
.footer-brand p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.socials a:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--coral); }
.footer-contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.55;
}
.footer-contact-line svg {
  width: 16px; height: 16px;
  color: var(--coral);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--white); }

/* ============ SUBPAGE HERO (SMALL) ============ */
.sub-hero {
  background: var(--slate-950);
  color: var(--white);
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}
.sub-hero .hero-bg::before { width: 40%; height: 80%; }
.sub-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: center;
}
.sub-hero-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(232,51,74,0.18), rgba(232,51,74,0.06));
  border: 1px solid rgba(232,51,74,0.28);
  border-radius: 18px;
  display: grid; place-items: center;
  color: var(--coral);
}
.sub-hero-icon svg { width: 38px; height: 38px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--coral); }
.sub-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.sub-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 680px; }

/* ============ FEATURE GRID ============ */
.feature-section { padding: 120px 0; background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(232, 51, 74, 0.2);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(232, 51, 74, 0.08);
  color: var(--coral);
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.02em; }
.feature-item p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }

/* ============ CASE STUDY ============ */
.case-study {
  background: var(--slate-950);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.case-study .hero-bg::before { left: auto; right: -10%; }
.case-study .case-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(232, 51, 74, 0.12);
  color: var(--coral);
  border: 1px solid rgba(232, 51, 74, 0.28);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.case-study h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.case-study .case-desc { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tech-badge {
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric-card {
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 22px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
}
.metric-value .accent { color: var(--coral); }
.metric-label { font-size: 13.5px; color: rgba(255,255,255,0.6); }

/* ============ CONTACT ============ */
.contact-section { padding: 120px 0; background: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.contact-form-wrap h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: -0.025em; }
.contact-form-wrap > p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 51, 74, 0.12);
}
.field textarea { min-height: 140px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--slate-950);
  color: var(--white);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(232, 51, 74, 0.25), transparent);
  filter: blur(40px);
}
.info-card .label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
  position: relative;
}
.info-card h3 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 6px; position: relative; }
.info-card .body { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.65; position: relative; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.info-row:last-child { border-bottom: none; }
.info-row .icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(232,51,74,0.1);
  color: var(--coral);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-row .icon svg { width: 16px; height: 16px; }
.info-row .label-sm {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
  font-weight: 600;
}
.info-row .value {
  font-size: 14.5px;
  color: var(--white);
  line-height: 1.55;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 420ms; }

/* ============ TESTIMONIAL ============ */
.testimonial-section {
  padding: 80px 0;
  background: var(--off-white);
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.quote-mark {
  width: 44px; height: 44px;
  background: var(--coral);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 28px;
  color: #fff;
  flex-shrink: 0;
}
.quote-mark svg { width: 20px; height: 20px; }
.testimonial-card blockquote {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-primary);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.testimonial-author-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-author-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Why CQube section (QA page) */
.why-section { padding: 100px 0; background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.why-item {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--off-white);
}
.why-check {
  width: 28px; height: 28px;
  background: rgba(232,51,74,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--coral);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-check svg { width: 13px; height: 13px; }
.why-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============ ABOUT SECTION ============ */
.about-section {
  padding: 120px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text { max-width: 560px; }
.about-title { margin-bottom: 20px; }
.about-para {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-para:last-of-type { margin-bottom: 32px; }

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.about-stat-light {
  background: var(--off-white);
  border: 1px solid var(--border-light);
}
.about-stat-dark {
  background: var(--slate-800);
  border: 1px solid rgba(255,255,255,0.06);
}
.about-stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.about-stat-value.coral { color: var(--coral); }
.about-stat-value.white { color: var(--white); }
.about-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}
.about-stat-label.light { color: rgba(255,255,255,0.65); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-illust { max-width: 340px; margin: 0 auto; }
  .case-study .case-inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .ctas { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text { max-width: 100%; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-primary { display: none; }
  .header-cta .btn:not(.btn-mobile-menu) { display: none; }
  .btn-mobile-menu { display: flex; }

  /* Hero */
  .hero { padding: 110px 0 80px; }
  .hero-illust { display: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .hero p.subhead { font-size: 16px; }
  .hero .cta-row { flex-direction: column; align-items: flex-start; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats { padding: 0 0 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; padding-top: 48px; }
  .stat-value { font-size: 40px; }

  /* About */
  .about-section { padding: 72px 0; }
  .about-grid { gap: 36px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-stat-card { padding: 20px 16px; }
  .about-stat-value { font-size: 36px; }
  .about-stat-label { font-size: 13px; }

  /* Services */
  .services { padding: 80px 0 64px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { gap: 24px; margin-bottom: 36px; }
  .section-subtitle { font-size: 15px; }

  /* Feature / Why */
  .feature-section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-section { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; }

  /* Case study */
  .case-study { padding: 80px 0; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }

  /* Testimonial */
  .testimonial-section { padding: 56px 0; }
  .testimonial-card { padding: 32px 24px; }
  .testimonial-card blockquote { font-size: 15px; }

  /* CTA band */
  .cta-band { padding: 64px 0; }
  .cta-band h2 { font-size: clamp(28px, 7vw, 40px); }
  .cta-band p { font-size: 15px; }
  .cta-band .ctas { flex-direction: column; width: 100%; }
  .cta-band .ctas .btn { width: 100%; justify-content: center; }

  /* Sub-hero */
  .sub-hero { padding: 110px 0 72px; }
  .sub-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .sub-hero-icon { width: 56px; height: 56px; }
  .sub-hero-icon svg { width: 26px; height: 26px; }
  .sub-hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .sub-hero p { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Contact */
  .contact-section { padding: 72px 0; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero CTA full-width already handled at 768; ensure logo chip fits */
  .site-header:not(.on-light) .logo { padding: 4px 10px; }
  .logo-img { height: 32px; }

  /* Stats stay 2-col but tighter */
  .stats-grid { gap: 20px; }
  .stat-value { font-size: 36px; }
  .stat-label { font-size: 13px; }

  /* About stat cards go single column on very small screens */
  .about-stats-grid { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }

  /* Case metrics stay 2-col */
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 32px; }

  /* Testimonial */
  .testimonial-card { padding: 24px 16px; }
  .testimonial-card blockquote { font-size: 14px; }

  /* Section titles */
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .case-study h2 { font-size: clamp(24px, 7vw, 34px); }

  /* Feature items stack icon on top */
  .feature-item { flex-direction: column; gap: 12px; }

  /* Sub-hero */
  .sub-hero-inner { display: block; }
  .sub-hero-icon { display: none; }
  .breadcrumb { flex-wrap: wrap; }
}
