/* =========================================================
   AltCtrl Intelligence: Sovereign civic-tech site
   ========================================================= */

:root {
  /* Base / civic layer */
  --bg-primary: #f7f6f2;
  --bg-secondary: #ecedea;
  --text-primary: #171717;
  --text-secondary: #5f625f;
  --border: rgba(23, 23, 23, 0.1);
  --border-strong: rgba(23, 23, 23, 0.18);
  --gold: #b79a5b; /* muted champagne gold */
  --gold-soft: rgba(183, 154, 91, 0.55);

  /* Brand accents */
  --teal: #0bdede; /* AltCtrl COS */
  --green: #00e28d; /* REOS */
  --violet: #b18ef0; /* Résidanté */

  /* Surfaces */
  --surface: #fcfbf8;
  --shadow-soft: 0 24px 60px -28px rgba(23, 23, 23, 0.18);
  --shadow-card: 0 18px 50px -30px rgba(23, 23, 23, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-img: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(24px, 5vw, 96px);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
picture {
  display: contents;
}

::selection {
  background: rgba(11, 222, 222, 0.18);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* Screen-reader-only text (visually hidden, still announced) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus (does not show on mouse interaction). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.tab-btn:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.social-icon:focus-visible,
.product-url:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #4a4d4a;
  margin-bottom: 22px;
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.04;
  font-size: clamp(34px, 5vw, 60px);
  max-width: 18ch;
}

.body {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 56ch;
}
.body.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(90px, 12vh, 160px) 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vh, 84px);
  text-align: center;
}
.section-head .eyebrow {
  text-align: center;
}
.section-head .section-title {
  margin: 0 auto;
  text-align: center;
  max-width: 24ch;
}
.section-head .body {
  margin-top: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.26s var(--ease),
    box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease),
    background 0.26s var(--ease);
  border-radius: 100px;
  padding: 14px 28px;
}
.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px -18px rgba(23, 23, 23, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  box-shadow:
    0 18px 40px -20px rgba(23, 23, 23, 0.45),
    0 0 0 1px var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-radius: 0;
  padding: 14px 4px;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.btn-ghost:hover::after {
  transform: scaleX(1);
}
.btn-ghost .arrow {
  margin-left: 8px;
}

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  /* Glassmorphism navbar */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease),
    height 0.3s var(--ease),
    opacity 0.7s var(--ease);
  opacity: 0;
}
.nav.nav-in {
  opacity: 1;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: rgba(23, 23, 23, 0.82);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.26s var(--ease);
}
/* Underline + gradient hover only on top-level nav links (not dropdown items). */
.nav-links > a::after,
.nav-dd-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #0bdede, #00e28d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav-links > a:hover,
.nav-links > a.is-current {
  background: linear-gradient(90deg, #0bdede, #00e28d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* dd-link keeps a solid color on hover so the caret stays visible (gradient underline only). */
.nav-dropdown:hover .nav-dd-link,
.nav-dd-link.is-current {
  color: var(--text-primary);
}
.nav-links > a:hover::after,
.nav-links > a.is-current::after,
.nav-dd-link:hover::after,
.nav-dd-link.is-current::after,
.nav-dropdown:hover .nav-dd-link::after {
  transform: scaleX(1);
}

/* ---------- Ecosystem dropdown ---------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dd-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dd-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.26s var(--ease);
}
.nav-dropdown:hover .dd-caret,
.nav-dropdown:focus-within .dd-caret {
  transform: rotate(-135deg) translateY(-2px);
}

/* Glassmorphism dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 232px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(252, 251, 248, 0.98);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 56px -22px rgba(23, 23, 23, 0.32),
    0 2px 8px rgba(23, 23, 23, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s var(--ease),
    transform 0.24s var(--ease),
    visibility 0.24s;
  z-index: 101;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.dropdown-menu a:hover {
  background: rgba(23, 23, 23, 0.05);
}
.dd-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.dd-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* Mobile nav grouping for the dropdown items */
.nav-mobile-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 14px 0 4px;
}
.nav-mobile-sub {
  padding-left: 16px !important;
  font-size: 13px !important;
}

.social-icon {
  color: rgba(23, 23, 23, 0.82);
  display: inline-flex;
  transition:
    color 0.26s var(--ease),
    transform 0.26s var(--ease);
}
.social-icon:hover {
  transform: translateY(-1px);
}

/* ondo.finance-style right-side CTA pill */
.nav-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.26s var(--ease),
    border-color 0.26s var(--ease),
    box-shadow 0.26s var(--ease),
    background 0.26s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 26px -16px rgba(23, 23, 23, 0.4),
    0 0 0 1px var(--gold-soft);
}

/* Language toggle */
.lang-toggle {
  flex-shrink: 0;
  font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  min-width: 56px;
  cursor: pointer;
  transition:
    border-color 0.26s var(--ease),
    background 0.26s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--gold-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-mobile .lang-toggle {
  display: none;
  align-self: flex-start;
  margin-top: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(247, 246, 242, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px var(--gutter) 28px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);
  z-index: 99;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  font-size: 15px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-bottom: clamp(104px, 12vh, 124px);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Overscan wrapper carries the scroll parallax so downward translate never
   reveals a gap. The inner image carries the entry zoom-out independently. */
.hero-parallax {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  will-change: transform;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.035);
  transition: transform 3.5s var(--ease-img);
  will-change: transform;
}
.hero-img.settled {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 246, 242, 0.8) 0%,
      rgba(247, 246, 242, 0.58) 32%,
      rgba(247, 246, 242, 0.28) 58%,
      rgba(247, 246, 242, 0.06) 82%,
      rgba(247, 246, 242, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 246, 242, 0.26) 0%,
      rgba(247, 246, 242, 0) 30%
    );
}
.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-scan .scan-line {
  position: absolute;
}
.scan-line {
  background-image: repeating-linear-gradient(
    var(--dir, to right),
    rgba(23, 23, 23, 0.5) 0 8px,
    transparent 8px 18px
  );
}
.scan-v {
  top: 0;
  height: 100%;
  width: 1px;
  --dir: to bottom;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(23, 23, 23, 0.4) 0 8px,
    transparent 8px 18px
  );
}
.scan-h {
  left: 0;
  width: 100%;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(23, 23, 23, 0.4) 0 8px,
    transparent 8px 18px
  );
}
.hero-scan .scan-v {
  right: auto;
}
/* keep hero scan only on right half via mask */
.hero-scan {
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 45%, #000 70%);
}

.metric-chip {
  position: relative;
  z-index: 2;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
}
.chip-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.chip-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Horizontal row of chips, aligned at the hero's bottom-right. */
.hero-chips {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(120px, 17vh, 168px);
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.hero-chips .metric-chip {
  width: 184px;
}
/* Spec: chip values may carry product accents (darkened for legibility). */
.chip-1 .chip-value {
  color: var(--green);
  filter: saturate(0.9) brightness(0.72);
}
.chip-2 .chip-value {
  color: var(--teal);
  filter: saturate(0.9) brightness(0.7);
}
.chip-3 .chip-value {
  color: var(--violet);
  filter: saturate(0.95) brightness(0.78);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), 12vw);
}
.hero-content > * {
  max-width: 620px;
}
.hero-title {
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 6px 0 26px;
  text-align: left;
}
.hero-sub {
  color: #4a4d4a;
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 540px;
  margin-bottom: 34px;
  text-shadow: 0 1px 2px rgba(247, 246, 242, 0.7);
}
.hero-cta {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

/* Live-data signal line */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 226, 141, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(0, 226, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 226, 141, 0);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: var(--border-strong);
  overflow: hidden;
  z-index: 3;
}
.scroll-hint span {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text-primary);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0% {
    top: -50%;
  }
  60%,
  100% {
    top: 100%;
  }
}

/* =========================================================
   Split sections (Vision / Intelligence)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.reverse {
  direction: ltr;
}
/* Vision image enlarged to fill the tall section; Intelligence image dominates left. */
.vision .split {
  grid-template-columns: 1fr 1.08fr;
} /* image ≈ 52% */
.vision .img-wrap {
  aspect-ratio: 4 / 5;
} /* taller crop fills the 85vh section */
.vision .img-caption {
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 16px;
}
.intelligence .split.reverse {
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
} /* image ≈ 59% */
/* Record image fills the full text height (like the Thesis image). */
.intelligence .split-media.offset {
  align-self: stretch;
  margin-top: 0;
  padding-bottom: 0;
}
.intelligence .intel-img {
  height: 100%;
}
.split-text {
  max-width: 540px;
  align-self: center;
  text-align: left;
}
.split-text .eyebrow,
.split-text .section-title,
.split-text .body {
  text-align: left;
}
.split-text .body {
  margin: 24px 0 28px;
}

.img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-img);
}
.split-media:hover .img-wrap img {
  transform: scale(1.018);
}
.img-caption {
  margin-top: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  max-width: 44ch;
}

/* Spec: Vision 85vh min, Intelligence 80vh min; content vertically centered. */
.vision {
  background: var(--bg-primary);
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.intelligence {
  background: var(--bg-secondary);
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.vision > .container,
.intelligence > .container {
  width: 100%;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-primary);
  font-size: 16px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* Intelligence offset + scan + float metric */
.split-media {
  position: relative;
  will-change: transform;
}
/* Editorial stagger: image sits slightly below the text baseline (spec). */
.split-media.offset {
  padding-bottom: 40px;
  align-self: flex-start;
  margin-top: clamp(20px, 4vw, 56px);
}
.intel-img {
  position: relative;
}
.intel-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.intel-scan .scan-v {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 226, 141, 0.55) 0 7px,
    transparent 7px 16px
  );
}
.intel-scan .scan-h {
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 226, 141, 0.55) 0 7px,
    transparent 7px 16px
  );
}
.crosshair {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--green);
}
.crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}
.crosshair::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-50%);
}
.scan-label {
  position: absolute;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  background: rgba(252, 251, 248, 0.78);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
}

.float-metric {
  position: absolute;
  right: -8px;
  bottom: -8px;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  min-width: 240px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.fm-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.fm-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fm-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.fm-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
/* Brand green (#00E28D) darkened for legibility on the light panel. */
.accent-green {
  color: var(--green);
  filter: saturate(0.9) brightness(0.74);
}

/* Floating data overlays on the Record image: Market Data above Verified card. */
.record-overlays {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 3;
  width: clamp(244px, 25vw, 296px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.record-overlays .float-metric {
  position: static;
  right: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
}
.market-card {
  width: 100%;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-weight: 600;
}
.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mc-cell {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-cell.mc-wide {
  grid-column: 1 / -1;
}
.mc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.mc-bar {
  height: 7px;
  border-radius: 4px;
  width: 72%;
  background: linear-gradient(
    90deg,
    rgba(0, 226, 141, 0.4),
    rgba(11, 222, 222, 0.18)
  );
}
.mc-wide .mc-bar {
  width: 42%;
  height: 9px;
}

/* =========================================================
   Capabilities
   ========================================================= */
.capabilities {
  background: var(--bg-primary);
}
.tabs {
  max-width: 920px;
  margin: 0 auto clamp(48px, 7vh, 80px);
}
.tab-controls {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 4px 16px;
  transition: color 0.22s var(--ease);
}
.tab-btn.is-active {
  color: var(--text-primary);
}
.tab-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1.5px;
  background: var(--text-primary);
  transition:
    transform 0.36s var(--ease),
    width 0.36s var(--ease);
}
.tab-panels {
  position: relative;
  min-height: 150px;
}
.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
}
.tab-panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tab-panel {
  text-align: center;
}
.tab-panel h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.tab-panel p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 20px;
  font-size: 17px;
}
.tab-metric {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 14px 40px -32px rgba(23, 23, 23, 0.3);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.cap-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cap-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* =========================================================
   Products
   ========================================================= */
.products {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.products > .container {
  position: relative;
  z-index: 2;
}
.products-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.products-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Strong light wash keeps the product cards legible over the waterfront image. */
.products-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(236, 237, 234, 0.9) 0%,
    rgba(236, 237, 234, 0.74) 45%,
    rgba(236, 237, 234, 0.88) 100%
  );
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.product-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform 0.5s var(--ease) 0.15s,
    filter 0.3s var(--ease);
}
.product-card.revealed .product-bar,
[data-reveal-item].product-card.revealed .product-bar {
  transform: scaleX(1);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 26px 60px -34px rgba(23, 23, 23, 0.4);
}
.product-card:hover .product-bar {
  filter: brightness(1.1);
}
.product-layer {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}
/* Uniform logo box so all three product cards read at the same scale + align. */
.product-title {
  margin: 16px 0 10px;
  height: 36px;
  display: flex;
  align-items: center;
}
/* Uniform height (max-width generous) so all three logos read at the same size. */
.product-logo-img {
  width: auto;
  height: auto;
  max-height: 27px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.product-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.product-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}
.product-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-audience {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.product-metric {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  filter: saturate(0.8) brightness(0.82);
}
.product-url {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.26s var(--ease);
}
.product-url::after {
  content: " ↗";
  opacity: 0.5;
}
.product-url:hover {
  color: var(--accent);
  filter: saturate(0.8) brightness(0.82);
}

.product-loop-note {
  margin: clamp(40px, 6vh, 64px) auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =========================================================
   Verified Sources
   ========================================================= */
/* =========================================================
   The Data Spine: white strip with running source logos,
   pinned to the base of the hero.
   ========================================================= */
.hero-spine {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 92px;
  background: rgba(252, 251, 248, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.spine-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.spine-label {
  flex-shrink: 0;
  width: 116px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-secondary);
}
.spine-divider {
  flex-shrink: 0;
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}
.spine-marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}
.spine-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: spineScroll 42s linear infinite;
}
.spine-marquee:hover .spine-track {
  animation-play-state: paused;
}
.spine-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(22px, 3vw, 42px);
}
.spine-item img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease);
}
.spine-item:hover img {
  opacity: 1;
}
/* Sentinel-2 + Copernicus sit flush together (0px gap). */
.spine-pair {
  gap: 0;
}
@keyframes spineScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   Scenarios
   ========================================================= */
.scenarios {
  background: var(--bg-secondary);
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.scenario-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 18px;
}
.scenario-q {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.scenario-a {
  font-size: 14.5px;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 24px;
}
.scenario-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.sm-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.sm-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =========================================================
   Final CTA + Footer
   ========================================================= */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.final-cta > .final-inner {
  width: 100%;
}
.final-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Distinct crop vs hero (hero = center right): pull a lower-left detail view. */
.final-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 70%;
  transform: scale(1.08);
}
.final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 246, 242, 0.92),
    rgba(247, 246, 242, 0.86)
  );
}
.final-inner {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 80px;
}
.final-inner .section-title {
  margin: 0 auto;
}
.final-inner .body {
  margin: clamp(28px, 4vh, 48px) auto 0;
}
.final-cta-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: clamp(40px, 6vh, 68px);
  flex-wrap: wrap;
}

/* Matte-black footer with light text. */
.site-footer {
  position: relative;
  z-index: 2;
  background: #0e0e0e;
  color: rgba(255, 255, 255, 0.62);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(56px, 8vh, 88px);
  padding-bottom: 40px;
}
/* Institutional credibility line */
.footer-trust {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.42);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 380px;
}
.footer-logo {
  height: 44px;
  width: auto;
  align-self: flex-start;
}
.footer-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f7f6f2;
}
.footer-micro {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 20px 84px;
  align-content: start;
}
.footer-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.26s var(--ease);
}
.footer-links a:hover {
  background: linear-gradient(90deg, #0bdede, #00e28d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-social {
  display: flex;
  gap: 18px;
  align-self: start;
  justify-self: end;
}
.footer-social .social-icon {
  color: rgba(255, 255, 255, 0.68);
}
.footer-social .social-icon:nth-child(1):hover {
  color: var(--violet);
}
.footer-social .social-icon:nth-child(2):hover {
  color: var(--teal);
}
.footer-social .social-icon:nth-child(3):hover {
  color: var(--green);
}

.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
.footer-legal-links {
  display: flex;
  gap: 22px;
}
.footer-legal-links a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.26s var(--ease);
}
.footer-legal-links a:hover {
  color: #fff;
}

/* =========================================================
   Pixel page transition
   ========================================================= */
.pixel-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  pointer-events: none;
}
.pixel-transition .cell {
  background: var(--bg-primary);
}
.pixel-transition.done {
  display: none;
}

/* =========================================================
   Animation states (JS-driven)
   ========================================================= */
[data-reveal],
[data-reveal-item] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].revealed,
[data-reveal-item].revealed {
  opacity: 1;
  transform: none;
}

/* Mosaic title tiles */
.mosaic {
  position: relative;
}
.mosaic .m-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.28em; /* word spacing; trailing margin keeps wrapped lines flush-left */
}
.mosaic .m-word:last-child {
  margin-right: 0;
}
.mosaic .m-tile {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
  will-change: opacity, transform, filter;
}
.mosaic.play .m-tile {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   P2: animation refinements (spec timings)
   ========================================================= */
/* Per-element reveal durations */
.eyebrow[data-reveal] {
  transition-duration: 0.5s;
}
.body[data-reveal] {
  transition-duration: 0.7s;
}
.cap-card[data-reveal-item] {
  transition-duration: 0.65s;
}
.product-card[data-reveal-item] {
  transition-duration: 0.7s;
}
.scenario-card[data-reveal-item] {
  transition-duration: 0.75s;
}

/* Image blocks: translateY 32→0, scale 0.985→1 over 900ms */
.split-media[data-reveal] {
  transform: translateY(32px) scale(0.985);
  transition-duration: 0.9s;
}

/* Metric count/fade-ins, keyed on the card's reveal state */
.scenario-card .sm-value {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: 0.25s;
}
.scenario-card.revealed .sm-value {
  opacity: 1;
  transform: none;
}
.product-card .product-metric {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  transition-delay: 0.3s;
}
.product-card.revealed .product-metric {
  opacity: 1;
}

/* Tab metric: fade/slide in 900ms, 160ms after text (appears last) */
.tab-panel .tab-metric {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.tab-panel.is-active .tab-metric {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}

/* Spatial scan: dashed lines draw 0→100% over 1.2s (JS toggles .scan-drawn) */
.scan-v {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--ease);
}
.scan-h {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.scan-drawn .scan-v {
  transform: scaleY(1);
}
.scan-drawn .scan-h {
  transform: scaleX(1);
}
/* Scan pulse loop (hero only, intel keeps its labels at full opacity) */
@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.04;
  }
  50% {
    opacity: 0.09;
  }
}
.hero-scan.scan-pulsing {
  animation: scanPulse 3.8s ease-in-out infinite;
}

/* Hero veil: opacity 0.18 → 0.32 across the first viewport of scroll (JS) */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-primary);
  opacity: 0.18;
  pointer-events: none;
}

/* =========================================================
   Arabic / RTL
   ========================================================= */
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}
html[lang="ar"] {
  --gutter: clamp(24px, 5vw, 96px);
}

/* Hero text moves to the right edge in RTL */
[dir="rtl"] .hero-content {
  padding-left: var(--gutter);
  padding-right: max(var(--gutter), 12vw);
  text-align: right;
}
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-content .eyebrow,
[dir="rtl"] .hero-sub,
[dir="rtl"] .split-text,
[dir="rtl"] .split-text .eyebrow,
[dir="rtl"] .split-text .section-title,
[dir="rtl"] .split-text .body {
  text-align: right;
}

/* Floating overlays + chips flip sides */
[dir="rtl"] .hero-chips {
  right: auto;
  left: clamp(24px, 5vw, 72px);
}
[dir="rtl"] .record-overlays {
  right: auto;
  left: -8px;
}
[dir="rtl"] .float-metric,
[dir="rtl"] .market-card {
  text-align: right;
}

/* Feature-list markers move to the right */
[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 26px;
}
[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0;
}

/* Underlines grow from the trailing (right) edge */
[dir="rtl"] .nav-links > a::after,
[dir="rtl"] .nav-dd-link::after,
[dir="rtl"] .btn-ghost::after {
  transform-origin: right;
}

/* Skip link to the top-right */
[dir="rtl"] .skip-link {
  left: auto;
  right: 0;
  border-radius: 0 0 0 8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-mobile .lang-toggle {
    display: inline-block;
  }
  .nav-toggle {
    display: flex;
  }

  .split,
  .split.reverse,
  .vision .split,
  .intelligence .split.reverse {
    grid-template-columns: 1fr;
  }
  .vision,
  .intelligence {
    min-height: 0;
    display: block;
  }
  .split.reverse .split-media {
    order: 2;
  }
  .split.reverse .split-text {
    order: 1;
  }
  .split-media.offset {
    padding-bottom: 60px;
    margin-top: 0;
  }
  /* Data overlays flow inline below the image on mobile. */
  .record-overlays {
    position: static;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 360px;
    margin: 18px auto 0;
  }
  .intelligence .intel-img {
    height: auto;
  }
  .vision .img-wrap {
    aspect-ratio: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  /* Data Spine: tighter on mobile */
  .hero-spine {
    height: 74px;
  }
  .spine-label {
    width: 92px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
  .spine-item img {
    height: 30px;
  }

  .metric-chip {
    display: none;
  }
  /* Disable scan overlays on mobile, they compete with text readability (spec). */
  .hero-scan,
  .intel-scan {
    display: none;
  }
  .hero-content {
    padding-top: 0;
  }
  .hero-title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }
  .footer-brand-col {
    max-width: none;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta,
  .final-cta-row {
    gap: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-reveal-item] {
    opacity: 1;
    transform: none;
  }
  .mosaic .m-tile {
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* Keep informative chips/labels visible, but the decorative hero scan stays ultra-faint. */
  .metric-chip,
  .intel-scan,
  .crosshair,
  .scan-label {
    opacity: 1 !important;
  }
  .hero-scan {
    opacity: 0.05 !important;
  }
  .scan-v,
  .scan-h {
    transform: none !important;
  }
  .split-media[data-reveal] {
    transform: none;
  }
  .scenario-card .sm-value,
  .product-card .product-metric,
  .tab-panel .tab-metric {
    opacity: 1 !important;
    transform: none !important;
  }
  .nav {
    opacity: 1;
  }
  .spine-track {
    animation: none;
  }
}
