/* =========================================================================
   Enovatte — company profile
   Plain CSS, no build step. Sections follow the page order:
   tokens · base · layout helpers · buttons · header · hero · clients ·
   solutions · showcase · why · process · mengbal · CTA · contact · footer ·
   division pages · 404 · motion
   ========================================================================= */

/* ---------- Fonts (self-hosted, Latin + Latin Extended) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallbacks so text doesn't jump when the web fonts arrive */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial");
  ascent-override: 98.88%;
  descent-override: 21.15%;
  line-gap-override: 0%;
  size-adjust: 104.98%;
}
@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Arial");
  ascent-override: 76.16%;
  descent-override: 20.43%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}

/* ---------- Tokens — every blue derives from the logo blue #0A3995 ---------- */
:root {
  --brand: #0a3995;
  --brand-600: #082e7a;
  --accent: #3d6fd6;
  --accent-soft: #a9c3f5;
  --glow: #7fa6f0;
  --navy-950: #051c4a;
  --navy-900: #072663;
  --tint: #e6f0ff;
  --ink: #0b1220;
  --body: #384257;
  --muted: #5a6478;
  --subtle: #667085;
  --line: #e4e8f0;
  --line-strong: #d5dbe5;
  --line-hover: #c3d4f2;
  --canvas: #f5f7fb;
  --on-dark: #e6ecf8;
  --on-dark-muted: #afc2e8;
  --danger: #b42318;
  --danger-bg: #fef3f2;

  --font-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gradient-btn: linear-gradient(135deg, var(--accent), var(--brand));
  --shadow-btn: 0 8px 24px -8px rgba(61, 111, 214, 0.6);
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow-card-hover: 0 24px 60px -20px rgba(10, 57, 149, 0.28);
  --panel-dark: radial-gradient(70% 70% at 100% 0%, rgba(61, 111, 214, 0.35), transparent 70%), linear-gradient(135deg, #0a3995, #051c4a);

  --gutter: 16px;
  --header-h: 72px;
  --section-y: clamp(80px, 10vw, 128px);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: var(--accent-soft); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 48px;
}
.section-head__main { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head__note { max-width: 420px; color: var(--muted); line-height: 1.625; }
.h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h2--xl { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
.text-gradient {
  background: linear-gradient(90deg, #c9dafb, var(--glow) 55%, #a9c3f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.layer { position: absolute; inset: 0; pointer-events: none; }
.tabular { font-variant-numeric: tabular-nums; }

/* Checklist with round tick badges (showcase + product rows) */
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.375; }
.checks .tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
}
.checks .tick .icon { width: 12px; height: 12px; stroke-width: 3; }

/* Pill tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
}
.chip--brand { border-color: var(--line-hover); background: var(--tint); color: var(--brand); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: box-shadow 0.2s, background-color 0.2s, border-color 0.2s, translate 0.2s;
}
.btn .icon--arrow { transition: translate 0.2s; }
.btn:hover .icon--arrow, .link-arrow:hover .icon--arrow { translate: 4px 0; }
.btn--primary { background: var(--gradient-btn); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { box-shadow: 0 12px 32px -8px rgba(61, 111, 214, 0.85); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--tint); }
.btn--sm { padding: 12px 20px; font-size: 14px; font-weight: 600; }
.btn--lift:hover { translate: 0 -1px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.link-arrow .icon--arrow { transition: translate 0.2s; }
/* Makes the whole card (the nearest positioned ancestor) the click target */
.stretched::after { content: ""; position: absolute; inset: 0; }
.magnetic { display: inline-flex; will-change: transform; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--glow), var(--accent-soft));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-solid {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 28, 74, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.site-header__logo img { width: auto; height: 26px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav__link, .nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover, .nav__toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav__toggle[aria-expanded="true"], .nav__toggle.is-current { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav__toggle .icon { width: 16px; height: 16px; transition: rotate 0.2s; }
.nav__toggle[aria-expanded="true"] .icon { rotate: 180deg; }
.nav__dropdown { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: -24px;
  width: min(640px, 90vw);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(7, 38, 99, 0.97);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  animation: drop-in 0.18s ease-out;
}
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  transition: background-color 0.2s;
}
.mega__item:hover, .mega__item[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
.mega__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(61, 111, 214, 0.2);
  color: var(--accent-soft);
}
.mega__icon .icon { width: 20px; height: 20px; }
.mega__text { display: flex; flex-direction: column; gap: 4px; }
.mega__name { font-size: 15px; font-weight: 700; }
.mega__tag { font-size: 13px; line-height: 1.375; color: var(--on-dark-muted); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.lang > * {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 999px;
}
.lang a { color: var(--on-dark-muted); }
.lang a:hover { color: #fff; }
.lang [aria-current] { background: #fff; color: var(--navy-900); }
.site-header__cta { display: none; }
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon--close, .menu-btn[aria-expanded="true"] .icon--menu { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }
.mobile-menu {
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  animation: menu-open 0.3s var(--ease);
}
.mobile-menu__inner { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; padding-bottom: 28px; }
.mobile-menu__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.mobile-menu__divisions { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__division {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}
.mobile-menu__division .icon { width: 20px; height: 20px; color: var(--accent-soft); }
.mobile-menu__division[aria-current="page"] { background: rgba(61, 111, 214, 0.25); }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu__links a { padding: 14px; font-weight: 600; color: var(--on-dark); }
@media (min-width: 640px) {
  .lang > * { min-width: 36px; min-height: 32px; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .site-header__cta {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--gradient-btn);
    box-shadow: var(--shadow-btn);
    font-size: 13px;
    font-weight: 600;
    transition: translate 0.2s;
  }
  .site-header__cta:hover { translate: 0 -1px; }
  .menu-btn, .mobile-menu { display: none; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(900px, 100svh);
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
}
/* Network of drifting nodes drawn by main.js on the canvas; without JS the glow and grid still show */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--navy-950);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 78% 22%, rgba(61, 111, 214, 0.38), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(127, 166, 240, 0.14), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(10, 57, 149, 0.45), transparent 70%);
}
.hero__bg.grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 70% 40%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 95% 85% at 70% 40%, #000 35%, transparent 85%);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Keeps the headline side calm and readable */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 28, 74, 0.9) 0%, rgba(5, 28, 74, 0.55) 38%, rgba(5, 28, 74, 0) 70%),
    linear-gradient(0deg, #051c4a 0%, rgba(5, 28, 74, 0) 35%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 30%), rgba(127, 166, 240, 0.18), transparent 60%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(120px, 14vw, 168px);
  padding-bottom: clamp(48px, 6vw, 72px);
  will-change: transform, opacity;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(169, 195, 245, 0.3);
  border-radius: 999px;
  background: rgba(61, 111, 214, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}
.pulse-dot { position: relative; display: flex; width: 8px; height: 8px; }
.pulse-dot::before, .pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--glow); }
.pulse-dot::before { opacity: 0.6; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) 3; }
.hero__title {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero__lead {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.625;
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions > * { flex: 1; }
.hero__actions .magnetic .btn { width: 100%; }
.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: clamp(56px, 7vw, 88px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 16px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: 12.5px; color: var(--on-dark-muted); }
.stats dd { font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 767px) {
  .hero__shade { background: linear-gradient(0deg, #051c4a 0%, rgba(5, 28, 74, 0.75) 45%, rgba(5, 28, 74, 0.35) 100%); }
}
@media (min-width: 640px) {
  .hero__actions > * { flex: none; }
  .stats > div { padding: 24px 28px; }
  .stats dt { font-size: 14px; }
}
@media (min-width: 768px) {
  .hero__glow { display: block; }
}

/* Words slide up one after another from behind a mask (the HTML keeps the full text) */
.words > span { display: inline-block; overflow: hidden; padding-bottom: 0.08em; vertical-align: bottom; }
.words > span > span { display: inline-block; animation: word-up 0.9s var(--ease) both; animation-delay: var(--d, 0s); }

/* Staggered entrance on page load */
.rise { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Client logos ---------- */
.clients { padding-block: 44px; border-bottom: 1px solid var(--line); background: #fff; }
.clients__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.clients__title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Two copies side by side; the track slides left by one copy for a seamless loop */
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 64s linear infinite; }
.marquee__track:hover, .marquee__track:focus-within, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__copy { display: contents; }
.logo {
  display: flex;
  flex-shrink: 0;
  width: 132px;
  height: 68px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.logo:hover img { opacity: 1; filter: none; }
.pause-btn { display: none; }
.js .pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  transition: border-color 0.2s, color 0.2s;
}
.pause-btn:hover { border-color: var(--brand); color: var(--brand); }
.pause-btn .icon { width: 14px; height: 14px; stroke-width: 3; }
.pause-btn .icon--play { fill: currentColor; stroke: none; }
.pause-btn .icon--play, .pause-btn[aria-pressed="true"] .icon--pause { display: none; }
.pause-btn[aria-pressed="true"] .icon--play { display: block; }
@media (min-width: 640px) {
  .logo { width: 168px; height: 84px; }
}

/* ---------- Solutions (bento) ---------- */
.bento { display: grid; gap: 20px; }
.card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: translate 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}
.card:hover { translate: 0 -4px; border-color: var(--line-hover); box-shadow: var(--shadow-card-hover); }
/* Soft light that follows the mouse (position set by JS) */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(61, 111, 214, 0.1), transparent 60%);
  transition: opacity 0.3s;
}
.spotlight--dark::before { background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(127, 166, 240, 0.16), transparent 60%); }
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

.icon-tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--brand);
  transition: background-color 0.3s, color 0.3s;
}
.icon-tile .icon { width: 24px; height: 24px; }
.card:hover .icon-tile { background: var(--brand); color: #fff; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 13px; }
.icon-tile--sm .icon { width: 22px; height: 22px; }
.index { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); }

.bento-card {
  display: grid;
  gap: 24px;
  grid-template-rows: auto 1fr;
  padding: clamp(20px, 2.4vw, 28px);
}
.bento-card__visual { height: 172px; }
.bento-card--wide .bento-card__visual { height: 200px; }
.bento-card__body { display: flex; flex-direction: column; gap: 14px; }
.bento-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.bento-card__title { font-size: clamp(21px, 2vw, 26px); font-weight: 800; letter-spacing: -0.025em; }
.bento-card__desc { font-size: 15px; line-height: 1.625; color: var(--muted); }
.bento-card .link-arrow { margin-top: auto; padding-top: 8px; }
.card:hover .link-arrow .icon--arrow { translate: 4px 0; }
@media (min-width: 640px) {
  .bento-card--wide { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bento-card--wide .bento-card__visual { height: auto; min-height: 260px; }
  .bento-card--flip .bento-card__visual { order: 1; }
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
}

/* Decorative visuals inside the bento cards */
.panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--panel-dark);
  color: #fff;
}
.visual-hotel > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  transform-origin: 62% 45%;
  scale: 1.8;
  opacity: 0.85;
  transition: scale 0.7s ease-out;
}
.card:hover .visual-hotel > img:first-child { scale: 1.88; }
.visual-hotel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 28, 74, 0.75), transparent 60%); }
.visual-hotel__phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 1;
  width: 58%;
  max-width: 240px;
  height: 62%;
  translate: 0 6%;
  transition: translate 0.5s;
}
.visual-hotel__phone img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
.card:hover .visual-hotel__phone { translate: 0 1%; }
.visual-bars { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
.visual-bars__row { display: flex; flex-direction: column; gap: 6px; }
.visual-bars__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.visual-bars__track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.visual-bars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  transform-origin: left;
  scale: 0.9 1;
  transition: scale 0.7s ease-out;
}
.card:hover .visual-bars__fill { scale: 1 1; }
.visual-status { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.visual-status__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.visual-status__row .icon { width: 16px; height: 16px; color: var(--accent-soft); }
.visual-status__name { flex: 1; overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.status-dot { position: relative; display: flex; width: 8px; height: 8px; }
.status-dot::before, .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399; }
.status-dot::before { opacity: 0.5; animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.visual-tv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; }
.visual-tv__frame {
  width: 100%;
  max-width: 400px;
  border: 6px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(10, 57, 149, 0.5);
}
.visual-tv__screen { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; }
.visual-tv__screen .grid-bg { position: absolute; inset: 0; opacity: 0.7; }
.visual-tv__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-btn);
  box-shadow: 0 10px 24px -10px rgba(61, 111, 214, 0.8);
  transition: scale 0.5s;
}
.visual-tv__badge .icon { width: 28px; height: 28px; }
.card:hover .visual-tv__badge { scale: 1.1; }
.visual-tv__platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.visual-tv__platforms span { padding: 4px 10px; border-radius: 999px; background: var(--canvas); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ---------- Showcase (tabs) ---------- */
.showcase { padding-bottom: var(--section-y); }
.tabs {
  position: relative;
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--gradient-btn);
  box-shadow: 0 8px 20px -8px rgba(61, 111, 214, 0.6);
  transition: translate 0.45s var(--ease), width 0.45s var(--ease);
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: #fff; }
/* Without JS positioning the pill, the selected tab paints its own background */
.tabs:not(.has-pill) .tab[aria-selected="true"] { background: var(--gradient-btn); }
.showcase__panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.showcase__grid { display: grid; align-items: center; gap: clamp(28px, 4vw, 56px); animation: fade-up 0.3s var(--ease); }
.showcase__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.showcase__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.showcase__desc { line-height: 1.625; color: var(--muted); }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
@media (min-width: 768px) {
  .tabs { width: max-content; border-radius: 999px; }
}
@media (min-width: 1024px) {
  .showcase__grid { grid-template-columns: 1.25fr 1fr; }
  .showcase__text { padding-right: 8px; }
}

/* Framed product screenshot; --contain keeps phone mockups uncropped */
.shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--navy-950);
  box-shadow: var(--shadow-card-hover);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: scale 0.7s ease-out;
}
.shot:hover img { scale: 1.04; }
.shot--contain { background: radial-gradient(70% 70% at 50% 40%, #0e43aa, #051c4a); }
.shot--contain img { object-fit: contain; padding: 4%; }

/* ---------- Why Enovatte (dark) ---------- */
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--navy-950);
  color: #fff;
}
.why__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(61, 111, 214, 0.25), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(127, 166, 240, 0.12), transparent 70%);
}
.beams { position: absolute; inset: 0; z-index: -1; opacity: 0.8; pointer-events: none; }
.beams svg { width: 100%; height: 100%; }
.why__grid { display: grid; align-items: start; gap: clamp(40px, 6vw, 88px); }
.why__intro { display: flex; flex-direction: column; gap: 20px; }
.why__text { font-size: 17px; line-height: 1.625; color: var(--on-dark-muted); }
.pillars { display: grid; gap: 16px; }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s;
}
.pillar:hover { border-color: rgba(169, 195, 245, 0.3); }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-btn);
  box-shadow: 0 10px 24px -10px rgba(61, 111, 214, 0.8);
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar h3 { margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pillar p { font-size: 15px; line-height: 1.625; color: var(--on-dark-muted); }
@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: 0.9fr 1.1fr; }
  .why__intro { position: sticky; top: 112px; }
}

/* ---------- Process ---------- */
.process { padding-top: var(--section-y); padding-bottom: clamp(40px, 5vw, 64px); }
.process__track { position: relative; }
.process__line, .process__fill { position: absolute; top: 0; left: 0; right: 0; display: none; height: 2px; }
.process__line { background: var(--line-strong); }
/* The blue line fills from left to right as the steps scroll through the viewport (--progress set by JS) */
.process__fill { background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.steps { display: grid; gap: 40px 20px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 2px solid var(--line-strong);
}
.step__dot {
  position: absolute;
  top: -7px;
  left: 0;
  display: none;
  width: 14px;
  height: 14px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.step__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); scale: 0; transition: scale 0.25s var(--ease); }
.step.is-reached .step__dot::after { scale: 1; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--brand); }
.step h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.625; color: var(--muted); }
@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .process__line, .process__fill, .step__dot { display: block; }
  .step { border-top: 0; }
}

/* ---------- Mengbal teaser ---------- */
.mengbal-section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); }
.mengbal {
  position: relative;
  display: grid;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: radial-gradient(60% 80% at 100% 0%, rgba(127, 166, 240, 0.2), transparent 70%), linear-gradient(135deg, #0a3995, #051c4a);
  color: #fff;
}
.mengbal__copy { display: flex; flex-direction: column; gap: 16px; }
.soon {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid rgba(169, 195, 245, 0.3);
  border-radius: 999px;
  background: rgba(61, 111, 214, 0.15);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.mengbal__title { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.mengbal__sub { font-size: 17px; font-weight: 600; color: var(--accent-soft); }
.mengbal__text { max-width: 460px; line-height: 1.625; color: var(--on-dark-muted); }
.mengbal .btn { align-self: flex-start; margin-top: 8px; padding: 14px 24px; }
/* Mini football pitch that tilts toward the viewer as it scrolls (angles set by JS) */
.pitch-wrap { perspective: 900px; }
.pitch {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: repeating-linear-gradient(90deg, #1b7a3e 0 10%, #1f8a46 10% 20%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: rotateX(var(--px, 20deg)) rotateZ(var(--pz, -4deg)) scale(var(--ps, 1));
}
.pitch > span { position: absolute; border: 2px solid rgba(255, 255, 255, 0.7); }
.pitch__half { top: 0; bottom: 0; left: 50%; width: 0; border-width: 0 0 0 2px !important; }
.pitch__circle { top: 50%; left: 50%; aspect-ratio: 1; width: 22%; border-radius: 50%; translate: -50% -50%; }
.pitch__box { top: 25%; width: 14%; height: 50%; }
.pitch__box--l { left: -2px; border-left: 0 !important; }
.pitch__box--r { right: -2px; border-right: 0 !important; }
.pitch__ball {
  top: 60%;
  left: 30%;
  aspect-ratio: 1;
  width: 4%;
  border: 0 !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
  animation: ball 6s ease-in-out infinite;
}
@media (min-width: 768px) {
  .mengbal { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.cta { padding-bottom: var(--section-y); }
.cta--white { background: #fff; }
.cta__box {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(10, 57, 149, 0.7);
}
/* Slowly drifting gradient behind the band */
.cta__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #0a3995, #3d6fd6, #082e7a, #3d6fd6, #0a3995); background-size: 300% 300%; animation: gradient-drift 14s ease-in-out infinite; }
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(127, 166, 240, 0.35), transparent 60%); }
.cta__grid { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000 20%, transparent 70%); }
.cta__copy { display: flex; flex: 1 1 420px; flex-direction: column; gap: 12px; }
.cta__title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.cta__text { max-width: 560px; font-size: 17px; line-height: 1.625; color: rgba(255, 255, 255, 0.85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__actions .btn { padding: 14px 24px; }
.cta__actions .btn--white { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.cta__actions .btn--ghost { border-color: rgba(255, 255, 255, 0.45); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(61, 111, 214, 0.3), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(127, 166, 240, 0.1), transparent 70%),
    var(--navy-900);
  color: #fff;
}
.contact__grid { display: grid; align-items: start; gap: 48px clamp(40px, 6vw, 88px); }
.contact__intro { display: flex; flex-direction: column; gap: 20px; }
.contact__text { max-width: 460px; font-size: 17px; line-height: 1.625; color: var(--on-dark-muted); }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.contact__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s;
}
.contact__item:hover { border-color: rgba(169, 195, 245, 0.4); }
.contact__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(61, 111, 214, 0.2); color: var(--accent-soft); }
.contact__item small { display: block; margin-bottom: 2px; font-size: 12px; color: var(--on-dark-muted); }
.contact__item a { font-size: 15px; font-weight: 600; }
.contact__item a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.contact__item a:hover { color: var(--accent-soft); }
.form-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full, .form__alert, .form__footer { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--body); }
.req { font-weight: 700; color: var(--danger); }
.input {
  width: 100%;
  height: 50px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--canvas);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(61, 111, 214, 0.15); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
textarea.input { height: auto; padding-block: 12px; line-height: 1.5; resize: vertical; }
.field__error { font-size: 13px; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.form__alert { padding: 12px 16px; border: 1px solid #fecdca; border-radius: 12px; background: var(--danger-bg); font-size: 14px; font-weight: 600; color: var(--danger); }
.form__footer { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.form__footer .btn { width: 100%; padding: 16px 28px; }
.form__note { text-align: center; font-size: 13px; color: var(--subtle); }
.sent { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 320px; padding-block: 24px; animation: fade-up 0.4s var(--ease); }
.sent__check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-btn); color: #fff; }
.sent__check .icon { width: 24px; height: 24px; stroke-width: 2.5; }
.sent h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sent p { max-width: 420px; line-height: 1.625; color: var(--muted); }
.sent__warn { padding: 12px 16px; border: 1px solid #fedf89; border-radius: 12px; background: #fffaeb; font-size: 14px; color: #93370d; }
.sent .btn { align-self: flex-start; }
.sent__again { align-self: flex-start; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--brand); }
.sent__again:hover { text-decoration: underline; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); background: var(--navy-950); color: #fff; }
.site-footer__inner { display: flex; flex-direction: column; gap: 56px; padding-top: 72px; padding-bottom: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.site-footer__brand img { width: auto; height: 28px; }
.site-footer__tagline { font-size: 18px; line-height: 1.375; font-weight: 700; letter-spacing: -0.01em; color: var(--on-dark); }
.site-footer__sub { font-size: 14px; line-height: 1.625; color: var(--on-dark-muted); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-col__links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col__links a, .footer-col__links span { display: inline-block; padding-block: 10px; font-size: 15px; line-height: 1.625; color: var(--on-dark-muted); transition: color 0.2s; }
.footer-col__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 640px) {
  .footer-col__links a, .footer-col__links span { padding-block: 6px; }
}

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.7);
  transition: scale 0.2s;
}
.wa-float:hover { scale: 1.05; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
@media (min-width: 640px) {
  .wa-float { right: 20px; bottom: 20px; width: 56px; height: 56px; }
}

/* ---------- Division pages ---------- */
.dhero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #fff; }
.dhero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 85% 10%, rgba(61, 111, 214, 0.38), transparent 70%),
    radial-gradient(45% 50% at 5% 100%, rgba(127, 166, 240, 0.14), transparent 70%),
    radial-gradient(60% 60% at 50% 120%, rgba(10, 57, 149, 0.55), transparent 70%);
}
.dhero__grid-bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); }
.dhero .hero__glow { background: radial-gradient(560px circle at var(--gx, 75%) var(--gy, 20%), rgba(127, 166, 240, 0.16), transparent 60%); }
.dhero__inner { padding-top: 112px; padding-bottom: clamp(64px, 8vw, 104px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
/* Padding enlarges the tap target past 24px; the negative margin keeps the line height */
.crumbs a { display: inline-block; margin-block: -6px; padding-block: 6px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.dhero__grid { display: grid; align-items: end; gap: 40px clamp(40px, 6vw, 88px); margin-top: clamp(40px, 6vw, 72px); }
.dhero__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dhero__kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 14px; color: var(--accent-soft); }
.dhero__kicker span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.dhero__kicker .icon { width: 20px; height: 20px; }
.dhero__title { font-size: clamp(40px, 6vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.dhero__lead { max-width: 640px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.625; color: var(--on-dark-muted); }
.jump {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.jump__label { padding: 0 10px 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.jump a { display: flex; align-items: baseline; gap: 14px; padding: 10px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: background-color 0.2s; }
.jump a:hover { background: rgba(255, 255, 255, 0.07); }
.jump a small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--on-dark-muted); }
.jump a > span { flex: 1; }
.jump a .icon { width: 16px; height: 16px; opacity: 0; translate: -4px 0; transition: opacity 0.2s, translate 0.2s; }
.jump a:hover .icon { opacity: 1; translate: 0 0; }
@media (min-width: 640px) {
  .jump { display: flex; }
}
@media (min-width: 1024px) {
  .dhero__grid { grid-template-columns: 1.4fr 0.8fr; }
}

.products { padding-block: clamp(64px, 8vw, 112px); }
.products__label { margin-bottom: 16px; }
.product { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); scroll-margin-top: 96px; }
.product__grid { display: grid; align-items: center; gap: 40px clamp(40px, 6vw, 88px); scroll-margin-top: 96px; }
.product__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product__num { font-family: var(--font-mono); font-size: 13px; color: var(--brand); }
.product__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.product__desc { max-width: 520px; font-size: 17px; line-height: 1.625; color: var(--body); }
.product__features { display: grid; gap: 10px 20px; }
.product .link-arrow { align-self: flex-start; margin-top: 4px; }
.product__media { min-width: 0; }
@media (min-width: 640px) {
  .product__features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .product__grid { grid-template-columns: 1fr 1.1fr; }
  .product--flip .product__text { order: 2; }
}

.services { display: grid; gap: 20px; margin-top: 12px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; }
.service .icon-tile { margin-bottom: 8px; scroll-margin-top: 112px; }
.service__num { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.service h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.service p { font-size: 15px; line-height: 1.625; color: var(--muted); }
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.highlights {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: radial-gradient(60% 80% at 100% 0%, rgba(61, 111, 214, 0.35), transparent 70%), linear-gradient(135deg, #0a3995, #051c4a);
  color: #fff;
}
.highlights h2 { margin-bottom: 24px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
/* Phones: 2 columns (an odd last item spans both); wider: one row */
.highlights dl { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; }
.highlights dl > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px; border-color: rgba(255, 255, 255, 0.1); border-style: solid; border-width: 0; }
.highlights dl > div:nth-child(even) { border-left-width: 1px; }
.highlights dl > div:nth-child(n + 3) { border-top-width: 1px; }
.highlights dl > div:nth-child(odd):last-child { grid-column: span 2; }
.highlights dt { font-size: 14px; color: var(--on-dark-muted); }
.highlights dd { font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 640px) {
  .highlights dl { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .highlights dl > div { padding: 24px 28px; border-width: 0 0 0 1px !important; grid-column: auto !important; }
  .highlights dl > div:first-child { border-left-width: 0 !important; }
}
.products .mengbal { margin-top: 48px; }

.others { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); background: #fff; }
.others__inner { display: flex; flex-direction: column; gap: 32px; }
.others h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.others__grid { display: grid; gap: 20px; }
.other {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 28px;
  border-radius: 20px;
  background: var(--canvas);
}
.other:hover { background: #fff; }
.other .icon-tile { margin-bottom: 8px; }
.other__num { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.other__name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.other__tag { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.other .link-arrow { margin-top: auto; min-height: 0; padding-top: 8px; font-size: 14px; }
@media (min-width: 768px) {
  .others__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Product illustrations ----------
   Drawn in HTML/SVG for products without a screenshot. Values fill in / draw in
   when the illustration scrolls into view (.is-visible, added by main.js). */
.illo {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  padding: clamp(14px, 2.6vw, 28px);
  border-radius: 24px;
  background: var(--panel-dark);
  color: #fff;
  font-size: clamp(11px, 1.1vw, 13px);
}
.illo__grid { position: absolute; inset: 0; opacity: 0.6; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.illo__window {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transition: translate 0.5s;
}
.illo:hover .illo__window { translate: 0 -4px; }
.illo__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.illo__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.illo__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.9em; color: var(--on-dark-muted); }
.illo__body { display: flex; flex: 1; gap: clamp(10px, 2vw, 22px); min-height: 0; padding: clamp(12px, 2.2vw, 24px); }
.illo__label { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.illo__big { font-size: 2.6em; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.illo__tag { align-self: flex-start; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.15); font-family: var(--font-mono); font-size: 0.85em; color: #6ee7b7; }
.illo__tag--bad { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.illo__rows { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.illo__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 200ms);
}
.illo__row > :nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.illo__row b { font-weight: 500; color: var(--accent-soft); }
.illo__row .icon { width: 1.2em; height: 1.2em; color: #6ee7b7; }
.illo__row .icon--x { color: #fca5a5; }
.js .illo:not(.is-visible) .illo__row { opacity: 0; translate: 0 8px; }

/* OEE: three rings (pathLength 100, so --v is a percentage) */
.oee__main { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 8px; }
.rings { display: grid; flex: 1.5; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ring svg { width: 100%; max-width: 92px; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 3.2; }
.ring__track { stroke: rgba(255, 255, 255, 0.1); }
.ring__value { stroke: var(--glow); stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.2s var(--ease) 0.3s; }
.js .illo:not(.is-visible) .ring__value { stroke-dasharray: 0 100; }
.ring strong { font-size: 1.35em; font-weight: 800; }
.ring .illo__label { max-width: 100%; overflow: hidden; font-size: 0.72em; letter-spacing: 0.02em; white-space: nowrap; text-overflow: ellipsis; }

/* Weighing: LCD readout + ticket log */
.scale-display {
  display: flex;
  flex: 0 0 44%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(127, 166, 240, 0.25);
  border-radius: 14px;
  background: rgba(5, 28, 74, 0.6);
  box-shadow: inset 0 0 30px rgba(61, 111, 214, 0.25);
}
.scale-display .illo__big { font-family: var(--font-mono); font-weight: 500; color: #c9dafb; text-shadow: 0 0 18px rgba(127, 166, 240, 0.6); }
.scale-display .illo__big small { font-size: 0.4em; color: var(--on-dark-muted); text-shadow: none; }
.meter { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.meter span { display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: left; transition: scale 1.2s var(--ease) 0.3s; }
.js .illo:not(.is-visible) .meter span { scale: 0 1; }

/* Energy: readings + line chart (pathLength 1) + three phases */
.energy { flex-direction: column; }
.energy__stats { display: flex; gap: clamp(12px, 3vw, 32px); }
.energy__stats div { display: flex; flex-direction: column; gap: 4px; }
.energy__stats strong { font-size: 1.6em; font-weight: 800; letter-spacing: -0.02em; }
.energy__stats strong small { font-size: 0.55em; font-weight: 600; color: var(--on-dark-muted); }
.energy__chart { position: relative; flex: 1; min-height: 0; }
/* Charts wipe in from the left */
.energy__chart svg, .spark__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease) 0.3s; }
.js .illo:not(.is-visible) .energy__chart svg, .js .illo:not(.is-visible) .spark__chart svg { clip-path: inset(0 100% 0 0); }
.energy__line, .spark polyline { fill: none; stroke: var(--glow); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.energy__area { fill: url(#energy-fill); }
.energy__phases { display: flex; gap: 10px; }
.energy__phases div { display: flex; flex: 1; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.85em; color: var(--on-dark-muted); }
.energy__phases .meter { flex: 1; height: 5px; }

/* Custom software: code + app + integrations */
.code { display: flex; flex: 1.6; flex-direction: column; gap: 5px; min-width: 0; font-family: var(--font-mono); font-size: 0.92em; line-height: 1.45; white-space: nowrap; }
.code > span { overflow: hidden; text-overflow: ellipsis; transition: opacity 0.4s; transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .illo:not(.is-visible) .code > span { opacity: 0; }
.code .k { color: #c4b5fd; }
.code .f { color: var(--glow); }
.code .s { color: #6ee7b7; }
.code .c { color: rgba(175, 194, 232, 0.6); }
.chips-dark { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips-dark span { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-soft); }
.phone {
  display: flex;
  flex: 0 0 26%;
  flex-direction: column;
  gap: 6px;
  align-self: center;
  height: 100%;
  max-height: 100%;
  padding: 10px 8px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: var(--navy-950);
}
.phone > b { display: block; width: 45%; height: 5px; margin: 0 auto 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.phone > span { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.phone > span:nth-of-type(1) { background: rgba(61, 111, 214, 0.45); }
.phone > span i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.phone > span i + i { width: 60%; background: rgba(255, 255, 255, 0.15); }

/* Game development: match on a TV + production pipeline */
.game { flex-direction: column; }
.game__screen {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, #1b7a3e 0 10%, #1f8a46 10% 20%);
  perspective: 500px;
}
.game__pitch { position: absolute; inset: 16% 8% 4%; border: 2px solid rgba(255, 255, 255, 0.55); transform: rotateX(38deg); transform-origin: bottom; }
.game__pitch::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(255, 255, 255, 0.55); }
.game__pitch::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 50%; translate: -50% -50%; }
.game__player { position: absolute; width: 3.4%; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.game__player--away { background: #f97316; }
.game__ball { position: absolute; top: 60%; left: 30%; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); animation: ball 6s ease-in-out infinite; }
.game__hud {
  position: absolute;
  top: 8px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(5, 28, 74, 0.85);
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: nowrap;
  translate: -50% 0;
}
.game__hud strong { font-family: var(--font-sans); font-weight: 800; }
.game__hud em { font-style: normal; color: #6ee7b7; }
.pipeline { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.85em; }
.pipeline span { flex: 1; padding: 5px 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; text-align: center; white-space: nowrap; text-overflow: ellipsis; color: var(--accent-soft); transition: background-color 0.4s, color 0.4s; transition-delay: calc(var(--i, 0) * 250ms + 400ms); }
.illo.is-visible .pipeline span, html:not(.js) .pipeline span { background: rgba(61, 111, 214, 0.3); color: #fff; }
.pipeline i { font-style: normal; color: rgba(255, 255, 255, 0.3); }

/* Small illustrations on top of the Managed IT service cards */
.illo--card { aspect-ratio: auto; height: 150px; margin-bottom: 8px; padding: 14px; border-radius: 14px; }
.illo--card .illo__body { padding: 0; }
.net svg { width: 100%; height: 100%; overflow: visible; }
.net line { stroke: rgba(127, 166, 240, 0.55); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dash-flow 1.2s linear infinite; }
.net circle { fill: var(--navy-950); stroke: var(--glow); stroke-width: 2; }
.net .net__core { fill: var(--accent); stroke: #c9dafb; }
.net .net__ok { fill: #34d399; stroke: none; }
.rack { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 7px; }
.rack__unit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.rack__unit i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; animation: blink 1.6s steps(2) infinite; animation-delay: var(--d, 0s); }
.rack__unit i + i { background: var(--glow); box-shadow: 0 0 6px var(--glow); }
.rack__unit .meter { flex: 1; height: 5px; }
.rack__unit small { font-family: var(--font-mono); color: var(--on-dark-muted); }
.shield { display: grid; flex: 0 0 32%; place-items: center; }
.shield svg { width: 72%; max-width: 70px; filter: drop-shadow(0 0 14px rgba(127, 166, 240, 0.5)); }
.shield path { fill: rgba(61, 111, 214, 0.35); stroke: #c9dafb; stroke-width: 1.5; stroke-linejoin: round; }
.shield path + path { fill: none; stroke: #6ee7b7; stroke-width: 2; stroke-linecap: round; }
.chat { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 8px; }
/* Color and size set here so the card's own paragraph style (.service p) doesn't leak in */
.chat p { max-width: 82%; padding: 7px 11px; color: #fff; font-size: inherit; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, 0.08); line-height: 1.35; transition: opacity 0.5s, translate 0.5s; transition-delay: calc(var(--i, 0) * 350ms + 200ms); }
.chat p.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--gradient-btn); }
.js .illo:not(.is-visible) .chat p { opacity: 0; translate: 0 8px; }
.backup { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 7px; }
.backup .meter { margin-top: 4px; }
.spark { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.spark__stats { display: flex; gap: 18px; }
.spark__stats strong { display: block; font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.spark__chart { position: relative; flex: 1; min-height: 0; }
/* Phones: product illustrations grow to fit and stack their two halves */
@media (max-width: 639px) {
  .illo:not(.illo--card) { aspect-ratio: auto; min-height: 220px; }
  .illo__body:has(.rings), .illo__body:has(.scale-display) { flex-direction: column; }
  .scale-display { flex-basis: auto; }
  .oee__main { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .phone, .pipeline i { display: none; }
}
@keyframes dash-flow { to { stroke-dashoffset: -18; } }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding-inline: 16px;
  background: var(--navy-950);
  color: #fff;
}
.notfound__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 80% 10%, rgba(61, 111, 214, 0.38), transparent 70%), radial-gradient(45% 50% at 10% 100%, rgba(127, 166, 240, 0.14), transparent 70%); }
.notfound__grid { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.notfound main { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 560px; text-align: center; }
.notfound main img { width: auto; height: 28px; }
.notfound__code { font-size: clamp(96px, 18vw, 180px); line-height: 1; font-weight: 800; letter-spacing: -0.06em; }
.notfound h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.notfound p { color: var(--on-dark-muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.notfound__actions .btn { padding: 14px 24px; }

/* ---------- Scroll reveal ----------
   Only hidden once JS has marked the page (html.js), so content is always visible without JS. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; translate: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes word-up { from { translate: 0 110%; } }
@keyframes fade-up { from { opacity: 0; translate: 0 12px; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes menu-open { from { max-height: 0; } }
@keyframes ping { 75%, 100% { scale: 2; opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes gradient-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ball {
  0%, 100% { left: 30%; top: 60%; }
  25% { left: 55%; top: 35%; }
  50% { left: 78%; top: 48%; }
  75% { left: 48%; top: 68%; }
}

/* ---------- Reduced motion ----------
   Everything appears in its final state; the logo marquee becomes a static grid. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
  .marquee__copy, .js .pause-btn { display: none; }
  .logo { width: 100%; height: auto; aspect-ratio: 2 / 1; padding: 8% 12%; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 640px) {
  .marquee__track { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .marquee__track { grid-template-columns: repeat(8, 1fr); }
}
