/* ============================================================
   CropIntellix — DMRV Redesign  |  site.css
   Brand: navy #082A5E · blue #1363DF · green #25D15D
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy: #061E43;
  --navy-2: #082A5E;
  --blue: #1363DF;
  --blue-2: #2494E4;
  --green: #25D15D;
  --green-2: #18A957;
  --teal: #0FB5A6;
  --ink: #0A1B33;
  --paper: #F4F8FF;
  --paper-2: #ECF3FF;
  --white: #ffffff;
  --muted: #5B6B85;
  --line: rgba(19, 99, 223, .14);
  --heading: #082A5E;
  --surface: #ffffff;

  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(37,209,93,.28), transparent 55%),
               radial-gradient(900px 500px at 10% 10%, rgba(36,148,228,.30), transparent 55%),
               linear-gradient(160deg, #061E43 0%, #082A5E 45%, #0A3a6b 100%);
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--teal) 60%, var(--green) 100%);
  --grad-green: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);

  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .16);

  --shadow-sm: 0 4px 14px rgba(8, 42, 94, .08);
  --shadow: 0 18px 50px rgba(8, 42, 94, .14);
  --shadow-lg: 0 30px 80px rgba(6, 30, 67, .28);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --container: 1340px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--heading); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  background: var(--paper-2);
  padding: 7px 15px; border-radius: 100px;
  border: 1px solid var(--line);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,209,93,.2); }
.h-xl { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.h-lg { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin: 0 auto 54px; }
.section-head.left { margin-inline: 0; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--grad-brand); --fg: #fff;
  --mx: 0px; --my: 0px; --lift: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  position: relative; overflow: hidden;
  transform: translate(var(--mx), calc(var(--my) + var(--lift)));
  transition: transform .22s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 26px rgba(19,99,223,.32);
  will-change: transform;
}
.btn:hover { --lift: -3px; box-shadow: 0 18px 40px rgba(19,99,223,.42); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: none; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn--dark { --bg: var(--navy-2); box-shadow: 0 10px 26px rgba(8,42,94,.3); }
.btn--outline { --bg: #fff; --fg: var(--blue); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 16px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo .logo-light { display: block; }
.nav__logo .logo-dark { display: none; }
.nav__menu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav__menu a {
  color: rgba(255,255,255,.88); font-weight: 500; font-size: .9rem; white-space: nowrap;
  padding: 8px 12px; border-radius: 100px; transition: .25s; position: relative;
}
.nav__menu a:hover, .nav__menu a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
/* nav "Book a demo" sized to match the nav menu items */
.nav__cta .btn { padding: 7px 15px; font-size: .82rem; gap: 6px; box-shadow: 0 6px 16px rgba(19,99,223,.26); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
/* collapse to the burger menu a little earlier so the 8-item nav never wraps to a 2nd line */
@media (max-width: 1100px) { .nav__menu, .nav__cta .btn { display: none; } .nav__burger { display: flex; } }

/* scrolled state -> light glass */
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(8,42,94,.10);
  padding: 10px 0;
}
.nav.scrolled .nav__logo .logo-light { display: none; }
.nav.scrolled .nav__logo .logo-dark { display: block; }
.nav.scrolled .nav__menu a { color: var(--navy-2); }
.nav.scrolled .nav__menu a:hover, .nav.scrolled .nav__menu a.active { color: var(--blue); background: var(--paper-2); }
.nav.scrolled .nav__burger span { background: var(--navy-2); }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70; background: var(--grad-brand); transition: width .1s linear; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer__bg { position: absolute; inset: 0; background: rgba(6,30,67,.5); opacity: 0; transition: .35s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 86vw);
  background: #fff; box-shadow: var(--shadow-lg); padding: 28px 24px;
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer__bg { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__panel a { padding: 13px 14px; border-radius: 12px; font-weight: 600; color: var(--navy-2); }
.drawer__panel a:hover { background: var(--paper-2); color: var(--blue); }
.drawer__close { align-self: flex-end; font-size: 1.6rem; color: var(--navy-2); line-height: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 10vw, 130px); }
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.hero h1 .text-grad { background: none; color: #5BFF9E; -webkit-text-fill-color: #5BFF9E;
  filter: drop-shadow(0 1px 2px rgba(2,10,28,.98)) drop-shadow(0 0 16px rgba(91,255,158,.5)); }
.hero p.lead { color: rgba(255,255,255,.82); margin: 22px 0 32px; max-width: 540px; }
.hero__chip { display: inline-flex; align-items: center; gap: 9px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 100px; font-size: .85rem; font-weight: 500; margin-bottom: 26px; }
.hero__chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(37,209,93,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,209,93,.6)} 70%{box-shadow:0 0 0 12px rgba(37,209,93,0)} 100%{box-shadow:0 0 0 0 rgba(37,209,93,0)} }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero live card */
.hero__card {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg);
}
.hero__card h4 { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hero__card .sub { color: rgba(255,255,255,.6); font-size: .82rem; margin-bottom: 18px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero__stat { background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); border-radius: var(--r-sm); padding: 16px; }
.hero__stat .n { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hero__stat .l { font-size: .76rem; color: rgba(255,255,255,.7); }
.hero__stat .n span { font-size: 1rem; color: var(--green); }
/* "Did you know?" rotating fact card */
.hero__fact { padding: 20px 22px; }
.hero__fact .fact__bulb { font-size: 1.15rem; line-height: 1; display: inline-block; animation: bulbGlow 2s ease-in-out infinite; }
.hero__fact .fact__text { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.55; margin-top: 6px; min-height: 3.3em; transition: opacity .5s ease; }
/* light bulb blinks: glows on, then switches off */
@keyframes bulbGlow {
  0%, 45%   { opacity: 1;   filter: drop-shadow(0 0 12px rgba(255,206,84,.95)); transform: scale(1.12); }
  55%, 100% { opacity: .28; filter: drop-shadow(0 0 0 rgba(255,206,84,0));      transform: scale(.94); }
}
.hero__spark { margin-top: 16px; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }

/* full-bleed Earth-from-space hero background video */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,12,34,.86) 0%, rgba(4,12,34,.58) 26%, rgba(4,12,34,.16) 52%, rgba(4,12,34,.05) 74%, rgba(4,12,34,.2) 100%); }
/* let the Earth read clearly: drop the homepage orbs and dim the particle layer */
.hero::before, .hero::after, .page-hero::before { display: none; }
.hero .hero__canvas { opacity: .22; }
/* keep headline crisp over the brighter Earth */
.hero h1, .hero p.lead { text-shadow: 0 2px 18px rgba(2,8,26,.7); }

/* real satellite drifting above the text, beaming a signal toward Earth */
.hero__sat {
  position: absolute; top: clamp(16px, 4vh, 60px); left: 0;
  width: clamp(52px, 6vw, 84px); z-index: 5; pointer-events: none;
  /* negative delay starts the roam mid-cycle (~22%) so the satellite is
     already on-screen the instant the page loads, instead of drifting in
     from off-screen left over the first ~24s */
  animation: satRoam 108s ease-in-out -24s infinite;
}
/* second satellite: half the size, roaming the opposite direction */
.hero__sat--2 {
  width: clamp(26px, 3vw, 42px);
  animation-direction: reverse;
  animation-delay: -60s;
}
.hero__sat--2 .hero__sat-img { transform: scaleX(-1); }
.hero__sat-img { width: 100%; height: auto; display: block; position: relative; z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.55)); }
/* wander in varied directions, looping seamlessly */
@keyframes satRoam {
  0%   { transform: translateX(-12vw) translateY(2vh)  rotate(-6deg); }
  22%  { transform: translateX(34vw)  translateY(24vh) rotate(6deg); }
  44%  { transform: translateX(86vw)  translateY(6vh)  rotate(-4deg); }
  62%  { transform: translateX(48vw)  translateY(30vh) rotate(8deg); }
  80%  { transform: translateX(6vw)   translateY(13vh) rotate(-8deg); }
  100% { transform: translateX(-12vw) translateY(2vh)  rotate(-6deg); }
}
@media (max-width: 640px) { .hero__sat { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__sat { animation: none; } }

/* satellite that roams the whole page (fixed) and reacts to the cursor.
   the wrapper handles the slow roam (animation transform); the inner img
   handles the mouse-parallax (its own transform) so the two never clash */
.page-sat {
  /* anchored to a constant spot near the top-right; only a small, slow drift */
  position: fixed; top: clamp(14px, 12vh, 130px); right: clamp(16px, 8vw, 130px);
  width: clamp(34px, 4vw, 58px); z-index: 9999; pointer-events: none;
  animation: satRoamPage 108s ease-in-out infinite;
}
.page-sat img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.30));
  transform: translate(var(--sat-mx, 0px), var(--sat-my, 0px));
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
/* anchored top-right, the satellite drifts right -> left across the page and
   back over a slow 108s loop (so it starts moving leftward as the page opens) */
@keyframes satRoamPage {
  0%   { transform: translate(0,     2vh)  rotate(-5deg); }
  25%  { transform: translate(-30vw, 14vh) rotate(4deg); }
  50%  { transform: translate(-62vw, 4vh)  rotate(-3deg); }
  75%  { transform: translate(-32vw, 16vh) rotate(5deg); }
  100% { transform: translate(0,     2vh)  rotate(-5deg); }
}
@media (max-width: 640px) { .page-sat { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-sat { animation: none; } }

/* marquee partners */
.marquee { overflow: hidden; padding: 42px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scrollx 32s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 38px; width: auto; filter: grayscale(1) opacity(.5); transform-origin: center center; will-change: transform, filter; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Stat strip ---------- */
.stats-strip { background: var(--navy-2); color: #fff; }
.stats-strip .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 40px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat .n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg,#7CF2A8,#9ED7FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .n span { font-size: 1.4rem; }
.stat .l { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(19,99,223,.3); }
.card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.4rem; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(19,99,223,.3); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: .92rem; }
.card .more .ico { transition: transform .3s var(--ease); }
.card:hover .more .ico { transform: translateX(4px); }

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

/* ---------- DMRV interactive tabs ---------- */
.dmrv { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); position: relative; overflow: hidden; }
.dmrv__tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.dmrv__tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  background: #fff; color: var(--navy-2); border: 1px solid var(--line);
  transition: .3s; box-shadow: var(--shadow-sm);
}
.dmrv__tab .em { font-size: 1.1rem; }
.dmrv__tab .em-ico { width: 24px; height: 24px; object-fit: contain; display: inline-block; vertical-align: middle; }
.dmrv__tab.active .em-ico { filter: brightness(0) invert(1); }
.dmrv__tab:hover { transform: translateY(-2px); border-color: var(--blue); }
.dmrv__tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(19,99,223,.32); }
.dmrv__tab .badge { font-size: .6rem; font-weight: 800; letter-spacing: .08em; background: var(--green); color: #04331a; padding: 2px 7px; border-radius: 100px; }

.dmrv__panel { display: none; }
.dmrv__panel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dmrv__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); }
.dmrv__layout .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green-2); margin-bottom: 12px; }
.dmrv__layout h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.dmrv__layout p { color: var(--muted); }
.dmrv__metrics { display: flex; gap: 24px; margin: 22px 0; flex-wrap: wrap; }
.dmrv__metric .n { font-size: 1.9rem; font-weight: 800; color: var(--navy-2); letter-spacing: -.03em; }
.dmrv__metric .l { font-size: .8rem; color: var(--muted); }
.dmrv__how { margin: 18px 0; display: grid; gap: 10px; }
.dmrv__how li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink); }
.dmrv__how .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-green); color: #fff; display: grid; place-items: center; font-size: .7rem; margin-top: 2px; }
.dmrv__viz { background: linear-gradient(160deg, #F7FBFF, #EAF2FF); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.dmrv__viz .vtitle { font-size: .82rem; font-weight: 700; color: var(--navy-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.dmrv__viz .vsub { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.chart-wrap { position: relative; height: 230px; }

/* ---------- MRV flow ---------- */
.flow { background: var(--navy-2); color: #fff; overflow: hidden; }
.flow h2 { color: #fff; }
.flow .lead { color: rgba(255,255,255,.72); }
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; counter-reset: step; }
.flow__step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 26px; position: relative; transition: .35s var(--ease); cursor: default; }
.flow__step:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.flow__step .num { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; box-shadow: 0 10px 22px rgba(19,99,223,.4); }
.flow__step h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.flow__step p { color: rgba(255,255,255,.66); font-size: .9rem; }
.flow__step::after { content: "→"; position: absolute; right: -16px; top: 42px; color: var(--green); font-size: 1.4rem; z-index: 2; }
.flow__step:last-child::after { display: none; }

/* ---------- Field-to-credit animated pipeline (scroll-drawn) ---------- */
.pipeline { --p: 0; position: relative; margin-top: 56px; }
.pipeline__nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
/* connector line sits behind the dot row */
.pipeline__line { position: absolute; z-index: 1; top: 33px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
.pipeline__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #1363DF, #25D15D); border-radius: 3px; box-shadow: 0 0 14px rgba(37,209,93,.55); transition: width .12s linear; }
.pipeline__packet { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #eafff1; box-shadow: 0 0 0 5px rgba(37,209,93,.28), 0 0 22px 4px rgba(124,242,168,.9); opacity: 0; transition: opacity .3s; }
.pipeline[style*="--p"] .pipeline__packet { opacity: 1; }
.pipeline__node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pipeline__dot { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); position: relative; z-index: 2; transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.pipeline__dot .ico { filter: grayscale(1) opacity(.6); transition: filter .5s var(--ease); }
.pipeline__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 20px 18px; margin-top: 18px; width: 100%; opacity: .5; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease); }
.pipeline__step { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.pipeline__card h4 { color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.pipeline__card p { color: rgba(255,255,255,.66); font-size: .88rem; line-height: 1.5; }
/* activated state as the packet passes each node */
.pipeline__node.is-active .pipeline__dot { background: var(--grad-brand); border-color: transparent; transform: scale(1.08) translateY(-4px); box-shadow: 0 14px 30px rgba(19,99,223,.45), 0 0 0 6px rgba(37,209,93,.12); }
.pipeline__node.is-active .pipeline__dot .ico { filter: none; }
.pipeline__node.is-active .pipeline__card { opacity: 1; transform: translateY(0); border-color: rgba(124,242,168,.32); background: rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .pipeline__nodes { grid-template-columns: 1fr; gap: 14px; }
  .pipeline__node { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .pipeline__card { margin-top: 0; }
  .pipeline__line { top: 33px; bottom: 33px; left: 33px; right: auto; width: 3px; height: auto; }
  .pipeline__fill { inset: 0 0 auto 0; width: 100%; height: calc(var(--p) * 100%); transition: height .12s linear; }
  .pipeline__packet { top: calc(var(--p) * 100%); left: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline__fill, .pipeline__packet, .pipeline__dot, .pipeline__card { transition: none; }
}

/* ---------- Calculator ---------- */
.calc { background: linear-gradient(160deg, #fff 0%, var(--paper) 100%); }
.calc__box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow); }
.calc__controls label { display: block; font-weight: 600; color: var(--navy-2); margin: 20px 0 8px; display: flex; justify-content: space-between; }
.calc__controls label .v { color: var(--blue); font-weight: 800; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 100px; background: var(--paper-2); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-brand); cursor: pointer; box-shadow: 0 4px 12px rgba(19,99,223,.5); border: 3px solid #fff; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid #fff; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.seg button { padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--navy-2); background: #fff; transition: .25s; }
.seg button.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.calc__result { text-align: center; background: var(--grad-hero); color: #fff; border-radius: var(--r-lg); padding: 34px; }
.calc__result .big { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg,#7CF2A8,#9ED7FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__result .unit { font-size: 1rem; color: rgba(255,255,255,.8); }
.calc__result .disclaimer { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 16px; }
.calc__result .pillrow { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.calc__result .pill { background: rgba(255,255,255,.1); border: 1px solid var(--glass-line); border-radius: 100px; padding: 8px 14px; font-size: .82rem; }

/* ---------- Products ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .4s var(--ease); }
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product img { border-radius: var(--r); width: 100%; }
.product .pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--paper-2); padding: 5px 12px; border-radius: 100px; margin-bottom: 12px; }

/* ---------- Testimonials ---------- */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; position: relative; }
.tcard .quote { font-size: 3rem; color: var(--green); line-height: 1; font-weight: 800; }
.tcard p { font-size: 1.08rem; color: var(--ink); margin: 10px 0 20px; }
.tcard .who { font-weight: 700; color: var(--navy-2); }
.tdots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.tdots button { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: .3s; }
.tdots button.active { background: var(--blue); width: 28px; border-radius: 100px; }

/* ---------- CTA band ---------- */
.cta { background: var(--grad-hero); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 14px auto 28px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,.7); transition: .25s; }
.footer a:hover { color: var(--green); }
.footer__logo img { height: 50px; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__contact li { margin-bottom: 10px; font-size: .92rem; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .3s; }
.footer__social a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.footer__rec { color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: .02em; }

/* newsletter */
.subscribe { display: flex; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 100px; padding: 6px; }
.subscribe input { flex: 1; background: none; border: none; outline: none; color: #fff; padding: 0 14px; font-family: inherit; }
.subscribe input::placeholder { color: rgba(255,255,255,.5); }
.subscribe button { padding: 11px 18px; border-radius: 100px; background: var(--grad-brand); color: #fff; font-weight: 600; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: clamp(150px, 18vh, 200px) 0 clamp(60px, 8vw, 90px); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
/* apps hero: two-column layout — text left, crossfading phone showcase right */
.apps-hero { padding: clamp(98px, 12vh, 126px) 0 clamp(26px, 4vw, 44px); }
.apps-hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 4vw, 56px); align-items: center; text-align: left; }
.apps-hero__text p { margin-left: 0; }
.apps-shots { display: flex; flex-direction: column; align-items: center; }
/* phone device frame */
.apps-shots__stage {
  position: relative; width: clamp(158px, 16vw, 202px); padding: 12px 9px; border-radius: 34px;
  background: linear-gradient(160deg, #1a2336, #0c1320);
  box-shadow: 0 28px 52px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.06), inset 0 0 0 7px rgba(0,0,0,.32);
}
.apps-shots__stage::after {   /* camera dot in the top bezel */
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: rgba(150,170,200,.55);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); z-index: 4;
}
.apps-shots__screen { position: relative; width: 100%; aspect-ratio: 195 / 419; border-radius: 24px; overflow: hidden; background: #0b1220; }
.apps-shots__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .55s ease;
}
.apps-shots__img.is-active { opacity: 1; }
.apps-shots__cap { margin-top: 18px; font-weight: 600; font-size: 1.05rem; color: #cfe9ff; letter-spacing: .015em; }

/* ============================================================
   Interactive Change-Detection hero (Baseline ⇄ Current wipe)
   ============================================================ */
.chero {
  --pos: 50%;
  position: relative; min-height: clamp(460px, 76vh, 660px); overflow: hidden;
  color: #fff; user-select: none; cursor: ew-resize; touch-action: none;
  background: #06101f;
}
.chero__layer { position: absolute; inset: 0; display: grid; place-items: center; }
.chero__layer * { pointer-events: none; }
/* premium UI fills the whole hero underneath; the wireframe sits on top and is
   clipped to the RIGHT of the handle — so UI shows left, wireframe shows right */
.chero__layer--cur { z-index: 2; }
.chero__layer--base { z-index: 3; clip-path: inset(0 0 0 var(--pos)); will-change: clip-path; }
.chero.is-anim .chero__layer--base { transition: clip-path .85s cubic-bezier(.65,0,.35,1); }
.chero.is-anim .chero__divider,
.chero.is-anim .chero__handle { transition: left .85s cubic-bezier(.65,0,.35,1); }

/* ---- shared content ---- */
.chero__content { position: relative; z-index: 6; text-align: center; padding: 0 22px; max-width: 760px; }
.chero__content .eyebrow { margin-bottom: 18px; }
.chero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin-bottom: 16px; }
.chero__content p { max-width: 560px; margin: 0 auto; font-size: 1.03rem; }
.chero .crumbs { justify-content: center; }

/* ---- BASELINE layer (wireframe / blueprint) ---- */
.chero__layer--base { background: #06101f; }
.chero__bp {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(130,185,235,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,185,235,.13) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: radial-gradient(120% 100% at 50% 42%, #000 55%, transparent 100%);
          mask: radial-gradient(120% 100% at 50% 42%, #000 55%, transparent 100%);
}
.chero__layer--base h1 { color: transparent; -webkit-text-stroke: 1px rgba(195,225,255,.7); }
.chero__layer--base .chero__content p { color: rgba(205,222,245,.42); }
.chero__layer--base .eyebrow { background: transparent; border: 1px dashed rgba(185,215,250,.5); color: rgba(205,228,255,.72); }
.chero__layer--base .crumbs { opacity: .45; }

/* ---- CURRENT layer (premium / rendered) ---- */
.chero__layer--cur { background: var(--grad-hero); }
.chero__layer--cur::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,209,93,.45), transparent 62%);
  top: -150px; right: 8%; filter: blur(40px); z-index: 0; animation: floaty 16s ease-in-out infinite;
}
.chero__layer--cur::after {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,148,228,.4), transparent 62%);
  bottom: -150px; left: 6%; filter: blur(44px); z-index: 0; animation: floaty 20s ease-in-out infinite reverse;
}
.chero__layer--cur h1 { color: #fff; }
.chero__layer--cur h1 .grad {
  background: linear-gradient(100deg, #7CFFB0, #46C8FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chero__layer--cur .chero__content p { color: rgba(255,255,255,.82); }

/* ---- satellite (outline ⇄ detailed) ---- */
.chero__sat {
  position: absolute; top: clamp(74px, 12vh, 120px); right: clamp(18px, 11vw, 150px);
  width: clamp(78px, 9vw, 122px); z-index: 4; animation: cheroSatFloat 9s ease-in-out infinite;
}
.chero__sat svg { width: 100%; height: auto; display: block; overflow: visible; }
.chero__layer--base .chero__sat { color: rgba(180,215,255,.6); }
.chero__layer--base .chero__sat [fill] { fill: none; }
.chero__layer--cur  .chero__sat { color: #bfe6ff; filter: drop-shadow(0 0 14px rgba(80,200,255,.6)); }
.chero__layer--cur  .chero__sat .sat-body { fill: #163a6e; }
.chero__layer--cur  .chero__sat .sat-panel { fill: #1f6fd6; }
.chero__layer--cur  .chero__sat .sat-dish { fill: #0e2746; }
@keyframes cheroSatFloat { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(6deg); } }

/* ---- network nodes ---- */
.chero__net { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.chero__layer--base .chero__net { opacity: .5; }
.chero__layer--base .chero__net line { stroke: rgba(150,195,245,.25); }
.chero__layer--base .chero__net circle { fill: rgba(170,210,250,.5); }
.chero__layer--cur .chero__net line { stroke: rgba(90,200,255,.5); stroke-width: 1.2; }
.chero__layer--cur .chero__net circle { fill: #7CFFB0; filter: drop-shadow(0 0 6px rgba(90,230,160,.9)); animation: cheroNode 3.2s ease-in-out infinite; }
.chero__layer--cur .chero__net circle:nth-child(2n) { fill: #46C8FF; animation-delay: .8s; }
.chero__layer--cur .chero__net circle:nth-child(3n) { animation-delay: 1.6s; }
@keyframes cheroNode { 0%,100% { opacity: .55; r: 4; } 50% { opacity: 1; r: 6; } }

/* ---- stat card (placeholder ⇄ glass) ---- */
.chero__card {
  position: absolute; left: clamp(16px, 6vw, 70px); bottom: clamp(26px, 7vh, 64px);
  width: 210px; border-radius: 14px; padding: 10px 14px; z-index: 5;
}
.chero__layer--base .chero__card { border: 1px dashed rgba(180,215,250,.5); background: rgba(255,255,255,.02); }
.chero__layer--base .chero__card * { visibility: hidden; }
.chero__layer--cur .chero__card {
  background: rgba(12,26,48,.5); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
}
.chero__card__k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(180,225,255,.85); }
.chero__card__v { font-size: 1.35rem; font-weight: 800; margin: 1px 0 6px; white-space: nowrap; }
.chero__card__v .add { color: #7CFFB0; }
.chero__card__v .del { color: #ff7b86; }
.chero__bars { display: flex; gap: 4px; align-items: flex-end; height: 20px; }
.chero__bars i { flex: 1; background: linear-gradient(#46C8FF, #7CFFB0); border-radius: 2px; opacity: .9; animation: cheroBar 2.4s ease-in-out infinite; }
.chero__bars i:nth-child(2){ animation-delay:.2s } .chero__bars i:nth-child(3){ animation-delay:.4s }
.chero__bars i:nth-child(4){ animation-delay:.6s } .chero__bars i:nth-child(5){ animation-delay:.8s }
@keyframes cheroBar { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@media (max-width: 600px) { .chero__card { display: none; } }

/* ---- divider + scan line + handle ---- */
.chero__labels {
  position: absolute; top: clamp(80px, 12vh, 104px); left: 0; right: 0; z-index: 12;
  display: flex; justify-content: space-between; padding: 0 clamp(18px, 5vw, 48px);
  font-size: .72rem; letter-spacing: .2em; font-weight: 700;
}
.chero__labels span { opacity: .85; }
.chero__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; z-index: 14;
  transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, rgba(120,225,255,.95) 18%, rgba(120,225,255,.95) 82%, transparent);
  box-shadow: 0 0 22px 5px rgba(80,200,255,.55);
}
.chero__handle {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; z-index: 16; cursor: grab;
  background: rgba(8,20,38,.55); border: 2px solid rgba(150,225,255,.9); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #d4efff; font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(80,200,255,.12), 0 8px 22px rgba(0,0,0,.45);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
  pointer-events: auto;
}
.chero__handle::after { content: "⟺"; }
.chero:hover .chero__handle { box-shadow: 0 0 0 9px rgba(80,200,255,.16), 0 0 34px rgba(80,200,255,.55), 0 8px 22px rgba(0,0,0,.45); }
.chero__handle:hover { transform: translate(-50%, -50%) scale(1.12); }
.chero__handle:active { cursor: grabbing; }
/* particle ring on hover */
.chero__handle::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background:
    radial-gradient(3px 3px at 50% 0, rgba(124,255,176,.9), transparent 60%),
    radial-gradient(3px 3px at 100% 50%, rgba(70,200,255,.9), transparent 60%),
    radial-gradient(3px 3px at 50% 100%, rgba(124,255,176,.9), transparent 60%),
    radial-gradient(3px 3px at 0 50%, rgba(70,200,255,.9), transparent 60%);
  opacity: 0; animation: cheroSpin 6s linear infinite;
}
.chero:hover .chero__handle::before { opacity: 1; }
@keyframes cheroSpin { to { transform: rotate(360deg); } }

/* ---- mobile toggle ---- */
.chero__toggle {
  position: absolute; bottom: clamp(22px, 5vh, 40px); left: 50%; transform: translateX(-50%);
  z-index: 18; display: none; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(8,20,38,.6); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
  pointer-events: auto;
}
.chero__toggle button { border: 0; background: transparent; color: rgba(255,255,255,.7); font: inherit;
  font-size: .8rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.chero__toggle button.is-on { background: linear-gradient(100deg, #1f6fd6, #25d15d); color: #fff; }
@media (max-width: 760px) {
  .chero { cursor: default; }
  .chero__divider, .chero__handle { display: none; }
  .chero__toggle { display: inline-flex; }
  .chero.is-anim .chero__layer--base { transition: clip-path .7s cubic-bezier(.65,0,.35,1); }
}
@media (prefers-reduced-motion: reduce) {
  .chero__sat, .chero__net circle, .chero__bars i, .chero__handle::before,
  .chero__layer--cur::before, .chero__layer--cur::after { animation: none; }
}
@media (max-width: 860px) {
  .apps-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .apps-hero__text { order: -1; }
  .apps-hero__text p { margin: 16px auto 0; }
  .apps-shots { align-items: center; margin-top: 28px; }
}
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin: 16px auto 0; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 18px; }
.crumbs a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
[data-reveal][data-delay="5"] { transition-delay: .45s; }
[data-reveal][data-delay="6"] { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy-2); margin-bottom: 7px; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  font-family: inherit; font-size: .95rem; outline: none; transition: .25s; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(19,99,223,.12); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow); }

/* ---------- Misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span { background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .88rem; font-weight: 500; color: var(--navy-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-rounded { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.bg-soft { background: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .dmrv__layout, .calc__box, .calc__result, .split, .product { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
  .flow__step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-strip .grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .nav__menu, .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .stats-strip .grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   POLISH PASS — refined detailing on top of the base system
   ============================================================ */
:root { --red: #FF4D4D; }

/* selection + smooth focus + custom scrollbar */
::selection { background: rgba(37,209,93,.28); color: var(--navy-2); }
:focus-visible { outline: 3px solid rgba(19,99,223,.45); outline-offset: 2px; border-radius: 6px; }
html { scrollbar-color: var(--blue) #e6eefc; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #eaf1fc; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--teal)); border-radius: 100px; border: 3px solid #eaf1fc; }

/* hero: decorative gradient orbs + faint grid for depth */
.hero::before, .page-hero::before {
  content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,209,93,.5), transparent 62%);
  top: -160px; right: -120px; filter: blur(36px); z-index: 0; pointer-events: none;
  animation: floaty 14s ease-in-out infinite;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,148,228,.45), transparent 62%);
  bottom: -150px; left: -120px; filter: blur(40px); z-index: 0; pointer-events: none;
  animation: floaty 18s ease-in-out infinite reverse;
}
@keyframes floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,30px); } }
.hero .container, .page-hero .container { position: relative; z-index: 3; }
.hero__canvas { z-index: 1 !important; }

/* button shine sweep */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
/* cursor-following glow (magnetic buttons) */
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(130px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.30), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease); mix-blend-mode: soft-light;
}
.btn:hover::before { opacity: 1; }

/* card: gradient top accent reveal on hover */
.card { isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r) var(--r) 0 0;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card__ico { transition: transform .4s var(--ease); }
.card:hover .card__ico { transform: translateY(-3px) rotate(-4deg); }

/* eyebrow shimmer dot */
.eyebrow .dot { animation: pulse 2.4s infinite; }

/* nav active subtle underline */
.nav__menu a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px;
}

/* stat numbers: thin divider glow + hover lift */
.stat { transition: background .35s var(--ease); }
.stat:hover { background: rgba(255,255,255,.04); }

/* dmrv tab active glow ring + metric numbers as gradient */
.dmrv__tab.active { position: relative; }
.dmrv__metric .n { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dmrv__layout { position: relative; }
.dmrv__layout::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: 14px; top: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19,99,223,.10), transparent 65%); pointer-events: none;
}

/* ambient satellite backdrop that fills the empty side margins */
.dmrv > .container { position: relative; z-index: 2; }
.dmrv__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dmrv__deco::before {                 /* faint dot field, masked away from the centre */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(19,99,223,.10) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(125% 78% at 50% 42%, transparent 36%, #000 74%);
          mask-image: radial-gradient(125% 78% at 50% 42%, transparent 36%, #000 74%);
}
.dmrv__deco::after {                   /* soft brand glows in the side margins */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(440px 440px at -3% 28%, rgba(37,209,93,.12), transparent 60%),
    radial-gradient(480px 480px at 103% 72%, rgba(19,99,223,.14), transparent 60%);
}
.dmrv__deco .orbit { position: absolute; border: 1.5px dashed rgba(19,99,223,.16); border-radius: 50%; }
.dmrv__deco .orbit--1 { width: 360px; height: 360px; left: -140px; top: 6%; }
.dmrv__deco .orbit--2 { width: 540px; height: 540px; right: -210px; bottom: -16%; border-color: rgba(37,209,93,.15); }
.dmrv__deco .dmrv__sat { position: absolute; right: 4%; top: 13%; font-size: 1.7rem; opacity: .9; filter: drop-shadow(0 8px 16px rgba(0,0,0,.22)); animation: dmrvSatDrift 16s ease-in-out infinite; }
@keyframes dmrvSatDrift { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-18px) rotate(7deg); } }

/* embossed chart tile — lifts up and floats toward the empty right margin (desktop) */
@media (min-width: 1025px) {
  .dmrv__viz {
    position: relative; z-index: 3;
    transform: translate(30%, -12px);
    border-color: rgba(255,255,255,.7);
    box-shadow: 0 30px 62px -18px rgba(8,42,94,.45), 0 12px 26px rgba(8,42,94,.16), inset 0 1px 0 rgba(255,255,255,.9);
  }
}

/* ===== dMRV field-app showcase ===== */
.appgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.appcard { --accent: var(--green); flex: 1 1 280px; max-width: 358px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.appcard:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.appcard__media { position: relative; height: 138px; overflow: visible; }
.appcard__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: bottom center; transition: transform .6s var(--ease); }
.appcard:hover .appcard__media img { transform: scale(1.08); }
.appcard__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 42%, rgba(6,30,67,.5)); }
.appcard__media::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: var(--accent); }
.appcard__badge { position: absolute; left: 18px; bottom: -25px; z-index: 3; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(8,42,94,.16); }
.appcard__body { padding: 32px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.appcard__tag { color: var(--accent); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.appcard__body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.appcard__body > p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.appcard__feat { list-style: none; margin: 14px 0 18px; display: grid; gap: 8px; }
.appcard__feat li { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--navy-2); }
.appcard__feat li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.appcard__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.appcard__cta .ico { transition: transform .25s; }
.appcard__cta:hover .ico { transform: translateX(4px); }
.appcard--awd { --accent: #1363DF; }
.appcard--agro { --accent: #1FB257; }
.appcard--biochar { --accent: #E0851E; }
.appcard--dsr { --accent: #C29A1F; }
.appcard--mangrove { --accent: #12A5A0; }
/* app cards as an auto-scrolling, embossed marquee row (like the clients strip) */
.appcard { box-shadow: 0 18px 42px -18px rgba(8,42,94,.45), 0 6px 16px rgba(8,42,94,.10), inset 0 1px 0 rgba(255,255,255,.92); }
.appcard:hover { box-shadow: 0 32px 62px -18px rgba(8,42,94,.5), 0 10px 22px rgba(8,42,94,.14), inset 0 1px 0 rgba(255,255,255,.95); }
.app-marquee { overflow: hidden; padding: 56px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.app-marquee__track { display: flex; gap: 26px; width: max-content; align-items: center; animation: scrollx 33s linear infinite; }
/* prev / next controls for the app strip */
.app-marquee-wrap { position: relative; }
.app-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--navy-2); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(8,42,94,.18); font-size: 1.6rem; line-height: 1; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.app-nav:hover { background: var(--navy-2); color: #fff; transform: translateY(-50%) scale(1.08); box-shadow: 0 16px 34px rgba(8,42,94,.28); }
.app-nav:active { transform: translateY(-50%) scale(.95); }
.app-nav--prev { left: -8px; }
.app-nav--next { right: -8px; }
html[data-theme="dark"] .app-nav { background: #12233f; color: #fff; border-color: rgba(255,255,255,.18); }
@media (max-width: 640px) { .app-nav { width: 40px; height: 40px; font-size: 1.3rem; } .app-nav--prev { left: 2px; } .app-nav--next { right: 2px; } }
.app-marquee:hover .app-marquee__track { animation-play-state: paused; }
.app-marquee .appcard { flex: 0 0 300px; width: 300px; max-width: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease); will-change: transform; transform-origin: center center; }
/* spotlight: dim the row, then pop + focus the hovered card */
.app-marquee__track:hover .appcard { opacity: .48; }
.app-marquee__track:hover .appcard:hover { opacity: 1; transform: translateY(-8px) scale(1.06); z-index: 3; }

/* flow steps: numbered accent + connector glow */
.flow__step { isolation: isolate; }
.flow__step::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); padding: 1px;
  background: linear-gradient(160deg, rgba(124,242,168,.5), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.flow__step:hover::before { opacity: 1; }

/* CTA decorative ring */
.cta::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,209,93,.35), transparent 62%); filter: blur(26px); pointer-events: none;
}
.cta > * { position: relative; z-index: 2; }

/* footer top gradient hairline */
.footer { position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); opacity: .8; }

/* product card top accent */
.product { position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad-green); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.product:hover::before { transform: scaleY(1); }

/* calculator result number subtle pulse on the big figure */
.calc__result .big { transition: transform .25s var(--ease); display: inline-block; }

/* marquee colour/scale is driven per-frame by JS (centre spotlight) — no CSS transition (would lag the rAF updates) */
.marquee img { transition: none; }

/* uniform dMRV platform tiles */
.dmrv-tile { position: relative; display: flex; flex-direction: column; }
.dmrv-tile .tile-tag { font-style: italic; color: var(--green-2); font-weight: 600; font-size: .88rem; }
.dmrv-tile p { margin-bottom: 2px; }
.tile-btns { display: flex; gap: 10px; flex-wrap: nowrap; margin-top: auto; padding-top: 18px; }
.tile-btns .btn { padding: 11px 18px; font-size: .9rem; white-space: nowrap; }
.tile-flag { position: absolute; top: 16px; right: 16px; background: var(--grad-green); color: #04331a; font-weight: 800; font-size: .64rem; letter-spacing: .1em; padding: 5px 12px; border-radius: 100px; box-shadow: 0 6px 14px rgba(37,209,93,.35); z-index: 2; }

/* ===== Flip platform tiles — real-photo cinematic scenes ===== */
.flip { position: relative; height: 360px; cursor: pointer; perspective: 1400px; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .85s var(--ease); transform-style: preserve-3d; }
.flip:hover .scene .kb { animation-play-state: paused; }
.flip.flipped .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.flip:hover .flip__front, .flip:hover .flip__back { box-shadow: var(--shadow); }
.flip:hover { transform: translateY(-4px); transition: transform .4s var(--ease); }
.flip__front { display: flex; flex-direction: column; }
.flip__back { transform: rotateY(180deg); padding: 22px; display: flex; flex-direction: column; }
.flip--flag .flip__front, .flip--flag .flip__back { border-color: rgba(37,209,93,.5); }
.flip__back .tile-tag { font-style: italic; color: var(--green-2); font-weight: 600; font-size: .84rem; line-height: 1.35; }
.flip__back h3 { margin: 5px 0; font-size: 1.05rem; }
.flip__back p { color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 6px; }
.flip__back .pill-list { margin-top: 10px; gap: 8px; }
.flip__back .pill-list span { padding: 6px 12px; font-size: .76rem; }
.flip__back .tile-btns { padding-top: 12px; }
.flip__flag { position: absolute; top: 14px; right: 14px; z-index: 6; background: var(--grad-green); color: #04331a; font-weight: 800; font-size: .62rem; letter-spacing: .1em; padding: 5px 12px; border-radius: 100px; box-shadow: 0 6px 14px rgba(37,209,93,.4); }

/* scene = real photo (Ken Burns), shown at full opacity — no overlays */
.scene { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.scene .kb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: tileZoom 7s ease-in-out infinite; }
/* whole tile gently zooms in/out (image fills box exactly — no gap) */
@keyframes tileZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.flip:nth-child(2) .scene .kb { animation-delay: -1.4s; }
.flip:nth-child(3) .scene .kb { animation-delay: -2.8s; }
.flip:nth-child(4) .scene .kb { animation-delay: -4.2s; }
.flip:nth-child(5) .scene .kb { animation-delay: -2.1s; }
.flip:nth-child(6) .scene .kb { animation-delay: -3.5s; }

/* clean white label strip BELOW the image (nothing on top of the photo) */
.scene__label { flex: none; padding: 16px 20px; background: #fff; }
.scene__label h3 { color: var(--navy-2); font-size: 1.15rem; }
.scene__label .hint { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: .85rem; margin-top: 3px; }
.scene__label .hint .ico { transition: transform .3s var(--ease); }
.flip:hover .scene__label .hint .ico { transform: translateX(5px); }

/* process-flow chips (AWD etc.) */
.procflow { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 20px 0; }
.procflow .pf { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 9px 15px; font-size: .82rem; font-weight: 600; color: var(--navy-2); box-shadow: var(--shadow-sm); }
.procflow .ar { color: var(--green-2); font-weight: 800; }

/* recognition badges (on dark heroes) */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.badges span { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.24); border-radius: 100px; padding: 7px 15px; background: rgba(255,255,255,.06); }

/* platform feature block accent for NEW/flagship */
.product--flag { border-color: rgba(37,209,93,.45); box-shadow: 0 18px 50px rgba(37,209,93,.14); }
.ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--grad-green); color: #04331a; font-weight: 800; font-size: .7rem; letter-spacing: .1em; padding: 6px 40px; box-shadow: 0 6px 14px rgba(37,209,93,.4); z-index: 3; }

/* compact grouped services */
.svc-group { margin-top: 46px; }
.svc-group:first-of-type { margin-top: 0; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.cat-head .ci { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.2rem; flex: none; box-shadow: 0 8px 18px rgba(19,99,223,.28); }
.cat-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.cat-head .ct { font-size: .85rem; color: var(--muted); }
.card--sm { padding: 22px; }
.card--sm .card__ico { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 13px; margin-bottom: 14px; }
.card--sm h3 { font-size: 1.04rem; margin-bottom: 6px; }
.card--sm p { font-size: .88rem; }
.svc-group .grid { gap: 20px; }

/* Services — category tabs */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.svc-tab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 100px; font-weight: 600; font-size: .95rem; background: #fff; color: var(--navy-2); border: 1px solid var(--line); transition: .3s; box-shadow: var(--shadow-sm); cursor: pointer; }
.svc-tab .em { font-size: 1.1rem; }
.svc-tab:hover { transform: translateY(-2px); border-color: var(--blue); }
.svc-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(19,99,223,.32); }
.svc-panel { display: none; }
.svc-panel.active { display: block; animation: fadeUp .5s var(--ease); }
.svc-panel__head { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.svc-panel__intro { color: var(--muted); font-size: 1rem; text-align: center; }
.svc-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.svc-grid .card { flex: 1 1 250px; max-width: 300px; display: flex; flex-direction: column; }
.svc-hi { margin-top: auto; padding-top: 12px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; color: var(--blue); }
/* image-topped service cards (content + imagery from cropintellix.com) */
.svc-grid .svc-card { flex: 1 1 250px; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc-card__media { height: 158px; overflow: hidden; background: var(--paper-2); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { font-size: 1.04rem; margin-bottom: 8px; }
.svc-card__body p { color: var(--muted); font-size: .89rem; line-height: 1.5; }
.svc-card--carbon { border-color: rgba(37,209,93,.4); }
.svc-card--carbon .svc-hi { color: var(--green-2); }
/* compact insight (PDF) tiles */
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
.insight-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight-card__media { position: relative; height: 148px; overflow: hidden; background: var(--paper-2); }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.05); }
.insight-card__pdf { position: absolute; top: 10px; left: 10px; background: rgba(6,30,67,.85); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; }
.insight-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.insight-card__cat { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: 6px; }
.insight-card h3 { font-size: 1rem; line-height: 1.32; margin-bottom: 6px; }
.insight-card p { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.insight-card .more { margin-top: 12px; font-size: .84rem; font-weight: 600; }
.insight-card:hover .more .ico { transform: translateX(3px); }
@media (max-width: 640px) { .insight-grid { grid-template-columns: 1fr; } }

/* smaller Explore/Demo buttons on the platform flip tiles */
.flip__back .tile-btns .btn { padding: 8px 15px; font-size: .82rem; }

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

/* ============================================================
   DARK MODE
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255,255,255,.28); background: transparent;
  transition: background .25s, color .25s, border-color .25s; flex: none;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); }
.theme-toggle svg { width: 19px; height: 19px; }
.nav.scrolled .theme-toggle { color: var(--navy-2); border-color: var(--line); }
.nav.scrolled .theme-toggle:hover { background: var(--paper-2); }

html[data-theme="dark"] {
  --ink: #cdd8ee;
  --muted: #93a2bf;
  --navy: #0a1224;
  --paper: #0e1a30;
  --paper-2: #16233e;
  --white: #0a1020;
  --line: rgba(130,165,235,.16);
  --heading: #eef3ff;
  --blue: #5FB0FF;        /* brighten blue text/accents so they're visible on dark */
  --blue-2: #5FB0FF;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.4);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.65);
}
html[data-theme="dark"] body { background: var(--white); color: var(--ink); }

/* light surfaces become dark cards */
html[data-theme="dark"] .card,
html[data-theme="dark"] .dmrv__tab,
html[data-theme="dark"] .dmrv__layout,
html[data-theme="dark"] .calc__box,
html[data-theme="dark"] .seg button,
html[data-theme="dark"] .product,
html[data-theme="dark"] .tcard,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .flip__front,
html[data-theme="dark"] .flip__back,
html[data-theme="dark"] .scene__label,
html[data-theme="dark"] .procflow .pf,
html[data-theme="dark"] .svc-tab,
html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .btn--outline {
  background: #141e34; border-color: var(--line);
}
/* flip-tile front labels + service-card headings were dark navy → invisible on the dark panel */
html[data-theme="dark"] .scene__label h3,
html[data-theme="dark"] .svc-card__body h3 { color: var(--heading); }
/* text that was navy → light on dark surfaces */
html[data-theme="dark"] .dmrv__tab,
html[data-theme="dark"] .seg button,
html[data-theme="dark"] .procflow .pf,
html[data-theme="dark"] .svc-tab,
html[data-theme="dark"] .pill-list span,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .calc__controls label,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .lead { color: var(--ink); }
/* keep active segments/tabs highlighted (the dark surface override would otherwise flatten them) */
html[data-theme="dark"] .seg button.active,
html[data-theme="dark"] .dmrv__tab.active,
html[data-theme="dark"] .svc-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
/* dark-tab icons need lightening when inactive */
html[data-theme="dark"] .dmrv__tab:not(.active) .em-ico { filter: brightness(0) invert(.92); }
/* section gradient backdrops */
html[data-theme="dark"] .dmrv { background: linear-gradient(180deg, #0c1730 0%, #0a1020 100%); }
html[data-theme="dark"] .calc { background: linear-gradient(160deg, #0a1020 0%, #0c1730 100%); }
/* mobile drawer + scrolled nav glass */
html[data-theme="dark"] .drawer__panel { background: #0e1830; }
html[data-theme="dark"] .nav.scrolled { background: rgba(9,15,30,.85); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
html[data-theme="dark"] .nav.scrolled .nav__menu a { color: var(--ink); }
html[data-theme="dark"] .nav.scrolled .nav__burger span { background: var(--ink); }
html[data-theme="dark"] .nav.scrolled .theme-toggle { color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .nav.scrolled .theme-toggle:hover { background: rgba(255,255,255,.1); }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0e1830; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { border-color: #0e1830; }
/* partner logos are built for light bg — put the marquee on a light panel in dark mode */
html[data-theme="dark"] .marquee { background: #eef3fb; border-radius: 16px; padding-left: 18px; padding-right: 18px; }

/* ---------- Visitor counter badge (in nav, next to Book a demo) ---------- */
.visitor-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 13px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.28); color: #fff;
  font-weight: 700; font-size: .82rem; transition: color .25s, border-color .25s;
}
.visitor-badge svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.visitor-badge .vc-label { font-weight: 500; opacity: .82; font-size: .74rem; }
.nav.scrolled .visitor-badge { color: var(--navy-2); border-color: var(--line); }
html[data-theme="dark"] .nav.scrolled .visitor-badge { color: var(--ink); border-color: var(--line); }
@media (max-width: 600px) { .visitor-badge .vc-label { display: none; } .visitor-badge { padding: 6px 10px; } }
