/* ==========================================================================
   NOVA CODE × Odoo — presentation site
   ========================================================================== */

@font-face {
  font-family: Manrope;
  src: url('assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Nova Digital';
  src: url('assets/nova-font.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --ink: #17201b;
  --ink-2: #39433d;
  --muted: #6a736d;
  --line: #dce0d8;
  --line-strong: #c9d0c3;

  --dark: #111a16;
  --dark-2: #17231e;
  --dark-3: #1e2c26;
  --dark-line: #2a3830;
  --dark-muted: #95a298;
  --dark-ink: #eef2ea;

  --lime: #d7ef86;
  --lime-strong: #c6e35e;
  --green: #829d53;
  --green-deep: #5d7834;
  --odoo: #875b7b;

  --radius: 14px;
  --radius-lg: 22px;
  --pad-x: clamp(20px, 5vw, 76px);
  --max: 1500px;
  --header-h: 86px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Manrope, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; width: 24px; height: 24px; }
p, h1, h2, h3, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #9db84c;
  outline-offset: 4px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.mini-line { width: 26px; height: 1px; background: currentColor; }

.brand-word {
  font-family: 'Nova Digital', var(--font);
  font-weight: 400;
  letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px #5d783466; }
.button span { font-size: 22px; line-height: 1; }
.lime { background: var(--lime); color: var(--ink); }
.lime:hover { background: var(--lime-strong); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, border-color .35s, color .35s;
}

.header.on-dark {
  background: color-mix(in srgb, var(--dark) 86%, transparent);
  border-color: var(--dark-line);
  color: var(--dark-ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  line-height: 1;
}
.brand img { object-fit: contain; }

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 14px;
  font-weight: 600;
}

.header-nav a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.header-nav a:hover { color: var(--green-deep); }
.header-nav a.active::after, .header-nav a:hover::after { transform: scaleX(1); }
.header.on-dark .header-nav a:hover { color: var(--lime); }
.header.on-dark .header-nav a::after { background: var(--lime); }
.nav-feature span { margin-left: 8px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.present-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  transition: background-color .2s, border-color .2s, color .2s;
}
.present-button svg { width: 17px; height: 17px; }
.present-button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.header.on-dark .present-button { border-color: #3a4a41; }
.header.on-dark .present-button:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-button span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-button[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.header.on-dark .menu-button { border-color: #3a4a41; }

/* ---------- Sections ---------- */
.section { position: relative; padding-inline: var(--pad-x); scroll-margin-top: calc(var(--header-h) - 1px); }
.section > * { max-width: var(--max); margin-inline: auto; }
.roomy { padding-block: clamp(52px, 5.2vw, 80px); }

.dark { background: var(--dark); color: var(--dark-ink); }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.dark .section-top { border-color: var(--dark-line); }

.aside-label { font-size: 13px; color: var(--muted); text-align: right; }
.dark .aside-label { color: var(--dark-muted); }

h1, h2 { font-weight: 550; }

h2 {
  text-wrap: balance;
  font-size: clamp(40px, 5.3vw, 80px);
  line-height: 1.04;
  letter-spacing: -.048em;
}
h2 span { color: var(--green); }
.dark h2 span { color: var(--lime); }

.heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.heading-row > p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 440px; justify-self: end; }
.dark .heading-row > p { color: var(--dark-muted); }

/* ---------- Reveal animation ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.hero { overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  min-height: 680px;
}

.hero-copy { padding: 65px 0 58px; position: relative; z-index: 2; }

h1 {
  font-size: clamp(64px, 7.3vw, 108px);
  line-height: 1.03;
  letter-spacing: -.056em;
  margin: 32px 0 27px;
}
h1 span { color: var(--green); }

.hero-copy > p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.hero-copy .button { margin-top: 30px; }

.hero-visual {
  position: relative;
  height: 620px;
  perspective: 1100px;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #dce6cf80 5%, #e5eadb50 45%, transparent 70%);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 87%;
  aspect-ratio: 1;
  border: 1px solid #d5ddcc;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(55deg) rotate(-23deg);
  pointer-events: none;
}
.orbit-two { width: 108%; transform: translate(-50%, -50%) rotateX(54deg) rotate(25deg); }
.orbit-three { width: 70%; transform: translate(-50%, -50%) rotateX(54deg) rotate(70deg); border-style: dashed; }

.hero-stage {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s ease-out;
}

.core-base {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 240px;
  height: 180px;
  border-radius: 25px;
  border: 1px solid #bdc8b4;
  background: #dce4d3;
  box-shadow: 0 32px 30px -20px #1b351e3b;
  transform: translate(-50%, -25%) rotateX(45deg) rotateZ(-25deg);
}
.base-mid { background: #e7edde; transform: translate(-50%, -41%) rotateX(45deg) rotateZ(-25deg); }

.hero-core {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 235px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 23px;
  background: linear-gradient(145deg, #fff, #edf2e7);
  border: 1px solid #fff;
  border-radius: 26px;
  box-shadow: 16px 25px 40px #27371e18, inset -5px -5px 12px #bac8af28;
  transform: translate(-50%, -65%) rotateX(25deg) rotateZ(-12deg);
  animation: levitate 7s ease-in-out infinite;
}
.hero-core img { width: 152px; height: 55px; object-fit: contain; }
.hero-core > span { font-size: 10px; letter-spacing: 1.3px; color: #858a80; }

.orbit-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px 14px 14px;
  border: 1px solid #fff;
  border-radius: 14px;
  background: #ffffffe6;
  box-shadow: 0 18px 40px #1e351d12;
  animation: bob 7s ease-in-out infinite;
}
.orbit-card b { display: block; font-size: 14px; }
.orbit-card small { display: block; margin-top: 2px; font-size: 12px; color: #81857b; }
.card-sales { left: 10%; top: 15%; transform: rotate(-5deg); animation-delay: -1s; }
.card-finance { right: -1%; top: 33%; transform: rotate(6deg); animation-delay: -3s; }
.card-stock { left: -2%; top: 53%; transform: rotate(-6deg); animation-delay: -5s; }
.card-team { right: 9%; bottom: 13%; transform: rotate(4deg); animation-delay: -2s; }

.app-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface-2);
}
.app-icon img { width: 30px; height: 30px; }

.flow-chip {
  position: absolute;
  bottom: 20%;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 30px;
  background: #eef3e9;
  color: #718362;
  font-size: 11px;
}
.flow-chip i { width: 6px; height: 6px; border-radius: 50%; background: #80a056; animation: pulse-dot 2s ease-in-out infinite; }

.visual-coordinate { position: absolute; bottom: 6%; right: 12%; font-size: 9px; letter-spacing: 1.5px; color: #9aab8f; }

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 29px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.scroll-link { display: flex; align-items: center; gap: 20px; color: var(--ink); font-weight: 600; }
.scroll-link span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 17px;
  transition: background-color .25s, border-color .25s;
  animation: nudge 2.4s ease-in-out infinite;
}
.scroll-link:hover span { background: var(--lime); border-color: var(--lime); }
.hero-index { font-size: 14px; color: var(--ink); }
.hero-index i { font-style: normal; color: #bec5b8; margin: 0 10px; }

/* ==========================================================================
   02 · NUMBERS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stats-grid article {
  position: relative;
  padding: 36px 28px 34px;
  border-left: 1px solid var(--line);
}
.stats-grid article:first-child { border-left: 0; padding-left: 0; }

.stat-number {
  display: flex;
  align-items: baseline;
  font-size: clamp(54px, 5.6vw, 92px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-number em {
  font-style: normal;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--green);
  margin-left: .12em;
}
.stat-number em.currency { margin: 0 .08em 0 0; }
.stat-number sup { font-size: .42em; color: var(--green); margin-left: .05em; align-self: flex-start; line-height: 1.2; }
.stats-grid p { margin-top: 18px; color: var(--muted); font-size: 15px; }
.stats-grid p strong { color: var(--ink); font-weight: 650; }

.stat-line {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 42%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) .25s;
}
.stats-grid article:not(:first-child) .stat-line { left: 28px; }
.stats-grid article.in-view .stat-line, html:not(.js) .stat-line { transform: scaleX(1); }

.source-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
  margin-top: 40px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.source-links { display: flex; gap: 22px; }
.source-links a { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.source-links a:hover { border-color: var(--green); }

/* ==========================================================================
   03 · OFFICES
   ========================================================================== */
.offices { overflow: hidden; }

.office-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.office-copy > p { margin-top: 24px; max-width: 400px; color: var(--dark-muted); font-size: 17px; }

.office-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.office-controls button {
  padding: 10px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.office-controls button:hover { color: var(--dark-ink); border-color: #465a4e; }
.office-controls button.selected { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.office-selected {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--dark-2), var(--dark));
}
.office-country { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: var(--lime); }
.office-selected h3 { margin-top: 8px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 550; letter-spacing: -.03em; line-height: 1.15; }
.office-selected > p { margin-top: 8px; color: var(--dark-muted); font-size: 15px; }
.office-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.office-list li { padding: 4px 10px; border-radius: 20px; background: var(--dark-3); font-size: 12px; color: #c5cfc7; }
.office-selected.updating > * { animation: fade-up .5s var(--ease) both; }

.world-map { position: relative; }
.world-map img { width: 100%; height: auto; opacity: .15; filter: brightness(1.3); }
.map-pins { position: absolute; inset: 0; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}
.pin i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .5;
  transition: opacity .4s, transform .4s var(--ease);
}
.pin b {
  position: absolute;
  left: 12px;
  top: -11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #1b2822;
  border: 1px solid var(--dark-line);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s, background-color .4s, color .4s;
}
.pin.label-left b { left: auto; right: 12px; }
.pin.label-below b { left: 50%; top: 10px; transform: translateX(-50%); }
.pin.active i { opacity: 1; transform: scale(1.35); }
.pin.active i::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  animation: ping 2.2s var(--ease) infinite;
}
.pin.active b { opacity: 1; background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pin.home i {
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  opacity: 1;
  background: #1b2822;
  border: 1.5px solid var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 7px #d7ef8616, 0 0 26px #d7ef8633;
}
.pin.home i::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid #d7ef8655;
  border-radius: 50%;
  animation: ping 2.6s var(--ease) infinite;
}
.pin.home i img { width: 19px; height: 18px; object-fit: contain; }
.pin.home b { left: 20px; top: -12px; opacity: 1; color: var(--lime); border-color: #d7ef8655; }

.map-caption { display: block; margin-top: 14px; text-align: right; font-size: 10px; letter-spacing: 1.8px; color: #5b695f; }

.office-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  color: #6c7a70;
}
.office-cities span { transition: color .4s; }
.office-cities span.active { color: var(--dark-ink); }

/* ==========================================================================
   04 · ECOSYSTEM
   ========================================================================== */
.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.module {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 16px;
  row-gap: 2px;
  padding: 18px 40px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s;
}
.module img { grid-row: 1 / span 2; align-self: center; width: 48px; height: 48px; transition: transform .45s var(--ease); }
.module b { align-self: end; font-size: 15px; font-weight: 700; line-height: 1.25; }
.module span { align-self: start; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.module::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color .25s, border-color .25s;
}
.module:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px #1e351d40; }
.module:hover img { transform: scale(1.08) rotate(-4deg); }
.module.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.module.selected::after { background: var(--green); border-color: var(--green); }

.ecosystem-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}
.ecosystem-detail::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, #d7ef8626, transparent 65%);
  pointer-events: none;
}

.detail-brand { display: flex; align-items: center; justify-content: space-between; }
.detail-brand img { width: 70px; height: auto; filter: brightness(0) invert(1); opacity: .85; }
.detail-brand span { font-size: 10px; letter-spacing: 1.8px; color: var(--dark-muted); }

.detail-main { margin: 34px 0 30px; }
.detail-main.updating > * { animation: fade-up .5s var(--ease) both; }
.detail-main.updating > :nth-child(2) { animation-delay: .04s; }
.detail-main.updating > :nth-child(3) { animation-delay: .08s; }
.detail-main.updating > :nth-child(4) { animation-delay: .12s; }
.detail-main.updating > :nth-child(5) { animation-delay: .16s; }
.detail-main.updating > :nth-child(6) { animation-delay: .2s; }

.detail-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; }
.detail-icon img { width: 42px; height: 42px; }
.detail-name { display: block; margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime); }
.ecosystem-detail h3 { margin-top: 8px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 550; line-height: 1.12; letter-spacing: -.035em; }
.ecosystem-detail #module-description { margin-top: 14px; color: var(--dark-muted); font-size: 15px; max-width: 440px; }

.module-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.module-chain span { padding: 6px 12px; border: 1px solid var(--dark-line); border-radius: 30px; font-size: 12.5px; font-weight: 600; }
.module-chain i { font-style: normal; color: var(--lime); }

.module-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.module-apps span { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 30px; background: var(--dark-3); font-size: 12.5px; color: #cfd8d1; }
.module-apps img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #fff; }

.detail-bottom { display: flex; gap: 36px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--dark-line); }
.detail-bottom div { display: flex; align-items: center; gap: 12px; }
.detail-bottom b { font-size: 34px; font-weight: 550; letter-spacing: -.04em; color: var(--lime); line-height: 1; }
.detail-bottom span { font-size: 12px; line-height: 1.35; color: var(--dark-muted); }

.app-ribbon {
  max-width: none;
  margin: clamp(48px, 5vw, 72px) calc(var(--pad-x) * -1) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.app-ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.ribbon-track img { width: 36px; height: 36px; padding: 4px; border-radius: 50%; background: var(--surface-2); }

/* ==========================================================================
   05 · DEVICES
   ========================================================================== */
.devices { overflow: hidden; }

.device-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
}
.device-copy h2 { margin-top: 28px; }
.device-aside p { color: var(--muted); font-size: 17px; line-height: 1.75; }

.device-labels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.device-labels li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.device-labels svg { width: 18px; height: 18px; color: var(--green); }

.device-image { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.device-image img { width: 100%; height: auto; mix-blend-mode: multiply; }
.device-footnote { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* ==========================================================================
   06 · CLIENTS
   ========================================================================== */
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.logo-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.logo-cell img { max-height: 76px; max-width: 58%; width: auto; height: auto; object-fit: contain; transition: transform .45s var(--ease); }
.logo-cell.wide-logo img { max-width: 72%; }
.logo-cell:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px #1e351d45; }
.logo-cell:hover img { transform: scale(1.05); }

.client-divider { display: flex; align-items: center; gap: 20px; margin: 44px auto 22px; }
.client-divider span { font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.client-divider div { flex: 1; height: 1px; background: var(--line); }

.local-clients .logo-cell { background: linear-gradient(160deg, #fff, #f7f9f3); }

.verified-clients {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 2fr);
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.verified-head span { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.verified-head small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

.verified-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.verified-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s, transform .35s var(--ease);
}
.verified-grid a:hover { border-color: var(--ink); transform: translateY(-3px); }
.case-region { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green); }
.verified-grid b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.verified-grid a > span:not(.case-region) { font-size: 13px; color: var(--muted); line-height: 1.5; }
.verified-grid em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 12px; font-weight: 650; }

/* ==========================================================================
   07 · PROCESS
   ========================================================================== */
.phase-bar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.phase-bar span { padding: 8px 14px; border-radius: 8px; }
.phase-analysis { background: var(--ink); color: var(--bg); }
.phase-project { background: var(--lime); color: var(--ink); }
.phase-support { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: step; }
.process-grid li {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.process-grid li:hover { background: var(--dark); color: var(--dark-ink); transform: translateY(-4px); }
.process-grid li:hover p { color: var(--dark-muted); }
.process-grid li:hover .step-number { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.process-grid li:hover small { border-color: var(--dark-line); }

.step-number {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color .35s, -webkit-text-stroke-color .35s;
}
.process-grid h3 { margin-top: 40px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.process-grid p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--muted); transition: color .35s; }
.process-grid small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
}
.process-grid small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.principles-head p { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.principles article h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.principles article p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.principle-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lime); color: var(--ink); }
.principle-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   08 · INTEGRATION
   ========================================================================== */
.integration { overflow: hidden; }
.integration::before {
  content: '';
  position: absolute;
  inset: 0;
  max-width: none;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
  pointer-events: none;
}

.demo-tag {
  padding: 5px 12px;
  border: 1px solid #d7ef8666;
  border-radius: 30px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lime);
}

.integration-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.integration-controls p { font-size: 13px; font-weight: 600; color: var(--dark-muted); }
#flow-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--dark-line);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-muted);
  transition: color .2s, border-color .2s;
}
#flow-toggle:hover { color: var(--dark-ink); border-color: #465a4e; }
.toggle-icon { position: relative; width: 10px; height: 11px; }
.toggle-icon::before, .toggle-icon::after { content: ''; position: absolute; top: 0; width: 3px; height: 11px; background: currentColor; border-radius: 1px; }
.toggle-icon::before { left: 0; }
.toggle-icon::after { right: 0; }
#flow-toggle[data-paused] .toggle-icon::before { width: 0; height: 0; left: 1px; background: none; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
#flow-toggle[data-paused] .toggle-icon::after { display: none; }

.integration-lab { position: relative; }

.data-paths {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-stage { position: relative; z-index: 3; height: clamp(112px, 11vw, 160px); }

/* Odoo modules — tidy row */
.module-row {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 9px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: var(--dark-2);
  color: var(--dark-ink);
  font-size: 12.5px;
  font-weight: 650;
  transition: border-color .3s, background-color .3s, opacity .35s, box-shadow .3s;
}
.module-chip img { width: 24px; height: 24px; }
.module-chip.syncing { border-color: var(--lime); box-shadow: 0 0 0 4px #d7ef8614; }
.module-chip.related { border-color: #56704a; }
.integration-lab:not([data-source='all']) .module-chip.dim { opacity: .32; }

/* External systems — scattered mess */
.source-scatter {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed #2c3a32;
}
.scatter-label {
  flex-basis: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #64746a;
}
.cloud-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border: 1px dashed #3a4a40;
  border-radius: 14px;
  background: #1a241e;
  color: var(--dark-ink);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  opacity: .85;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0px));
  transition: border-color .3s, background-color .3s, opacity .35s, box-shadow .3s, transform .35s var(--ease);
}
.cloud-chip:hover { border-color: #4a5e52; }
.cloud-chip .source-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.source-logo svg { width: 19px; height: 19px; }
.one-c { background: #ffd83a; color: #c3001c; }
.excel { background: #1f7a45; color: #fff; font-size: 17px; }
.salesdoc { background: #2d6cdf; color: #fff; }
.face-id { background: #eef2ea; color: var(--ink); }
.chip-text b { display: block; font-size: 13px; line-height: 1.15; }
.chip-text small { display: block; font-size: 11px; font-weight: 500; color: var(--dark-muted); }
.cloud-chip.source[aria-pressed='true'] { border-color: #8ba36a; border-style: solid; background: var(--dark-3); opacity: 1; }
.integration-lab:not([data-source='all']) .cloud-chip.dim { opacity: .4; }

.flow-track { fill: none; stroke: #2b3a32; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .3s, opacity .3s; }
.flow-track.uplink { stroke: #3d5245; stroke-width: 2; }
.flow-packet {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  stroke-dashoffset: 100;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition: opacity .3s;
}
.integration-lab.playing .flow-packet.run { opacity: 1; animation: packet 1.6s linear infinite; }
.flow-track.active { stroke: #7a9c52; }
.integration-lab:not([data-source='all']) .flow-track:not(.active) { opacity: .26; }

.sync-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 68px;
  height: 68px;
  border: 1px solid #3e5043;
  border-radius: 50%;
  background: var(--dark);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px #d7ef860a, 0 0 40px #d7ef861a;
}
.sync-hub img { width: 20px; height: 20px; object-fit: contain; }
.sync-hub span { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; color: var(--lime); }
.integration-lab.playing .sync-hub { animation: hub-glow 2.4s ease-in-out infinite; }

/* Dashboard */
.dashboard {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  background: #f7f8f5;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px #000c, 0 0 0 1px #ffffff14;
}
.dashboard-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: #fff; border-bottom: 1px solid #e6e9e2; }
.dashboard-brand { display: flex; align-items: center; gap: 12px; }
.dashboard-brand img { width: 56px; height: auto; }
.dashboard-brand span { padding-left: 12px; border-left: 1px solid #e0e3dc; font-size: 13px; font-weight: 650; }
.dashboard-status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.dashboard-status i { width: 7px; height: 7px; border-radius: 50%; background: #5bb46a; animation: pulse-dot 2s ease-in-out infinite; }

.dashboard-body { padding: 20px 22px 22px; }
.dashboard-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dashboard-title small { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.dashboard-title h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.dashboard-period { padding: 6px 12px; border: 1px solid #e0e3dc; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kpi, .revenue-chart, .plan-chart {
  border: 1px solid #e6e9e2;
  border-radius: 12px;
  background: #fff;
  transition: border-color .3s, box-shadow .3s, opacity .3s;
}
.kpi { padding: 14px 16px; }
.kpi > span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi > span i { font-style: normal; color: var(--green); }
.kpi b { display: block; margin-top: 6px; font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi em { display: block; margin-top: 6px; font-style: normal; font-size: 11px; color: #8b938d; }

.highlight { border-color: var(--green) !important; box-shadow: 0 0 0 3px #829d5326; }
.integration-lab:not([data-source='all']) [data-kpi]:not(.highlight) { opacity: .5; }
.flash { animation: flash-value .9s var(--ease); }

.chart-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.revenue-chart { padding: 14px 16px 12px; }
.chart-heading { display: flex; justify-content: space-between; font-size: 12.5px; }
.chart-heading span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.chart-heading span i { width: 8px; height: 8px; border-radius: 2px; background: var(--odoo); }

.bar-chart { position: relative; height: 150px; margin-top: 10px; }
.chart-grid-lines { position: absolute; inset: 0 0 20px; background: repeating-linear-gradient(to top, #eceee9 0 1px, transparent 1px 25%); }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 8px; }
.bars span { position: relative; flex: 1; height: calc(100% - 20px); display: flex; align-items: flex-end; }
.bars i {
  width: 100%;
  height: var(--bar);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #a5809b, #d9c7d4);
  transform-origin: bottom;
  transition: height .8s var(--ease);
}
.bars span.current i { background: linear-gradient(180deg, var(--odoo), #b28ea8); }
.bars small { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-size: 10px; color: #9aa09b; }
.js .dashboard .bars i { transform: scaleY(0); transition: height .8s var(--ease), transform 1s var(--ease); }
.js .integration-lab.in-view .bars i { transform: scaleY(1); }
.js .integration-lab.reset-bars .bars i { transform: scaleY(0); transition: none; }
.bars span:nth-child(2) i { transition-delay: .04s; }
.bars span:nth-child(3) i { transition-delay: .08s; }
.bars span:nth-child(4) i { transition-delay: .12s; }
.bars span:nth-child(5) i { transition-delay: .16s; }
.bars span:nth-child(6) i { transition-delay: .2s; }
.bars span:nth-child(7) i { transition-delay: .24s; }
.bars span:nth-child(8) i { transition-delay: .28s; }
.bars span:nth-child(9) i { transition-delay: .32s; }

.plan-chart { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; text-align: center; }
.plan-chart > b { font-size: 12.5px; align-self: flex-start; }
.plan-chart > span { font-size: 11px; color: var(--muted); }
.donut {
  --value: 87;
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), #eceee9 0);
  transition: --value .8s var(--ease);
}
.donut::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.donut div { position: relative; display: flex; flex-direction: column; align-items: center; }
.donut strong { font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.donut strong sup { font-size: 12px; margin-left: 1px; }
.donut small { font-size: 10px; color: var(--muted); }

.event-feed { display: grid; align-content: start; gap: 6px; min-height: 130px; margin-top: 10px; }
.event-feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid #e6e9e2;
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
}
.event-feed li.new { animation: slide-in .6s var(--ease) both; }
.event-feed li:not(:first-child) { opacity: .62; }
.event-feed li > div { flex: 1; min-width: 0; }
.event-feed b { display: block; font-size: 13px; }
.event-feed li > div span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #e7f0dc; color: var(--green-deep); }
.event-icon svg { width: 16px; height: 16px; }
.event-time { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #9aa09b; white-space: nowrap; }

.integration-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: var(--dark-2);
}
.all-sources, .replay-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.all-sources { border: 1px solid var(--dark-line); }
.all-sources svg { width: 18px; height: 18px; }
.all-sources.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.all-sources:not(.active):hover { background: var(--dark-3); }
.replay-button { color: var(--dark-muted); }
.replay-button span { font-size: 17px; }
.replay-button:hover { color: var(--dark-ink); background: var(--dark-3); }
#source-explanation { font-size: 14px; color: #c5cfc7; text-align: center; }
.demo-note { margin-top: 14px; font-size: 12px; color: #6c7a70; text-align: center; }

/* Closing + footer */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(96px, 12vw, 170px);
  text-align: center;
}
.closing-brands { display: flex; align-items: center; gap: 22px; }
.closing-brands .brand { font-size: 20px; }
.closing-brands i { font-style: normal; font-size: 22px; color: var(--dark-muted); }
.footer-odoo { width: 92px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.closing h2 { margin-top: 36px; font-size: clamp(44px, 6.4vw, 104px); }
.closing-actions { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.closing-up {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  font-size: 20px;
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.closing-up:hover { background: var(--dark-ink); color: var(--ink); transform: translateY(-3px); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(72px, 8vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  color: var(--dark-muted);
}
.footer a { color: var(--dark-ink); font-weight: 650; }
.footer a:hover { color: var(--lime); }

/* ==========================================================================
   Navigation UI
   ========================================================================== */
.section-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
  color: var(--ink);
  transition: color .35s, opacity .35s;
}
.section-progress.on-dark { color: var(--dark-ink); }
.section-progress a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 20px; width: 30px; }
.section-progress a::after {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .28;
  transition: width .35s var(--ease), opacity .35s;
}
.section-progress a:hover::after { opacity: .7; }
.section-progress a.active::after { width: 26px; opacity: 1; }
.section-progress span {
  position: absolute;
  right: 40px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.section-progress.on-dark span { background: var(--lime); color: var(--ink); }
.section-progress a:hover span, .section-progress a:focus-visible span { opacity: 1; transform: none; }

.presentation-controls {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #ffffff1f;
  border-radius: 40px;
  background: #111a16e6;
  color: var(--dark-ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  box-shadow: 0 20px 40px -20px #000a;
}
.presentation-controls button { width: 38px; height: 38px; border-radius: 50%; font-size: 17px; transition: background-color .2s, color .2s; }
.presentation-controls button:hover { background: var(--lime); color: var(--ink); }
#section-counter { min-width: 76px; text-align: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Presentation mode */
.presentation-mode { --header-h: 0px; }
.presentation-mode .header { display: none; }
.presentation-mode .presentation-controls { display: flex; }
.presentation-mode .section { min-height: 100vh; min-height: 100dvh; }
.presentation-mode .hero { display: flex; flex-direction: column; justify-content: center; }
.presentation-mode .hero > * { width: 100%; }
.presentation-mode .roomy { padding-block: clamp(56px, 7vh, 96px); }
html.presentation-mode { scroll-snap-type: y proximity; }
.presentation-mode .section { scroll-snap-align: start; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes levitate { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

@keyframes packet { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes hub-glow { 0%, 100% { box-shadow: 0 0 0 10px #d7ef860a, 0 0 40px #d7ef861a; } 50% { box-shadow: 0 0 0 16px #d7ef8612, 0 0 60px #d7ef862e; } }
@keyframes flash-value { 0% { color: var(--green-deep); } 100% { color: inherit; } }

@property --value { syntax: '<number>'; inherits: false; initial-value: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1600px) {
  .hero-grid { min-height: 760px; }
  .hero-visual { height: 700px; }
}

@media (max-width: 1280px) {
  .section-progress { display: none; }
  .verified-clients { grid-template-columns: 1fr; gap: 20px; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles-head { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid article:nth-child(3) .stat-line { left: 0; }
  .stats-grid article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-bar { display: none; }
  .verified-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-stage { height: 104px; }
  .sync-hub { width: 58px; height: 58px; }
  .sync-hub img { width: 17px; height: 17px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-button { display: flex; }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px #0003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .header-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .header-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .header-nav a::after { display: none; }
  .header.on-dark .header-nav { background: var(--dark); border-color: var(--dark-line); }
  .header.on-dark .header-nav a { border-color: var(--dark-line); }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px 0 0; }
  .hero-visual { height: 520px; max-width: 640px; width: 100%; margin: 0 auto; }

  .heading-row, .device-copy { grid-template-columns: 1fr; gap: 20px; }
  .heading-row > p { justify-self: start; }

  .office-layout { grid-template-columns: 1fr; }
  .world-map { order: -1; }
  .office-copy > p { max-width: none; }

  .ecosystem-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 27px; }
  .present-button { padding: 10px; }
  .present-button span { display: none; }

  h1 { font-size: clamp(52px, 14.5vw, 84px); margin: 24px 0 22px; }
  h2 { font-size: clamp(36px, 10.4vw, 52px); }
  .section-top { margin-bottom: 36px; }
  .aside-label { display: none; }

  .hero-copy > p { font-size: 15px; }
  .hero-visual { height: 440px; margin: 10px -4% 0; width: 108%; }
  .hero-core { width: 180px; height: 142px; gap: 16px; }
  .hero-core img { width: 118px; height: 43px; }
  .core-base { width: 186px; height: 142px; }
  .orbit-card { padding: 9px 12px 9px 9px; gap: 9px; }
  .orbit-card small { display: none; }
  .app-icon { width: 34px; height: 34px; border-radius: 9px; }
  .app-icon img { width: 24px; height: 24px; }
  .card-sales { left: 7%; top: 12%; }
  .card-finance { right: 3%; top: 30%; }
  .card-stock { left: 3%; top: 58%; }
  .card-team { right: 7%; bottom: 12%; }
  .flow-chip { display: none; }
  .visual-coordinate { display: none; }
  .hero-bottom { font-size: 11px; }
  .hero-bottom > span:first-child { max-width: 190px; }
  .hero-index { display: none; }

  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article, .stats-grid article:nth-child(3) { border-left: 0; padding: 28px 0; border-top: 1px solid var(--line); }
  .stats-grid article:first-child { border-top: 0; }
  .stats-grid article .stat-line, .stats-grid article:not(:first-child) .stat-line { left: 0; }
  .source-links { flex-wrap: wrap; }

  .office-controls button { padding: 9px 13px; font-size: 12.5px; }
  .pin b { font-size: 9.5px; padding: 2px 7px; left: 8px; top: -9px; }
  .pin:not(.home) b { display: none; }
  .pin.active.primary b { display: block; }
  .pin.home b { left: 16px; top: -10px; }
  .office-cities { gap: 8px 16px; font-size: 12px; margin-top: 36px; }

  .app-grid { gap: 8px; }
  .module { grid-template-columns: minmax(0, 1fr); padding: 16px 14px; border-radius: 16px; }
  .module img { grid-row: auto; width: 38px; height: 38px; margin-bottom: 14px; }
  .module b { font-size: 14px; }
  .module::after { top: 14px; right: 14px; }
  .detail-bottom { gap: 22px; }
  .detail-bottom b { font-size: 26px; }

  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-cell { border-radius: 16px; }
  .logo-cell img { max-height: 52px; }
  .verified-grid { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 0; }
  .process-grid h3 { margin-top: 24px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }

  .integration-controls { flex-wrap: wrap; }
  .flow-stage { height: 84px; }
  .sync-hub { width: 52px; height: 52px; }
  .sync-hub img { width: 15px; height: 15px; }
  .sync-hub span { font-size: 7px; }
  .module-row { gap: 7px; }
  .module-chip { gap: 6px; padding: 7px 10px 7px 7px; border-radius: 10px; font-size: 11.5px; }
  .module-chip img { width: 20px; height: 20px; }
  .source-scatter { gap: 12px 18px; margin-top: 24px; padding-top: 18px; }
  .cloud-chip { gap: 7px; padding: 6px 12px 6px 6px; border-radius: 12px; font-size: 12px; transform: rotate(var(--tilt, 0deg)) translateY(calc(var(--lift, 0px) * .5)); }
  .cloud-chip .source-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
  .cloud-chip .source-logo svg { width: 16px; height: 16px; }
  .chip-text small { display: none; }
  .dashboard-header, .dashboard-body { padding-inline: 14px; }
  .dashboard-status { display: none; }
  .dashboard-title h3 { font-size: 17px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .kpi > span { grid-column: 1; }
  .kpi > span i { display: none; }
  .kpi b { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .kpi em { grid-column: 1; margin-top: 2px; }
  .chart-layout { grid-template-columns: 1fr; }
  .donut { width: 104px; }
  .integration-bottom { grid-template-columns: 1fr 1fr; }
  #source-explanation { grid-column: 1 / -1; grid-row: 1; }
  .replay-button { justify-content: center; }
  .all-sources { justify-content: center; }
  .closing-brands { gap: 14px; }
  .closing-brands .brand { font-size: 16px; }
  .footer-odoo { width: 72px; }
  .footer { flex-direction: column; align-items: flex-start; }

  .presentation-controls { gap: 2px; padding: 4px; }
  .presentation-controls button { width: 32px; height: 32px; font-size: 14px; }
  #section-counter { min-width: 54px; font-size: 11.5px; }
  .presentation-mode .section { padding-bottom: 84px; }
  .presentation-mode .presentation-controls { top: 10px; bottom: auto; }
}

@media (hover: none) {
  .process-grid li:hover { background: var(--surface); color: inherit; transform: none; }
  .process-grid li:hover p { color: var(--muted); }
  .process-grid li:hover .step-number { color: transparent; -webkit-text-stroke-color: var(--line-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ribbon-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ribbon-track [aria-hidden='true'] { display: none; }
  .app-ribbon { -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
  .integration-lab.playing .flow-packet.run { opacity: 0; }
  .flow-track.active { stroke: var(--lime); }
}

@media print {
  .header, .section-progress, .presentation-controls, .integration-controls, .integration-bottom { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .section { break-inside: avoid; }
}
