/* ==========================================================================
   BumiPay — Pine Labs-matched homepage, Bumi brand system
   Palette: forest #163300 · lime #99FF66 · cream #F5F2ED · blue #335CFF
   Type: Plus Jakarta Sans (display) / DM Sans (body) / Space Mono (labels)
   Measured from pinelabs.com @1920: container 1440/60px · section pad 120px
   h1 112/107.52/-3.36 · section titles 72/104%/-3% · body 16/24 · btn 15.5x32 r32
   ========================================================================== */

:root {
  --forest-900: #163300;
  --forest-800: #1b3d02;
  --forest-700: #245107;
  --forest-deep: #0c1f00;
  --lime: #99ff66;
  --lime-hover: #7fe640;
  --accent: #99ff66;
  --blue: #335cff;
  --ink: #171717;
  --text-gray: #5c5c5c;
  --card-bg: #f5f2ed;
  --grey-bg: #f5f2ed;
  --border: #e1ded8;
  --page-bg: #ffffff;
  --heading: var(--forest-900);
  --ghost: #a3ac97;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --header-h: 72px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html.dark {
  --page-bg: #0c1a02;
  --heading: #ffffff;
  --text-gray: #c2ccb6;
  --card-bg: #1b3300;
  --grey-bg: #11230a;
  --border: rgba(225, 222, 216, .2);
  --ghost: #3a5324;
  --ink: #eef3e8;
}

/* smooth the light/dark handoff on the elements that recolour */
body,
.site-header, .subhead, .platform, .cta, .footer, .footer--slim,
.showcase-frame, .stack-wrap, .p-card, .p-arrow, .coming-card,
.hiw-item, .contact-card, .lang-toggle, .theme-toggle, .mrow, .mh-item {
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .5s var(--ease-out);
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .7s;
}

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

::selection { background: var(--lime); color: var(--forest-900); }

:focus-visible {
  outline: 2px solid var(--forest-700);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-color: var(--forest-900); }

h1, h2, h3 { text-wrap: balance; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 60px;
}

/* ---------- type ---------- */
.section-title-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--heading);
}

.body-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-gray);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-900);
  border-radius: 32px;
  padding: 15.5px 32px;
  transition: background .3s, transform .3s, color .3s;
  white-space: nowrap;
}

.btn-lime { background: var(--lime); }
.btn-lime:hover { background: var(--lime-hover); }
.btn:active { transform: scale(.97); }
.btn-outline { border: 1.5px solid var(--forest-900); background: transparent; }
html.dark .btn-outline { border-color: #fff; color: #fff; }
.btn-lg { min-width: 188px; }
.btn-arrow svg { transition: transform .3s var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(5px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--page-bg) 75%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform .45s var(--ease-out), background .7s;
}

.site-header.hidden { transform: translateY(-100%); }

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

.logo-svg { width: 128px; height: auto; color: var(--forest-900); transition: color .7s; }
/* dark mode swaps to the white-"bümi" + lime-"pay" logo so it doesn't vanish on the dark bg */
.logo-svg--dark { display: none; width: 128px; height: auto; }
html.dark .logo-svg--light { display: none; }
html.dark .logo-svg--dark { display: inline-block; vertical-align: middle; }

.nav-menu { display: flex; align-items: center; gap: 28px; }

/* nav CTA is compact — section CTAs keep the full pill size */
.nav-menu .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.menu-item > a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  transition: color .3s;
}

.menu-item > a:hover { color: var(--heading); }

.menu-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.menu-item:hover .menu-line { transform: scaleX(1); }

/* EN / BM language toggle (Bumi nav pattern) */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page-bg);
}

.lang-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-gray);
  transition: .25s;
}

.lang-btn.active {
  background: var(--lime);
  color: var(--forest-900);
}

.lang-btn:not(.active):hover { color: var(--heading); }

/* mega menus */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(12, 26, 2, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.mega-panel.open { opacity: 1; visibility: visible; transform: none; }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-block: 44px;
}

.mega-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--heading);
  margin-bottom: 16px;
}

.mega-col a {
  display: block;
  font-size: 14px;
  color: var(--text-gray);
  padding-block: 6px;
  transition: color .25s, transform .25s;
}
.mega-col a:hover { color: var(--forest-700); transform: translateX(4px); }
html.dark .mega-col a:hover { color: var(--lime); }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2.4px; background: var(--heading); border-radius: 2px; transition: .3s; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--page-bg);
  border-top: 1px solid var(--border);
  padding: 10px 24px 30px;
  box-shadow: 0 40px 60px rgba(0,0,0,.15);
}
.mobile-menu.open { display: block; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 18px 0; font-weight: 600; color: var(--heading); }
.mobile-menu .btn {
  margin-top: 22px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15.5px 32px; color: var(--forest-900);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { height: auto; position: relative; }

.hero-sticky {
  position: static;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-copy { width: 42%; position: relative; z-index: 5; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--forest-700);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(153, 255, 102, .25);
}
html.dark .hero-eyebrow { color: var(--lime); }


.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.6vw, 86px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--heading);
}

.hero-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--heading);
  margin-top: 8px;
  padding-left: .1em;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 420px;
  margin-top: 24px;
}

.hero-word { transition: color .1s linear; }

/* reveal masks get bottom padding so descenders (y, g, p) never clip */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.split-line > .hero-word,
.hero-h1 .split-line > span { display: inline-block; }
/* fit-content so the reveal mask only clips vertically — longer localized words
   (e.g. BM "Mempermudah") are never cut off horizontally by overflow:hidden */
.hero-h1 > .split-line { width: fit-content; }
.hero-h2 > .split-line { display: block; overflow: hidden; width: fit-content; }

body:not(.loaded) .hero-h1 .split-line > span,
body:not(.loaded) .hero-h2 .split-line,
body:not(.loaded) .hero-eyebrow,
body:not(.loaded) .hero-sub,
body:not(.loaded) .hero-cta {
  transform: translateY(120px);
  opacity: 0;
}

.hero-h1 .split-line > span,
.hero-h2 .split-line,
.hero-eyebrow,
.hero-sub,
.hero-cta {
  transition: transform 1.1s var(--ease-out), opacity .9s;
}

body.loaded .hero-eyebrow { transition-delay: .02s; }
body.loaded .hero-h1 .split-line:nth-child(1) > span { transition-delay: .1s; }
body.loaded .hero-h1 .split-line:nth-child(2) > span { transition-delay: .22s; }
body.loaded .hero-h2 .split-line:nth-child(1) { transition-delay: .36s; }
body.loaded .hero-h2 .split-line:nth-child(2) { transition-delay: .44s; }
body.loaded .hero-sub { transition-delay: .56s; }
body.loaded .hero-cta { transition-delay: .68s; }

.hero-cta { margin-top: 32px; min-width: 188px; }

/* hero visual — video slot (measured 660×676) */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-media-frame {
  position: relative;
  width: min(860px, 100%);
  animation: mediaFloat 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes mediaFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* video floats free on the page: near-white bg lifted to pure white,
   edges feathered so it merges with the section background */
.hero-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  filter: brightness(1.07) saturate(1.03);
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 48%, transparent 76%);
  mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 48%, transparent 76%);
}

/* ==========================================================================
   REVEAL HELPERS
   ========================================================================== */
.masked-reveal .line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.masked-reveal .word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .9s var(--ease-out);
}
.masked-reveal.inview .word { transform: none; }
.masked-reveal.inview .line:nth-child(2) .word { transition-delay: .08s; }
.masked-reveal.inview .line:nth-child(3) .word { transition-delay: .16s; }

.fade-in-up {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s, transform .9s var(--ease-out);
  transition-delay: .25s;
}
.fade-in-up.inview { opacity: 1; transform: none; }

/* ==========================================================================
   ONE COMPLETE STACK — falling cards
   ========================================================================== */
.products { padding-top: 120px; }

.products-intro { max-width: 980px; margin-bottom: 30px; }
.products-intro .body-text { max-width: 640px; margin-top: 24px; }

.stacked-zone { height: 560vh; position: relative; }

.stacked-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* heading sits behind the falling cards, Pine Labs style */
.stacked-head {
  position: absolute;
  top: 10vh;
  left: 0;
  right: 0;
  z-index: 5;
  transition: opacity .4s var(--ease-out);
}
.stacked-head h2 { max-width: 700px; }
.stacked-head .body-text { max-width: 420px; margin-top: 24px; }

/* diagonal cascade: straight cards, staircase offsets, tilted content inside.
   Anchored like the reference — spans the right side, front card cropped by the fold */
.stacked-cards {
  position: absolute;
  top: 17vh;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 6vw;
}

.stack-card { flex: none; width: clamp(330px, 25vw, 410px); will-change: transform, opacity; transition: opacity .45s var(--ease-out); }

.stack-card:nth-child(1) { margin-top: 440px; z-index: 50; }
.stack-card:nth-child(2) { margin-top: 330px; z-index: 40; }
.stack-card:nth-child(3) { margin-top: 220px; z-index: 30; }
.stack-card:nth-child(4) { margin-top: 110px; z-index: 20; }
.stack-card:nth-child(5) { margin-top: 0;     z-index: 10; }
.stack-card + .stack-card { margin-left: -4.6vw; }

.stack-wrap {
  position: relative;
  background: #f0f3ec;
  border-radius: 44px;
  aspect-ratio: 1 / 1.06;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(22, 51, 0, .09);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}

.stack-wrap:hover {
  transform: translateY(-16px);
  box-shadow: 0 40px 74px rgba(22, 51, 0, .16);
}

/* title fades in on hover — Pine Labs interaction */
.stack-wrap h3 {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--heading);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s, transform .35s var(--ease-out);
  pointer-events: none;
}

.stack-wrap:hover h3 { opacity: 1; transform: none; }

/* ---------- in-card UI mockups (upright, readable) ---------- */
.mock {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2b371f;
  box-shadow: 0 4px 12px rgba(22, 51, 0, .06);
}

.mrow-split { justify-content: space-between; }
.mrow-split b { font-weight: 700; font-size: 12px; }

.mrow-total {
  background: var(--forest-900);
  color: #fff;
}
.mrow-total b { color: var(--lime); }

.mdot {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-1 { background: #e8a13d; }
.md-2 { background: #5b7fff; }
.md-3 { background: #e86a5d; }
.md-4 { background: #8b5cf6; }
.md-5 { background: #3aa76d; }

.mo-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #616a56;
  margin-bottom: 2px;
  text-align: center;
}

.mval { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; }
.mcheck {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  position: relative;
}
.mcheck::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 3.5px;
  width: 4.5px;
  height: 7px;
  border: solid var(--forest-900);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.mpill {
  align-self: center;
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest-900);
  font-size: 11.5px;
  font-weight: 700;
}

.mock-approved { align-items: center; text-align: center; gap: 12px; }
.mseal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3aa76d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 7px rgba(58, 167, 109, .16);
}
.ma-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--heading);
}
.ma-sub { font-size: 12px; line-height: 1.55; color: #585f4c; }

.mock-hub { gap: 10px; }
.mh-card {
  background: linear-gradient(135deg, #24500a, var(--forest-900));
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(22, 51, 0, .18);
}
.mh-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 3px;
}
.mh-amount {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--lime);
}
.mh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.mh-item {
  background: #fff;
  border-radius: 12px;
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #2b371f;
  box-shadow: 0 3px 10px rgba(22, 51, 0, .06);
}

/* ==========================================================================
   ONE COMPLETE STACK — sticky showcase
   ========================================================================== */
.showcase { display: flex; gap: 40px; padding-top: 40px; }

.showcase-left { width: 50%; display: flex; justify-content: center; }

.showcase-sticky {
  position: sticky;
  top: calc(50vh - 244px);
  height: 488px;
  padding-bottom: 40px;
}

.showcase-frame {
  width: 330px;
  height: 448px;
  border-radius: 32px;
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(22, 51, 0, .08);
  transition: background .7s;
}

.show-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px;
  opacity: 0;
  transform: scale(.94) translateY(14px);
  transition: opacity .55s, transform .55s var(--ease-out);
}

.show-art .mock { transform: none; }

.show-art.active { opacity: 1; transform: none; }

/* deck write-ups — revealed beside the flipped deck (phase C) */
.deck-copy {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  pointer-events: none;
  z-index: 6;
}
.deck-copy .show-block {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 44%;
  min-height: 0;
  padding: 0;
  transform: translateY(-50%) translateX(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.deck-copy .show-block.is-on {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* ---- Mobile / tablet "how it works": an accordion — tap a row to reveal
   its product visual + copy. Desktop keeps the pinned flip-through. ---- */
.hiw-accordion { display: none; }
@media (max-width: 1024px) {
  .stacked-zone { min-height: 0; }
  .stacked-sticky { display: block; }
  .stacked-head { position: static; }
  .stacked-head .body-text { max-width: none; }
  .stacked-cards { display: none; }
  .deck-copy { display: none; }
  .cookie-fab { display: none; }
  .hiw-accordion { display: block; margin-top: clamp(40px, 6vw, 58px); }
}
.hiw-item {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--page-bg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s;
}
.hiw-item:has(.hiw-head[aria-expanded="true"]) { box-shadow: 0 18px 40px rgba(22,51,0,.07); border-color: transparent; }
.hiw-head {
  width: 100%; display: flex; align-items: center; gap: 15px;
  padding: 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--heading);
}
.hiw-head .show-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.hiw-head .show-ico svg { width: 21px; height: 21px; }
.hiw-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.hiw-chev { flex: none; color: var(--forest-700); transition: transform .35s var(--ease-out); }
.hiw-head[aria-expanded="true"] .hiw-chev { transform: rotate(180deg); }
.hiw-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease-out); }
.hiw-head[aria-expanded="true"] + .hiw-panel { grid-template-rows: 1fr; }
.hiw-panel-inner { overflow: hidden; }
.hiw-visual { margin: 2px 20px 0; padding: 24px 22px; background: var(--card-bg); border-radius: 16px; }
.hiw-visual .mock { transform: none; width: 100%; }
.hiw-lead { margin: 18px 20px 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--heading); letter-spacing: -.01em; }
.hiw-desc { margin: 8px 20px 22px; font-size: 15px; line-height: 1.6; color: var(--text-gray); }

/* ==========================================================================
   WHY (trimmed to 3) · WHAT'S COMING · SLIM FOOTER
   ========================================================================== */
#why .feature-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { #why .feature-grid { grid-template-columns: 1fr; } }

.coming { padding: clamp(80px, 12vh, 140px) 0; background: var(--card-bg); }
.coming-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 60px); }
.coming-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--forest-700);
  margin-bottom: 20px;
}
.coming-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px rgba(153,255,102,.25);
}
.coming-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
  margin-bottom: clamp(36px, 5vw, 52px);
}
.coming-card {
  background: var(--page-bg); border: 1px solid var(--border);
  border-radius: 24px; padding: clamp(26px, 3vw, 34px);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.coming-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22,51,0,.08); }
.coming-ico {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--forest-900); color: var(--lime);
  display: grid; place-items: center; margin-bottom: 22px;
}
.coming-ico svg { width: 26px; height: 26px; }
.coming-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -.01em; color: var(--heading); margin-bottom: 10px;
}
.coming-card p { font-size: 15.5px; line-height: 1.6; color: var(--text-gray); }
@media (max-width: 900px) { .coming-grid { grid-template-columns: 1fr; } }

.footer--slim { background: var(--card-bg); padding: clamp(52px, 7vh, 84px) 0 40px; }
.footer--slim .footer-slim-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid var(--border);
}
.footer--slim .footer-wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: var(--heading); letter-spacing: -.02em;
}
.footer--slim .footer-tagline {
  font-size: 15px; line-height: 1.6; color: var(--text-gray);
  max-width: 380px; margin-top: 12px;
}
.footer-slim-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-slim-links a { font-size: 15px; font-weight: 600; color: var(--heading); }
.footer-slim-links a:hover { color: var(--forest-700); }
.footer-slim-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; margin-top: 26px;
}
.footer-slim-bottom .copyright { font-size: 13.5px; color: var(--text-gray); }
.footer-slim-bottom .legal-links { display: flex; gap: 22px; list-style: none; }
.footer-slim-bottom .legal-links a { font-size: 13.5px; color: var(--text-gray); }
.footer-slim-bottom .legal-links a:hover { color: var(--heading); }

/* ==========================================================================
   INDUSTRIES — caption (title + subtitle) + scroll-driven carousel
   ========================================================================== */
.aud-carousel { scroll-snap-type: none; scroll-behavior: auto; }
.aud-card::after {
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.12) 44%, transparent 64%);
}
.aud-cap {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
}
.aud-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.aud-sub {
  font-size: 13px; font-weight: 500; line-height: 1.35;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.showcase-right { width: 50%; }

.show-block {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 40px 68px;
}

.show-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--heading);
}

.show-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.si-pay { background: linear-gradient(135deg, #99ff66, #3f8613); }
.si-pos { background: linear-gradient(135deg, #6fe0a8, #1c7a4e); }
.si-acc { background: linear-gradient(135deg, #e8c56b, #b9884d); }
.si-inv { background: linear-gradient(135deg, #8fb0ff, #335cff); }
.si-hub { background: linear-gradient(135deg, #caa9f5, #7d4fc9); }

.show-lead {
  font-weight: 700;
  color: var(--heading);
  margin-top: 22px;
  font-size: 17px;
}

.show-block .body-text { margin-top: 10px; max-width: 520px; }
.show-block .btn { margin-top: 30px; width: fit-content; }

/* ==========================================================================
   THE CHAIN — vertical arch ticker
   ========================================================================== */
.usecases { padding-block: 120px 40px; overflow: hidden; }

.usecases-grid { display: flex; gap: 80px; align-items: stretch; }

.usecases-copy { width: 50%; padding-top: 14%; }
.usecases-copy .body-text { margin-top: 24px; max-width: 460px; }

.usecases-arch {
  width: 50%;
  height: 800px;
  display: flex;
  justify-content: center;
}

.arch-mask {
  width: 380px;
  height: 100%;
  border-radius: 190px 190px 26px 26px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(153, 255, 102, .2), transparent 55%),
    linear-gradient(180deg, #1d4104 0%, #0e2400 100%);
  position: relative;
  overflow: hidden;
  padding-inline: 40px;
}

.arch-mask::before,
.arch-mask::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  z-index: 3;
  pointer-events: none;
}
.arch-mask::before { top: 0; background: linear-gradient(180deg, #1d4104, transparent); }
.arch-mask::after { bottom: 0; background: linear-gradient(0deg, #0e2400, transparent); }

.pill-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 30px;
  animation: pillScroll 30s linear infinite;
}

.arch-mask:hover .pill-track { animation-play-state: paused; }

@keyframes pillScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* measured: solid green pill, r64, pad 14, text 14/21, icon 48 */
.pill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--forest-700);
  border-radius: 64px;
  padding: 14px;
  transition: background .35s;
  flex: none;
}

.pill-card p {
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  transition: color .35s;
  padding-right: 8px;
}

.pill-card:hover { background: var(--lime); }
.pill-card:hover p { color: var(--forest-900); font-weight: 700; }

.pill-ico {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(153, 255, 102, .14);
  border: 1px solid rgba(153, 255, 102, .3);
  transition: .35s;
}
.pill-card:hover .pill-ico {
  color: var(--lime);
  background: var(--forest-900);
  border-color: var(--forest-900);
}

/* ==========================================================================
   INDUSTRIES — horizontal carousel (measured: square cards ~345, r15)
   ========================================================================== */
.audiences { padding-block: 100px 70px; }
.aud-marquee { overflow: hidden; width: 100%; }
.aud-track {
  display: flex; width: max-content;
  animation: audScroll 55s linear infinite;
  will-change: transform;
}
.aud-track .aud-slide { margin-right: 24px; flex: none; }
.aud-track:hover { animation-play-state: paused; }
@keyframes audScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .aud-track { animation: none; } }

/* section eyebrow labels */
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--forest-700);
  margin-bottom: 18px;
}
.sec-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px rgba(153,255,102,.25);
}
.sec-eyebrow--light { color: var(--lime); }

/* product-point icons inside the coloured tiles */
.show-ico { display: grid; place-items: center; color: #fff; }
.show-ico svg { width: 19px; height: 19px; }

/* ==========================================================================
   STANDALONE SUB-PAGES — contact / privacy / terms
   ========================================================================== */
.subhead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--page-bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subhead .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.subhead .wm { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--heading); letter-spacing: -.02em; }
.subhead .back { font-size: 15px; font-weight: 600; color: var(--heading); display: inline-flex; align-items: center; gap: 8px; }
.subhead .back:hover { color: var(--forest-700); }
.subpage { padding: clamp(56px, 8vh, 110px) 0 clamp(56px, 8vh, 100px); }
.subpage .eyebrow-mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--forest-700);
}
.subpage .eyebrow-mono::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(153,255,102,.25); }
.subpage h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.03em; color: var(--heading); line-height: 1.02; margin: 18px 0 12px; }
.subpage .lede { font-size: 18px; line-height: 1.6; color: var(--text-gray); max-width: 620px; margin-bottom: 44px; }
.legal-body { max-width: 720px; }
.legal-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--heading); margin: 36px 0 12px; }
.legal-body p { font-size: 16px; line-height: 1.7; color: var(--text-gray); margin-bottom: 14px; }
.legal-body ul { margin: 0 0 14px 20px; }
.legal-body li { font-size: 16px; line-height: 1.7; color: var(--text-gray); margin-bottom: 6px; }
.legal-body a { color: var(--forest-700); text-decoration: underline; }
html.dark .legal-body a { color: var(--lime); }
.legal-body .updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-gray); margin-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: clamp(26px, 3.4vw, 40px); }
.contact-info a.mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--heading); letter-spacing: -.01em; }
.contact-info a.mail:hover { color: var(--forest-700); }
.contact-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--heading); margin: 26px 0 6px; }
.contact-info p { font-size: 15px; line-height: 1.6; color: var(--text-gray); }
/* spam honeypot — hidden from people, still submitted by bots */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--heading); }
.field input, .field textarea { font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--page-bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* cookie: show the banner once on first landing — no persistent reopener */
.cookie-fab { display: none !important; }

.audiences-head { max-width: 970px; margin-bottom: 70px; }
.audiences-head .body-text { margin-top: 24px; max-width: 660px; }

.aud-carousel-wrap { position: relative; }

.aud-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  padding-bottom: 26px;
  scrollbar-width: none;
}
.aud-carousel::-webkit-scrollbar { display: none; }
.aud-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }

.aud-slide { flex: none; width: 345px; scroll-snap-align: center; }

.aud-card {
  position: relative;
  display: block;
  height: 345px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform .5s var(--ease-out);
  background: var(--card-bg);
}

.aud-slide:hover .aud-card { transform: translateY(-8px); }

.aud-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aud-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 18, 0, .5));
}

.aud-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 22px;
  white-space: nowrap;
}

.aud-know {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  opacity: 0;
  transform: translateY(8px);
  transition: .4s;
}
.aud-know i { font-style: normal; transition: transform .3s; }
.aud-slide:hover .aud-know { opacity: 1; transform: none; }
.aud-slide:hover .aud-know i { transform: translateX(4px); }

.aud-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.aud-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cdc9c0;
  transition: .3s;
}
.aud-dots button.active { background: var(--forest-900); transform: scale(1.25); }
html.dark .aud-dots button.active { background: var(--lime); }

/* ==========================================================================
   WHY BUMIPAY — dark section
   ========================================================================== */
.devs {
  background: var(--forest-900);
  border-radius: 64px 64px 0 0;
  padding-block: 120px;
  position: relative;
  z-index: 5;
}

.devs-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 1150px;
}

.devs-heading .char { opacity: .16; transition: opacity .12s linear; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 80px;
}

.feature-box {
  border-radius: 32px;
  background: var(--forest-deep);
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 255, 102, .32), transparent 65%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.feature-box:hover::before { opacity: 1; }

.feature-inner {
  position: relative;
  z-index: 2;
  background: var(--forest-deep);
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 26px 30px 34px;
  height: 100%;
  transition: border-color .4s;
}

.feature-box:hover .feature-inner { border-color: #2e5212; }

.feature-art {
  height: 240px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
  background: #f1f4ee;
  border: 1px solid rgba(153, 255, 102, .14);
}
.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-inner h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-inner p { font-size: 16px; line-height: 1.44; color: rgba(248, 248, 248, .72); max-width: 480px; }

/* feature arts */
.fa-layer {
  position: absolute;
  width: 190px;
  height: 50px;
  border-radius: 14px;
  left: 50%;
  translate: -50% 0;
  border: 1px solid rgba(153, 255, 102, .4);
  background: rgba(34, 69, 11, .55);
}
.fa-stack .l1 { top: 38px; animation: layerFloat 4s ease-in-out infinite; }
.fa-stack .l2 { top: 96px; animation: layerFloat 4s ease-in-out .35s infinite; background: rgba(48, 96, 18, .6); }
.fa-stack .l3 { top: 154px; animation: layerFloat 4s ease-in-out .7s infinite; background: rgba(153, 255, 102, .26); }
@keyframes layerFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

.fa-growth { flex-direction: column; gap: 22px; }
.fg-bars { display: flex; align-items: flex-end; gap: 14px; height: 120px; }
.fg-bars i {
  width: 34px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(153, 255, 102, .85), rgba(153, 255, 102, .25));
}
.fg-bars i:nth-child(1) { height: 44px; animation: barGrow 3.6s ease-in-out infinite; }
.fg-bars i:nth-child(2) { height: 68px; animation: barGrow 3.6s ease-in-out .2s infinite; }
.fg-bars i:nth-child(3) { height: 92px; animation: barGrow 3.6s ease-in-out .4s infinite; }
.fg-bars i:nth-child(4) { height: 116px; animation: barGrow 3.6s ease-in-out .6s infinite; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.88); }
}
.fg-badge {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest-900);
  font-size: 13px;
  font-weight: 700;
}

.fa-eco { width: 100%; }
.fe-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.fe-node {
  position: absolute;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(153, 255, 102, .12);
  border: 1px solid rgba(153, 255, 102, .35);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: .06em;
}
.fe-node.n1 { top: 34px; left: 14%; animation: chipFloat 5s ease-in-out infinite; }
.fe-node.n2 { top: 34px; right: 14%; animation: chipFloat 5s ease-in-out .5s infinite; }
.fe-node.n3 { bottom: 20px; left: 50%; translate: -50% 0; animation: chipFloat 5s ease-in-out 1s infinite; }

.fa-bubble {
  position: absolute;
  padding: 13px 20px;
  border-radius: 18px;
  font-size: 13.5px;
}
.fa-bubble.b1 {
  top: 52px; left: 8%;
  background: rgba(255, 255, 255, .1);
  color: #e6ecdf;
  border-bottom-left-radius: 4px;
}
.fa-bubble.b2 {
  bottom: 48px; right: 8%;
  background: var(--lime);
  color: var(--forest-900);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

/* ==========================================================================
   PLATFORM CARDS
   ========================================================================== */
.platform {
  background: var(--grey-bg);
  padding-block: 120px 140px;
  transition: background .7s;
}

.platform-cards {
  display: flex;
  gap: 24px;
  margin-top: 80px;
  align-items: flex-start;
}

.p-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(30, 39, 18, .08);
  overflow: hidden;
  transition: flex .55s var(--ease-out), box-shadow .4s;
  cursor: pointer;
}

html.dark .p-card { background: #1b3300; }

.p-card.active { flex: 1.35; box-shadow: 0 30px 60px rgba(30, 39, 18, .14); }

.p-top {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.p-top h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  width: 83%;
}

.p-arrow {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s var(--ease-out), background .3s;
  transform: rotate(-90deg);
}
html.dark .p-arrow { background: #0c1f00; }

.p-card.active .p-arrow { transform: rotate(0deg); background: var(--lime); color: var(--forest-900); }

.p-img { padding-inline: 14px; margin-top: 6px; }
.p-img img { width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }

.p-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.p-body p {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  padding-inline: 24px;
}
.p-card.active .p-body { grid-template-rows: 1fr; }
.p-card.active .p-body p { padding-block: 14px 26px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding-block: 150px; background: var(--page-bg); transition: background .7s; }

.cta-content { text-align: center; max-width: 690px; }
.cta-sub { margin-top: 24px; }
.cta-content .btn { margin-top: 36px; }
.cta .section-title-h1 { font-size: clamp(42px, 4.6vw, 64px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--grey-bg);
  padding-block: 90px 50px;
  border-top: 1px solid var(--border);
  transition: background .7s;
}

.footer-logo { margin-bottom: 60px; }

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--heading);
  margin-bottom: 14px;
}

.footer-tagline { max-width: 420px; }

.footer-row1 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-products { flex: 1 1 62%; }
.footer-solutions { flex: 1 1 28%; }

.f-group-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 26px;
}

.f-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.f-col { flex: 1; min-width: 150px; }
.footer-products .f-col { min-width: 0; }
@media (max-width: 900px) {
  .footer-products .f-col { min-width: 150px; }
}

.f-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}

.f-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-gray);
  padding-block: 5px;
  transition: color .25s;
}
.f-col a:hover { color: var(--forest-700); }
html.dark .f-col a:hover { color: var(--lime); }

.footer-row2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding-bottom: 50px;
}

.footer-bottom { border-top: 1px solid var(--border); padding-top: 34px; }

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

.country-list { display: flex; gap: 60px; }
.country-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  padding-bottom: 6px;
  transition: color .25s;
}
.country-list li.active a {
  color: var(--heading);
  box-shadow: 0 2px 0 var(--lime);
}
.country-list a:hover { color: var(--heading); }

.social-icons { display: flex; gap: 8px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--page-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: .3s;
}
.social-icons a:hover { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }

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

.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { font-size: 13px; color: var(--text-gray); transition: color .25s; }
.legal-links a:hover { color: var(--heading); }

.copyright { font-size: 13.5px; color: var(--text-gray); }

/* ==========================================================================
   COOKIE UI
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--page-bg);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 40px;
  transform: translateY(110%);
  transition: transform .6s var(--ease-out);
}
.cookie-banner.show { transform: none; }
.cookie-banner p { font-size: 14.5px; line-height: 1.55; color: var(--text-gray); max-width: 760px; }
.cookie-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.cookie-actions .btn { min-width: 290px; }
@media (min-width: 1025px) {
  .cookie-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 18px; row-gap: 10px; }
  .cookie-actions .btn-outline { grid-column: 1; grid-row: 1; }
  .cookie-actions .btn-lime { grid-column: 1; grid-row: 2; }
  .cookie-actions .cookie-close { grid-column: 2; grid-row: 1 / span 2; }
}
.cookie-close { font-size: 18px; color: var(--heading); padding: 6px; }

.cookie-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1900;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--page-bg);
  border: 2px solid var(--lime);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(22, 51, 0, .18);
  opacity: 0;
  visibility: hidden;
  transition: .4s;
}
html.dark .cookie-fab { color: var(--lime); }
.cookie-fab.show { opacity: 1; visibility: visible; }
.cookie-fab:hover { transform: scale(1.08); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .container { padding-inline: 32px; }
  .stack-wrap { height: 360px; }
  .country-list { gap: 34px; }
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .mega-panel { display: none; }

  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { flex-direction: column-reverse; align-items: flex-start; gap: 40px; }
  .hero-copy, .hero-visual { width: 100%; }
  .hero-visual { justify-content: center; }
  .hero-media-frame { width: min(520px, 100%); transform: scale(1.12); transform-origin: center; margin: 8px auto; }

  .stacked-zone { height: auto; }
  .stacked-sticky { position: static; height: auto; }
  .stacked-cards { flex-direction: column; align-items: center; transform: none; }
  .stack-card { width: 100%; max-width: 420px; }
  .stack-card:nth-child(n) { margin: 0 0 24px; z-index: auto; }
  .stack-wrap h3 { position: static; opacity: 1; transform: none; margin-bottom: 18px; }

  .showcase { flex-direction: column; }
  .showcase-left { display: none; }
  .showcase-right { width: 100%; }
  .show-block { min-height: 0; padding: 40px 0; }

  .usecases-grid { flex-direction: column; }
  .usecases-copy { width: 100%; padding-top: 0; }
  .usecases-arch { width: 100%; height: 540px; }

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

  .platform-cards { flex-direction: column; }
  .p-card, .p-card.active { flex: none; width: 100%; }

  .footer-row2 { grid-template-columns: repeat(2, 1fr); }
  .devs { border-radius: 32px 32px 0 0; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .aud-slide { width: 78vw; }
  .aud-card { height: 78vw; }
  .chip-bank { left: -6px; }
  .chip-einvoice { right: -6px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { min-width: 0; flex: 1; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   ONE COMPLETE STACK — continuous card journey
   ========================================================================== */
.journey { position: relative; height: 520vh; }
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.journey-stage {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* intro heading (phase 1, left) */
.jhead {
  position: absolute;
  top: 50%;
  left: 0;
  width: 47%;
  transform: translateY(-50%);
  will-change: opacity;
}
.jhead-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--forest-700);
  margin-bottom: 22px;
}
.jhead-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px rgba(153,255,102,.25);
}
.jhead-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 700; line-height: 1.0; letter-spacing: -.03em;
  color: var(--heading);
}
.jhead-sub {
  font-size: 17px; line-height: 1.6; color: var(--text-gray);
  max-width: 440px; margin-top: 26px;
}
.jhead-hint {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 40px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--forest-700);
}
.jhead-hint svg { animation: jbob 1.8s var(--ease-out) infinite; }
@keyframes jbob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

/* deck cards (JS-driven) */
.jstep { display: contents; }
.jcard {
  position: absolute;
  top: 50%;
  left: 0;
  width: 336px;
  height: 428px;
  padding: 30px 26px;
  border-radius: 34px;
  background: #f0f3ec;
  box-shadow: 0 34px 74px rgba(22,51,0,.13);
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(-50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.jcard .mock { transform: none; width: 100%; }

/* point write-ups (JS-driven, right) */
.jtext {
  position: absolute;
  top: 50%;
  right: 0;
  width: 44%;
  transform: translateY(-50%) translateX(26px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.jtext.is-on { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.jt-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -.01em; color: var(--heading);
  margin-bottom: 18px;
}
.jt-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.01em; color: var(--heading); line-height: 1.15;
}
.jt-desc {
  font-size: 16.5px; line-height: 1.62; color: var(--text-gray);
  max-width: 460px; margin: 16px 0 30px;
}

/* progress dots */
.jdots {
  position: absolute; left: 0; bottom: 8vh;
  display: flex; gap: 10px;
  opacity: 0; transition: opacity .4s;
}
.jdots.is-on { opacity: 1; }
.jdots i {
  width: 26px; height: 4px; border-radius: 4px;
  background: var(--border); transition: background .4s, width .4s;
}
.jdots i.on { background: var(--forest-900); width: 40px; }

/* mobile: unpin → simple stacked layout (card above its write-up) */
@media (max-width: 1024px) {
  .journey { height: auto; }
  .journey-sticky { position: static; height: auto; overflow: visible; display: block; }
  .journey-stage { position: static; height: auto; padding: 70px 0 20px; }
  .jhead { position: static; transform: none; width: auto; opacity: 1 !important; margin-bottom: 52px; }
  .jstep { display: block; margin-bottom: 64px; }
  .jcard {
    position: static; transform: none !important; opacity: 1 !important;
    width: 100%; max-width: 380px; height: auto; min-height: 320px;
    margin: 0 auto 26px; z-index: auto !important;
  }
  .jtext { position: static; transform: none !important; opacity: 1 !important; width: auto; pointer-events: auto; }
  .jdots { display: none; }
}

/* ==========================================================================
   DARK / LIGHT MODE — toggle control + surface overrides
   ========================================================================== */

/* --- toggle button (nav · mobile bar · subpage head) --- */
.theme-toggle {
  width: 38px; height: 38px; flex: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--lime); color: var(--forest-700); transform: translateY(-1px); }
html.dark .theme-toggle:hover { color: var(--lime); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
html.dark .theme-toggle .ic-moon { display: none; }
html.dark .theme-toggle .ic-sun { display: block; }

.nav-mobile-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle--mobile { display: none; }
@media (max-width: 1024px) {
  .nav-menu .theme-toggle { display: none; }
  .theme-toggle--mobile { display: inline-flex; }
}
.subhead-actions { display: inline-flex; align-items: center; gap: 16px; }

/* --- eyebrow labels: dark forest-700 is invisible on a dark page --- */
html.dark .coming-eyebrow,
html.dark .sec-eyebrow,
html.dark .subpage .eyebrow-mono,
html.dark .jhead-eyebrow,
html.dark .jhead-hint,
html.dark .hiw-chev { color: var(--lime); }

/* --- product-card mock UIs: flip light surfaces to dark --- */
html.dark .stack-wrap,
html.dark .jcard { background: var(--card-bg); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
html.dark .mrow,
html.dark .mh-item { background: #0e2205; color: #e8efe0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
html.dark .mo-head,
html.dark .ma-sub { color: #9fb08e; }
html.dark .feature-art { background: #0e2205; border-color: rgba(153, 255, 102, .18); }

/* --- carousel / journey dots --- */
html.dark .aud-dots button { background: #3a5324; }
html.dark .jdots i { background: rgba(255, 255, 255, .2); }
html.dark .jdots i.on { background: var(--lime); }

/* --- hero video: on a dark page the white plate reads as a hard-edged oval;
   tighten + soften the feather and dim it so it becomes a calm product spotlight --- */
html.dark .hero-video {
  /* the dark-mode hero video already has a deep-forest background matching the page —
     feather all four edges so the video rectangle dissolves seamlessly into the bg */
  filter: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-composite: intersect;
}
