/* =======================================================================
   Divako www - page layout
   Consumes tokens from tokens.css. Dark-first, Poppins + Inter.
   ======================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--r-md);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); z-index: 100; }

.eyebrow { color: var(--brand-deep-300); }
.muted { color: var(--fg-3); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }

/* ----------- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: var(--r-lg);
  font-family: var(--font-sans); font-size: var(--fs-body);
  font-weight: var(--fw-semibold); line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn-lg { padding: 14px 24px; font-size: var(--fs-body-lg); border-radius: var(--r-xl); }
.btn-primary {
  background: var(--brand-deep-400); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px rgba(59,125,221,.25);
}
.btn-primary:hover { background: var(--brand-deep-500); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--fg-1);
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { border-color: var(--brand-deep-400); color: var(--fg-1); }

/* ----------- Topbar -------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,30,48,0.72); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-1);
}
.topbar-inner {
  display: flex; align-items: center; gap: var(--sp-10);
  height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: var(--sp-6); margin-right: auto; }
.nav a {
  color: rgba(255,255,255,.78); font-size: var(--fs-body);
  font-weight: var(--fw-medium); text-decoration: none;
  padding: 6px;
  transition: color var(--dur-base) var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-deep-400); }
.mobile-menu a.is-active { color: var(--brand-deep-300); }
.topbar-cta { display: flex; gap: 8px; align-items: center; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-menu {
  display: none; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6); background: var(--bg-2);
  border-top: 1px solid var(--border-1);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { color: #fff; text-decoration: none; padding: 8px 0; }

@media (max-width: 900px) {
  .nav, .topbar-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* ----------- Hero ---------------------------------------------------- */
.hero { position: relative; padding: clamp(72px, 10vw, 140px) 0 var(--sp-16); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -5% 0 -5%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(59,125,221,.32), transparent 60%),
    radial-gradient(900px 700px at 5% 110%, rgba(4,149,110,.18), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-16); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
.hero-title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 var(--sp-6); color: #fff;
}
.hero-title em { font-style: normal; color: var(--brand-sage); font-weight: var(--fw-regular); }
.hero-sub {
  max-width: 600px; font-size: var(--fs-body-lg); line-height: var(--lh-loose);
  color: var(--brand-deep-300); margin: 0 0 var(--sp-8);
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.hero-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.hero-chips li {
  font-size: var(--fs-sm); padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(59,125,221,.12); border: 1px solid rgba(59,125,221,.25);
  color: var(--brand-deep-300); font-family: var(--font-display); letter-spacing: .02em;
}

/* Hub visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hub {
  position: relative; aspect-ratio: 1; width: clamp(260px, 36vw, 420px);
  display: flex; align-items: center; justify-content: center;
}
.hub-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(59,125,221,.3);
  animation: pulse 4s ease-out infinite;
}
.hub-ring.r2 { inset: 16%; border-color: rgba(59,125,221,.48); animation-delay: -1.3s; }
.hub-ring.r3 { inset: 32%; border-color: rgba(156,190,172,.45); animation-delay: -2.6s; }
@keyframes pulse {
  0%   { transform: scale(1);    opacity: .9; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
.hub-core {
  position: relative; width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3b7ddd, #06426a 65%, #001e30);
  border: 1px solid #3b7ddd;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(59,125,221,.55), inset 0 0 24px rgba(156,190,172,.2);
}
.hub-core img { width: 50%; filter: brightness(0) invert(1); }
.hub-label {
  position: absolute; bottom: -40px; left: 0; right: 0; text-align: center;
  font-size: var(--fs-sm); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-sage); font-weight: var(--fw-semibold);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ----------- Page hero (sub-pages) ----------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(59,125,221,.28), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(4,149,110,.12), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 920px; }
.page-hero .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: var(--brand-deep-300); font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-4);
}
.page-hero .breadcrumb a { color: var(--brand-deep-300); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { opacity: 0.4; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 var(--sp-5); color: #fff;
}
.about-page .page-hero h1,
.areas-page .page-hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
}
.page-hero .page-lead {
  font-size: var(--fs-body-lg); color: var(--brand-deep-300);
  line-height: var(--lh-loose); max-width: 720px; margin: 0;
}

/* ----------- Narrative content blocks (sub-pages) -------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--sp-12); }
.prose h3 { margin-top: var(--sp-10); color: #fff; }
.prose p  { color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.prose ul { padding-left: 20px; }
.prose ul li { color: var(--fg-2); padding: 4px 0; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split h3 { font-size: var(--fs-h3); margin: 0 0 var(--sp-4); color: #fff; }
.split p { color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.split .visual {
  background: linear-gradient(180deg, rgba(6,45,72,.7), rgba(6,45,72,.3));
  border: 1px solid rgba(59,125,221,.28); border-radius: var(--r-xl);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep-300); font-size: var(--fs-sm); letter-spacing: .1em;
  text-transform: uppercase;
}
.split .split-image {
  margin: 0; position: relative;
  aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid rgba(59,125,221,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.split .split-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,30,48,.55) 100%);
  pointer-events: none;
}
.split .split-image img,
.split .split-image video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.split:hover .split-image img,
.split:hover .split-image video { transform: scale(1.03); }

/* Tall, self-contained infographics: show whole, don't crop the baked-in copy */
.split .split-image.is-tall {
  aspect-ratio: 3 / 4;
  background: #0a0e14;
  max-width: 480px; margin-inline: auto;
}
.split .split-image.is-tall img { object-fit: contain; }
.split .split-image.is-tall::after { display: none; }

/* Wide, self-contained illustrations: show the whole 16:9 artwork, no crop */
.split .split-image.is-wide {
  aspect-ratio: 16 / 9;
  background: #001e30;
}
.split .split-image.is-wide img { object-fit: contain; }
.split .split-image.is-wide::after { display: none; }

.split .split-pillar {
  margin: 0; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(59,125,221,.22), transparent 70%),
    linear-gradient(180deg, rgba(6,45,72,.55), rgba(6,45,72,.15));
  border: 1px solid rgba(59,125,221,.28); border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.split .split-pillar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(circle at 25% 20%, rgba(156,190,172,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(59,125,221,.22), transparent 50%);
  pointer-events: none;
}
.split .split-pillar img {
  max-width: 52%; max-height: 58%;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.45));
  transition: transform var(--dur-slow) var(--ease-out);
  position: relative; z-index: 1;
}
.split .split-pillar.is-photo img {
  max-width: 86%; max-height: 78%;
  object-fit: contain;
}
.split:hover .split-pillar img { transform: translateY(-4px) scale(1.04); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ----------- Stats strip --------------------------------------------- */
.stats-strip { padding: 0 0 var(--sp-16); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
  background:
    radial-gradient(1200px 220px at 50% 50%, rgba(59,125,221,.10), transparent 70%),
    linear-gradient(180deg, rgba(13,50,82,.42), rgba(6,45,72,.28));
  border: 1px solid rgba(59,125,221,.14);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stats-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.85) contrast(1.05);
  mix-blend-mode: screen;
}
.stat {
  background: transparent;
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  z-index: 1;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(255,255,255,.10) 30%,
    rgba(255,255,255,.10) 70%,
    transparent);
}
.stat .n {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(32px, 3.4vw, 48px); line-height: 1; color: #fff; letter-spacing: -0.02em;
}
.stat .n sup {
  font-size: .5em; color: var(--brand-sage); margin-left: 2px;
  vertical-align: super; top: -.2em; position: relative; font-weight: var(--fw-medium);
}
.stat .l {
  margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--brand-deep-300);
  text-transform: uppercase; letter-spacing: .12em;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > .stat:nth-child(3)::before { display: none; }
  .stats-grid > .stat:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,.06);
  }
}

/* ----------- Section scaffolding ------------------------------------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.section-alt {
  background:
    radial-gradient(1400px 900px at 50% 50%, rgba(13,50,82,.85), transparent 75%),
    var(--brand-deep-900);
}
.section-alt::before,
.section-alt::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 120px; pointer-events: none; z-index: 0;
}
.section-alt::before { top: 0; background: linear-gradient(to bottom, var(--brand-deep-900), transparent); }
.section-alt::after  { bottom: 0; background: linear-gradient(to top,    var(--brand-deep-900), transparent); }
.section > .container { position: relative; z-index: 1; }

/* ----------- Decorative SVG layers ----------------------------------- */
.deco {
  position: absolute; pointer-events: none; user-select: none;
  z-index: 0; opacity: 0; /* fade in on load */
  transition: opacity 1.4s var(--ease-out);
  will-change: transform, opacity;
}
.deco.is-ready { opacity: 1; }

.deco-connections {
  width: min(1400px, 130vw); aspect-ratio: 6822 / 6548;
  background: url("/assets/img/connections.svg") center / contain no-repeat;
  mix-blend-mode: screen; opacity: 0;
}
.deco-connections.is-ready { opacity: 0.22; }
.deco-hero-right {
  top: -30%; right: -28%;
  animation: drift 90s ease-in-out infinite alternate;
}

.deco-hexagon {
  width: min(900px, 90vw); aspect-ratio: 4689 / 3250;
  background: url("/assets/img/hexagon.svg") center / contain no-repeat;
  opacity: 0;
}
.deco-hexagon.is-ready { opacity: 0.12; }
.deco-hex-left {
  top: -10%; left: -20%;
  animation: spin 140s linear infinite;
  transform-origin: center;
}

.deco-leaves {
  width: min(520px, 60vw); aspect-ratio: 2741 / 3349;
  background: url("/assets/img/leaves.svg") center / contain no-repeat;
  filter: invert(1) brightness(2) hue-rotate(160deg);
  opacity: 0;
}
.deco-leaves.is-ready { opacity: 0.08; }
.deco-leaves-right {
  bottom: -10%; right: -8%;
  animation: drift-reverse 60s ease-in-out infinite alternate;
}
.deco-leaves-left {
  top: -6%; left: -10%; transform: scaleX(-1);
  animation: drift-reverse 80s ease-in-out infinite alternate;
}

/* Additional placements for "area-covering" feel */
.deco-hero-left {
  top: -20%; left: -30%;
  animation: drift 110s ease-in-out infinite alternate-reverse;
}
.deco-hex-right {
  top: -15%; right: -25%;
  animation: spin 180s linear infinite reverse;
  transform-origin: center;
}
.deco-hex-bottom-right {
  bottom: -35%; right: -25%;
  animation: spin 160s linear infinite;
  transform-origin: center;
}
.deco-connections-bottom {
  bottom: -40%; left: -20%;
  animation: drift 100s ease-in-out infinite alternate-reverse;
}
.deco-connections-wide {
  top: 50%; left: 50%;
  width: min(1800px, 160vw);
  animation: spin-centered 220s linear infinite;
}
.deco-connections-wide.is-ready { opacity: 0.12; }
@keyframes spin-centered {
  from { transform: translate(-50%, -40%) rotate(0deg); }
  to   { transform: translate(-50%, -40%) rotate(360deg); }
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(-6deg); }
  to   { transform: translate(-4%, 3%) rotate(4deg); }
}
@keyframes drift-reverse {
  from { transform: translate(0, 0) rotate(4deg); }
  to   { transform: translate(3%, -2%) rotate(-6deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ----------- Reveal-on-scroll --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger inside grids */
.reveal:nth-child(1) { transition-delay:  40ms; }
.reveal:nth-child(2) { transition-delay: 120ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 280ms; }

/* ----------- Hero hub gentle float ---------------------------------- */
.hub { animation: hubFloat 7s ease-in-out infinite; }
@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ----------- Primary CTA shimmer ------------------------------------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

/* ----------- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .deco, .hub, .hub-ring, .btn-primary::after,
  .app-card:hover .app-shot img { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* Pause SVG <animateMotion> elements */
  svg animateMotion { display: none; }
}
.section-head {
  max-width: 760px; margin: 0 auto var(--sp-12); text-align: center;
}
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head h2 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
}
.section-head .lead {
  font-size: var(--fs-body-lg); color: var(--brand-deep-300);
  line-height: var(--lh-loose); margin: 0;
}

/* ----------- Pillars (What is Divako) -------------------------------- */
.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5);
}
.pillar {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.pillar:hover { border-color: rgba(59,125,221,.55); transform: translateY(-2px); }
.pillar h3 { margin: var(--sp-4) 0 var(--sp-3); font-size: var(--fs-h4); color: #fff; }
.pillar p { color: var(--fg-2); margin: 0 0 var(--sp-4); font-size: var(--fs-body-lg); }
.pillar-icon {
  width: 84px; height: 84px; margin-bottom: var(--sp-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep-400);
}
.pillar-icon svg,
.pillar-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(59,125,221,.35));
  transition: transform var(--dur-slow) var(--ease-out);
}
.pillar:hover .pillar-icon img { transform: translateY(-2px) scale(1.05); }

.tick-list li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--fg-2); font-size: var(--fs-body); padding: 6px 0;
  border-top: 1px dashed rgba(255,255,255,.06);
}
.tick-list li::before {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--brand-green) 0 3px, transparent 3px 100%),
    rgba(4,149,110,.15);
}
.tick-list li:first-child { border-top: 0; }
.split .tick-list + .btn { margin-top: var(--sp-6); }

@media (max-width: 1280px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillar-grid { grid-template-columns: 1fr; } }

/* ----------- Hub flow SVG - wires & packets (integrations page) ----- */
.hubflow-svg .hf-wires use,
.hubflow-svg .hf-wires path {
  fill: none; stroke: rgba(59,125,221,.45); stroke-width: 1.3;
}
.hubflow-svg .pkt {
  fill: #3b7ddd; filter: drop-shadow(0 0 6px #3b7ddd);
}
.hubflow-svg .pkt-out {
  fill: #9cbeac; filter: drop-shadow(0 0 6px #9cbeac);
}

/* Alarm-dot pulse (used by spotlight rows) */
@keyframes pulse-raw {
  0%, 100% { background: rgba(59,125,221,.18); }
  50%      { background: rgba(59,125,221,.38); }
}

/* ----------- Hub flow: one platform, every direction ----------------- */
.hubflow {
  position: relative; margin: var(--sp-8) 0 var(--sp-16);
  background: linear-gradient(180deg, rgba(6,45,72,.7), rgba(6,45,72,.3));
  border: 1px solid rgba(59,125,221,.25); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 40px);
  overflow: hidden;
}
.hubflow-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hubflow-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
}
.hubflow-col { display: flex; flex-direction: column; gap: var(--sp-4); }
.hf-label {
  font-size: var(--fs-sm); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-deep-300); font-weight: var(--fw-semibold);
}
.hf-label-mid { text-align: center; color: var(--brand-sage); }
.hf-label-right { text-align: right; }
.hf-edges { display: flex; flex-direction: column; gap: 10px; }
.hf-edge {
  background: rgba(0,30,48,.75); border: 1px solid rgba(59,125,221,.28);
  border-radius: 8px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-body); color: #fff;
  backdrop-filter: blur(6px);
}
.hf-edge span:nth-child(2) { flex: 1; }
.hf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3b7ddd; box-shadow: 0 0 8px #3b7ddd;
}
.hf-edge-out .hf-dot { background: #9cbeac; box-shadow: 0 0 8px #9cbeac; }
.hf-proto {
  font-size: 10px; letter-spacing: .1em; color: var(--brand-deep-300);
  text-transform: uppercase; font-family: var(--font-display); font-weight: var(--fw-medium);
}
.hf-edge-out { text-align: right; }
.hf-edge-out .hf-proto { margin-right: 0; }

.hf-mid .hub { margin: 0 auto; width: clamp(200px, 22vw, 280px); }

@media (max-width: 900px) {
  .hubflow-grid { grid-template-columns: 1fr; }
  .hubflow-svg  { display: none; }
  .hf-mid .hub  { margin: var(--sp-4) auto; width: clamp(180px, 50vw, 240px); }
  .hf-label-right { text-align: left; }
  .hf-edge-out { flex-direction: row-reverse; text-align: left; }
}

/* ----------- About story: "snap-together platform" assembly --------- */
.story-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.story-split .prose { max-width: 560px; margin: 0; }
.story-split .prose h2 { margin-top: 0; }

.assembly { position: relative; }
/* the panel itself stays put - only the pieces inside animate */
.assembly.reveal { opacity: 1; transform: none; transition: none; }

.asm-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 16px);
  aspect-ratio: 1 / 1; max-width: 440px; margin-inline: auto;
}

/* fragment tiles - assembled state is the base (and no-JS fallback) */
.frag {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--sp-2);
  padding: clamp(12px, 1.8vw, 18px);
  background: rgba(0,30,48,.78); border: 1px solid rgba(59,125,221,.3);
  border-radius: var(--r-lg); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
  transition: transform .7s var(--ease-out), opacity .6s ease,
              border-color .6s ease, box-shadow .6s ease;
}
.frag-icon { color: var(--brand-deep-300); }
.frag-icon svg { width: 26px; height: 26px; display: block; }
.frag-label {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-body-lg); color: #fff; line-height: 1.2;
}
.frag-sub {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* scattered / "duct-taped" state - applied while JS-armed but not yet revealed */
.assembly.reveal:not(.is-visible) .frag {
  opacity: .55; border-color: rgba(255,255,255,.1); box-shadow: none;
}
.assembly.reveal:not(.is-visible) .frag-1 { transform: translate(-20px,-16px) rotate(-6deg); }
.assembly.reveal:not(.is-visible) .frag-2 { transform: translate(20px,-12px) rotate(5deg); }
.assembly.reveal:not(.is-visible) .frag-3 { transform: translate(-16px,16px) rotate(4deg); }
.assembly.reveal:not(.is-visible) .frag-4 { transform: translate(22px,14px) rotate(-5deg); }

/* staggered snap-in once it scrolls into view */
.assembly.is-visible .frag-1 { transition-delay: .05s; }
.assembly.is-visible .frag-2 { transition-delay: .15s; }
.assembly.is-visible .frag-3 { transition-delay: .25s; }
.assembly.is-visible .frag-4 { transition-delay: .35s; }

/* the "glue" - seams that light up through the centre */
.asm-seam {
  position: absolute; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(var(--seam-dir, 90deg), transparent, var(--accent), transparent);
  transition: opacity .5s ease .45s, transform .6s var(--ease-out) .45s,
              box-shadow .5s ease .45s;
}
.asm-seam-h { --seam-dir: 90deg;  left: 6%; right: 6%; top: 50%; height: 2px;
  transform: translateY(-50%) scaleX(0); transform-origin: center; }
.asm-seam-v { --seam-dir: 180deg; top: 6%; bottom: 6%; left: 50%; width: 2px;
  transform: translateX(-50%) scaleY(0); transform-origin: center; }
.assembly.is-visible .asm-seam { opacity: 1; }
.assembly.is-visible .asm-seam-h { transform: translateY(-50%) scaleX(1); box-shadow: 0 0 10px rgba(59,125,221,.6); }
.assembly.is-visible .asm-seam-v { transform: translateX(-50%) scaleY(1); box-shadow: 0 0 10px rgba(59,125,221,.6); }

/* travelling pulses of "glue" along the seams */
.asm-seam::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px var(--accent); opacity: 0;
}
.assembly.is-visible .asm-seam-h::after { top: 50%; transform: translateY(-50%); animation: asm-pulse-h 2.4s linear 1s infinite; }
.assembly.is-visible .asm-seam-v::after { left: 50%; transform: translateX(-50%); animation: asm-pulse-v 2.4s linear 1.6s infinite; }
@keyframes asm-pulse-h { 0%{left:0;opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{left:100%;opacity:0} }
@keyframes asm-pulse-v { 0%{top:0;opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{top:100%;opacity:0} }

/* central Divako core - pops in once the seams meet */
.asm-core {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0); opacity: 0;
  width: clamp(76px, 11vw, 100px); height: clamp(76px, 11vw, 100px);
  display: grid; place-items: center; gap: 2px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #0d5a86, #001e30 75%);
  border: 1px solid rgba(59,125,221,.5);
  box-shadow: 0 0 0 6px rgba(0,30,48,.85), 0 0 30px rgba(59,125,221,.45);
  transition: transform .55s cubic-bezier(.34,1.56,.64,1) .5s, opacity .4s ease .5s;
}
.asm-core img { width: 56%; filter: brightness(0) invert(1); }
.assembly.is-visible .asm-core { transform: translate(-50%,-50%) scale(1); opacity: 1; }

.asm-caption {
  margin-top: var(--sp-6); text-align: center;
  font-size: var(--fs-sm); color: var(--fg-3); max-width: 380px;
  margin-inline: auto; line-height: var(--lh-snug);
}

/* gentle drift while still "duct-taped" - the playful bit */
@media (prefers-reduced-motion: no-preference) {
  .assembly.reveal:not(.is-visible) .frag { animation: asm-float 5s ease-in-out infinite; }
  .assembly.reveal:not(.is-visible) .frag-2 { animation-delay: -1.2s; }
  .assembly.reveal:not(.is-visible) .frag-3 { animation-delay: -2.4s; }
  .assembly.reveal:not(.is-visible) .frag-4 { animation-delay: -3.6s; }
}
@keyframes asm-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

@media (max-width: 900px) {
  .story-split { grid-template-columns: 1fr; }
  .story-split .prose { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .frag, .asm-seam, .asm-core { transition: none; }
  .asm-seam::after { display: none; animation: none; }
}

/* ----------- "APIs on demand" CTA block ------------------------------ */
.on-demand {
  margin-top: var(--sp-16); padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, #0d3252 0%, #06426a 55%, #04956e 140%);
  border: 1px solid rgba(156,190,172,.35); border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.on-demand::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,190,172,.3), transparent 70%);
  pointer-events: none;
}
.on-demand-copy { position: relative; z-index: 1; }
.on-demand-copy h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  margin: var(--sp-3) 0 var(--sp-4); color: #fff;
}
.on-demand-copy h3 em { font-style: normal; color: var(--brand-sage); }
.on-demand-copy p {
  color: rgba(255,255,255,.8); font-size: var(--fs-body-lg); line-height: var(--lh-loose);
  max-width: 520px; margin: 0;
}
.on-demand-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }

.on-demand-meta {
  position: relative; z-index: 1;
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.on-demand-meta li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.on-demand-meta .b-n {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(24px, 2.6vw, 32px); color: var(--brand-sage);
  line-height: 1; min-width: 64px; letter-spacing: -0.02em;
}
.on-demand-meta .b-t { font-size: var(--fs-body); color: rgba(255,255,255,.85); line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
.on-demand-meta .b-t strong { color: #fff; font-weight: var(--fw-semibold); }
.on-demand-meta .b-t em { color: rgba(255,255,255,.6); font-style: normal; font-size: var(--fs-sm); }

.integrations-strip-title { margin-top: var(--sp-12); margin-bottom: var(--sp-4); text-align: center; }

@media (max-width: 900px) {
  .on-demand { grid-template-columns: 1fr; }
}

/* ----------- Segments (horizontal rail) ------------------------------ */
.segment-rail-wrap { position: relative; }
.segment-rail {
  display: flex; gap: var(--sp-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin; scrollbar-color: var(--border-1) transparent;
  scroll-padding-left: var(--sp-1);
}

/* Edge fades — sit above the rail, ignore pointer events */
.rail-fade {
  position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.rail-fade-left  { left: 0;  background: linear-gradient(to right, var(--bg-1), transparent); }
.rail-fade-right { right: 0; background: linear-gradient(to left,  var(--bg-1), transparent); }
.segment-rail-wrap.can-scroll-left  .rail-fade-left  { opacity: 1; }
.segment-rail-wrap.can-scroll-right .rail-fade-right { opacity: 1; }

/* Scroll arrows */
.rail-arrow {
  position: absolute; top: calc(50% - var(--sp-4)); transform: translateY(-50%);
  z-index: 3; width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: #fff;
  border: 1px solid var(--border-1); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.rail-arrow svg { width: 22px; height: 22px; }
.rail-arrow:hover { background: var(--bg-3, #1c2420); border-color: rgba(156,190,172,.5); }
/* Arrows sit in the tab order even while hidden (opacity 0) - keyboard
   focus must reveal them and draw a visible ring. */
.rail-arrow:focus-visible {
  opacity: 1; pointer-events: auto;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rail-arrow-prev { left: -10px; }
.rail-arrow-next { right: -10px; }
.segment-rail-wrap.can-scroll-left  .rail-arrow-prev,
.segment-rail-wrap.can-scroll-right .rail-arrow-next {
  opacity: 1; pointer-events: auto;
}
@media (hover: none) { .rail-arrow { display: none; } }
.segment-rail::-webkit-scrollbar { height: 8px; }
.segment-rail::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 999px; }
.segment-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  overflow: hidden; transition: border-color var(--dur-base) var(--ease-out);
}
.segment-card:hover { border-color: rgba(156,190,172,.4); }
.segment-card > a {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}
.segment-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: rgba(156,190,172,.08);
}
.segment-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-base) var(--ease-out);
}
.segment-card:hover .segment-media img { transform: scale(1.04); }
.segment-body {
  flex: 1; padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.segment-body h3 { margin: 0; font-size: var(--fs-h4); color: #fff; }
.segment-body p { color: var(--fg-2); margin: 0; font-size: var(--fs-body); }
.link-arrow {
  margin-top: auto; color: var(--brand-deep-400); font-weight: var(--fw-semibold);
  font-size: var(--fs-body); text-decoration: none; transition: color var(--dur-base) var(--ease-out);
}
.segment-card:hover .link-arrow { color: var(--brand-deep-300); }
.link-arrow:hover { color: var(--brand-deep-300); }

@media (max-width: 640px) { .segment-card { flex-basis: 80%; } }

/* ----------- Use cases ------------------------------------------------ */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.case {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-3);
}
/* ----- Case card with a hover-reveal cover photo ----- */
.case.has-photo { position: relative; overflow: hidden; }
/* keep card content above the photo + scrim */
.case.has-photo > :not(.case-photo) { position: relative; z-index: 2; }
.case-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
/* dark scrim so the white text stays legible over the photo */
.case.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,18,28,.45), rgba(0,18,28,.86));
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.case.has-photo:hover .case-photo,
.case.has-photo:focus-within .case-photo { opacity: 1; transform: scale(1); }
.case.has-photo:hover::after,
.case.has-photo:focus-within::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .case-photo { transition: opacity var(--dur-base) var(--ease-out); transform: none; }
  .case.has-photo:hover .case-photo,
  .case.has-photo:focus-within .case-photo { transform: none; }
}
.case-meta {
  display: flex; justify-content: space-between;
  font-size: var(--fs-sm); color: var(--brand-deep-300);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-3);
}
.case-metric {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(40px, 4vw, 64px); line-height: 1; color: #fff; letter-spacing: -0.03em;
}
.case-metric sup { font-size: .5em; color: var(--brand-sage); top: -.2em; position: relative; }
.case-label { color: var(--brand-deep-300); margin: 0; font-size: var(--fs-body); }
.case-body { color: var(--fg-2); margin: var(--sp-3) 0 var(--sp-4); }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.case-tags li {
  font-size: var(--fs-sm); padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(59,125,221,.14); border: 1px solid rgba(59,125,221,.28);
  color: var(--brand-deep-300);
}

@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ----------- Testimonials -------------------------------------------- */
.quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.quote {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: var(--sp-8); margin: 0; position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: 8px; left: 16px;
  font-family: var(--font-display); font-size: 96px; color: var(--brand-deep-500);
  line-height: 1; opacity: .35;
}
.quote p { color: #fff; font-size: var(--fs-body-lg); margin: 0 0 var(--sp-5); line-height: var(--lh-loose); }
.quote footer { color: var(--brand-deep-300); font-size: var(--fs-sm); font-style: normal; }
.quote footer strong { color: #fff; font-weight: var(--fw-semibold); }

@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ----------- Mobile app cards ---------------------------------------- */
.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.app-card {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: 0; display: flex; flex-direction: column; gap: 0;
  overflow: hidden; /* trim image corners */
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.app-card:hover { border-color: rgba(59,125,221,.55); transform: translateY(-2px); }

.app-shot {
  position: relative;
  aspect-ratio: 4/3; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(500px 300px at 50% 40%, rgba(59,125,221,.25), transparent 70%),
    linear-gradient(180deg, #062d48 0%, #001e30 100%);
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
}
.app-shot img {
  max-width: 70%; max-height: 90%;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
  transition: transform var(--dur-slow) var(--ease-out);
}
.app-card:hover .app-shot img { transform: translateY(-4px) scale(1.02); }

/* Full-bleed lifestyle photos (real phone-in-hand shots) */
.app-shot.is-photo { background: #0a0e14; }
.app-shot.is-photo img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  filter: none;
}
.app-card:hover .app-shot.is-photo img { transform: scale(1.03); }

/* CSS phone frame for raw screenshots (Installation, etc.) */
.app-phone-frame {
  position: relative;
  aspect-ratio: 1170 / 2532;
  max-height: 86%; max-width: 38%;
  padding: 9px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #1a1f29 0%, #0a0e14 100%);
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 28px 48px rgba(0,0,0,.5);
  transition: transform var(--dur-slow) var(--ease-out);
}
.app-phone-frame::before {
  content: ""; position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 12px;
  background: #0a0e14; border-radius: 10px;
  z-index: 2;
}
.app-shot .app-phone-frame img {
  display: block;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  border-radius: 26px;
  filter: none;
}
.app-card:hover .app-phone-frame { transform: translateY(-4px) scale(1.02); }
.app-card:hover .app-shot .app-phone-frame img { transform: none; }

.app-body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-3); flex: 1;
}
.app-badge {
  display: inline-block; align-self: flex-start;
  font-size: var(--fs-sm); padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(4,149,110,.15); border: 1px solid rgba(4,149,110,.4);
  color: var(--brand-green); letter-spacing: .06em;
}
.app-body h3 { margin: 0; font-size: var(--fs-h4); color: #fff; }
.app-body p { color: var(--fg-2); margin: 0; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.store-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: var(--r-md); background: #000; color: #fff;
  font-size: var(--fs-sm); text-decoration: none; border: 1px solid rgba(255,255,255,.1);
}
.store-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
.store-links a:hover { border-color: rgba(255,255,255,.3); }

@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }

/* ----------- Integrations strip -------------------------------------- */
.integrations-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.integration-chip {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.integration-chip:hover { border-color: rgba(59,125,221,.5); }
.integration-chip span { color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-body-lg); }
.integration-chip small { color: var(--brand-deep-300); font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; }

/* ----------- Why Divako ---------------------------------------------- */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
}
.why-card {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
}
.why-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: rgba(59,125,221,.15); border: 1px solid rgba(59,125,221,.35);
  color: var(--brand-deep-400); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.why-icon svg { width: 20px; height: 20px; }
.why-card h3 { margin: 0 0 var(--sp-3); font-size: var(--fs-h5); color: #fff; }
.why-card p { color: var(--fg-2); margin: 0; font-size: var(--fs-body); }

/* Illustrated variant - Why Divako on the homepage */
.why-card-illus {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.why-card-illus:hover { border-color: rgba(59,125,221,.55); transform: translateY(-3px); }
.why-card-illus .why-illus {
  margin: 0; position: relative;
  aspect-ratio: 16/10; overflow: hidden;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(180deg, #062d48 0%, #001e30 100%);
}
.why-card-illus .why-illus img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.why-card-illus:hover .why-illus img { transform: scale(1.05); }
.why-card-illus .why-body { padding: var(--sp-6) var(--sp-6) var(--sp-8); flex: 1; }

@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .why-grid { grid-template-columns: 1fr; } }

/* ----------- CTA ----------------------------------------------------- */
.cta-section {
  background:
    radial-gradient(900px 500px at 20% 50%, rgba(59,125,221,.25), transparent 70%),
    radial-gradient(900px 500px at 90% 50%, rgba(4,149,110,.18), transparent 70%);
}
.cta-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-10); align-items: center;
}
.cta-inner h2 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: var(--sp-3) 0 var(--sp-5);
}
.cta-actions { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }

@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ----------- Footer -------------------------------------------------- */
.footer {
  background: #00131f; border-top: 1px solid var(--border-1);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-12);
  padding-bottom: var(--sp-10); border-bottom: 1px solid var(--border-1);
}
.footer-brand img { margin-bottom: var(--sp-4); }
.footer-brand p { max-width: 320px; font-size: var(--fs-body); }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
}
.footer-cols .footer-h {
  font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep-300); margin: 0 0 var(--sp-4); font-weight: var(--fw-semibold);
}
.footer-cols ul li { padding: 6px 0; }
.footer-cols a { color: var(--fg-2); text-decoration: none; font-size: var(--fs-body); }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-top: var(--sp-6); flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* =======================================================================
   ==  Homepage backend upgrade - orbits, marquee, catalog, flow tiles  ==
   ======================================================================= */

/* ----------- Hero hub: orbiting integration chips ------------------- */
.hub-hero { --orbit-r: clamp(120px, 17vw, 200px); overflow: visible; }

.hub-orbit {
  position: absolute; inset: 0;
  pointer-events: none;
  animation: orbit-spin 60s linear infinite;
}
.orbit-chip {
  --a: 0deg;
  position: absolute; top: 50%; left: 50%;
  width: clamp(38px, 4.4vw, 54px); aspect-ratio: 1;
  margin: calc(-1 * clamp(38px, 4.4vw, 54px) / 2) 0 0 calc(-1 * clamp(38px, 4.4vw, 54px) / 2);
  transform: rotate(var(--a)) translate(var(--orbit-r)) rotate(calc(var(--a) * -1));
}
.orbit-chip-inner {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
  box-shadow:
    0 6px 18px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12),
    0 0 24px rgba(59,125,221,.22);
  animation: orbit-counter 60s linear infinite;
}
.orbit-chip-inner img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
@keyframes orbit-spin    { to { transform: rotate(360deg);  } }
@keyframes orbit-counter { to { transform: rotate(-360deg); } }

/* ----------- "Connects with" logo marquee --------------------------- */
.logo-strip {
  margin-top: 2em;
  padding: 0 0 var(--sp-12);
  position: relative;
}
.logo-strip-eyebrow {
  text-align: center; margin: 0 0 var(--sp-5);
  color: var(--brand-sage);
}
.logo-strip-eyebrow a {
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(156,190,172,.4);
  transition: text-decoration-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.logo-strip-eyebrow a:hover {
  color: #fff; text-decoration-color: #fff;
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex; align-items: center; gap: var(--sp-5);
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.ml-item {
  flex: 0 0 auto;
  height: 64px; width: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-md);
  box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ml-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(59,125,221,.3); }
.ml-item img { max-height: 100%; max-width: 100%; object-fit: contain; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track, .hub-orbit, .orbit-chip-inner { animation: none !important; }
}

/* ----------- Software pillar: API hub animation -------------------- */
.split .split-pillar.api-hub { overflow: hidden; }
.split .split-pillar.api-hub::after { z-index: 0; }

.api-hub .api-pulse {
  position: absolute; top: 50%; left: 50%;
  width: clamp(96px, 13vw, 132px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1;
}
.api-pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(59,125,221,.55);
  animation: api-pulse 4s ease-out infinite;
}
.api-pulse-ring:nth-child(2) { border-color: rgba(59,125,221,.4);  animation-delay: -1.3s; }
.api-pulse-ring:nth-child(3) { border-color: rgba(156,190,172,.5); animation-delay: -2.6s; }
@keyframes api-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.api-hub .api-core {
  position: absolute; top: 50%; left: 50%;
  width: clamp(78px, 11vw, 112px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #3b7ddd, #06426a 65%, #001e30);
  border: 1px solid #3b7ddd;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 60px rgba(59,125,221,.55),
    inset 0 0 24px rgba(156,190,172,.2);
  z-index: 3;
}
.split .split-pillar.api-hub .api-core img {
  width: 50%; max-width: 50%; max-height: 50%;
  filter: brightness(0) invert(1);
}
.split:hover .split-pillar.api-hub .api-core img { transform: none; }

.api-orbit {
  --chip-size: clamp(36px, 4.4vw, 50px);
  --orbit-r: clamp(108px, 16.5vw, 168px);
  position: absolute; inset: 0;
  pointer-events: none;
  animation: api-orbit-spin 48s linear infinite;
  z-index: 2;
}
.api-chip {
  --a: 0deg;
  position: absolute; top: 50%; left: 50%;
  width: var(--chip-size); aspect-ratio: 1;
  margin: calc(-1 * var(--chip-size) / 2) 0 0 calc(-1 * var(--chip-size) / 2);
  transform: rotate(var(--a)) translate(var(--orbit-r)) rotate(calc(var(--a) * -1));
}
.api-chip-inner {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
  box-shadow:
    0 6px 18px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12),
    0 0 18px rgba(59,125,221,.22);
  animation: api-orbit-counter 48s linear infinite;
}
.split .split-pillar.api-hub .api-chip-inner img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: none;
}
.split:hover .split-pillar.api-hub .api-chip-inner img { transform: none; }

@keyframes api-orbit-spin    { to { transform: rotate(360deg); } }
@keyframes api-orbit-counter { to { transform: rotate(-360deg); } }

.api-tag {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-sage);
  padding: 5px 12px;
  background: rgba(0,30,48,.7);
  border: 1px solid rgba(156,190,172,.32);
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.api-tag-n { top: 5%;    left: 50%; transform: translateX(-50%); }
.api-tag-s { bottom: 5%; left: 50%; transform: translateX(-50%); }
.api-tag-e { right: 4%;  top: 50%;  transform: translateY(-50%); }
.api-tag-w { left: 4%;   top: 50%;  transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .api-orbit, .api-chip-inner, .api-pulse-ring { animation: none !important; }
}

/* ----------- Data pillar: payload parser animation ----------------- */
.split .split-pillar.data-parser {
  display: block; padding: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(59,125,221,.18), transparent 70%),
    linear-gradient(180deg, rgba(6,45,72,.6), rgba(6,45,72,.18));
}
.split .split-pillar.data-parser::after { z-index: 0; }
.dp-stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: space-between;
  padding: clamp(14px, 2.2vw, 22px) clamp(14px, 2.2vw, 22px);
  gap: clamp(8px, 1.3vw, 14px);
}

.dp-sources {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
}
.dp-sources span {
  font-family: var(--font-mono);
  font-size: clamp(9px, .9vw, 11px); letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-deep-300);
  padding: 3px 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(59,125,221,.28);
  border-radius: var(--r-pill);
}

.dp-hex {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(59,125,221,.32);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; align-items: flex-start; gap: 10px;
}
.dp-hex-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-sage); opacity: .75;
  margin-top: 3px; flex-shrink: 0;
}
.dp-hex-stream {
  flex: 1;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .04em;
  line-height: 1.55;
  display: flex; flex-wrap: wrap;
  gap: 0 8px;
}
.dp-byte {
  color: rgba(255,255,255,.22);
  animation: dp-byte-lite 8s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes dp-byte-lite {
  0%, 3%   { color: rgba(255,255,255,.22); text-shadow: none; }
  8%, 78%  { color: var(--brand-sage); text-shadow: 0 0 8px rgba(156,190,172,.5); }
  92%,100% { color: rgba(255,255,255,.22); text-shadow: none; }
}

.dp-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep-300);
  animation: dp-arrow-bob 1.8s ease-in-out infinite;
}
@keyframes dp-arrow-bob {
  0%, 100% { transform: translateY(-1px); opacity: .55; }
  50%      { transform: translateY(2px);  opacity: 1; }
}

.dp-out {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.dp-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(156,190,172,.22);
  border-radius: var(--r-md);
  opacity: 0;
  animation: dp-row-pop 8s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.dp-key {
  font-family: var(--font-mono);
  font-size: clamp(9px, .95vw, 11px);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep-300);
}
.dp-val {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(13px, 1.35vw, 16px);
  color: #fff;
}
@keyframes dp-row-pop {
  0%       { opacity: 0; transform: translateY(8px); }
  6%, 70%  { opacity: 1; transform: translateY(0); }
  85%,100% { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .dp-byte, .dp-row, .dp-arrow { animation: none !important; }
  .dp-byte { color: var(--brand-sage); }
  .dp-row  { opacity: 1; transform: none; }
}

/* ----------- Analyze: leak-detection figure -------------------------- */
.split .split-pillar.leak-scan {
  display: block; padding: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(59,125,221,.18), transparent 70%),
    linear-gradient(180deg, rgba(6,45,72,.6), rgba(6,45,72,.18));
}
.split .split-pillar.leak-scan::after { z-index: 0; }
.ls-stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(16px, 2.4vw, 26px);
  gap: clamp(10px, 1.6vw, 16px);
}
.ls-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ls-title {
  font-family: var(--font-mono);
  font-size: clamp(9px, .95vw, 11px); letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-deep-300);
}
.ls-badge {
  font-family: var(--font-mono);
  font-size: clamp(9px, .9vw, 11px); letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-orange);
  padding: 3px 10px; white-space: nowrap;
  background: rgba(242,141,34,.12);
  border: 1px solid rgba(242,141,34,.4);
  border-radius: var(--r-pill);
}
.ls-chart {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(59,125,221,.32);
  border-radius: var(--r-md);
  padding: 12px 12px 8px;
}
.ls-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ls-threshold { stroke: rgba(176,206,238,.35); stroke-width: 1; stroke-dasharray: 4 5; }
.ls-area { fill: rgba(59,125,221,.13); stroke: none; }
.ls-base {
  fill: none; stroke: var(--brand-sage); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ls-spike {
  fill: none; stroke: var(--brand-orange); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 170; stroke-dashoffset: 170;
  animation: ls-draw 6s ease-in-out infinite;
}
@keyframes ls-draw {
  0%, 8%    { stroke-dashoffset: 170; }
  40%, 80%  { stroke-dashoffset: 0; }
  94%, 100% { stroke-dashoffset: 170; }
}
.ls-dot { fill: var(--brand-orange); }
.ls-ping {
  fill: none; stroke: var(--brand-orange); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: ls-ping 2.4s ease-out infinite;
}
@keyframes ls-ping {
  0%        { transform: scale(.35); opacity: .9; }
  70%, 100% { transform: scale(1.7);  opacity: 0; }
}
.ls-checks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ls-checks li {
  font-family: var(--font-mono);
  font-size: clamp(9px, .9vw, 11px); letter-spacing: .06em;
  padding: 4px 11px 4px 23px; position: relative;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(156,190,172,.22);
  color: var(--brand-deep-300);
}
.ls-checks li::before {
  content: ""; position: absolute; left: 9px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
}
.ls-ok::before { background: var(--brand-green); }
.ls-alert {
  border-color: rgba(242,141,34,.4);
  color: var(--brand-orange);
}
.ls-alert::before { background: var(--brand-orange); }
@media (prefers-reduced-motion: reduce) {
  .ls-spike { stroke-dashoffset: 0; animation: none !important; }
  .ls-ping  { animation: none !important; opacity: .5; }
}

/* ----------- Hub flow: replace dots with logo tiles ----------------- */
.hf-logo {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-sm);
  padding: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08);
}
.hf-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Give egress a subtle sage halo */
.hf-edge-out .hf-logo { box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(156,190,172,.35); }
/* Ensure middle span takes flex whether or not dots are used */
.hf-edge > span:not(.hf-logo):not(.hf-proto) { flex: 1; }

/* ----------- Integration catalog ------------------------------------ */
.cat-head {
  max-width: 760px; margin: var(--sp-16) auto var(--sp-10); text-align: center;
}
.cat-head .eyebrow { margin-bottom: var(--sp-3); }
.cat-head h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 var(--sp-4);
}
.cat-head h3 em { font-style: normal; color: var(--brand-sage); font-weight: var(--fw-regular); }
.cat-head .lead {
  color: var(--brand-deep-300);
  font-size: var(--fs-body-lg); line-height: var(--lh-loose); margin: 0;
}
.cat-head-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: center; margin-top: var(--sp-6);
}

.cat-group + .cat-group { margin-top: var(--sp-12); }
.cat-group-head {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.cat-group-head h4 {
  margin: 0; font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-size: var(--fs-h4);
  color: #fff; letter-spacing: -0.01em;
}
.cat-group-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 24px; padding: 0 10px;
  background: rgba(59,125,221,.16); border: 1px solid rgba(59,125,221,.3);
  color: var(--brand-deep-300);
  border-radius: var(--r-pill); font-size: var(--fs-sm);
  font-family: var(--font-display); font-weight: var(--fw-semibold);
}
.cat-group-sub {
  margin-left: auto; color: var(--brand-deep-300);
  font-size: var(--fs-sm); text-align: right;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.cat-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-areas:
    "logo   proto"
    "body   body";
  grid-template-columns: 52px 1fr;
  gap: var(--sp-3) var(--sp-3);
  align-items: start;
  color: inherit; text-decoration: none;
  min-height: 152px;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,125,221,.22), transparent 65%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,125,221,.55);
  background: #073352;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.cat-card:hover::after { opacity: 1; }
.cat-card:focus-visible {
  outline: none; border-color: var(--brand-deep-400);
  box-shadow: 0 0 0 3px rgba(59,125,221,.35);
}

.cat-logo {
  grid-area: logo;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-md);
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08);
  flex-shrink: 0;
}
.cat-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-logo-dark { background: var(--brand-deep-900); box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 1px rgba(156,190,172,.3); }

.cat-proto {
  grid-area: proto;
  justify-self: end; align-self: start;
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep-300);
  background: rgba(59,125,221,.14); border: 1px solid rgba(59,125,221,.28);
  padding: 4px 8px; border-radius: var(--r-xs);
}

.cat-body { grid-area: body; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-body strong {
  color: #fff; font-weight: var(--fw-semibold);
  font-size: var(--fs-body-lg); font-family: var(--font-sans);
  line-height: 1.25;
}
.cat-body small {
  color: var(--brand-deep-300);
  font-size: var(--fs-sm); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-group-sub { display: none; } }
@media (max-width:  440px) { .cat-grid { grid-template-columns: 1fr; } }

/* Scale the hub-label up a notch inside the hero so it reads as orbital */
.hub-hero .hub-label { bottom: -44px; }

/* ==========================================================================
   Hero - animated city skyline + live meter card
   ========================================================================== */
.hero.hero-city-stage {
  padding-bottom: clamp(160px, 22vw, 280px);
}

.hero-city {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(300px, 38vw, 480px);
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* Buildings, windows, dots, wires & packets */
.hero-city .hc-windows rect {
  animation: hc-flicker 6s ease-in-out infinite;
}
.hero-city .hc-windows rect:nth-child(3n)  { animation-delay: 1.3s; }
.hero-city .hc-windows rect:nth-child(5n)  { animation-delay: 2.6s; animation-duration: 8s; }
.hero-city .hc-windows rect:nth-child(7n)  { animation-delay: 3.4s; animation-duration: 5s; }
.hero-city .hc-windows rect:nth-child(11n) { animation-delay: 4.2s; }
@keyframes hc-flicker {
  0%, 100% { fill-opacity: .25; }
  50%      { fill-opacity: .85; }
}

.hero-city .hc-dot {
  fill: #3b7ddd;
  filter: drop-shadow(0 0 10px #3b7ddd);
  transform-origin: center;
  transform-box: fill-box;
  animation: hc-dot 2s ease-in-out infinite;
}
.hero-city .hc-dot:nth-child(2) { animation-delay: .3s; }
.hero-city .hc-dot:nth-child(3) { animation-delay: .6s; }
.hero-city .hc-dot:nth-child(4) { animation-delay: .9s; }
.hero-city .hc-dot:nth-child(5) { animation-delay: 1.2s; }
.hero-city .hc-dot:nth-child(6) { animation-delay: 1.5s; }
@keyframes hc-dot {
  0%, 100% { transform: scale(1);    fill-opacity: 1; }
  50%      { transform: scale(1.7);  fill-opacity: .5; }
}

.hero-city .hc-wires use {
  fill: none; stroke: rgba(59,125,221,.18);
  stroke-width: 1; stroke-dasharray: 3 6;
}
.hero-city .hc-pkt {
  fill: #9cbeac;
  filter: drop-shadow(0 0 6px #9cbeac);
}

/* Live meter card */
.hero-visual { position: relative; z-index: 2; }
.meter-card {
  position: relative;
  background: rgba(0,30,48,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(59,125,221,.32);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: 0 28px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  display: flex; flex-direction: column; gap: var(--sp-3);
  min-width: 300px; max-width: 420px;
  margin-left: auto;
}

.meter-card-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--brand-deep-300); letter-spacing: .04em;
}
.meter-status {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(4,149,110,.18);
  animation: meter-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes meter-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(4,149,110,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(4,149,110,.04); }
}
.meter-id { color: #fff; font-weight: var(--fw-semibold); flex: 1; }
.meter-pill {
  position: relative;
  background: rgba(232,79,61,.16); border: 1px solid rgba(232,79,61,.4);
  color: #ff9a8c; padding: 2px 9px 2px 18px; border-radius: var(--r-pill);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  animation: live-glow 1.4s ease-in-out infinite;
}
.meter-pill::before {
  content: "";
  position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5d44; box-shadow: 0 0 0 0 rgba(232,79,61,.7);
  animation: live-dot 1.4s ease-in-out infinite;
}
@keyframes live-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232,79,61,.45);
    background: rgba(232,79,61,.16);
    border-color: rgba(232,79,61,.4);
  }
  50% {
    box-shadow: 0 0 14px 1px rgba(232,79,61,.5);
    background: rgba(232,79,61,.28);
    border-color: rgba(232,79,61,.65);
  }
}
@keyframes live-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,79,61,.65); }
  50%      { box-shadow: 0 0 0 5px rgba(232,79,61,0); }
}

.meter-big {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  margin-top: 4px;
}
.meter-digits {
  display: inline-block;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #b0ceee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .3s var(--ease-out);
}
.meter-digits.tick { filter: drop-shadow(0 0 14px rgba(59,125,221,.65)); }
.meter-unit { font-size: 14px; color: var(--brand-deep-300); font-weight: var(--fw-regular); font-family: var(--font-sans); }
.meter-up {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(4,149,110,.2); border: 1px solid rgba(4,149,110,.45);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-green);
  align-self: center;
}
.meter-up svg { width: 12px; height: 12px; }

.meter-sub {
  display: flex; gap: 10px; align-items: baseline;
  font-size: var(--fs-sm); color: var(--fg-2);
  font-family: var(--font-mono);
}
.meter-sub b {
  color: var(--brand-deep-300); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 10px; margin-right: 6px;
}
.meter-dot-sep { color: rgba(255,255,255,.25); }

.meter-spark {
  height: 60px; display: flex; align-items: flex-end; gap: 3px;
  padding: 4px 0 0;
}
.meter-spark span {
  flex: 1; height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand-deep-400) 0%, rgba(59,125,221,.15) 100%);
  animation: spark-rise 1s var(--ease-out) backwards;
}
.meter-spark span:nth-child(1)  { animation-delay: .05s }
.meter-spark span:nth-child(2)  { animation-delay: .10s }
.meter-spark span:nth-child(3)  { animation-delay: .15s }
.meter-spark span:nth-child(4)  { animation-delay: .20s }
.meter-spark span:nth-child(5)  { animation-delay: .25s }
.meter-spark span:nth-child(6)  { animation-delay: .30s }
.meter-spark span:nth-child(7)  { animation-delay: .35s }
.meter-spark span:nth-child(8)  { animation-delay: .40s }
.meter-spark span:nth-child(9)  { animation-delay: .45s }
.meter-spark span:nth-child(10) { animation-delay: .50s }
.meter-spark span:nth-child(11) { animation-delay: .55s }
.meter-spark span:nth-child(12) { animation-delay: .60s }
.meter-spark span:nth-child(13) { animation-delay: .65s }
.meter-spark span:nth-child(14) { animation-delay: .70s }
.meter-spark span:nth-child(15) { animation-delay: .75s }
.meter-spark span:nth-child(16) { animation-delay: .80s }
.meter-spark span:nth-child(17) { animation-delay: .85s }
.meter-spark span:nth-child(18) { animation-delay: .90s }
@keyframes spark-rise {
  from { height: 0; opacity: 0; }
  to   { height: var(--h, 50%); opacity: 1; }
}

.meter-foot {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--fg-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.06);
}
.meter-proto {
  background: rgba(59,125,221,.12); border: 1px solid rgba(59,125,221,.28);
  padding: 2px 8px; border-radius: var(--r-xs); color: var(--brand-deep-300);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
}
.meter-rssi { display: inline-flex; align-items: flex-end; gap: 2px; }
.meter-rssi i {
  display: inline-block; width: 3px; background: var(--brand-green);
  border-radius: 1px; box-shadow: 0 0 6px rgba(4,149,110,.5);
}
.meter-rssi i:nth-child(1) { height: 5px; }
.meter-rssi i:nth-child(2) { height: 8px; }
.meter-rssi i:nth-child(3) { height: 11px; }
.meter-rssi i:nth-child(4) { height: 14px; }
.meter-rssi i.off { background: rgba(255,255,255,.18); box-shadow: none; }
.meter-time { margin-left: auto; letter-spacing: .04em; }

@media (max-width: 1100px) {
  .meter-card { margin-left: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-city .hc-windows rect,
  .hero-city .hc-dot,
  .meter-status,
  .meter-pill,
  .meter-pill::before,
  .meter-spark span { animation: none !important; }
}

/* ==========================================================================
   Megamenu nav
   ========================================================================== */
.nav .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 0;
  color: var(--brand-deep-300); font-size: var(--fs-body-lg);
  font-family: var(--font-sans); font-weight: var(--fw-medium);
  cursor: pointer; line-height: 1;
}
.nav .nav-link:hover { color: #fff; }
.nav-caret { opacity: .7; transition: transform var(--dur-fast) var(--ease-out); }
.nav-item.has-mega { position: relative; }
.nav-item.has-mega .nav-link[aria-expanded="true"] .nav-caret,
.nav-item.has-mega:hover .nav-link .nav-caret { transform: rotate(180deg); opacity: 1; }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 720px; max-width: min(1080px, 92vw);
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 2px 0 rgba(59,125,221,.12) inset;
  padding: var(--sp-6);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility 0s linear var(--dur-fast);
  z-index: 90;
}
.nav-item.has-mega:hover > .mega,
.nav-item.has-mega:focus-within > .mega,
.nav-item.has-mega .nav-link[aria-expanded="true"] + .mega {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s;
}
.mega::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--border-1);
  border-left: 1px solid var(--border-1);
  transform: translateX(-50%) rotate(45deg);
  border-top-left-radius: 3px;
  z-index: 1;
}
/* Invisible hover bridge so the cursor can travel from the nav button
   into the dropdown without crossing a dead zone that would close it. */
.mega::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.mega-inner {
  display: grid; grid-template-columns: 1.1fr 1.1fr 0.9fr; gap: var(--sp-5);
}
.mega-inner-2 { grid-template-columns: 1fr 1fr; }
.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep-300); font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-2);
}
.mega-card {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  color: #fff; text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.mega-card:hover {
  background: var(--surface-hover);
  border-color: rgba(59,125,221,.28);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset,
              0 6px 16px rgba(0,0,0,.18);
  color: #fff;
}
.mega-card:focus-visible {
  outline: none;
  border-color: rgba(59,125,221,.6);
  box-shadow: 0 0 0 3px rgba(59,125,221,.18);
}
.mega-card .mega-ic {
  grid-row: 1 / span 2; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep-400);
  background: rgba(59,125,221,.12); border-radius: var(--r-sm);
}
.mega-card .mega-ic svg { width: 18px; height: 18px; }
.mega-card .mega-ic img { width: 22px; height: 22px; object-fit: contain; }
.mega-card strong {
  font-weight: var(--fw-semibold); font-size: var(--fs-body-lg);
  line-height: 1.2; color: #fff;
}
.mega-card small {
  display: block; font-size: var(--fs-sm); color: var(--brand-deep-300);
  line-height: 1.45; margin-top: 4px;
}
.mega-card-row { grid-template-columns: 36px 1fr; }
.mega-card-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }

.mega-col-feature {
  background: linear-gradient(160deg, rgba(6,66,106,.5), rgba(4,149,110,.18));
  border: 1px solid rgba(156,190,172,.25); border-radius: var(--r-lg);
  padding: var(--sp-4); margin-left: var(--sp-2);
}
.mega-feature {
  display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none;
}
.mega-feature strong { font-size: var(--fs-h4); line-height: 1.15; color: #fff; }
.mega-feature small { font-size: var(--fs-sm); color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: var(--sp-3); }
.mega-feature-link { color: var(--brand-sage); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }

@media (max-width: 1024px) {
  .mega { display: none; }
}

/* Mobile menu groups (details/summary) */
.mobile-menu .m-group { display: contents; }
.mobile-menu .m-group summary {
  list-style: none; cursor: pointer; padding: 10px 0;
  color: #fff; font-weight: var(--fw-semibold);
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu .m-group summary::-webkit-details-marker { display: none; }
.mobile-menu .m-group summary::after {
  content: "+"; font-weight: var(--fw-regular); font-size: 18px;
  color: var(--brand-deep-300);
}
.mobile-menu .m-group[open] summary::after { content: "−"; }
.mobile-menu .m-group a {
  padding: 6px 0 6px 16px;
  color: var(--brand-deep-300); font-size: var(--fs-body);
}

/* ==========================================================================
   Trust strip (under hero)
   ========================================================================== */
.trust-strip {
  padding: var(--sp-5) 0;
  background:
    radial-gradient(900px 200px at 50% 50%, rgba(59,125,221,.10), transparent 70%);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 12px; color: var(--fg-2);
  font-size: var(--fs-sm); line-height: 1.4;
}
.trust-item svg {
  flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand-sage);
}
.trust-item strong { color: #fff; font-weight: var(--fw-semibold); display: block; font-size: var(--fs-body); }
@media (max-width: 800px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Solutions tile grid (Bolt-style "what would you like to do")
   ========================================================================== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  color: #fff; text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,125,221,.18), transparent 70%);
  pointer-events: none; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.svc-card:hover {
  border-color: rgba(59,125,221,.55); transform: translateY(-2px);
  background: linear-gradient(180deg, var(--bg-2), #0a3753);
}
.svc-card:hover::after { opacity: 1; }
.svc-ic {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(59,125,221,.14); border: 1px solid rgba(59,125,221,.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep-400);
}
.svc-ic svg { width: 22px; height: 22px; }
.svc-card h3 {
  margin: 0; font-size: var(--fs-h4); color: #fff;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
}
.svc-card p { margin: 0; color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-base); }
.svc-link {
  margin-top: auto; color: var(--brand-deep-300); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); letter-spacing: .04em;
}
.svc-card:hover .svc-link { color: #fff; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .svc-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About: Team photo
   ========================================================================== */
.team-photo {
  position: relative; padding: 0 0 var(--sp-16);
}
.team-photo .container { position: relative; z-index: 1; }
.team-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.team-frame img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center 60%;
}
.team-caption {
  position: absolute; left: var(--sp-6); right: var(--sp-6); bottom: var(--sp-6);
  background: rgba(0,30,48,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6);
  max-width: 520px;
}
.team-caption .eyebrow { color: var(--brand-sage); margin: 0 0 6px; }
.team-caption h3 { margin: 0 0 6px; font-size: var(--fs-h4); color: #fff; }
.team-caption p { margin: 0; font-size: var(--fs-body); color: var(--fg-2); line-height: 1.5; }
@media (max-width: 700px) {
  .team-frame img { aspect-ratio: 4/5; object-position: center 50%; }
  .team-caption { position: static; margin-top: var(--sp-4); max-width: none; }
}

/* ==========================================================================
   About: Value cards
   ========================================================================== */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.value-card {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.value-card:hover { border-color: rgba(59,125,221,.45); transform: translateY(-2px); }
.value-num {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-h2); line-height: 1;
  align-self: flex-start; transform-origin: left center;
  background: linear-gradient(120deg, var(--brand-sage) 0%, var(--brand-deep-400) 50%, var(--brand-sage) 100%);
  background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: background-position .6s var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.value-card:hover .value-num { background-position: 100% 0; transform: scale(1.12); }
.value-card h3 {
  margin: 0; color: #fff; font-size: var(--fs-h4);
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
}
.value-card p { margin: 0; color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About: Geo strip (countries we operate in)
   ========================================================================== */
.geo-strip {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--sp-10);
  align-items: center;
  background: linear-gradient(135deg, rgba(6,66,106,.45), rgba(6,45,72,.2));
  border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
.geo-copy h3 {
  margin: 0 0 var(--sp-3); color: #fff; font-size: var(--fs-h3);
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
}
.geo-copy p { color: var(--fg-2); font-size: var(--fs-body-lg); margin: 0; line-height: var(--lh-loose); }
.geo-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
  list-style: none; padding: 0; margin: 0;
}
.geo-list li {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-body); color: #fff;
}
.geo-flag {
  width: 24px; height: 18px; border-radius: 2px;
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.geo-flag.no {
  background:
    linear-gradient(to right, transparent 0 27%, #fff 27% 32%, #002664 32% 41%, #fff 41% 46%, transparent 46%),
    linear-gradient(to bottom, transparent 0 38%, #fff 38% 44%, #002664 44% 56%, #fff 56% 62%, transparent 62%),
    #ed2939;
}
.geo-flag.se {
  background:
    linear-gradient(to right, transparent 0 28%, #fecc02 28% 42%, transparent 42%),
    linear-gradient(to bottom, transparent 0 40%, #fecc02 40% 60%, transparent 60%),
    #006aa7;
}
.geo-flag.dk {
  background:
    linear-gradient(to right, transparent 0 28%, #fff 28% 42%, transparent 42%),
    linear-gradient(to bottom, transparent 0 40%, #fff 40% 60%, transparent 60%),
    #c8102e;
}
.geo-flag.fi {
  background:
    linear-gradient(to right, transparent 0 28%, #003580 28% 42%, transparent 42%),
    linear-gradient(to bottom, transparent 0 40%, #003580 40% 60%, transparent 60%),
    #fff;
}
.geo-flag.ee { background: linear-gradient(to bottom, #0072ce 0 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.geo-flag.de { background: linear-gradient(to bottom, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.geo-flag.pl { background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50%); }
.geo-flag.eu { background: #003399; position: relative; }
.geo-flag.eu::after { content: "★"; position: absolute; inset: 0; color: #ffcc00; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.office-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  list-style: none; padding: 0; margin: var(--sp-6) 0 0;
}
.office-card {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-5);
  background-size: cover; background-position: center;
  background-clip: padding-box;
}
.office-card.office-oslo { background-image: linear-gradient(180deg, rgba(13,17,23,.80) 0%, rgba(13,17,23,.94) 100%), url(../assets/img/contacts/oslo.jpeg); }
.office-card.office-flataasen { background-image: linear-gradient(180deg, rgba(13,17,23,.80) 0%, rgba(13,17,23,.94) 100%), url(../assets/img/contacts/trondheim.jpeg); }
.office-card.office-tallinn { background-image: linear-gradient(180deg, rgba(13,17,23,.80) 0%, rgba(13,17,23,.94) 100%), url(../assets/img/contacts/tallinn.jpeg); }
.office-card > * { position: relative; }
.office-card h4 {
  margin: var(--sp-3) 0 var(--sp-2); color: #fff; font-size: var(--fs-body-lg);
}
.office-card address {
  font-style: normal; color: var(--fg-2); font-size: var(--fs-body);
  line-height: var(--lh-loose);
}
@media (max-width: 900px) {
  .geo-strip { grid-template-columns: 1fr; }
  .geo-list { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Spotlight band (used for Resident portal / leak detection on home)
   ========================================================================== */
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-10);
  align-items: center;
  background: linear-gradient(160deg, rgba(6,66,106,.6), rgba(4,149,110,.15));
  border: 1px solid rgba(156,190,172,.25); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 64px);
  margin-bottom: var(--sp-6);
}
.spotlight + .spotlight {
  background: linear-gradient(160deg, rgba(6,66,106,.55), rgba(232,79,61,.12));
  border-color: rgba(232,79,61,.25);
}
.spotlight h3 {
  margin: var(--sp-3) 0 var(--sp-4);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15;
  color: #fff;
}
.spotlight p { color: rgba(255,255,255,.82); font-size: var(--fs-body-lg); line-height: var(--lh-loose); margin: 0 0 var(--sp-4); }
.spotlight .tick-list { margin-bottom: var(--sp-5); }
.spotlight .spot-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.spot-visual {
  background: rgba(0,30,48,.65); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  font-family: var(--font-mono);
}
.spot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); font-size: var(--fs-sm); color: var(--fg-2);
}
.spot-row .spot-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.spot-row.ok    .spot-dot { background: var(--brand-green); box-shadow: 0 0 8px var(--brand-green); }
.spot-row.warn  .spot-dot { background: var(--brand-orange); box-shadow: 0 0 8px var(--brand-orange); }
.spot-row.alarm .spot-dot { background: var(--brand-red); box-shadow: 0 0 8px var(--brand-red); animation: pulse-raw 1.4s ease-in-out infinite; }
.spot-row .spot-meter { flex: 1; color: #fff; font-weight: var(--fw-semibold); }
.spot-row .spot-val   { color: var(--brand-deep-300); }

.spot-mock {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--bg-2);
}
.spot-mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.spot-mock-bar i {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18);
}
.spot-mock-bar i:first-child { background: #ff5f57; }
.spot-mock-bar i:nth-child(2) { background: #febc2e; }
.spot-mock-bar i:nth-child(3) { background: #28c840; }
.spot-mock-bar span {
  margin-left: var(--sp-3); font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3);
}
.spot-mock-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.spot-bigval {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(36px, 4vw, 56px); line-height: 1; color: #fff;
}
.spot-bigval em { font-size: 16px; color: var(--brand-deep-300); font-style: normal; font-weight: var(--fw-regular); margin-left: 6px; }
.spot-spark {
  height: 60px; display: flex; align-items: flex-end; gap: 4px;
}
.spot-spark span {
  flex: 1; background: linear-gradient(180deg, var(--brand-deep-400), var(--brand-deep-700));
  border-radius: 3px 3px 0 0; min-height: 8px;
  transition: opacity var(--dur-base) var(--ease-out);
}
.spot-legend {
  display: flex; justify-content: space-between;
  font-size: var(--fs-sm); color: var(--fg-3);
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; }
}


/* ===================================================================
   Homepage redesign - Phase 3 additions
   =================================================================== */

/* ---------- Customer logo wall ---------- */
.customer-strip {
  padding: var(--sp-12) 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.02));
}
.customer-strip .logo-strip-eyebrow {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}

.customer-logos .cust-logo {
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-weight: var(--fw-semibold);
  letter-spacing: .02em;
  transition: transform var(--dur-base) var(--ease-out);
}
.customer-logos .cust-logo img {
  height: 100%;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  opacity: .5;
  transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.customer-logos .cust-logo:hover img {
  filter: none;                                /* full colour on hover */
  opacity: 1;
}
.customer-logos .cust-logo:hover { transform: translateY(-1px); }
.customer-logos .cust-logo-text {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: var(--fs-body);
  color: #fff;
}

/* ---------- Product screenshot section ---------- */
.product-section .product-shot {
  margin: 0 auto;
  max-width: 1100px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -30px rgba(0,30,48,.6);
}
.product-section .product-shot img,
.product-section .product-shot svg {
  display: block;
  width: 100%;
  height: auto;
}
.product-shot-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--brand-deep-300);
  background:
    linear-gradient(135deg, rgba(59,125,221,.08), rgba(4,149,110,.08)),
    var(--bg-2);
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-shot-placeholder svg { width: 64px; height: 64px; opacity: .5; }

/* ---------- Product tabs ---------- */
.product-tabs {
  margin: var(--sp-10) auto 0;
  max-width: 1100px;
}
.product-tabs-nav {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding: 0 50%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* fade the edges to hint there's more to scroll */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  /* keep room so the focus outline and progress bar aren't clipped */
  padding: 2px 2px 4px;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }
.product-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 184px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
  color: var(--fg-2);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
  overflow: hidden;
}
.product-tab:hover {
  border-color: rgba(59,125,221,.35);
  background: rgba(59,125,221,.05);
  color: #fff;
}
.product-tab:focus-visible {
  outline: 2px solid var(--brand-blue, #3b7ddd);
  outline-offset: 2px;
}
.product-tab.is-active {
  border-color: rgba(59,125,221,.55);
  background: linear-gradient(180deg, rgba(59,125,221,.10), rgba(59,125,221,.02));
  color: #fff;
}
.product-tab-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-body);
  color: inherit;
}
.product-tab-sub {
  display: block;
  font-size: var(--fs-sm);
  color: var(--fg-3, #9aa6b2);
  line-height: 1.35;
}
.product-tab.is-active .product-tab-sub { color: var(--fg-2); }
.product-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #3b7ddd, #04956e);
  transition: none;
}
.product-tab.is-active.is-rotating::after {
  width: 100%;
  transition: width var(--ptab-rotate, 6s) linear;
}

.product-tabs-stage {
  position: relative;
  aspect-ratio: 2400 / 1500;
}
.product-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.product-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.product-tabs-stage .product-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 520px) {
  .product-tab {
    min-width: 156px;
    padding: 12px 14px;
  }
}

/* ---------- How it works: horizontal Connect -> Normalise -> Integrate flow ---------- */
.flow-stage {
  list-style: none; margin: var(--sp-10) auto 0; padding: 0;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: clamp(12px, 1.6vw, 24px); max-width: 1120px;
}
.flow-node {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(6,45,72,.55), rgba(6,45,72,.18));
  border: 1px solid rgba(59,125,221,.25); border-radius: var(--r-xl);
  padding: var(--sp-6); box-shadow: var(--shadow-card);
}
.flow-node-lead { border-color: rgba(156,190,172,.4); box-shadow: var(--shadow-pop); }
.flow-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.flow-badge span {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0;
}
.flow-badge-blue  { color: var(--brand-deep-400); }
.flow-badge-blue span  { background: rgba(59,125,221,.15);  border: 1px solid rgba(59,125,221,.45); color: var(--brand-deep-400); }
.flow-badge-sage  { color: var(--brand-sage); }
.flow-badge-sage span  { background: rgba(156,190,172,.15); border: 1px solid rgba(156,190,172,.45); color: var(--brand-sage); }
.flow-badge-green { color: var(--brand-green); }
.flow-badge-green span { background: rgba(4,149,110,.15);   border: 1px solid rgba(4,149,110,.5);  color: #34c79b; }
.flow-node h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -0.01em;
  color: #fff; margin: 0 0 var(--sp-4);
}
.flow-node p {
  font-size: var(--fs-body); color: var(--fg-2); line-height: var(--lh-loose);
  margin: 0 0 var(--sp-4);
}
.flow-node .tick-list { margin-top: auto; }

/* node visuals */
.flow-visual {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--sp-4); min-height: 48px;
}
.flow-tile {
  width: 48px; height: 48px; border-radius: 10px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(59,125,221,.45); box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.flow-tile img { width: 32px; height: 22px; object-fit: contain; }
.flow-more {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
  padding-left: 4px;
}
.flow-transform {
  flex-direction: column; align-items: flex-start; gap: 8px;
  background: rgba(0,30,48,.5); border: 1px solid rgba(59,125,221,.22);
  border-radius: var(--r-lg); padding: var(--sp-4); min-height: 0;
}
.flow-hex { display: flex; flex-wrap: wrap; gap: 5px; font-family: var(--font-mono); font-size: 12px; }
.flow-hex span {
  background: rgba(59,125,221,.18); border: 1px solid rgba(59,125,221,.32);
  color: #fff; padding: 3px 6px; border-radius: 4px; letter-spacing: .03em;
}
.flow-tarrow { width: 70px; height: 14px; }
.flow-tarrow path, .flow-tarrow polyline { stroke: rgba(156,190,172,.7); stroke-width: 1.4; fill: none; }
.flow-norm { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); }
.flow-norm b { color: #fff; font-size: 22px; font-weight: var(--fw-bold); }
.flow-norm em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--brand-deep-300); }
.flow-ok { font-family: var(--font-mono); font-size: 11px; color: var(--brand-green); }

/* connecting circle-arrows */
.flow-arrow { display: flex; align-items: center; justify-content: center; }
.flow-arrow svg { width: 56px; height: 56px; filter: drop-shadow(0 8px 18px rgba(59,125,221,.35)); }

@media (max-width: 900px) {
  .flow-stage {
    grid-template-columns: 1fr; gap: 8px; max-width: 520px; justify-items: stretch;
  }
  .flow-arrow svg { transform: rotate(90deg); width: 44px; height: 44px; }
  .flow-node .tick-list { margin-top: var(--sp-2); }
}

/* ---------- Why teams switch: before -> after ledger ---------- */
.ledger {
  list-style: none; margin: var(--sp-10) auto 0; padding: 0; max-width: 940px;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.ledger-head {
  display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center;
  gap: var(--sp-4); margin-bottom: 2px;
}
.ledger-tag {
  justify-self: start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: var(--fw-semibold); padding: 5px 12px; border-radius: 999px;
}
.ledger-tag-before { background: rgba(232,79,61,.15); color: #f3a89d; }
.ledger-tag-after  { background: rgba(4,149,110,.18); color: #9cebcf; }
.ledger-row {
  display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; gap: var(--sp-4);
}
.ledger-before, .ledger-after {
  display: flex; align-items: center; padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  font-size: var(--fs-body-lg); line-height: var(--lh-snug);
}
.ledger-before { background: rgba(232,79,61,.05); border-color: rgba(232,79,61,.22); color: var(--fg-3); }
.ledger-after  {
  background: linear-gradient(180deg, rgba(4,149,110,.08), var(--bg-2));
  border-color: rgba(4,149,110,.4); color: #fff; font-weight: var(--fw-medium);
}
.ledger-arrow { display: flex; align-items: center; justify-content: center; }
.ledger-arrow svg {
  width: 26px; height: 26px; fill: none; stroke: var(--brand-green);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(4,149,110,.4));
}
@media (max-width: 760px) {
  .ledger-head { display: none; }
  .ledger-row {
    grid-template-columns: 1fr; gap: var(--sp-2);
    padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border-2);
  }
  .ledger-row:last-child { border-bottom: 0; }
  .ledger-arrow { justify-self: start; }
  .ledger-arrow svg { transform: rotate(90deg); }
}

/* ---------- Pricing tiers ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.pricing-card:hover { border-color: rgba(59,125,221,.45); transform: translateY(-2px); }
.hero .eyebrow,
.pricing-section .eyebrow,
#segments .eyebrow,
#how .eyebrow,
#product .eyebrow,
#compare .eyebrow,
#feedback .eyebrow,
#apps .eyebrow,
#faq .eyebrow,
#contact .eyebrow { color: var(--brand-yellow); }

/* Areas of expertise & Our solution — yellow section accents.
   Scoped to the page body classes so other subpages keep blue eyebrows. */
.areas-page .eyebrow,
.solution-page .eyebrow { color: var(--brand-yellow); }

/* Our solution — warm the pillar grid to match the yellow eyebrows */
.solution-page .pillar .pillar-icon img {
  filter: drop-shadow(0 6px 18px rgba(242,141,34,.30));
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
}
.solution-page .pillar:hover { border-color: rgba(253,215,87,.45); }
.solution-page .pillar:hover .pillar-icon img {
  filter: drop-shadow(0 9px 24px rgba(242,141,34,.50));
}
.solution-page .pillar h3 a.link-arrow:hover { color: var(--brand-yellow); }

.pricing-card-featured {
  border-color: rgba(253,215,87,.55);
  background: linear-gradient(180deg, rgba(253,215,87,.08), var(--bg-2));
  box-shadow: 0 30px 60px -30px rgba(253,215,87,.4);
}
.pricing-card-featured:hover { border-color: rgba(253,215,87,.7); }
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: var(--fw-bold);
  padding: 4px 12px; border-radius: 999px;
  background: var(--brand-yellow); color: var(--brand-deep-900);
}
.pricing-card h3 { margin: 0; color: #fff; font-size: var(--fs-h3); }
.pricing-blurb { color: var(--fg-2); margin: 0; font-size: var(--fs-body-lg); }
.pricing-price {
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 32px;
  line-height: 1;
}
.pricing-price small {
  display: block; margin-top: 6px;
  font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular);
  color: var(--brand-deep-300); letter-spacing: 0;
}
.pricing-card .tick-list { margin: var(--sp-2) 0 var(--sp-6); }
.pricing-card-featured .tick-list li::before {
  background:
    radial-gradient(circle at 50% 50%, var(--brand-yellow) 0 3px, transparent 3px 100%),
    rgba(253,215,87,.18);
}
.pricing-card .btn { margin-top: auto; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Named testimonials (extends .quote) ---------- */
.quote-named footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.15);
  background: var(--brand-deep-700);
  flex-shrink: 0;
}
.quote-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-deep-500), var(--brand-deep-700));
  color: #fff;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
}
.quote-person {
  display: flex;
  flex-direction: column;
  line-height: var(--lh-snug);
}
.quote-person strong { color: #fff; font-weight: var(--fw-semibold); }
.quote-person span { color: var(--brand-deep-300); font-size: var(--fs-sm); }

/* ---------- FAQ section ---------- */
.faq-list {
  max-width: 880px;
  margin: var(--sp-10) auto 0;
  display: flex; flex-direction: column;
  gap: var(--sp-3);
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg, 14px);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq-item[open] { border-color: rgba(59,125,221,.45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  color: #fff;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'><path d='M3 5 L6 8 L9 5'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--fg-2);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
}
.faq-answer p { margin: 0 0 var(--sp-3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--brand-deep-400);
  color: #fff;
  font-weight: var(--fw-semibold);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(0,30,48,.55), 0 2px 4px rgba(0,30,48,.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); opacity: 1; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity var(--dur-fast) linear; transform: none; }
}

/* =======================================================================
   Connectivity comparison table (/connectivity/ + homepage teaser)
   ======================================================================= */
.cmp-wrap {
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
.cmp th, .cmp td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-1);
}
.cmp thead th { border-bottom: 1px solid var(--border-2); }
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: 0; }

/* sticky row-label column */
.cmp th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--bg-3);
  color: var(--fg-1);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  z-index: 1;
}
.cmp thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--bg-3);
  z-index: 2;
}

/* protocol column headers */
.cmp-proto { min-width: 168px; color: var(--fg-1); }
.cmp-proto strong { display: block; font-size: var(--fs-h5); font-weight: var(--fw-bold); }
.cmp-proto a { color: var(--fg-1); text-decoration: none; }
.cmp-proto a:hover { color: var(--brand-deep-300); }
.cmp-proto small { display: block; margin-top: 2px; color: var(--fg-3); font-size: var(--fs-sm); }
.cmp td { color: var(--fg-2); }

/* spectrum pill in header */
.cmp-pill {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .02em;
  padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--border-1);
}
.cmp-pill.is-unlicensed { color: var(--brand-green);  border-color: rgba(4,149,110,.4);  background: rgba(4,149,110,.08); }
.cmp-pill.is-licensed   { color: var(--brand-deep-400); border-color: rgba(59,125,221,.4); background: rgba(59,125,221,.08); }
.cmp-pill.is-wired      { color: var(--brand-orange);  border-color: rgba(242,141,34,.4); background: rgba(242,141,34,.08); }

/* "best for" emphasis row */
.cmp tr.cmp-bestfor th[scope="row"],
.cmp tr.cmp-bestfor td { background: rgba(59,125,221,.06); }
.cmp tr.cmp-bestfor td { color: var(--fg-1); }

.cmp-scrollhint { margin-top: var(--sp-3); color: var(--fg-muted); font-size: var(--fs-sm); }
@media (min-width: 980px) { .cmp-scrollhint { display: none; } }

.teaser-foot {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-6);
}

/* ==========================================================================
   Security page - warm amber icon accents
   The page sits entirely on deep-blue surfaces; the blue-on-blue icons read
   flat. Scoped to .security-page so the home-page pillars stay blue.
   ========================================================================== */

/* --- Grid pillar icons: amber badge instead of bare blue strokes --------- */
.security-page .pillar .pillar-icon {
  width: 64px; height: 64px; padding: 13px; margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  color: var(--brand-yellow);
  background:
    radial-gradient(120% 120% at 30% 18%, rgba(253,215,87,.24), transparent 62%),
    linear-gradient(155deg, rgba(253,215,87,.16), rgba(242,141,34,.07));
  border: 1px solid rgba(253,215,87,.34);
  box-shadow: 0 6px 18px rgba(242,141,34,.10);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.security-page .pillar .pillar-icon svg {
  filter: drop-shadow(0 2px 7px rgba(253,215,87,.40));
}

/* warm the card hover edge to match (overrides the blue default) */
.security-page .pillar:hover { border-color: rgba(253,215,87,.45); }
.security-page .pillar:hover .pillar-icon {
  transform: translateY(-3px) rotate(-4deg);
  border-color: rgba(253,215,87,.75);
  box-shadow: 0 10px 26px rgba(242,141,34,.32);
}

/* entrance pop, fired when the reveal observer marks the card visible */
.security-page .pillar.is-visible .pillar-icon svg {
  animation: secIconPop .6s var(--ease-out) both;
}
@keyframes secIconPop {
  0%   { transform: scale(.55) rotate(-14deg); opacity: 0; }
  60%  { transform: scale(1.14) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* --- Big split-pillar icons: warm glow + gentle float -------------------- */
.security-page .split-pillar {
  background:
    radial-gradient(58% 58% at 50% 46%, rgba(253,215,87,.16), transparent 70%),
    linear-gradient(180deg, rgba(6,45,72,.55), rgba(6,45,72,.15));
  border-color: rgba(253,215,87,.22);
}
.security-page .split-pillar::after {
  background:
    radial-gradient(circle at 22% 18%, rgba(253,215,87,.20), transparent 42%),
    radial-gradient(circle at 80% 82%, rgba(242,141,34,.16), transparent 52%);
}
.security-page .split-pillar .pillar-icon {
  color: var(--brand-yellow);
  animation: secIconFloat 7s ease-in-out infinite;
}
.security-page .split-pillar .pillar-icon svg {
  filter: drop-shadow(0 10px 28px rgba(242,141,34,.40));
}
@keyframes secIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .security-page .pillar.is-visible .pillar-icon svg,
  .security-page .split-pillar .pillar-icon { animation: none !important; }
}

/* ==========================================================================
   Integrations page - yellow / amber catalog accents
   Same warm treatment as /security and /our-solution: yellow eyebrows, amber
   count badges and amber card hovers so the connector catalog reads warm
   instead of blue-on-blue. Scoped to .integrations-page so other pages keep
   their blue defaults.
   ========================================================================== */
.integrations-page .eyebrow { color: var(--brand-yellow); }

/* Category count badges → amber pill */
.integrations-page .cat-group-count {
  background: rgba(253,215,87,.14);
  border-color: rgba(253,215,87,.34);
  color: var(--brand-yellow);
}

/* Connector cards: warm the hover edge + glow (overrides the blue default) */
.integrations-page .cat-card::after {
  background: radial-gradient(circle, rgba(253,215,87,.22), transparent 65%);
}
.integrations-page .cat-card:hover {
  border-color: rgba(253,215,87,.5);
  box-shadow: 0 12px 30px rgba(242,141,34,.18);
}
.integrations-page .cat-card:focus-visible {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(253,215,87,.35);
}
/* protocol pill warms up when its card is hovered */
.integrations-page .cat-card:hover .cat-proto {
  background: rgba(253,215,87,.16);
  border-color: rgba(253,215,87,.4);
  color: var(--brand-yellow);
}

/* "We'll build it" emphasis ties to the yellow accent */
.integrations-page .on-demand-copy h3 em { color: var(--brand-yellow); }

/* ==========================================================================
   Settlement page - playful, diagrammatic poster language
   Recreates the Divako Settlement marketing-poster directions as live
   HTML/CSS/SVG: pie split, spreadsheet→invoice, rule cards, virtual-meter
   equation, property tree + occupancy timeline, auto-readings calendar and
   the modular stack. Scoped to .settlement-page. Shares the design-system
   tokens already in tokens.css (brand colours, --shadow-*, --font-mono).
   ========================================================================== */
.settlement-page .section,
.settlement-page .page-hero { position: relative; overflow: hidden; }
.settlement-page .container { position: relative; z-index: 1; }

.settlement-page .eyebrow { color: var(--brand-deep-400); }

/* ==========================================================================
   Shared hero utilities (used by Settlement + Our solution, Areas, About,
   Customers). Decorative "squares" grid, chips, text-accent helpers and the
   split-hero layout - all unscoped so any page hero can adopt them.
   ========================================================================== */

/* Text-accent helpers for headline phrases + eyebrow accents */
.eyebrow-orange { color: var(--brand-orange); }
.eyebrow-sage   { color: var(--brand-sage); }
.eyebrow-yellow { color: var(--brand-yellow); }
.accent-blue   { color: var(--brand-deep-400); }
.accent-sage   { color: var(--brand-sage); }
.accent-orange { color: var(--brand-orange); }
.accent-yellow { color: var(--brand-yellow); }
.accent-green  { color: var(--brand-green); }

/* Decorative measurement grid behind hero / diagram sections */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,125,221,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,125,221,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 35% 45%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 35% 45%, #000 30%, transparent 80%);
}

/* Pill / chip */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-2);
  font-size: 13px; font-weight: 500; color: var(--fg-1); white-space: nowrap;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand-deep-400)); }
.chip-yellow { border-color: var(--brand-yellow); color: var(--brand-yellow); }

/* Split hero: copy left, supporting visual right, on the squares grid */
.page-hero .hero-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; margin-top: var(--sp-2);
}
.page-hero .hero-split .hero-copy h1 { margin: var(--sp-3) 0 var(--sp-4); }
.page-hero .hero-split .page-lead { margin: 0; }
.page-hero .hero-split .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 0; }
.hero-figure { margin: 0; min-width: 0; }
@media (max-width: 900px) {
  .page-hero .hero-split { grid-template-columns: 1fr; }
  .page-hero .hero-split .hero-figure { margin-top: var(--sp-4); }
}

/* ----------- Hero + pie ---------------------------------------------- */
.settle-hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.settle-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; margin-top: var(--sp-6);
}
.settle-hero-copy h1 { margin: var(--sp-3) 0 var(--sp-4); }
.pie-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.pie-svg { width: min(400px, 78%); height: auto; overflow: visible; filter: drop-shadow(0 10px 26px rgba(0,0,0,.4)); }
.pie-pct { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 38px; }
.pie-cap { fill: var(--fg-2); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.pie-legend {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px;
}
.pie-legend li { display: flex; align-items: center; gap: 9px; color: var(--fg-2); font-size: 13px; }
.pie-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); flex: 0 0 auto; }
@media (max-width: 900px) {
  .settle-hero-grid { grid-template-columns: 1fr; }
  .pie-fig { margin-top: var(--sp-8); }
}

/* ----------- Why grid: balanced 3 × 2, coloured icons ---------------- */
.settlement-page .why-grid { grid-template-columns: repeat(3, 1fr); }
.settlement-page .why-icon {
  background: rgba(253,215,87,.13); border-color: rgba(253,215,87,.34); color: var(--brand-yellow);
}
@media (max-width: 900px) { .settlement-page .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .settlement-page .why-grid { grid-template-columns: 1fr; } }

/* ----------- The maths disappears: spreadsheet → invoice ------------- */
.maths-stage {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.sheet-card, .invoice-card { position: relative; box-shadow: var(--shadow-pop); }
.sheet-card {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 14px; transform: rotate(-3deg);
}
.invoice-card {
  background: #fff; color: var(--brand-deep-900); border-radius: 10px;
  padding: 22px; transform: rotate(2deg);
}
.ba-badge {
  position: absolute; top: -16px; padding: 6px 12px; border-radius: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; z-index: 2;
}
.ba-before { left: -14px; background: var(--brand-red); transform: rotate(-8deg); }
.ba-after  { right: -10px; background: var(--brand-green); transform: rotate(6deg); }
.sheet-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sheet-bar i { width: 9px; height: 9px; border-radius: 50%; }
.sheet-file { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-left: 10px; }
.sheet-grid {
  display: grid; grid-template-columns: 28px repeat(6, 1fr); gap: 1px;
  background: var(--border-2); border-radius: 4px; overflow: hidden;
  font-family: var(--font-mono); font-size: 10px;
}
.sh {
  background: var(--bg-2); color: var(--fg-2); padding: 4px 6px; min-height: 22px;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-h { background: var(--bg-3); color: var(--fg-3); text-align: center; }
.sh-err { color: var(--brand-red); }
.sheet-scribble { position: absolute; inset: 0; pointer-events: none; }
.maths-arrow { display: flex; justify-content: center; align-items: center; }
.maths-arrow svg { width: 84px; height: 84px; filter: drop-shadow(0 8px 18px rgba(59,125,221,.4)); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.inv-eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #5f6f7a; font-weight: 600; }
.inv-month { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 4px; }
.inv-mark { height: 26px; filter: brightness(0) saturate(100%); opacity: .8; }
.inv-rows { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.inv-row { display: flex; justify-content: space-between; color: #262626; }
.invoice-card .mono { font-family: var(--font-mono); }
.inv-total {
  display: flex; justify-content: space-between; font-weight: 700; font-size: 14px;
  border-top: 1px solid #dedede; margin-top: 6px; padding-top: 8px;
}
@media (max-width: 820px) {
  .maths-stage { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .sheet-card, .invoice-card { transform: none; }
  .maths-arrow svg { transform: rotate(90deg); }
}

/* ----------- Rule cards ---------------------------------------------- */
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 16px; box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.rule-card:nth-child(odd)  { transform: rotate(-1.2deg); }
.rule-card:nth-child(even) { transform: rotate(1deg); }
.rule-card:hover { transform: rotate(0) translateY(-3px); border-color: var(--c); }
.rule-swatch { width: 28px; height: 28px; border-radius: 7px; background: var(--c); margin-bottom: 12px; }
.rule-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-bottom: 6px; }
.rule-body { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.rule-id { position: absolute; top: 10px; right: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }
.mono-note { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-top: var(--sp-2); }
@media (max-width: 460px) { .rule-grid { grid-template-columns: 1fr; } }

/* ----------- Virtual-meter equation ---------------------------------- */
.eq {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px); max-width: 1040px; margin: 0 auto;
}
.meter-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 10px 12px; min-width: 92px; color: var(--fg-1); box-shadow: var(--shadow-card);
}
.meter-tile .mt-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.meter-tile .mt-value { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.meter-tile .mt-value em { font-family: var(--font-mono); font-style: normal; font-size: 10px; color: var(--fg-3); margin-left: 3px; }
.meter-tile[style*="--c"]:not(.is-big)::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c);
}
.meter-tile.is-big { border-radius: 14px; padding: 18px 22px; min-width: 176px; gap: 6px; }
.meter-tile.is-big .mt-label { font-size: 11px; }
.meter-tile.is-big .mt-value { font-size: 40px; }
.meter-tile.is-big .mt-value em { font-size: 13px; }
.meter-tile.is-highlight { background: var(--brand-orange); border: none; color: #fff; box-shadow: 0 12px 28px rgba(242,141,34,.35); }
.meter-tile.is-highlight .mt-label { color: rgba(255,255,255,.85); }
.meter-tile.is-highlight .mt-value em { color: rgba(255,255,255,.7); }
.eq-op { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5vw, 56px); color: var(--fg-1); opacity: .85; line-height: .9; }
.eq-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eq-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.eq-sum-label { font-size: 12px; color: var(--fg-3); letter-spacing: .1em; }

/* ----------- Property tree + occupancy timeline ---------------------- */
.tree-fig { margin: 0; width: 100%; }
.tree-svg { width: 100%; height: auto; overflow: visible; }
.tree-t { font-family: var(--font-sans); }
.tree-t-w { fill: #fff; font-weight: 700; font-size: 14px; }
.tree-t-1 { fill: var(--fg-1); font-weight: 600; font-size: 12px; }
.tree-mono { fill: var(--fg-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; }
.tree-up { fill: var(--fg-3); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.tree-name { font-size: 12px; }
.tree-vac { fill: var(--brand-yellow); font-weight: 600; font-size: 11px; }

/* ----------- Auto-readings calendar ---------------------------------- */
.cal-card {
  position: relative; width: 100%; max-width: 440px; justify-self: end; margin: 0;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-card);
}
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.cal-meta { font-size: 10px; color: var(--fg-3); letter-spacing: .12em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-family: var(--font-mono); font-size: 9px; color: var(--fg-3); letter-spacing: .1em; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; padding: 3px;
  background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 5px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--fg-1);
}
.cal-day.is-today { background: var(--brand-yellow); border: 2px solid var(--brand-yellow); color: #001e30; }
.cal-day i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; }
.cal-day i:nth-of-type(1) { right: 4px; }
.cal-day i:nth-of-type(2) { right: 9px; }
.cal-day i:nth-of-type(3) { right: 14px; }
.cal-day i:nth-of-type(4) { right: 19px; }
.cal-day .d-blue { background: var(--brand-deep-400); }
.cal-day .d-sage { background: var(--brand-sage); }
.cal-day .d-orange { background: var(--brand-orange); }
.cal-day .d-yellow { background: var(--brand-yellow); }
.cal-snapshot {
  position: absolute; right: 14px; bottom: -14px;
  background: var(--brand-yellow); color: #001e30; padding: 5px 10px; border-radius: 5px;
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-pop);
}
@media (max-width: 900px) { .cal-card { justify-self: center; } }

/* ----------- Modular stack ------------------------------------------- */
.mod-stack { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mod-block {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: min(420px, 100%); padding: 14px 18px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2); box-shadow: var(--shadow-card);
}
.mod-block:nth-child(2) { margin-left: 26px; }
.mod-block:nth-child(3) { margin-left: 52px; }
.mod-block:nth-child(4) { margin-left: 78px; }
.mod-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: var(--c); }
.mod-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg-1); }
.mod-sub { display: block; font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
.mod-block.is-highlight { background: var(--brand-orange); border-color: transparent; box-shadow: 0 10px 24px rgba(242,141,34,.35); }
.mod-block.is-highlight .mod-label { color: #fff; }
.mod-block.is-highlight .mod-sub { color: rgba(255,255,255,.85); }
.mod-block.is-highlight .mod-ic { background: rgba(255,255,255,.25); }
.mod-block.is-dashed { background: transparent; border: 2px dashed var(--border-2); opacity: .65; box-shadow: none; }
.mod-tag {
  position: absolute; right: -8px; top: 50%; transform: translate(100%, -50%) rotate(4deg);
  background: var(--brand-deep-900); color: var(--brand-orange); border: 1px solid var(--brand-orange);
  padding: 8px 12px; border-radius: 6px; font-weight: 700; font-size: 12px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(242,141,34,.3);
}
.mod-note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); align-self: flex-end; transform: rotate(-2deg); margin-top: 4px; }
@media (max-width: 720px) {
  .mod-block:nth-child(2), .mod-block:nth-child(3), .mod-block:nth-child(4) { margin-left: 0; }
}
@media (max-width: 560px) {
  .mod-tag { position: static; transform: none; display: inline-block; margin-top: 8px; }
  .mod-note { align-self: flex-start; }
}

/* ==========================================================================
   Hero visuals - one per page, built from the shared design-system tokens.
   Each sits in .hero-figure inside .page-hero .hero-split.
   ========================================================================== */

/* ----- Our solution: the five-layer stack (device → connect) ---------- */
.hero-stack { display: flex; flex-direction: column; gap: 10px; }
.hero-stack .hl {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow-card); position: relative;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.hero-stack .hl:nth-child(2) { margin-left: 22px; }
.hero-stack .hl:nth-child(3) { margin-left: 44px; }
.hero-stack .hl:nth-child(4) { margin-left: 22px; }
.hero-stack .hl:hover { transform: translateY(-2px); border-color: rgba(253,215,87,.5); }
.hero-stack .hl-ic { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.hero-stack .hl-ic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(242,141,34,.35)); }
.hero-stack .hl b { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.hero-stack .hl i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .02em; }
@media (max-width: 900px) {
  .hero-stack .hl:nth-child(2), .hero-stack .hl:nth-child(3), .hero-stack .hl:nth-child(4) { margin-left: 0; }
}

/* ----- Areas / Security / Integrations / Connectivity: tile clusters - */
.hero-segs, .hero-trust, .hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-card); color: var(--fg-1); text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.seg:hover { transform: translateY(-2px); border-color: rgba(253,215,87,.5); }
.hero-segs .seg:last-child { grid-column: 1 / -1; }
.seg-ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(253,215,87,.13); border: 1px solid rgba(253,215,87,.34); color: var(--brand-yellow);
}
.seg-ic svg { width: 20px; height: 20px; }
.seg b { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; }
.seg i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 2px; }
/* Security tiles read as trust guarantees - sage/green accent icons */
.hero-trust .seg-ic { background: rgba(4,149,110,.16); border-color: rgba(156,190,172,.4); color: var(--brand-sage); }
.hero-trust .seg:hover { border-color: rgba(156,190,172,.5); }
@media (max-width: 460px) {
  .hero-segs, .hero-trust, .hero-tiles { grid-template-columns: 1fr; }
  .hero-segs .seg:last-child { grid-column: auto; }
}

/* ----- About: framed team photo -------------------------------------- */
.hero-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero-photo img { display: block; width: 100%; height: 100%; max-height: 440px; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,30,48,.55) 100%); pointer-events: none; }
.hero-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(0,30,48,.7); backdrop-filter: blur(6px); border: 1px solid var(--border-2);
  color: #fff; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill);
}

/* ----- Customers: headline metric tiles ------------------------------ */
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-metric {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 6px;
}
.hero-metric.is-lead { grid-column: 1 / -1; }
.hero-metric .m-num { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: 30px; color: var(--brand-sage); }
.hero-metric.is-lead .m-num { font-size: 52px; color: var(--brand-yellow); }
.hero-metric .m-lbl { color: var(--fg-2); font-size: 13px; line-height: 1.4; }
@media (max-width: 460px) { .hero-metrics { grid-template-columns: 1fr; } }

/* ----- About: branded emblem (Divako mark + pulse rings) ------------- */
.hero-emblem {
  position: relative; display: grid; place-items: center; min-height: 340px; padding: 32px;
  border: 1px solid var(--border-2); border-radius: var(--r-xl); overflow: hidden; text-align: center;
  background:
    radial-gradient(55% 55% at 50% 44%, rgba(59,125,221,.18), transparent 70%),
    linear-gradient(180deg, rgba(6,45,72,.55), rgba(6,45,72,.12));
}
.hero-emblem .rings { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-emblem .rings span {
  position: absolute; border: 1px solid rgba(59,125,221,.28); border-radius: 50%;
  animation: emblem-pulse 4s var(--ease-out) infinite;
}
.hero-emblem .rings span:nth-child(1) { width: 150px; height: 150px; }
.hero-emblem .rings span:nth-child(2) { width: 250px; height: 250px; animation-delay: .6s; }
.hero-emblem .rings span:nth-child(3) { width: 350px; height: 350px; animation-delay: 1.2s; }
@keyframes emblem-pulse { 0%,100% { opacity: .22; transform: scale(.98); } 50% { opacity: .55; transform: scale(1.02); } }
.hero-emblem .emblem-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-emblem .emblem-mark {
  width: 96px; height: 96px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border-2); box-shadow: var(--shadow-pop);
}
.hero-emblem .emblem-mark img { width: 54px; height: 54px; }
.hero-emblem b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; }
.hero-emblem .chip-row { justify-content: center; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .hero-emblem .rings span { animation: none; } }

.hero-metric .m-num sup { font-size: .5em; font-weight: 700; vertical-align: super; }

/* ================= LIVE STATUS BADGE (footer) ================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--fg-2, #c6d6e2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.status-badge:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bd49c;
  box-shadow: 0 0 0 0 rgba(43, 212, 156, 0.55);
  animation: status-pulse 2.2s ease-out infinite;
}
.status-badge.is-degraded .status-dot { background: #f5b53b; animation: none; }
.status-badge.is-down .status-dot { background: #ef4d4d; animation: none; }
.status-badge.is-unknown .status-dot { background: #7c93a8; animation: none; }
.status-badge .status-arrow { font-size: 11px; opacity: .7; }
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(43, 212, 156, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(43, 212, 156, 0); }
  100% { box-shadow: 0 0 0 0   rgba(43, 212, 156, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-badge .status-dot { animation: none; }
}

/* ================= RESOURCES INDEX GRID ================= */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6, 24px);
  margin-top: var(--sp-6, 24px);
}
@media (max-width: 1024px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .resource-grid { grid-template-columns: 1fr; } }
.resource-loading { padding: 24px 0; text-align: center; }
.resource-empty { text-align: center; margin-top: 24px; }

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #0b283f);
  border: 1px solid var(--c-line, rgba(255,255,255,0.08));
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-deep-300, #3b7ddd);
  box-shadow: 0 18px 36px -18px rgba(0,30,48,.6);
}
.resource-card-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06243a;
}
.resource-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.resource-card:hover .resource-card-media img { transform: scale(1.04); }
.resource-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.resource-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  font-size: 12.5px; color: var(--brand-deep-300, #8fb1dd);
  text-transform: uppercase; letter-spacing: .06em;
}
.resource-card-cat { font-weight: 700; }
.resource-card-date::before { content: '·'; margin-right: 6px; opacity: .7; }
.resource-card h3 {
  margin: 0;
  font-size: var(--fs-h4, 22px);
  line-height: 1.25;
  color: #fff;
}
.resource-card h3 a {
  color: inherit;
  text-decoration: none;
}
.resource-card h3 a:hover { color: var(--brand-deep-200, #c2e0ff); }
.resource-card-excerpt {
  color: var(--fg-2, #c6d6e2);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.resource-card .link-arrow { margin-top: auto; }

/* ================= RESOURCES ARTICLE BODY ================= */
.prose {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--fg-1, #e3eef6);
  font-size: 17px;
  line-height: 1.72;
}
.prose h2 {
  font-size: var(--fs-h3, 28px);
  margin: 2em 0 .6em;
  color: #fff;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; color: var(--fg-2, #c6d6e2); }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; padding: 0; color: var(--fg-2, #c6d6e2); }
.prose li { margin: 0 0 .4em; }
.prose strong { color: #fff; }
.prose a { color: var(--brand-deep-200, #c2e0ff); }
.prose figure { margin: 2em 0; }
.prose figure img,
.prose > img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-xl); border: 1px solid var(--border-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.prose figure.is-narrow { max-width: 460px; margin-inline: auto; }
.prose figcaption {
  margin-top: .7em; text-align: center;
  font-size: 13px; color: var(--fg-3, rgba(255,255,255,.55));
}
.prose blockquote {
  margin: 1.8em 0; padding: .35em 0 .35em 1.1em;
  border-left: 3px solid var(--brand-yellow, #fdd757);
  color: #fff; font-size: 1.12em; line-height: 1.5;
}
.prose blockquote cite {
  display: block; margin-top: .6em;
  font-size: .8em; font-style: normal; color: var(--fg-2, #b0ceee);
}
.prose-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 2em;
}
