/* ==========================================================
   Compazz — marketing site
   Brand: Dark Blue #121C59 · Navy Blue #0021F8 · Slate Blue #2476F2
          Teal Blue #15ACF1 · Purple #8B5CF6 · Orange #F65B18
   ========================================================== */

:root {
  --ink: #060a22;
  --ink-2: #0a1033;
  --navy: #121c59;
  --blue: #0021f8;
  --slate: #2476f2;
  --teal: #15acf1;
  --purple: #8b5cf6;
  --orange: #f65b18;
  --white: #ffffff;
  --text: #eef1ff;
  --muted: #a3acd9;
  --line: rgba(160, 176, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(100deg, var(--teal) 0%, var(--slate) 45%, var(--blue) 100%);
  --grad-warm: linear-gradient(100deg, var(--purple), var(--orange));
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 12, 120, 0.65);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --alt-font: "IBM Plex Sans Arabic", "Host Grotesk", sans-serif;
  --c1: #1399d8;
  --c2: #8b5cf6;
  --c3: #f65b18;
  --good: #17ad7c;
  --warn: #f2a516;
  --crit: #e5484d;
  --surface: #0c1236;
  --origin: left;
  --wrap: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.grad-text { color: #3fb8f5; }
.grad-warm { color: #ff8048; }

.eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 14px;
}

.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: 0; text-align: start; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f3dff; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(160, 176, 255, 0.35); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 100% - 24px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, top 0.4s;
}
.nav.scrolled {
  background: rgba(8, 12, 40, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: flex; align-items: center; color: #fff; }
.logo-svg { width: 118px; height: auto; overflow: visible; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: var(--glass-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--glass-2); position: relative; }
.menu-btn span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 26px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Logo motion: the two triangles glide in along the mark's own diagonal (the direction the
   compass needle points) and lock together; the diamond appears where they meet.
   No rotation or scaling of the finished mark, so the resting logo is always the exact brand geometry. */
.logo-svg .mk { stroke: none; transform-box: fill-box; transform-origin: 50% 50%; }
.logo-svg .mk-a { animation: glide-a 1s var(--ease) 0.1s both; }
.logo-svg .mk-b { animation: glide-b 1s var(--ease) 0.1s both; }
.logo-svg .mk-c { animation: diamond-in 0.6s ease 0.75s both; }
@keyframes glide-a { from { opacity: 0; transform: translate(11px, -11.5px); } to { opacity: 1; transform: none; } }
@keyframes glide-b { from { opacity: 0; transform: translate(-11px, 11.5px); } to { opacity: 1; transform: none; } }
@keyframes diamond-in { from { opacity: 0; } to { opacity: 1; } }
.logo-svg .wm { opacity: 0; animation: wm-in 0.6s var(--ease) forwards; animation-delay: calc(0.55s + var(--i, 0) * 35ms); }
@keyframes wm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.logo-svg .mk-g { transition: transform 0.5s var(--ease); }
.brand:hover .logo-svg .mk-g { transform: translate(1.6px, -1.7px); }
.logo-svg.wait .mk, .logo-svg.wait .wm { animation-play-state: paused; }

/* ---------- Intro loader ---------- */
.loader { display: none; }
html.loading .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(60% 60% at 50% 50%, #0d1650, var(--ink));
}
html.loading.leaving .loader { animation: loader-out 0.8s var(--ease) forwards; }
.loader .logo-svg { width: min(300px, 60vw); color: #fff; }
@keyframes loader-out { to { clip-path: inset(0 0 100% 0); } }
html.loading .nav *, html.loading .hero * { animation-play-state: paused !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 75% 45%, rgba(0, 33, 248, 0.38), transparent 70%),
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.pill { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.hero h1 { font-size: clamp(38px, 4.5vw, 66px); font-weight: 600; letter-spacing: -0.04em; }


.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 26px 0 36px;
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.5s forwards;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade-up 1s var(--ease) 0.65s forwards; }
.hero-alt {
  margin-top: 38px;
  font-family: var(--alt-font);
  font-size: 18px;
  color: var(--muted);
  text-align: left;
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.8s forwards;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero visual: animated compass mark */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  perspective: 1000px;
}
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial .ring-outer { transform-origin: 300px 300px; animation: spin 80s linear infinite; }
.dial .cardinal { font-family: var(--display); font-size: 16px; font-weight: 600; fill: var(--muted); letter-spacing: 0.1em; }
@keyframes spin { to { transform: rotate(360deg); } }

.mark-stage {
  position: absolute;
  inset: 20%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}
.mark-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 172, 241, 0.3), transparent 65%);
  filter: blur(30px);
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: 0.7; } }
.hero-mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 10, 90, 0.6)); }
.hero-mark .floater { transform-box: fill-box; transform-origin: 50% 50%; }
.hero-mark .hp { stroke: none; }
.hero-mark .hp-a { animation: glide-a-lg 1.4s var(--ease) 0.3s both; }
.hero-mark .hp-b { animation: glide-b-lg 1.4s var(--ease) 0.3s both; }
.hero-mark .hp-c { animation: diamond-in 0.7s ease 1.2s both; }
@keyframes glide-a-lg { from { opacity: 0; transform: translate(26px, -27px); } to { opacity: 1; transform: none; } }
@keyframes glide-b-lg { from { opacity: 0; transform: translate(-26px, 27px); } to { opacity: 1; transform: none; } }
.hero-mark .extrude { opacity: 0; translate: var(--ex, 1.4px) var(--ey, 2px); transition: translate 0.5s var(--ease); animation: fade-in 0.8s ease 1.4s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.hero-mark .floater { animation: mark-float 6s ease-in-out 2.2s infinite; }
@keyframes mark-float { 50% { transform: translateY(-2.5px); } }
.hero-mark .shine { animation: shine 6s ease-in-out 2s infinite; }
@keyframes shine { 0% { transform: translateX(0); } 35%, 100% { transform: translateX(150px); } }
.dial .tag-ring { transform-origin: 300px 300px; animation: spin 60s linear infinite reverse; }
.dial .tagline { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.32em; fill: rgba(163, 172, 217, 0.75); }
[dir="rtl"] .dial .tagline { letter-spacing: 0; font-size: 15px; direction: ltr; }

/* ---------- Product reveal ---------- */
.reveal-shot { position: relative; padding: 20px 0 40px; perspective: 1400px; }
.shot-frame {
  position: relative;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px -40px rgba(0, 33, 248, 0.7);
  transform: rotateX(calc((1 - var(--p, 0)) * 28deg)) scale(calc(0.86 + var(--p, 0) * 0.14));
  transform-origin: 50% 0;
  will-change: transform;
}
.shot-frame img { border-radius: 16px; width: 100%; background: #f4f6ff; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --angle: 360deg; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 30px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: rgba(238, 241, 255, 0.85);
  white-space: nowrap;
}
.marquee-track svg { width: 22px; height: 22px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Transformation ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split p + p { margin-top: 18px; }
.split .lead { color: var(--muted); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 14px;
  font-weight: 500;
}
.tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-inline-end: 8px; vertical-align: 1px; }
.tag:nth-child(2)::before { background: var(--purple); }
.tag:nth-child(3)::before { background: var(--orange); }
.tag:nth-child(4)::before { background: var(--slate); }

.float-visual { position: relative; }
.float-visual .blob {
  position: absolute;
  inset: 8% 4%;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background: var(--grad);
  filter: blur(50px);
  opacity: 0.45;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; transform: rotate(20deg) scale(1.05); }
}
.float-visual img { position: relative; animation: hover-float 8s ease-in-out infinite; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }

/* ---------- Uniqueness cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(21, 172, 241, 0.35); }
.card .ic {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(36, 118, 242, 0.16);
  margin-bottom: 22px;
}
.card .ic svg { width: 26px; height: 26px; color: #7fd3ff; }
.card h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Strategy journey ---------- */
.journey { position: relative; height: 420vh; background: linear-gradient(180deg, var(--ink), #080e33 50%, var(--ink)); }
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.journey .section-head { margin-bottom: 30px; }
.journey .section-head h2 { font-size: clamp(30px, 4.2vw, 54px); }
.journey-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at calc(var(--jp, 0) * 100%) 60%, rgba(0, 33, 248, 0.35), transparent 70%);
  pointer-events: none;
}
.track { position: relative; width: 100%; aspect-ratio: 1200 / 330; }
.track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track .path-bg { fill: none; stroke: rgba(160, 176, 255, 0.2); stroke-width: 2; stroke-dasharray: 6 8; }
.track .path-fg { fill: none; stroke: url(#pathGrad); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(21, 172, 241, 0.8)); }
.rider { transition: none; }
.rider-halo { animation: breathe 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-align: center;
}
.node .tile {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: all 0.6s var(--ease);
}
.node .tile::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 26px;
  border: 1px solid currentColor;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s var(--ease);
}
.node.active .tile { color: #fff; transform: scale(1.08) rotate(-6deg); }
.node.active .tile::after { opacity: 0.35; transform: scale(1); }
.node.purple.active .tile { background: var(--purple); border-color: var(--purple); box-shadow: 0 16px 40px -8px rgba(139, 92, 246, 0.8); color: #fff; }
.node.orange.active .tile { background: var(--orange); border-color: var(--orange); box-shadow: 0 16px 40px -8px rgba(246, 91, 24, 0.8); color: #fff; }
.node.purple.active .tile::after { color: var(--purple); }
.node.orange.active .tile::after { color: var(--orange); }
.node .label {
  position: absolute;
  top: calc(100% + 14px);
  width: 170px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: rgba(238, 241, 255, 0.45);
  transition: color 0.5s;
}
.node.up .label { top: auto; bottom: calc(100% + 14px); }
.node.active .label { color: #fff; }

.journey-detail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  max-width: 900px;
  margin-inline: auto;
}
.journey-detail .big {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}
.journey-detail h3 { font-size: 22px; margin-bottom: 6px; }
.journey-detail p { color: var(--muted); font-size: 16px; }
.journey-detail .swap { transition: opacity 0.35s, transform 0.35s var(--ease); }
.journey-detail .swap.out { opacity: 0; transform: translateY(10px); }
.journey-count { font-size: 13px; letter-spacing: 0.15em; color: var(--muted); white-space: nowrap; }
.journey-bar { height: 4px; width: 120px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin-top: 10px; overflow: hidden; }
.journey-bar i { display: block; height: 100%; width: calc(var(--jp, 0) * 100%); background: var(--orange); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feature-tab {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: start;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.feature-tab .fi {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: #fff;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease);
}
.feature-tab .fi img { width: 24px; height: 24px; }
.feature-tab .fname { font-weight: 600; font-size: 16px; color: var(--muted); transition: color 0.3s; }
.feature-tab:hover { background: var(--glass); }
.feature-tab:hover .fname { color: var(--text); }
.feature-tab.active { background: var(--glass-2); border-color: var(--line); }
.feature-tab.active .fname { color: #fff; }
.feature-tab.active .fi { transform: rotate(-8deg) scale(1.08); }
.feature-tab .bar {
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
}
.feature-tab.active .bar { animation: fill var(--dur, 6s) linear forwards; }
.features-grid.paused .feature-tab.active .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

.feature-stage { position: sticky; top: 110px; }
.device {
  position: relative;
  border-radius: 26px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px -40px rgba(0, 33, 248, 0.7);
}
.device-bar { display: flex; gap: 7px; padding: 4px 8px 12px; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.device-bar i:nth-child(1) { background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.screen {
  position: relative;
  aspect-ratio: 1108 / 704;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #f5f7ff, #e6ebff);
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.04) translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.screen img.show { opacity: 1; transform: none; }
.feature-copy { margin-top: 26px; min-height: 110px; }
.feature-copy h3 { font-size: 26px; margin-bottom: 10px; }
.feature-copy p { color: var(--muted); max-width: 640px; }

/* ---------- Why us (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { padding: 34px 30px; }
.bento .b1 { grid-column: span 3; }
.bento .b2 { grid-column: span 3; }
.bento .b3 { grid-column: span 2; }
.bento .b4 { grid-column: span 2; }
.bento .b5 { grid-column: span 2; }
.bento .ic-img {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: #fff;
  display: grid; place-items: center;
  margin-bottom: 26px;
  box-shadow: 0 14px 30px -12px rgba(21, 172, 241, 0.6);
  transition: transform 0.6s var(--ease);
}
.bento .ic-img img { width: 34px; height: 34px; }
.bento .card:hover .ic-img { transform: rotate(-10deg) scale(1.08); }
.bento .card h3 { font-size: 24px; }
.bento .b1, .bento .b2 { min-height: 250px; }
.bento .b1::after, .bento .b2::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  background: var(--grad);
  clip-path: polygon(100% 0, 0 100%, 55% 55%);
  opacity: 0.12;
  transition: transform 0.8s var(--ease), opacity 0.5s;
}
.bento .b2::after { background: var(--grad-warm); }
.bento .card:hover::after { transform: translate(-20px, -20px) rotate(-8deg); opacity: 0.25; }

/* ---------- Integrations ---------- */
.orbit-wrap { position: relative; max-width: 480px; width: 86%; margin-inline: auto; aspect-ratio: 1; }
.orbit-wrap img { position: relative; z-index: 2; width: 100%; animation: hover-float 9s ease-in-out infinite; }
.orbit-wrap .halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 118, 242, 0.55), transparent 65%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}
.orbit-wrap .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(160, 176, 255, 0.18);
  inset: var(--i);
  animation: spin var(--s) linear infinite;
}
.orbit-wrap .ring::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 16px 4px var(--c);
}
.orbit-wrap.light { background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 58%, transparent 59%); border-radius: 50%; }

/* ---------- Showcase / CTA ---------- */
.showcase {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding: clamp(44px, 6vw, 80px);
  background: linear-gradient(135deg, var(--blue), #0a1aa8 55%, var(--navy));
  isolation: isolate;
}
.shapes { position: absolute; inset: 0; z-index: -1; }
.shapes i { position: absolute; display: block; opacity: 0.9; }
.shapes .s1 { width: 60%; height: 90%; right: -10%; top: -20%; background: var(--teal); clip-path: polygon(30% 0, 100% 20%, 60% 100%); opacity: 0.55; animation: drift 14s ease-in-out infinite; }
.shapes .s2 { width: 40%; height: 70%; right: 8%; top: 10%; background: var(--slate); clip-path: polygon(0 30%, 80% 0, 100% 70%, 20% 100%); opacity: 0.65; animation: drift 18s ease-in-out infinite reverse; }
.shapes .s3 { width: 70%; height: 60%; left: -20%; bottom: -30%; background: var(--navy); clip-path: polygon(0 0, 100% 60%, 0 100%); opacity: 0.8; animation: drift 20s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(-30px, 20px) rotate(4deg); } }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.showcase h2 { font-size: clamp(32px, 4.4vw, 56px); }
.showcase p { color: rgba(255, 255, 255, 0.82); font-size: 18px; margin: 22px 0 34px; }
.showcase .btn-primary { background: #fff; color: var(--blue); }
.showcase .btn-ghost { border-color: rgba(255, 255, 255, 0.4); }
.showcase-img { transform: perspective(1200px) rotateY(-14deg) rotateX(6deg); transition: transform 0.8s var(--ease); filter: drop-shadow(0 40px 60px rgba(0, 0, 40, 0.55)); }
.showcase:hover .showcase-img { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) scale(1.02); }

/* ---------- Footer ---------- */
.footer { padding: 90px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(70px, 8vw, 110px); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo-svg { width: 150px; color: #fff; }
.footer .tagline { font-family: var(--display); font-size: 22px; margin-top: 22px; max-width: 320px; line-height: 1.3; }
.footer h4 { font-family: var(--body); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(238, 241, 255, 0.8); transition: color 0.3s; }
.footer ul a:hover { color: var(--teal); }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); transition: background 0.3s, transform 0.3s; }
.social:hover { background: var(--blue); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split-words { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.split-words.in { opacity: 1; transform: none; }
.split-words .w > span { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open { border-radius: 26px; flex-wrap: wrap; background: rgba(8, 12, 40, 0.95); border-color: var(--line); backdrop-filter: blur(18px); }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; padding: 6px 0 10px; }
  .nav.open .nav-links a { font-size: 17px; padding: 12px 14px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .feature-list::-webkit-scrollbar { display: none; }
  .feature-list li { flex: none; scroll-snap-align: start; }
  .feature-tab { width: auto; }
  .feature-stage { position: relative; top: 0; order: -1; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .showcase-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  /* Copy first, compass second.
     `order: -1` put the compass above the headline, and at 375x812 that cost the page its
     primary action: the hero CTA measured at y=985 — 173px below the fold — while the compass
     alone filled the first screen. It also started at y=17, overlapping the header band
     (y=14-90), so the logo sat behind it.
     Reordering fixes both: the headline and CTA come first, and the compass lands clear of the
     header. It is still immediately visible, just no longer the entire first screen. */
  /* A deliberate trade, measured at 375x812.
     Before: compass first, filling the screen — headline at y=436, CTA at y=985, i.e. 173px
     BELOW the fold, and the compass starting at y=17 overlapped the header band (14-90).
     After:  headline y=150, CTA y=596 — above the fold — and no header overlap.
     The compass now begins at y=808, which on this viewport is the very edge: effectively just
     below the fold rather than a visible peek. That is the cost, and it is the right way round
     — a marketing page that hides its call to action to show an illustration has the priority
     backwards. On taller phones the compass does come into view.
     `order: 0` is stated rather than omitted: omitting it leaves the earlier `order: -1` in
     force, which is exactly what happened while this was being measured. */
  .hero-grid { gap: 18px; }
  .hero-visual { max-width: 360px; order: 0; margin: 0 auto; }
  .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: span 6; min-height: 0; }

  /* Journey becomes a vertical timeline */
  .journey { height: auto; }
  .journey-sticky { position: relative; height: auto; padding: 100px 0; }
  .track { aspect-ratio: auto; display: flex; flex-direction: column; gap: 34px; padding-left: 8px; }
  .track svg { display: none; }
  .track::before {
    content: ""; position: absolute; inset-inline-start: 41px; top: 20px; bottom: 20px; width: 2px;
    background: linear-gradient(var(--teal), var(--purple), var(--orange));
    opacity: 0.5;
  }
  .node .tile { flex: none; }
  .node { position: relative; transform: none; left: auto !important; top: auto !important; flex-direction: row; width: auto; text-align: left; gap: 18px; }
  .node .label, .node.up .label { position: static; width: auto; font-size: 17px; }
  .node .desc { display: block; }
  .journey-detail { display: none; }
}

@media (min-width: 901px) {
  .node .desc { display: none; }
}
.node .desc { color: var(--muted); font-size: 15px; font-weight: 400; margin-top: 4px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Keeps the whole proposition — headline, sub, both buttons — inside the first screen. */
  .hero-visual { max-width: 290px; }
  .hero { padding-top: 104px; }
  .wrap { width: calc(100% - 32px); }
  .cards-4 { grid-template-columns: 1fr; }
  .nav { padding-left: 16px; }
  .nav-cta .btn { display: none; }
  .nav.open .nav-cta .btn { display: inline-flex; }
  .nav.open .nav-cta { order: 4; width: 100%; justify-content: center; padding-bottom: 8px; }
  .nav.open .menu-btn { position: absolute; top: 10px; inset-inline-end: 12px; }
  .chip-2 { top: 60%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .showcase { border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-words { opacity: 1; transform: none; }
}

section[id] { scroll-margin-top: 90px; }
#journey { scroll-margin-top: 0; }

/* ==========================================================
   Reports & Dashboards — recreated from the Compazz app screens
   (Strategy Overview · KPI Report · People & Ownership)
   ========================================================== */
.dash.app {
  --app-bg: #f5f6fa;
  --card: #ffffff;
  --app-line: #eceef5;
  --app-title: #3b3a5c;
  --app-text: #4d4c70;
  --app-muted: #8b8aa6;
  --indigo: #4b3bff;
  --indigo-soft: #f4f5fe;
  --magenta: #9c1fb5;
  --expected: #bdbdc7;
  --ok: #16a34a;
  --blue-tag: #2f6fed;
  position: relative;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px -50px rgba(0, 33, 248, 0.8);
  color: var(--app-text);
}
.app-shell { display: grid; grid-template-columns: 58px 1fr; border-radius: 20px; overflow: hidden; background: var(--app-bg); }
.app-side { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; }
.app-side .mini { width: 26px; margin-bottom: 10px; }
.app-side i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); }
.app-side i.on { background: #fff; color: var(--navy); }
.app-side svg { width: 17px; height: 17px; }
.app-main { min-width: 0; padding: 18px 22px 22px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--app-line); }
.app-greet { font-size: 16px; color: #1f1e3a; font-weight: 500; }
.app-bar .badge { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px dashed #b9bbd6; color: var(--app-muted); white-space: nowrap; }
.app-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.app-tabs { display: flex; flex: 1; min-width: 0; border-bottom: 1px solid var(--app-line); }
.app-tab { position: relative; flex: 1; padding: 14px 10px 12px; font-size: 15px; font-weight: 500; color: var(--app-muted); white-space: nowrap; transition: color 0.3s; }
.app-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-tag); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.app-tab.active { color: var(--blue-tag); }
.app-tab.active::after { transform: scaleX(1); }
.app-plan { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--app-text); background: #fff; border: 1px solid #dfe1ee; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.app-plan svg { width: 14px; height: 14px; }

.view { display: none; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 18px; }
.view.active { display: grid; animation: view-in 0.6s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }
.acard { position: relative; min-width: 0; background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 30px -18px rgba(40, 44, 90, 0.35); border: 1px solid #f0f1f7; }
.acard > h4 { font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--app-title); letter-spacing: 0; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--app-line); }
.acard > h4.plain { border: 0; padding-bottom: 0; font-weight: 600; color: #111; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--body); fill: #6b6a8e; font-size: 12px; }
.chart .gl { stroke: #eff0f6; }
.play .pop, .play .fade-up { animation-play-state: running; }

/* Progress distribution (bar) */
.bar-val { fill: var(--indigo); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.bar-cap { fill: var(--indigo); opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(0.8s + var(--i) * 90ms); }
.play .bar-val { transform: scaleY(1); }
.play .bar-cap { opacity: 1; }
.bar-trk { fill: var(--indigo-soft); }

/* Actual vs expected (line) */
.ln-act { fill: none; stroke: var(--magenta); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.ln-exp { fill: none; stroke: var(--expected); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0; transition: opacity 0.8s ease 0.2s; }
.play .ln-act { stroke-dashoffset: 0; }
.play .ln-exp { opacity: 1; }
.mk-act, .mk-exp { fill: #fff; stroke-width: 1.6; opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(0.5s + var(--i) * 120ms); }
.mk-act { stroke: var(--magenta); }
.mk-exp { stroke: var(--expected); }
.play .mk-act, .play .mk-exp { opacity: 1; }
.app-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font-size: 14px; color: var(--app-text); }
.app-legend span { display: inline-flex; align-items: center; gap: 8px; }
.app-legend i { width: 18px; border-top: 2px solid; }
.app-legend i.dash { border-top-style: dotted; }

/* Strategy timeline (arc) */
.tl-trk { fill: none; stroke: #e5e5ea; stroke-width: 16; stroke-linecap: round; }
.tl-val { fill: none; stroke: var(--ok); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease); }
.play .tl-val { stroke-dasharray: var(--v) 100; }
.tl-wrap { position: relative; max-width: 240px; margin: 6px auto 0; }
.tl-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-bottom: 8px; }
.tl-center b { font-family: var(--body); font-size: 42px; font-weight: 700; color: var(--ok); line-height: 1; }
.tl-center small { color: var(--app-muted); font-size: 15px; margin-top: 4px; }
.tl-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--app-text); font-size: 14px; margin-top: 8px; }
.tl-foot svg { width: 16px; height: 16px; color: #55556d; }

/* Vision, mission & values */
.vmv { display: grid; gap: 18px; }
.vmv-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; position: relative; opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 150ms); }
.play .vmv-row { opacity: 1; transform: none; }
.vmv-row:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 21px; top: 46px; bottom: -18px; width: 1px; background: #ebe7f3; }
.vmv-ic { width: 44px; height: 44px; border-radius: 50%; background: #f6ecfa; border: 1px solid #ead7f2; display: grid; place-items: center; color: var(--magenta); }
.vmv-ic svg { width: 20px; height: 20px; }
.vmv-row h5 { margin: 2px 0 4px; font-family: var(--body); font-size: 16px; font-weight: 600; color: #111; letter-spacing: 0; }
.vmv-row p { font-size: 13.5px; line-height: 1.7; color: #3f3f55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { font-size: 12px; padding: 4px 12px; border-radius: 999px; }

/* KPI cards */
.kcard { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 100ms); }
.play .kcard { opacity: 1; transform: none; }
.k-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #222; line-height: 1.4; min-height: 36px; }
.k-top svg { width: 16px; height: 16px; color: #e5484d; flex: none; }
.k-main { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.k-ic { width: 36px; height: 36px; border-radius: 9px; border: 1px solid #d9b6e6; background: #faf3fd; display: grid; place-items: center; color: var(--magenta); flex: none; }
.k-ic.kr { border-color: #c9cbe0; background: #f5f6fb; color: #3b3a5c; }
.k-ic svg { width: 18px; height: 18px; }
.k-val { font-family: var(--body); font-size: 20px; font-weight: 700; color: #111; line-height: 1.1; }
.k-val small { display: block; font-size: 12px; font-weight: 400; color: #333; }
.k-type { font-size: 11.5px; color: #666; margin-top: 4px; }
.k-meta { font-size: 12px; color: #333; margin-top: 10px; line-height: 2; }
.k-meta b { color: var(--blue-tag); font-weight: 600; }
.k-delta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px; border-radius: 8px; font-size: 13px; }
.k-delta.down { background: #fdecef; color: #e5484d; }
.k-delta.up { background: #e3f8f1; color: #10a37a; }
.k-delta svg { width: 18px; height: 18px; }
[dir="rtl"] .k-delta svg { transform: scaleX(-1); }

/* KPI gauges */
.g-head { display: flex; gap: 10px; align-items: flex-start; }
.g-head small { display: block; font-size: 11px; color: #666; }
.g-head b { display: block; font-size: 13px; font-weight: 600; color: #222; line-height: 1.4; }
.g-svg { max-width: 230px; margin: 12px auto 0; }
.g-needle { transform-origin: 110px 110px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(0.34, 1.3, 0.64, 1); }
.play .g-needle { transform: rotate(var(--deg)); }
.g-ends { display: flex; justify-content: space-between; max-width: 250px; margin: -4px auto 0; font-size: 10.5px; color: #666; line-height: 1.3; }
.g-ends b { display: block; color: #222; font-size: 11.5px; }
.g-ends span:last-child { text-align: end; }
.g-read { text-align: center; font-family: var(--body); font-size: 22px; font-weight: 700; color: #111; margin-top: 8px; }
[dir="rtl"] .g-svg { transform: scaleX(-1); }

/* People & ownership */
.view[data-view="people"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.view[data-view="people"] .span-12 { grid-column: 1 / -1; }
@media (max-width: 1080px) { .view[data-view="people"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scard { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.play .scard { opacity: 1; transform: none; }
.s-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.s-ic svg { width: 20px; height: 20px; }
.scard small { display: block; font-size: 12.5px; color: #333; }
.scard b { display: block; font-size: 16px; font-weight: 700; color: #111; line-height: 1.3; }
.scard em { display: block; font-style: normal; font-size: 11px; color: #777; }
.heat-t { display: grid; grid-template-columns: minmax(130px, 1.6fr) repeat(5, minmax(0, 1fr)); align-items: center; row-gap: 10px; font-size: 14px; }
.heat-t .th { color: #222; font-size: 14.5px; text-align: center; padding-bottom: 6px; }
.heat-t .th:first-child { text-align: start; }
.heat-t .tn { color: #333; }
.heat-t .hc { display: grid; place-items: center; }
.heat-t .hc span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1); transition-delay: calc(var(--i) * 30ms); cursor: default; }
.play .heat-t .hc span { transform: scale(1); }
.heat-t .hc span:hover { outline: 2px solid #1f1e3a; outline-offset: 2px; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--app-line); font-size: 12.5px; color: var(--app-text); }
.heat-legend span { display: inline-flex; align-items: center; gap: 7px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 4px; }

/* Tooltip (app style) */
.tip {
  position: fixed; z-index: 150; pointer-events: none;
  padding: 9px 12px; border-radius: 8px;
  background: #fff; color: #222; border: 1px solid #ececf3;
  font-size: 12px; line-height: 1.6;
  box-shadow: 0 12px 30px -10px rgba(20, 20, 60, 0.35);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity 0.15s; white-space: nowrap;
}
.tip.on { opacity: 1; }
.tip b { font-weight: 600; }
.tip .a { color: var(--magenta, #9c1fb5); }
.tip .e { color: #9a9aa8; }
.tip .n { color: #4b3bff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1080px) {
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-5, .span-7 { grid-column: span 12; }
  .view[data-view="kpi"] .span-4 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .dash.app { padding: 6px; border-radius: 22px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { padding: 14px; }
  .app-greet { font-size: 14px; }
  .app-tab { font-size: 13px; padding: 12px 4px; }
  .app-plan { display: none; }
  .span-3, .span-4, .span-6 { grid-column: span 12; }
  .view[data-view="people"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat-t { grid-template-columns: minmax(96px, 1.3fr) repeat(5, minmax(0, 1fr)); font-size: 12.5px; }
  .heat-t .th { font-size: 11px; }
  .heat-t .hc span { width: 26px; height: 26px; }
}

/* ==========================================================
   Right-to-left (Arabic)
   ========================================================== */
[dir="rtl"] {
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --alt-font: "IBM Plex Sans", system-ui, sans-serif;
  --origin: right;
}
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 700; font-stretch: normal; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
[dir="rtl"] .hero-alt { text-align: right; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .showcase-img { transform: perspective(1200px) rotateY(14deg) rotateX(6deg); }
[dir="rtl"] .showcase:hover .showcase-img { transform: perspective(1200px) rotateY(4deg) rotateX(2deg) scale(1.02); }
[dir="rtl"] .journey-count, [dir="rtl"] .footer h4 { letter-spacing: 0; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: color 0.3s, background 0.3s; }
.lang-switch:hover { color: #fff; background: var(--glass-2); }
.lang-switch svg { width: 16px; height: 16px; }
.lang-switch .ar-font { font-family: "IBM Plex Sans Arabic", sans-serif; }
@media (max-width: 640px) {
  .lang-switch { padding: 9px 11px; }
  .lang-switch span { display: none; }
  .lang-switch .ar-font { display: inline; }
}
[dir="rtl"] .split-words .w { padding-block: 0.1em 0.14em; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.split > *, .hero-grid > *, .showcase-grid > * { min-width: 0; }

/* ==========================================================
   Compazz in Action — silent product film + synced chapters
   ========================================================== */
.film { background: radial-gradient(60% 50% at 35% 55%, rgba(0, 33, 248, 0.28), transparent 70%); }
.film-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.film-player {
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px -40px rgba(0, 33, 248, 0.75);
}
.film-player video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 17px; background: #0a1a8a; cursor: pointer; }
.film-play {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(6, 10, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.film-play:hover { transform: scale(1.08); background: var(--blue); }
.film-play svg { width: 20px; height: 20px; }
.film-play .i-pause, .film-player.playing .film-play .i-play { display: none; }
.film-player.playing .film-play .i-pause { display: block; }
.film-player.playing .film-play { opacity: 0; }
.film-player:hover .film-play, .film-play:focus-visible { opacity: 1; }
.film-bar {
  position: absolute;
  inset-inline: 22px;
  bottom: 16px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.film-bar::before { content: ""; position: absolute; inset: -8px 0; }
.film-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin); }
.film-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-inline-start: -1px; background: rgba(6, 10, 34, 0.7); border-radius: 1px; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapter {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px 14px;
  border-radius: 16px;
  text-align: start;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.chapter:hover { background: var(--glass); }
.ch-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(238, 241, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.ch-body b { display: block; font-weight: 600; font-size: 16px; line-height: 1.35; color: rgba(238, 241, 255, 0.55); transition: color 0.3s; padding-top: 8px; }
.ch-desc { display: block; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.55; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.ch-line { position: absolute; inset-inline: 14px; bottom: 0; height: 2px; background: transparent; }
.ch-line i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin); }
.chapter.done .ch-num { color: var(--teal); border-color: rgba(21, 172, 241, 0.4); }
.chapter.done .ch-body b { color: rgba(238, 241, 255, 0.75); }
.chapter.active { background: var(--glass-2); border-color: var(--line); }
.chapter.active .ch-num { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px -8px rgba(21, 172, 241, 0.8); }
.chapter.active .ch-body b { color: #fff; }
.chapter.active .ch-desc { max-height: 90px; opacity: 1; margin-top: 4px; }
.chapter.active .ch-line { background: rgba(255, 255, 255, 0.08); }
.chapter.active .ch-line i { transform: scaleX(var(--p, 0)); }

@media (max-width: 900px) {
  .film-grid { grid-template-columns: 1fr; }
  .chapters { grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters li { scroll-snap-align: start; }
  .chapter { height: 100%; background: var(--glass); }
  .ch-desc { max-height: none; opacity: 1; margin-top: 4px; }
  .film-play { width: 42px; height: 42px; inset-inline-start: 16px; bottom: 26px; }
  .film-bar { inset-inline: 16px; bottom: 12px; }
}

/* ==========================================================
   Light version — switched with the sun/moon button (html[data-look="light"]).
   Dark stays the default; the brand blues and the product screens are unchanged.
   ========================================================== */
html[data-look="light"] {
  color-scheme: light;
  --ink: #f5f7fc;
  --ink-2: #eef1fa;
  --text: #0e1644;
  --muted: #56608f;
  --line: rgba(18, 28, 89, 0.12);
  --glass: rgba(18, 28, 89, 0.035);
  --glass-2: rgba(18, 28, 89, 0.07);
  --surface: #ffffff;
  --shadow: 0 24px 60px -30px rgba(18, 28, 89, 0.35);
}
[data-look="light"] .grad-text { color: #1764d6; }
[data-look="light"] .grad-warm { color: #dd520e; }
[data-look="light"] .eyebrow { color: #1764d6; }

/* nav + logo: the wordmark follows currentColor, so it turns navy */
[data-look="light"] .brand,
[data-look="light"] .footer .logo-svg,
[data-look="light"] .loader .logo-svg { color: var(--navy); }
[data-look="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.82); }
[data-look="light"] .nav-links a:hover,
[data-look="light"] .nav-links a.active,
[data-look="light"] .lang-switch:hover { color: var(--text); }
html[data-look="light"].loading .loader { background: radial-gradient(60% 60% at 50% 50%, #e6ecff, var(--ink)); }
@media (max-width: 1080px) { [data-look="light"] .nav.open { background: rgba(255, 255, 255, 0.97); } }

/* hero */
[data-look="light"] .hero { background: radial-gradient(55% 60% at 75% 45%, rgba(36, 118, 242, 0.16), transparent 70%), var(--ink); }
[data-look="light"] .dial .tagline { fill: rgba(18, 28, 89, 0.55); }
[data-look="light"] .dial > circle:first-of-type { stroke: rgba(18, 28, 89, 0.14); }
[data-look="light"] .hero-mark { filter: drop-shadow(0 26px 30px rgba(0, 20, 120, 0.25)); }
[data-look="light"] .mark-glow { opacity: 0.5; }

/* framed screenshots, video and dashboard */
[data-look="light"] .shot-frame,
[data-look="light"] .device,
[data-look="light"] .film-player,
[data-look="light"] .dash.app {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 40px 90px -45px rgba(18, 28, 89, 0.45);
}
[data-look="light"] .device-bar i { background: rgba(18, 28, 89, 0.15); }

/* text that was hard-coded white */
[data-look="light"] .lead strong { color: var(--text) !important; }
[data-look="light"] .marquee-track span { color: rgba(14, 22, 68, 0.8); }
[data-look="light"] .feature-tab.active .fname { color: var(--text); }
[data-look="light"] .feature-tab .fi { box-shadow: 0 0 0 1px var(--line); }
[data-look="light"] .footer ul a { color: rgba(14, 22, 68, 0.8); }

/* cards */
[data-look="light"] .card { background: #fff; box-shadow: 0 10px 30px -22px rgba(18, 28, 89, 0.35); }
[data-look="light"] .card .ic svg { color: var(--slate); }
[data-look="light"] .card .ic { background: rgba(36, 118, 242, 0.1); }
[data-look="light"] .bento .ic-img { box-shadow: 0 0 0 1px var(--line), 0 12px 24px -16px rgba(18, 28, 89, 0.4); }

/* journey */
[data-look="light"] .journey { background: linear-gradient(180deg, var(--ink), #e9eefb 50%, var(--ink)); }
[data-look="light"] .journey-bg { background: radial-gradient(50% 50% at calc(var(--jp, 0) * 100%) 60%, rgba(36, 118, 242, 0.14), transparent 70%); }
[data-look="light"] .track .path-bg { stroke: rgba(18, 28, 89, 0.2); }
[data-look="light"] .node .tile { color: rgba(14, 22, 68, 0.45); background: #fff; }
[data-look="light"] .node.active .tile { color: #fff; }
[data-look="light"] .node .label { color: rgba(14, 22, 68, 0.45); }
[data-look="light"] .node.active .label { color: var(--text); }
[data-look="light"] .journey-detail { background: #fff; }
[data-look="light"] .journey-bar { background: rgba(18, 28, 89, 0.1); }

/* film chapters */
[data-look="light"] .ch-num { color: rgba(14, 22, 68, 0.5); background: #fff; }
[data-look="light"] .ch-body b { color: rgba(14, 22, 68, 0.55); }
[data-look="light"] .chapter.done .ch-body b { color: rgba(14, 22, 68, 0.75); }
[data-look="light"] .chapter.active { background: #fff; box-shadow: 0 10px 30px -22px rgba(18, 28, 89, 0.4); }
[data-look="light"] .chapter.active .ch-num { color: #fff; }
[data-look="light"] .chapter.active .ch-body b { color: var(--text); }
[data-look="light"] .chapter.active .ch-line { background: rgba(18, 28, 89, 0.08); }

/* integrations */
[data-look="light"] .orbit-wrap .ring { border-color: rgba(18, 28, 89, 0.14); }
[data-look="light"] .orbit-wrap .halo { opacity: 0.35; }

/* the sun/moon switch */
.look-switch {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.3s, background 0.3s;
}
.look-switch:hover { color: var(--text); background: var(--glass-2); }
.look-switch svg { width: 18px; height: 18px; }
.look-switch .i-moon, [data-look="light"] .look-switch .i-sun { display: none; }
[data-look="light"] .look-switch .i-moon { display: block; }

/* nav fits the extra sun/moon button: labels never wrap, menu takes over a little earlier */
.nav-links a { white-space: nowrap; padding: 9px 11px; }
@media (max-width: 1240px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open { border-radius: 18px; flex-wrap: wrap; background: rgba(8, 12, 40, 0.95); border-color: var(--line); backdrop-filter: blur(18px); }
  [data-look="light"] .nav.open { background: rgba(255, 255, 255, 0.97); }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; padding: 6px 0 10px; }
  .nav.open .nav-links a { font-size: 17px; padding: 12px 14px; }
}

/* The closing banner is always brand blue, so its text and outline button stay white in both versions */
.showcase, .showcase h2 { color: #fff; }
.showcase .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.showcase .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

/* ================= CONTACT MODAL =================
   Built to the site's own dark/glass language rather than the in-app dialog, which is light:
   the modal opens over THIS page, so it should belong to it. Fields and validation mirror the
   backend's RequestDemoRequestDto exactly (userName/email/description, 100/150/5000).
   Direction is inherited from <html dir>, so the Arabic page gets RTL with no extra rules. */
.cz-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px}
.cz-modal[hidden]{display:none}
.cz-modal__backdrop{position:absolute;inset:0;background:rgba(3,6,20,.72);backdrop-filter:blur(6px)}
.cz-modal__panel{position:relative;width:min(560px,100%);max-height:calc(100vh - 40px);overflow-y:auto;
  background:var(--surface,#0c1236);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:26px 26px 22px;color:var(--text)}
.cz-modal__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}
.cz-modal__head h2{font-family:var(--display);font-size:1.45rem;margin:0}
.cz-modal__close{background:transparent;border:0;color:var(--muted);cursor:pointer;padding:6px;
  border-radius:10px;line-height:0}
.cz-modal__close:hover{color:var(--text);background:var(--glass)}
.cz-modal__close svg{width:20px;height:20px}
.cz-modal__intro{color:var(--muted);margin:0 0 18px;font-size:.95rem}
.cz-field{margin-bottom:16px}
.cz-field label{display:block;font-weight:600;margin-bottom:7px;font-size:.93rem}
.cz-field input,.cz-field textarea{width:100%;background:var(--glass);border:1px solid var(--line);
  border-radius:14px;padding:13px 15px;color:var(--text);font:inherit;font-size:.97rem;
  transition:border-color .2s var(--ease),background .2s var(--ease)}
.cz-field textarea{min-height:128px;resize:vertical}
.cz-field input:focus,.cz-field textarea:focus{outline:none;border-color:var(--slate);background:var(--glass-2)}
.cz-field input::placeholder,.cz-field textarea::placeholder{color:rgba(163,172,217,.55)}
.cz-field.is-invalid input,.cz-field.is-invalid textarea{border-color:var(--crit)}
.cz-error{display:none;color:var(--crit);font-size:.85rem;margin-top:6px}
.cz-field.is-invalid .cz-error{display:block}
.cz-modal__actions{display:flex;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.cz-status{margin:14px 0 0;padding:13px 15px;border-radius:14px;font-size:.93rem;display:none}
.cz-status.is-ok{display:block;background:rgba(23,173,124,.12);border:1px solid rgba(23,173,124,.35);color:#7ee0bd}
.cz-status.is-err{display:block;background:rgba(229,72,77,.12);border:1px solid rgba(229,72,77,.35);color:#f3a0a2}
.cz-modal .btn[disabled]{opacity:.6;pointer-events:none}
body.cz-locked{overflow:hidden}
@media (prefers-reduced-motion:no-preference){
  .cz-modal__panel{animation:czIn .32s var(--ease) both}
  @keyframes czIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
}
@media (max-width:520px){
  .cz-modal{padding:12px}
  .cz-modal__panel{padding:20px 18px 18px}
  .cz-modal__actions{flex-direction:column-reverse}
  .cz-modal__actions .btn{width:100%;justify-content:center}
}
