/* =============================================================================
   KulanPay — Public website stylesheet (v2)
   -----------------------------------------------------------------------------
   Design language: one connection. Everything on the page gathers toward a
   centre — the hero composition, the network constellation, the flow diagrams.
   The logo's quarter-disc geometry reappears as a background motif, as section
   markers and as the small shape beside the hero note.

   Colour rhythm down the page:
     hero        near-white with a blue wash
     problem     light blue
     what we do  white
     who we serve soft blue
     how it works white
     network     deep navy            <- the signature moment
     why         white
     vision      light blue, image-led
     contact     very light blue
     footer      deep navy

   1.  Tokens              9.  Who we serve
   2.  Base & type        10.  How it works
   3.  Layout             11.  Payment network
   4.  Buttons & links    12.  Why KulanPay
   5.  Header & nav       13.  Vision
   6.  Hero               14.  Contact & forms
   7.  The Problem        15.  Footer
   8.  What we do         16.  Motion
                          17.  Responsive
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary:        #3160AF;
  --primary-dark:   #24488a;
  --primary-darker: #1b3768;
  --primary-deep:   #0f2547;
  --navy:           #0b1b33;
  --accent:         #D93733;
  --accent-dark:    #b82b28;

  /* Neutrals */
  --dark:       #111827;
  --muted:      #667085;
  --light-blue: #F3F7FC;
  --light-red:  #FEF3F2;
  --border:     #E5E7EB;
  --white:      #FFFFFF;

  /* Blue tints, used for the page rhythm */
  --tint-1: #F7FAFE;
  --tint-2: #EFF5FC;
  --tint-3: #E4EDF8;

  --primary-04: rgba(49, 96, 175, 0.04);
  --primary-08: rgba(49, 96, 175, 0.08);
  --primary-12: rgba(49, 96, 175, 0.12);
  --primary-18: rgba(49, 96, 175, 0.18);
  --primary-28: rgba(49, 96, 175, 0.28);
  --accent-08:  rgba(217, 55, 51, 0.08);
  --accent-20:  rgba(217, 55, 51, 0.20);
  --accent-40:  rgba(217, 55, 51, 0.40);

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.6rem, 1.5rem + 4.2vw, 4.7rem);
  --fs-h2:      clamp(2rem, 1.35rem + 2.7vw, 3.4rem);
  --fs-h3:      clamp(1.25rem, 1.08rem + 0.6vw, 1.6rem);
  --fs-lede:    clamp(1.04rem, 0.98rem + 0.34vw, 1.24rem);
  --fs-body:    1rem;
  --fs-sm:      0.92rem;
  --fs-xs:      0.79rem;

  /* Space */
  --shell:     1240px;
  --gutter:    clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(3.25rem, 2.4rem + 3.2vw, 5.25rem);
  --gap:       clamp(1rem, 0.6rem + 1.4vw, 2rem);

  /* Shape */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  /* Depth */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 4px 16px -6px rgba(27, 55, 104, 0.12);
  --shadow-md: 0 18px 44px -20px rgba(27, 55, 104, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(15, 37, 71, 0.45);
  --shadow-glass: 0 20px 50px -26px rgba(15, 37, 71, 0.40);

  --ease: cubic-bezier(0.22, 0.75, 0.28, 1);
}

/* The logo geometry, reused as a quiet background motif. */
.motif-bg {
  background-image:
    radial-gradient(circle at 0 100%, var(--primary-08) 0 44%, transparent 45%),
    radial-gradient(circle at 100% 0, var(--accent-08) 0 44%, transparent 45%);
  background-size: 132px 132px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  color: var(--muted);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }

strong { font-weight: 600; color: var(--dark); }

::selection { background: var(--primary); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

.kp-icon { flex: none; }

/* -----------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* The page rhythm. Each surface flows into the next rather than butting
   against it, so the whole page reads as one continuous story. */
.section--problem {
  background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint-1) 62%, var(--white) 100%);
}
.section--solutions { background: var(--white); }
.section--audiences {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint-2) 26%, var(--tint-3) 100%);
}
.section--process {
  background: linear-gradient(180deg, var(--tint-3) 0%, var(--tint-1) 30%, var(--white) 100%);
}
.section--benefits { background: var(--white); }
.section--vision {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint-2) 34%, var(--tint-3) 100%);
}
.section--contact {
  background: linear-gradient(180deg, var(--tint-3) 0%, var(--tint-1) 100%);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
}
.section-head--center { max-width: 54ch; margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* A quarter-disc, straight from the logo geometry. */
.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 11px 0 0 0;
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.eyebrow--invert { color: #9dc0f2; }
.eyebrow--invert::before { background: #f28e8b; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  text-wrap: balance;
}
.section-head--invert .section-title { color: var(--white); }

.section-lede {
  margin-top: 1.15rem;
  font-size: var(--fs-lede);
  line-height: 1.72;
  text-wrap: pretty;
}
.section-head--invert .section-lede { color: rgba(255, 255, 255, 0.72); }

.accent-text { color: var(--accent); }

/* -----------------------------------------------------------------------------
   4. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.28s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, #3a6dc0, var(--primary));
  color: var(--white);
  box-shadow: 0 12px 26px -14px rgba(49, 96, 175, 0.75);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #3462b4, var(--primary-dark));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(49, 96, 175, 0.6);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--primary-18);
  color: var(--primary-darker);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.btn--sm { padding: 0.66rem 1.2rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 1.1rem 0.5rem 0.8rem;
  border: 1px solid var(--primary-12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  color: var(--primary-darker);
  font-size: var(--fs-xs);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
}
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link--sm { font-size: var(--fs-xs); }

/* -----------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--primary-08);
  box-shadow: 0 10px 30px -24px rgba(15, 37, 71, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

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

.site-nav__list { display: flex; align-items: center; gap: 0.25rem; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav__link:hover { color: var(--primary); }
.site-nav__link:hover::after,
.site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link.is-current { color: var(--primary); }

.site-nav__cta-mobile { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* The menu panel is a child of the header, so the close button needs to
     sit above it or it disappears the moment the menu opens. */
  position: relative;
  z-index: 96;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--primary-12);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-content: center;
  justify-items: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop[hidden] { display: none; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 27, 51, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }

/* -----------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem) clamp(2.75rem, 1.75rem + 4vw, 5.25rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70rem 46rem at 76% 4%, rgba(49, 96, 175, 0.14), transparent 62%),
    radial-gradient(38rem 32rem at 4% 88%, rgba(217, 55, 51, 0.07), transparent 62%),
    linear-gradient(180deg, var(--tint-2) 0%, var(--tint-1) 45%, var(--white) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--primary-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(66% 62% at 72% 34%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(66% 62% at 72% 34%, #000 0%, transparent 76%);
}

/* Quarter-discs from the logo, scattered very quietly behind the copy. */
.hero__motif {
  position: absolute;
  z-index: -1;
  left: -6rem;
  top: 12%;
  width: 26rem;
  height: 26rem;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 0 100%, var(--primary-08) 0 44%, transparent 45%),
    radial-gradient(circle at 100% 0, var(--accent-08) 0 44%, transparent 45%);
  background-size: 132px 132px;
  mask-image: radial-gradient(closest-side, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 4.5vw, 5rem);
}

.hero__title {
  display: grid;
  gap: 0.06em;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.hero__line { display: block; color: var(--primary-darker); text-wrap: balance; }
.hero__line--accent {
  color: var(--accent);
  background: linear-gradient(96deg, var(--accent) 0%, #e8524e 58%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: var(--fs-lede);
  line-height: 1.74;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.hero__note-mark {
  width: 13px; height: 13px;
  flex: none;
  border-radius: 13px 0 0 0;
  background: var(--primary);
  opacity: 0.55;
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* --- The gathering: channels in, people served out, KulanPay at the centre --- */
.hero__visual { position: relative; }

.gather {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  aspect-ratio: 1;
}

.gather__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gather__wire {
  stroke: var(--primary-28);
  stroke-width: 1.1;
}
.gather__flow {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 9 190;
  stroke-dashoffset: 199;
  animation: wire-flow 3.4s linear infinite;
}
.gather__flow--out { stroke: var(--accent); }

.gather__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--primary-12);
  transform: translate(-50%, -50%);
}
.gather__orbit--outer { width: 84%; height: 84%; animation: spin 80s linear infinite; }
.gather__orbit--inner { width: 54%; height: 54%; border-color: var(--primary-08); animation: spin 60s linear infinite reverse; }

/* A slow light sweeping the field, which gives the composition depth. */
.gather__sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 250deg,
    rgba(49, 96, 175, 0.10) 320deg,
    rgba(49, 96, 175, 0.16) 350deg,
    transparent 360deg);
  mask-image: radial-gradient(closest-side, transparent 58%, #000 62%, #000 100%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 58%, #000 62%, #000 100%);
  animation: spin 18s linear infinite;
}

.gather__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  width: clamp(140px, 30%, 190px);
  aspect-ratio: 1;
  align-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 30px 60px -28px rgba(27, 55, 104, 0.5), 0 0 0 1px rgba(49, 96, 175, 0.08);
  text-align: center;
}
.gather__core-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49, 96, 175, 0.16), transparent 72%);
}
.gather__core img { width: clamp(34px, 7vw, 46px); height: auto; }
.gather__core-name {
  margin-top: 0.35rem;
  color: var(--primary-darker);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gather__core-role {
  color: var(--muted);
  font-size: clamp(0.6rem, 1.1vw, 0.7rem);
  line-height: 1.3;
}

.gather__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 172px;
  padding: 0.6rem 0.95rem 0.6rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: float 7s var(--ease) infinite;
}
.gather__node:nth-child(2n) { animation-delay: -2.3s; }
.gather__node:nth-child(3n) { animation-delay: -4.1s; }
.gather__node:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 26px 56px -24px rgba(27, 55, 104, 0.5);
}

.gather__node-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--light-blue);
  color: var(--primary);
}
.gather__node--out .gather__node-icon { background: var(--light-red); color: var(--accent); }
.gather__node-label {
  color: var(--dark);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.28;
}

/* -----------------------------------------------------------------------------
   7. THE PROBLEM
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  max-width: 900px;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.compare__panel {
  margin: 0;
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.compare__panel--after {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.compare__label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--light-red);
  color: var(--accent-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare__label--after { background: var(--light-blue); color: var(--primary); }

.compare__svg { width: 100%; max-width: 330px; height: auto; margin-inline: auto; }

.tangle path {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.32;
  stroke-width: 1.2;
}
.ordered path {
  fill: none;
  stroke: var(--primary);
  stroke-opacity: 0.6;
  stroke-width: 1.7;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-line 1.5s var(--ease) forwards;
}
.ordered path:nth-child(2) { animation-delay: 0.1s; }
.ordered path:nth-child(3) { animation-delay: 0.2s; }
.ordered path:nth-child(4) { animation-delay: 0.3s; }
.ordered path:nth-child(5) { animation-delay: 0.4s; }
.ordered path:nth-child(6) { animation-delay: 0.5s; }

.compare__nodes circle {
  fill: var(--white);
  stroke: var(--muted);
  stroke-opacity: 0.38;
  stroke-width: 1.3;
}
.compare__panel--after .compare__nodes circle { stroke: var(--primary); stroke-opacity: 0.55; }

.compare__text text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
}

.compare__hub { fill: var(--primary); }
.compare__hub-text {
  fill: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.compare__caption {
  margin-top: 0.95rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.compare__arrow {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Borderless, so the problem reads as a statement rather than three boxes. */
.problem-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.25rem, 1rem + 1.6vw, 2.5rem);
  margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
}
.problem-point {
  position: relative;
  padding-top: 1.15rem;
  border-top: 1px solid var(--primary-18);
}
.problem-point::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 42px; height: 2px;
  background: var(--accent);
}
.problem-point__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  background: var(--light-red);
  color: var(--accent);
}
.problem-point__title { font-size: 1.02rem; margin-bottom: 0.4rem; }
.problem-point__body { font-size: 0.87rem; line-height: 1.62; }

/* -----------------------------------------------------------------------------
   8. WHAT WE DO
   -------------------------------------------------------------------------- */
.solutions { display: grid; gap: clamp(2rem, 1.4rem + 2vw, 3.25rem); }

.solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  padding-top: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem);
  border-top: 1px solid var(--border);
}
.solution:first-child { border-top: 0; padding-top: 0; }
.solution--flip .solution__content { order: 2; }

.solution__index {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.solution__index-num {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-28);
}
.solution__index-rule {
  width: 46px; height: 1px;
  background: var(--primary-18);
}
.solution__index-label {
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.solution__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  letter-spacing: -0.035em;
}
.solution__title-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--light-blue), #e3edfa);
  color: var(--primary);
}
.solution--flip .solution__title-icon {
  background: linear-gradient(145deg, var(--light-red), #fbe4e3);
  color: var(--accent);
}

.solution__body {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: var(--fs-lede);
  line-height: 1.74;
}

.solution__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem 1.6rem;
  margin-top: 1.4rem;
}
.solution__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.solution__points svg { flex: none; margin-top: 3px; color: var(--primary); }
.solution--flip .solution__points svg { color: var(--accent); }

.solution__content .text-link { margin-top: 1.4rem; }

/* The diagram sits on a soft field rather than inside a card. */
.solution__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 0.9rem + 1.2vw, 1.9rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(closest-side, rgba(49, 96, 175, 0.10), transparent 78%),
    linear-gradient(150deg, var(--tint-2), var(--white) 72%);
}
.solution--flip .solution__visual {
  background:
    radial-gradient(closest-side, rgba(217, 55, 51, 0.08), transparent 78%),
    linear-gradient(150deg, #fdf1f0, var(--white) 72%);
}

.sv { width: 100%; height: auto; overflow: visible; }
.sv__wires path { fill: none; stroke: var(--primary-28); stroke-width: 1.4; }
.sv__flows path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 12 260;
  stroke-dashoffset: 272;
  animation: wire-flow 3s linear infinite;
}
.sv__flows--accent path { stroke: var(--accent); }
.sv__chips rect {
  fill: var(--white);
  stroke: var(--primary-12);
  stroke-width: 1.2;
}
.sv__dots circle { fill: var(--primary); opacity: 0.55; }
.sv__bars rect { fill: var(--primary); opacity: 0.18; }
.sv__halo { fill: var(--primary-08); }
.sv--gateway .sv__halo { fill: var(--accent-08); }
.sv__core { fill: var(--primary); }
.sv__core-circle { fill: var(--white); stroke: var(--accent-20); stroke-width: 2; }
.sv--gateway .sv__core-circle { filter: drop-shadow(0 12px 22px rgba(27, 55, 104, 0.18)); }
.sv__core-text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  fill: #fff;
}
.sv--gateway .sv__core-text,
.sv--gateway .sv__core-sub { fill: var(--primary-darker); font-size: 14px; }
.sv__core-sub { font-family: var(--font); font-weight: 600; text-anchor: middle; fill: var(--accent); }
.sv__out { stroke: var(--primary-28); stroke-width: 1.6; stroke-dasharray: 5 5; }
.sv__out-dot { fill: var(--accent); }
.sv__label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
  fill: var(--muted);
}
.sv__label--accent { fill: var(--accent-dark); }
.sv__ticks path { stroke: var(--primary-18); stroke-width: 1.2; stroke-linecap: round; }
.sv__ring { fill: none; stroke: var(--primary-12); stroke-dasharray: 4 7; }

/* -----------------------------------------------------------------------------
   9. WHO WE SERVE — a lattice, not six cards
   -------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  /* Fixed columns, so six audiences always fill the lattice exactly and
     never leave an empty cell hanging at the end. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--primary-12);
  border: 1px solid var(--primary-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.audience-card {
  position: relative;
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  transition: background-color 0.32s var(--ease), transform 0.32s var(--ease);
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(49, 96, 175, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.audience-card:hover { background: var(--white); }
.audience-card:hover::before { opacity: 1; }
.audience-card > * { position: relative; }

.audience-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 20px -12px rgba(27, 55, 104, 0.45), inset 0 0 0 1px var(--primary-12);
  transition: background-color 0.32s var(--ease), color 0.32s var(--ease), transform 0.32s var(--ease);
}
.audience-card:hover .audience-card__icon {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
/* One accent in six, so red stays strategic. */
.audience-card:nth-child(6) .audience-card__icon { color: var(--accent); }
.audience-card:nth-child(6):hover .audience-card__icon { background: var(--accent); color: var(--white); }

.audience-card__title { font-size: 1.05rem; margin-bottom: 0.45rem; }
.audience-card__body { font-size: 0.87rem; line-height: 1.62; }
.audience-card .text-link { margin-top: 1rem; }

/* -----------------------------------------------------------------------------
   10. HOW IT WORKS — a journey along one line
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  padding-top: 3.25rem;
}

.steps__rail {
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-18), var(--primary-28) 50%, var(--accent-40));
  overflow: hidden;
}
/* A payment travelling the rail. */
.steps__rail::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 84px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: rail-run 4.5s var(--ease) infinite;
}

.step { position: relative; }

.step__marker {
  position: absolute;
  top: -3.5rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 60px;
}
.step__dot {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--primary-28);
}
.step__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.step:last-child .step__dot::after { background: var(--accent); }
.step:last-child .step__dot { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent-40); }

.step__number {
  font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--primary-28);
  transition: color 0.35s var(--ease);
}
.step:hover .step__number { color: var(--primary-08); }

.step__body { padding-right: 1rem; }

.step__icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 22px -14px rgba(27, 55, 104, 0.5), inset 0 0 0 1px var(--primary-12);
}
.step:last-child .step__icon { color: var(--accent); }
.step__title { font-size: var(--fs-h3); margin-bottom: 0.65rem; }
.step__text { font-size: var(--fs-sm); line-height: 1.7; }

/* -----------------------------------------------------------------------------
   11. PAYMENT NETWORK — the signature moment
   -------------------------------------------------------------------------- */
.section--network {
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 2.5rem + 3.6vw, 6rem);
  background:
    radial-gradient(80rem 46rem at 50% -12%, rgba(38, 74, 138, 0.55), transparent 60%),
    linear-gradient(168deg, var(--primary-deep) 0%, var(--navy) 52%, #0d2144 100%);
  color: rgba(255, 255, 255, 0.72);
}
.section--network::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(76% 66% at 50% 48%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(76% 66% at 50% 48%, #000, transparent 78%);
}

.net__aura {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.net__aura--one {
  top: 32%; left: 50%;
  width: min(52rem, 92%); height: 30rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(49, 96, 175, 0.55), transparent 72%);
}
.net__aura--two {
  bottom: -6rem; right: -6rem;
  width: 28rem; height: 24rem;
  background: radial-gradient(closest-side, rgba(217, 55, 51, 0.22), transparent 70%);
}

/* A quiet star field for depth. */
.net__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 16%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 32% 78%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 88% 68%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 88%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 6% 62%, rgba(255,255,255,.3), transparent),
    radial-gradient(2px 2px at 66% 38%, rgba(157,192,242,.5), transparent);
  animation: twinkle 7s ease-in-out infinite;
}

.net {
  position: relative;
  aspect-ratio: 2 / 1;
  max-width: 1120px;
  margin-inline: auto;
}

.net__side {
  position: absolute;
  top: 0;
  color: #9dc0f2;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.net__side--in { left: 0; }
.net__side--out { right: 0; }

.net__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.net__wire { fill: none; stroke: rgba(157, 192, 242, 0.34); stroke-width: 1; }
.net__flow {
  fill: none;
  stroke: #8ab6f7;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 240;
  stroke-dashoffset: 250;
  animation: wire-flow 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(138, 182, 247, 0.9));
}
.net__flow--out {
  stroke: #f2918e;
  filter: drop-shadow(0 0 6px rgba(242, 145, 142, 0.8));
}

.net__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(157, 192, 242, 0.16);
  aspect-ratio: 1;
  pointer-events: none;
}
.net__ring--1 { height: 34%; }
.net__ring--2 { height: 56%; border-style: dashed; animation: spin 90s linear infinite; }
.net__ring--3 { height: 82%; border-color: rgba(157, 192, 242, 0.08); }

.net__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.net__core-disc {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: clamp(132px, 15vw, 182px);
  aspect-ratio: 1;
  align-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #f2f6fc);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(120, 170, 250, 0.35),
    0 40px 70px -30px rgba(0, 0, 0, 0.8);
}
.net__core-disc img { width: clamp(38px, 4.4vw, 52px); height: auto; }
.net__core-name {
  color: var(--primary-darker);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.net__core-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(157, 192, 242, 0.5);
  animation: core-wave 4s var(--ease) infinite;
}
.net__core-pulse--late { animation-delay: 2s; }

.net__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: clamp(190px, 21vw, 250px);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36, 66, 116, 0.82), rgba(20, 41, 76, 0.86));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.net__node--in  { transform: translate(-100%, -50%); }
.net__node--out { transform: translate(0, -50%); flex-direction: row-reverse; text-align: right; }
.net__node--in:hover  { transform: translate(-100%, -50%) scale(1.03); border-color: rgba(157, 192, 242, 0.5); }
.net__node--out:hover { transform: translate(0, -50%) scale(1.03); border-color: rgba(242, 145, 142, 0.45); }

.net__node-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(157, 192, 242, 0.16);
  color: #bcd6f8;
}
.net__node--out .net__node-icon { background: rgba(242, 145, 142, 0.16); color: #f3aeac; }

.net__node-text { display: grid; gap: 0.15rem; min-width: 0; }
.net__node-name { color: var(--white); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.net__node-note { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; line-height: 1.45; }

.net__footnote {
  max-width: 62ch;
  margin: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem) auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--fs-sm);
  text-align: center;
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   12. WHY KULANPAY — numbered rows, no cards
   -------------------------------------------------------------------------- */
.adv__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  margin-bottom: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem);
}
.adv__title {
  font-size: var(--fs-h2);
  text-wrap: balance;
}
.adv__lede {
  font-size: var(--fs-lede);
  line-height: 1.72;
  text-wrap: pretty;
}

.adv {
  display: grid;
  /* Two columns, so four advantages read as two tidy rows rather than
     leaving one stranded on its own. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}

.adv__row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem) clamp(0.5rem, 0.25rem + 0.8vw, 1.25rem);
  border-top: 1px solid var(--border);
  transition: background-color 0.35s var(--ease);
}
.adv__row:hover { background: var(--tint-1); }
.adv__row:hover .adv__num { color: var(--primary); -webkit-text-stroke-color: transparent; }
.adv__row:hover .adv__mark { transform: scaleX(1); }

.adv__num {
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-28);
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}

.adv__name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}
.adv__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--light-blue);
  color: var(--primary);
}
.adv__row:last-child .adv__icon { background: var(--light-red); color: var(--accent); }

.adv__body { font-size: 0.88rem; line-height: 1.68; max-width: 48ch; }

.adv__mark {
  position: absolute;
  top: -1px; left: 0;
  width: 64px; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.adv__row:last-child .adv__mark { background: var(--accent); }

/* -----------------------------------------------------------------------------
   13. VISION
   -------------------------------------------------------------------------- */
.section--vision { overflow: hidden; isolation: isolate; }

.vision__wash {
  position: absolute;
  z-index: -1;
  top: 10%; right: -10%;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49, 96, 175, 0.14), transparent 72%);
  pointer-events: none;
}

.vision__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
}

.vision__title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.038em;
  color: var(--primary-darker);
  text-wrap: balance;
}

.vision__statement {
  margin-top: 1.2rem;
  max-width: 50ch;
  font-size: var(--fs-lede);
  line-height: 1.74;
}

.vision__mission {
  margin-top: 1.6rem;
  padding-left: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-left: 3px solid var(--accent);
}
.vision__mission-label {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vision__mission-text {
  font-size: var(--fs-sm);
  line-height: 1.78;
  max-width: 52ch;
}

.vision__visual { display: grid; place-items: center; }
.vision__image { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

.cityscape {
  width: 100%;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 253, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.cityscape svg { width: 100%; height: auto; overflow: visible; }

.city__arcs circle {
  fill: none;
  stroke: var(--primary);
  stroke-opacity: 0.14;
  stroke-width: 1;
}
.city__arcs circle:nth-child(2) { stroke-dasharray: 3 6; }
.city__arcs circle:nth-child(4) { stroke-opacity: 0.08; }
.city__links path {
  fill: none;
  stroke: var(--primary);
  stroke-opacity: 0.34;
  stroke-width: 1;
}
.city__windows rect { fill: #ffd27a; opacity: 0.8; }
.city__ground { stroke: var(--primary); stroke-opacity: 0.4; stroke-width: 1.2; }
.city__ripples path { stroke: var(--primary); stroke-opacity: 0.2; stroke-width: 1.4; stroke-linecap: round; }
.city__nodes circle {
  fill: var(--primary);
  animation: node-breathe 4.5s var(--ease) infinite;
}
.city__nodes circle:nth-child(2n) { animation-delay: -1.5s; }
.city__nodes circle:nth-child(3n) { animation-delay: -2.8s; }
.city__nodes circle.is-accent { fill: var(--accent); }
.city__core-glow { fill: var(--primary); opacity: 0.16; animation: node-breathe 3.5s var(--ease) infinite; }
.city__core { fill: var(--white); stroke: var(--primary); stroke-width: 3; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  margin-top: clamp(2.25rem, 1.75rem + 1.6vw, 3.25rem);
  padding-top: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  border-top: 1px solid var(--primary-18);
}
.principle { display: flex; gap: 0.95rem; }
.principle__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 18px -12px rgba(27, 55, 104, 0.5), inset 0 0 0 1px var(--primary-12);
}
.principle__title { font-size: 1rem; margin-bottom: 0.35rem; }
.principle__body { font-size: 0.76rem; line-height: 1.6; }

/* -----------------------------------------------------------------------------
   14. CONTACT & FORMS
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.contact__intro .section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); color: var(--primary-darker); }

.contact__details {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--primary-18);
}
.contact__details li { display: flex; align-items: center; gap: 1rem; }
.contact__detail-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 22px -14px rgba(27, 55, 104, 0.5), inset 0 0 0 1px var(--primary-12);
}
.contact__detail-label {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.contact__details a { font-weight: 500; word-break: break-word; }

/* A card is right here: it is a form, and the edge helps people focus. */
.contact__form-wrap {
  padding: clamp(1.6rem, 1.2rem + 1.8vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.form__title { font-size: var(--fs-h3); margin-bottom: 1.35rem; }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.field { margin-bottom: 1.1rem; }
.field__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--dark);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field__required { color: var(--accent); }

.field__input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input::placeholder { color: #9aa5b8; }
.field__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-12);
}
.field__input--area { resize: vertical; min-height: 140px; line-height: 1.6; }
.field__input.has-error { border-color: var(--accent); }
.field__input.has-error:focus { box-shadow: 0 0 0 3px var(--accent-08); }

.field__error { margin-top: 0.4rem; color: var(--accent-dark); font-size: var(--fs-xs); }

.form__trap {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__alert {
  margin-bottom: 1.35rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--accent-20);
  border-radius: var(--radius-sm);
  background: var(--light-red);
  color: var(--accent-dark);
  font-size: var(--fs-sm);
}

.form__note { margin-top: 1rem; color: var(--muted); font-size: var(--fs-xs); text-align: center; }

.form-success {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: clamp(2.25rem, 1.5rem + 2vw, 3.5rem) 1.5rem;
  text-align: center;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--primary);
}
.form-success__title { font-size: var(--fs-h3); }
.form-success p { max-width: 42ch; font-size: var(--fs-sm); line-height: 1.68; }

/* -----------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 2.25rem;
  background: linear-gradient(180deg, var(--primary-deep), var(--navy));
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-sm);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -8rem; left: 50%;
  width: 46rem; height: 20rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(49, 96, 175, 0.35), transparent 72%);
  pointer-events: none;
}
.site-footer > * { position: relative; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
}

.site-footer__logo-chip {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
}
.site-footer__logo-chip img { width: auto; height: 34px; }

.site-footer__about { margin-top: 1.4rem; max-width: 44ch; line-height: 1.72; }

.social-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-xs);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.site-footer__heading {
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__links { display: grid; gap: 0.8rem; }
.site-footer__links a { color: rgba(255, 255, 255, 0.62); word-break: break-word; }
.site-footer__links a:hover { color: var(--white); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}
.site-footer__meaning { color: rgba(255, 255, 255, 0.42); }

/* -----------------------------------------------------------------------------
   16. MOTION
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes wire-flow { to { stroke-dashoffset: 0; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

@keyframes core-wave {
  0%   { transform: scale(1); opacity: 0.85; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.95; }
}

@keyframes rail-run {
  0%        { transform: translateX(-90px); opacity: 0; }
  10%       { opacity: 1; }
  85%       { opacity: 1; }
  100%      { transform: translateX(calc(100% + 90px)); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ordered path { stroke-dashoffset: 0; }
  .gather__flow, .net__flow, .sv__flows path, .steps__rail::after { display: none; }
  .gather__sweep, .net__stars { display: none; }
}

/* -----------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
/* Side by side on a wide screen: the two functions are read together,
   which also halves the height this section takes. */
@media (min-width: 1000px) {
  .solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
    align-items: start;
  }
  .solution {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0;
    border-top: 0;
  }
  .solution--flip .solution__content { order: 0; }
  .solution__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
  .solution__title-icon { width: 48px; height: 48px; border-radius: 14px; }
  .solution__body { font-size: var(--fs-body); max-width: none; }
  .solution__index-num { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); }
  .solution__visual { order: 2; padding: clamp(0.9rem, 0.7rem + 0.8vw, 1.4rem); }
  .solution__visual .sv { max-width: 340px; }
  .solution__points { margin-top: 1.25rem; }
}

@media (max-width: 1180px) {
  .net__node { width: clamp(170px, 20vw, 210px); }
  .net__node-note { display: none; }
}

@media (max-width: 1080px) {
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: 100%; max-width: 540px; margin-inline: auto; }
  .hero__lede { max-width: 60ch; }

  .solution,
  .solution--flip { grid-template-columns: 1fr; }
  .solution--flip .solution__content { order: 0; }
  .solution__visual { max-width: 520px; }

  .adv__head { grid-template-columns: 1fr; align-items: start; }

  .vision__inner { grid-template-columns: 1fr; }
  .vision__visual { order: -1; max-width: 520px; margin-inline: auto; }

  .contact { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* The closed panel is taken out of the page completely, so it can never
     make the page scroll sideways. `allow-discrete` keeps the slide animation
     in browsers that support it; older ones simply show and hide it. */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    display: none;
    width: min(330px, 86vw);
    height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    background: var(--white);
    box-shadow: -24px 0 60px -30px rgba(15, 37, 71, 0.5);
    transform: translateX(102%);
    overflow-y: auto;
    transition: transform 0.36s var(--ease), display 0.36s var(--ease) allow-discrete;
  }
  .site-nav.is-open { display: block; transform: translateX(0); }
  @starting-style {
    .site-nav.is-open { transform: translateX(102%); }
  }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav__link {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__cta-mobile { display: block; margin-top: 1.5rem; }

  .site-header__cta { display: none; }
  .site-header__inner { min-height: 72px; }
  .nav-toggle { display: grid; }

  /* The network becomes a readable stack: core first, then the two groups. */
  .net {
    aspect-ratio: auto;
    display: grid;
    gap: 1.5rem;
    max-width: 560px;
  }
  .net__web, .net__ring { display: none; }
  .net__side {
    position: static;
    order: 2;
    margin-bottom: -0.5rem;
  }
  .net__side--out { order: 4; }
  .net__core { position: static; transform: none; order: 1; }
  .net__nodes {
    display: contents;
  }
  .net__node,
  .net__node--in,
  .net__node--out {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    text-align: left;
  }
  .net__node--in  { order: 3; }
  .net__node--out { order: 5; }
  .net__node--in:hover,
  .net__node--out:hover { transform: translateX(4px); }
  .net__node-note { display: block; }

  /* The gathering becomes a core with a pill list underneath. */
  .gather {
    aspect-ratio: auto;
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    padding-block: 1rem;
  }
  .gather__web, .gather__orbit, .gather__sweep { display: none; }
  .gather__core {
    position: static;
    transform: none;
    width: clamp(160px, 46vw, 200px);
  }
  .gather__nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 460px;
  }
  .gather__node {
    position: static;
    transform: none;
    animation: none;
  }
  .gather__node:hover { transform: translateY(-2px); }

  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; }

  /* The journey turns into a vertical timeline. */
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 3.25rem; gap: 2.5rem; }
  .steps__rail {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--primary-18), var(--primary-28) 50%, var(--accent-40));
  }
  .steps__rail::after {
    width: 8px;
    height: 84px;
    top: 0;
    left: -3px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    animation: rail-run-v 4.5s var(--ease) infinite;
  }
  @keyframes rail-run-v {
    0%   { transform: translateY(-90px); opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(calc(100% + 90px)); opacity: 0; }
  }
  .step__marker { position: absolute; top: 0; left: -3.25rem; height: auto; flex-direction: column; gap: 0.5rem; }
  .step__number { font-size: 1.5rem; }
  .step__body { padding-right: 0; }
}

@media (max-width: 720px) {
  .hero__actions .btn { flex: 1 1 auto; }
  .audience-grid { grid-template-columns: 1fr; border-radius: var(--radius); }
  .adv { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
  .adv__row { grid-template-columns: 1fr; gap: 0.85rem; }
  .adv__num { font-size: 2.4rem; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 84px; }
  .site-logo img { height: 34px; }
  .hero__title { letter-spacing: -0.035em; }
  .gather__node { max-width: 100%; padding: 0.5rem 0.85rem 0.5rem 0.5rem; }
  .gather__node-icon { width: 28px; height: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .solution__title { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .contact__form-wrap { padding: 1.35rem; }
}

@media (max-width: 400px) {
  .compare__panel { padding: 1.15rem; }
  .gather__node-label { font-size: 0.72rem; }
}

@media print {
  .site-header, .nav-toggle, .site-footer, .hero__bg, .hero__motif { display: none !important; }
  body { color: #000; }
}