/* ============================================================
   RETROTECH — Main Stylesheet
   Stack: Plain HTML/CSS/JS — no build step required
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0B0E14;
  --bg2:       #0F1319;
  --bg3:       #141820;
  --surface:   #181D27;
  --surface2:  #1E2433;
  --border:    rgba(255,255,255,0.07);
  --red:       #C8102E;
  --red-dark:  #A00D24;
  --red-glow:  rgba(200,16,46,0.18);
  --text:      #E8EBF0;
  --muted:     #8A91A0;
  --white:     #FFFFFF;
  /* Light surface tokens (for alternating light sections) */
  --light-bg:      #F4F6F9;
  --light-surface: #FFFFFF;
  --light-text:    #14171F;
  --light-muted:   #586173;
  --light-border:  rgba(20,23,31,0.12);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h:     72px;
  --radius:    12px;
  --radius-lg: 20px;
  --trans:     0.3s ease;
  --gutter:    24px;        /* shared horizontal page gutter */
  --container-max: 1200px;  /* single content width — header, hero & sections all respect it */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.red { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px var(--red-glow); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: 10px 20px; }
.btn-lg  { padding: 16px 36px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ── Scroll-animation classes ───────────────────────────────── */
/* Only apply hidden state when JS has loaded (progressive enhancement) */
.js .fade-in,
.js .fade-up {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.992);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js .fade-in.visible,
.js .fade-up.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .js .fade-in,
  .js .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Section shared ─────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red);
  margin-top: 16px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #FFFFFF;
  border-bottom: 1px solid rgba(20,23,31,0.10);
  z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans);
}
.site-nav.scrolled {
  background: #FFFFFF;
  box-shadow: 0 2px 22px rgba(20,23,31,0.12);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.logo-retro { color: var(--white); }
.logo-tech  { color: var(--red); }

.nav-logo-img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--trans);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.03); }
.footer-logo-img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--red);
  padding: 8px 14px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--trans), background var(--trans);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover,
.nav-link.active { color: var(--red-dark); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid rgba(20,23,31,0.12);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(20,23,31,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--light-text);
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
}
.dropdown-menu a:hover { color: var(--red); background: rgba(200,16,46,0.08); }
/* "RETRO." prefix stays black even when the item is highlighted; only the suffix takes the highlight */
.dropdown-menu a .dd-pre { color: var(--light-text); }
.dropdown-menu a::selection,
.dropdown-menu a .dd-pre::selection { background: rgba(200,16,46,0.18); color: var(--light-text); }
.dropdown-menu a .red::selection { background: rgba(200,16,46,0.18); color: var(--red); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  /* Left inset matches the shared container so the hero text lines up with the logo & all sections */
  padding: var(--nav-h) max(var(--gutter), calc((100% - var(--container-max)) / 2 + var(--gutter))) 80px;
  background-color: #F4F6F9;   /* light base shown before/without JS — keep in sync with the canvas background */
}

/* Animated circuit-network canvas — fills the hero, sits behind the tint + text */
.hero #hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  will-change: opacity;
}

/* Grey tint — mutes the animation and unifies it with the site palette; sits above
   the canvas, below the text. Its opacity is scroll-linked (fades with the canvas). */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(88, 97, 115, 0.13);
  pointer-events: none;
  will-change: opacity;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/background image here.png');
  background-size: cover;
  background-position: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Dark gradient removed — legibility now comes from the translucent white panel behind the hero text */

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0;
}
/* Soft radial light-wash — keeps text legible over the moving traces without a hard panel */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -80px -60px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 68% 74% at 50% 50%,
    rgba(244,246,249,0.94) 0%,
    rgba(244,246,249,0.70) 40%,
    rgba(244,246,249,0.30) 62%,
    rgba(244,246,249,0) 78%);
}

/* Hero wordmark — leads the hero, animates in on load */
.hero-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  opacity: 0;
  transform: scale(0.94);
  animation: wordmark-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.wm-retro { color: var(--light-text); }
.wm-tech  { color: var(--red); }
.wm-dot {
  display: inline-block;
  color: var(--red);
  opacity: 0;
  transform: scale(0.3);
  animation: dot-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s forwards;
}
@keyframes wordmark-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes dot-in {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-rise 0.6s ease 0.5s forwards;
}
.hero-headline,
.hero-sub,
.hero-content .btn {
  opacity: 0;
  animation: fade-rise 0.6s ease forwards;
}
.hero-headline { animation-delay: 0.6s; }
.hero-sub      { animation-delay: 0.72s; }
.hero-content .btn { animation-delay: 0.84s; }
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--light-muted);
  max-width: 580px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
  transition: opacity var(--trans);
}
.scroll-cue:hover { opacity: 0.7; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─────────────────────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────────────────────── */
.about {
  background-color: var(--bg2);
  position: relative;
  background-image: url('../assets/about-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,14,20,0.92) 55%, rgba(11,14,20,0.65) 100%);
  z-index: 0;
}
.about .container { position: relative; z-index: 1; }

.about-body {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 56px;
}

.industry-strip {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.strip-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.industry-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 100px;
  padding: 9px 20px;
  display: inline-block;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform var(--trans);
}
a.badge { cursor: pointer; }
a.badge:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   SOLUTIONS
───────────────────────────────────────────────────────────── */
.solutions { background: var(--bg); }

.solutions-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 760px;
  margin-top: 8px;
}
.solutions-intro strong { color: var(--white); font-weight: 600; }

.solutions-footnote {
  margin-top: 36px;
  padding: 18px 24px;
  border-left: 3px solid var(--red);
  background: rgba(200,16,46,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.sol-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1A0A10 0%, #260C16 60%, #1A0A10 100%);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,16,46,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(200,16,46,0.2);
  border-color: rgba(200,16,46,0.5);
}

.sol-icon {
  width: 72px;
  height: 72px;
  background: rgba(200,16,46,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.sol-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.sol-tag {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sol-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sol-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.sol-modular {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8AEB6;
}
.sol-modular::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.sol-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.25rem;
  color: var(--red);
  transition: transform var(--trans);
}
.sol-card:hover .sol-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────
   PRODUCT SECTIONS (shared)
───────────────────────────────────────────────────────────── */
.product-section { background-color: var(--bg2); position: relative; }
.product-alt     { background-color: var(--bg3); position: relative; }

/* Per-product background images */
#rtms {
  background-image: url('../assets/rtms-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
#rtms::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,14,20,0.88);
  z-index: 0;
}
#rtms .container { position: relative; z-index: 1; }

#fms {
  background-image: url('../assets/fms-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
#fms::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,14,20,0.87);
  z-index: 0;
}
#fms .container { position: relative; z-index: 1; }

#dcs {
  background-image: url('../assets/dcs-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
#dcs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,14,20,0.88);
  z-index: 0;
}
#dcs .container { position: relative; z-index: 1; }

.product-tagline {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: -12px;
  margin-bottom: 22px;
}
.product-intro {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 800px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── Operational flow diagram (RTMS) ───────────────────────── */
.flow-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 6px;
  padding: 28px 32px;
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 90px;
}
.flow-num {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.4);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
}
.flow-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.flow-arrow {
  color: var(--red);
  font-size: 1.1rem;
  opacity: 0.6;
  flex: 0 0 auto;
}

/* ── Tabbed interface (RTMS) ───────────────────────────────── */
.tabs { margin-bottom: 0; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.tab-btn {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 18px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans);
}
.tab-btn:hover { color: var(--white); }
.tab-btn.is-active {
  color: var(--white);
  border-bottom-color: var(--red);
}
.tab-panel { animation: fade-rise 0.4s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 720px;
}

/* ── Feature cards (icon grid) ─────────────────────────────── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.feature-cards.four {
  grid-template-columns: repeat(4, 1fr);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform var(--trans), border-color var(--trans);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,16,46,0.4);
}
.fc-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,16,46,0.1);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Interactive Storage Overview dashboard (RTMS) ─────────── */
.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}
.dash-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-chip {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.kpi {
  background: var(--bg2);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.dash-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

/* Donut */
.donut-area { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-wrap { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-seg {
  transition: stroke-dasharray 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity var(--trans);
  cursor: pointer;
}
.donut-seg.is-dim { opacity: 0.25; }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.dc-pct { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.dc-name { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.dc-vol { font-size: 0.68rem; color: var(--muted); opacity: 0.7; margin-top: 2px; }

.donut-legend { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }
.donut-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--trans);
}
.donut-legend li:hover, .donut-legend li.is-active { background: var(--surface2); }
.lg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.lg-name { font-size: 0.82rem; color: var(--text); flex: 1; }
.lg-pct { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: var(--white); }

/* Aging bars */
.bars { display: flex; align-items: flex-end; gap: 16px; height: 200px; padding-top: 10px; }
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.bar-track {
  width: 100%;
  max-width: 56px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgba(255,255,255,0.03);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #2BA84A, #1d7d37);
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-col:first-child .bar-fill { background: linear-gradient(180deg, #2BA84A, #1d7d37); }
.bar-val { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; color: var(--white); }
.bar-label { font-size: 0.68rem; color: var(--muted); text-align: center; }

/* ── Fleet Overview app shell + sidebar (FMS) ──────────────── */
.dashboard-app { padding: 0; overflow: hidden; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; }
.app-nav {
  background: #0a0d14;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-brand { padding: 0 6px; }
.app-logo {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.app-brand-sub { font-size: 0.68rem; color: var(--muted); }
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
}
.app-menu { display: flex; flex-direction: column; gap: 2px; }
.app-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.app-item:hover { background: var(--surface); color: var(--white); }
.app-ico { flex-shrink: 0; color: currentColor; }
.app-item-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chev { flex-shrink: 0; color: var(--muted); opacity: 0.6; }
.app-item.is-active {
  background: rgba(200,16,46,0.14);
  color: var(--white);
  box-shadow: inset 2px 0 0 var(--red);
}
.app-item.is-active .app-ico { color: var(--red); }
.app-main { padding: 28px; min-width: 0; }

/* ── Fleet Overview dashboard (FMS) ────────────────────────── */
.kpi-row-4 { grid-template-columns: repeat(4, 1fr); }
.dash-hint { font-weight: 400; color: var(--muted); font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
.kpi-delta { font-size: 0.7rem; margin-top: 2px; }
.kpi-delta.is-up   { color: #2BA84A; }
.kpi-delta.is-flat { color: var(--muted); }
.kpi-delta.is-warn { color: #E0A82E; }

.fleet-mid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Alerts */
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sev);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: background var(--trans), opacity var(--trans);
}
.alert:hover { background: var(--surface2); }
.alert-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sev);
  margin-top: 5px;
  flex-shrink: 0;
}
.alert-body { flex: 1; min-width: 0; }
.alert-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 10px; }
.alert-title { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--white); flex: 1; min-width: 0; }
/* Once acknowledged, the title takes the full line so the badge drops cleanly beneath it (no overlap) */
.alert.is-ack .alert-title { flex-basis: 100%; }
.alert-sev {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--sev); border: 1px solid var(--sev); border-radius: 100px; padding: 2px 8px; flex-shrink: 0;
}
.alert-desc { font-size: 0.82rem; color: var(--muted); margin: 4px 0 6px; }
.alert-time { font-size: 0.72rem; color: var(--muted); opacity: 0.7; }
.alert-ack {
  display: none;
  font-size: 0.68rem; font-weight: 700; color: #2BA84A;
  white-space: nowrap; flex-shrink: 0; margin-top: 1px;
}
.alert.is-ack { opacity: 0.6; }
.alert.is-ack .alert-sev { display: none; }
.alert.is-ack .alert-ack { display: inline; }
.alert.is-ack .alert-title { text-decoration: line-through; }

/* Performance targets */
.targets { display: flex; flex-direction: column; gap: 18px; }
.target-head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text); margin-bottom: 8px; }
.target-head strong { font-family: var(--font-head); color: var(--white); }
.target-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.08); overflow: hidden; }
.target-fill { display: block; height: 100%; border-radius: 100px; transition: width 1s cubic-bezier(0.22,1,0.36,1); }

/* Key metric gauges */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gauge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.gauge-ring { position: relative; width: 110px; height: 110px; }
.gauge-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-arc { transition: stroke-dasharray 1s cubic-bezier(0.22,1,0.36,1); }
.gauge-value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--white);
}
.gauge-label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; color: var(--white); }
.gauge-unit { font-size: 0.7rem; color: var(--muted); }

/* ── Interactive tank inventory (RTMS) ─────────────────────── */
.tank-board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tank-board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tank-board-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tank-board-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.tank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tlg {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tlg::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.tlg[data-s="normal"]::before     { background: #2BA84A; }
.tlg[data-s="near-full"]::before  { background: #C8102E; }
.tlg[data-s="near-empty"]::before { background: #2E7DD1; }
.tlg[data-s="on-hold"]::before    { background: #E0A82E; }
.tlg[data-s="off-spec"]::before   { background: #8B5CF6; }

.tank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tank-filter {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.tank-filter:hover { color: var(--white); }
.tank-filter.is-active {
  color: var(--white);
  border-color: var(--red);
  background: rgba(200,16,46,0.12);
}

.tank-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.tank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 14px;
}

/* Tank card */
.tank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px 10px;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.tank:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.tank.is-selected {
  border-color: var(--fill);
  box-shadow: 0 0 0 2px var(--fill), 0 12px 28px rgba(0,0,0,0.4);
}
.tank-vessel {
  position: relative;
  width: 100%;
  max-width: 48px;
  height: 88px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px 4px 6px 6px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.tank-liquid {
  width: 100%;
  background: var(--fill);
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
  align-self: flex-end;
}
.tank-gauge {
  position: absolute;
  left: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  z-index: 1;
  letter-spacing: 0.05em;
}
.tank-gauge.hh { top: 4%; }
.tank-gauge.h  { top: 26%; }
.tank-gauge.l  { top: 70%; }
.tank-gauge.ll { top: 88%; }
.tank-id {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.tank-pct {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

/* Detail panel */
.tank-detail {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.td-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.td-id {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.td-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 100px;
  padding: 4px 11px;
}
.td-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.td-swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}
.td-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.td-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.td-bar {
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 8px;
}
.td-bar-fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.td-pctline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.td-pctline strong { color: var(--white); font-size: 1rem; }
.td-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.td-stats div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.td-stats dt { font-size: 0.85rem; color: var(--muted); }
.td-stats dd {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Browser-mockup screenshot placeholder ─────────────────── */
.mockup {
  margin: 8px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.mockup-bar span:first-child { background: rgba(200,16,46,0.6); }
.mockup-screen {
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(200,16,46,0.08), transparent 70%),
    var(--bg2);
  text-align: center;
  padding: 24px;
}
.mockup-label {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.mockup-hint {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Real screenshot inside a mockup frame */
.mockup-img {
  display: block;
  width: 100%;
  height: auto;
}
.mockup-cap {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

/* Diagram figure (DCS architecture) — framed, no browser chrome */
.diagram-figure {
  margin: 8px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0d18;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.diagram-img {
  display: block;
  width: 100%;
  height: auto;
}
.diagram-figure .mockup-cap { background: var(--surface); }

/* ── Inside-grid icons (FMS) ───────────────────────────────── */
.ii-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Document lifecycle stepper (DCS) ──────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.step-dot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,16,46,0.12);
  border: 1.5px solid var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
}
.step-name {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step-line {
  flex: 1 1 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,16,46,0.5), rgba(200,16,46,0.2));
  margin-bottom: 30px;
  min-width: 16px;
}

/* ── Interactive Document Control workspace (DCS) ──────────── */
.dcs-workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
/* Interactive stepper (filter) */
.dcs-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.dcs-stepper .step {
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 10px;
  transition: background var(--trans);
}
.dcs-stepper .step:hover { background: var(--surface2); }
.dcs-stepper .step.is-active .step-dot { background: var(--red); color: var(--white); }
.dcs-stepper .step.is-active .step-name { color: var(--white); }
.step-count {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 4px;
}

.dcs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
/* Register */
.dcs-register { display: flex; flex-direction: column; gap: 16px; }
.dcs-cat-head {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.dcs-doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color var(--trans), background var(--trans);
}
.dcs-doc:hover { border-color: rgba(255,255,255,0.2); }
.dcs-doc.is-selected { border-color: var(--red); background: rgba(200,16,46,0.08); }
.dcs-doc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dcs-doc-id { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; color: var(--red); letter-spacing: 0.03em; }
.dcs-doc-title { font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcs-doc-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dcs-rev { font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.dcs-pill {
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 100px; padding: 3px 9px; white-space: nowrap;
}

/* Detail */
.dcs-detail {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.dcs-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dcs-d-id { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; color: var(--red); }
.dcs-d-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-top: 2px; line-height: 1.3; }
.dcs-d-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.dcs-d-meta span { font-size: 0.82rem; color: var(--white); }
.dcs-d-meta em { display: block; font-style: normal; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }

/* Mini stage progress */
.dcs-mini-stepper { display: flex; align-items: flex-start; margin-bottom: 20px; }
.mini-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; width: 52px; }
.mini-dot {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.72rem; font-weight: 700; font-family: var(--font-head);
  background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border);
}
.mini-step.done .mini-dot { background: rgba(43,168,74,0.15); color: #2BA84A; border-color: rgba(43,168,74,0.5); }
.mini-step.current .mini-dot { background: var(--red); color: var(--white); border-color: var(--red); }
.mini-name { font-size: 0.6rem; color: var(--muted); text-align: center; line-height: 1.25; }
.mini-step.current .mini-name { color: var(--white); }
.mini-line { flex: 1 1 auto; height: 2px; background: var(--border); margin-top: 13px; }

.dcs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dcs-col-title { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.dcs-rows { display: flex; flex-direction: column; gap: 8px; }
.dcs-rows li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; }
.dcs-rv, .dcs-rw { color: var(--text); }
.dcs-rv { font-family: var(--font-head); font-weight: 600; }
.dcs-rs { font-size: 0.68rem; font-weight: 700; color: var(--c); white-space: nowrap; }

/* ── Interactive Document Control Hub (DCS) — linear ───────── */
.hub-linear {
  background: linear-gradient(160deg, #0a0d18 0%, #0f1320 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
/* Hub spine bar */
.hub-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, #2a0e15, #14111a);
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow var(--trans), border-color var(--trans);
}
.hub-bar.is-active { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 12px 36px rgba(200,16,46,0.22); }
.hub-bar-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--red);
}
.hub-bar-label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hub-bar-sub { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* Branch connector + node row */
.hub-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 0;
  padding-top: 22px;
  position: relative;
}
.hub-row::before {
  /* vertical stem from the bar down to the horizontal rail */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 12px;
  background: rgba(200,16,46,0.5);
}
.hub-row::after {
  /* horizontal rail above the nodes */
  content: '';
  position: absolute;
  top: 12px; left: 8.33%; right: 8.33%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.hub-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px 14px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.hub-node::before {
  /* short tick connecting each node up to the rail */
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  width: 1px; height: 10px;
  background: rgba(255,255,255,0.14);
  transition: background var(--trans);
}
.hub-node:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.25); }
.hub-node-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(200,16,46,0.12);
  color: var(--red);
}
.hub-node-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.hub-node.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 10px 28px rgba(200,16,46,0.3);
}
.hub-node.is-active::before { background: var(--red); }
.hub-node.is-active .hub-node-ico { background: var(--red); color: var(--white); }
.hub-node.is-active .hub-node-label { color: var(--white); }

.hub-detail {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 24px;
}
.hub-d-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.hub-d-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.product-block {
  margin-bottom: 72px;
}
/* Extra separation when "What's inside" follows the Fleet Overview dashboard */
.dashboard-app + .product-block { margin-top: 88px; }
.product-block:last-child { margin-bottom: 0; }

.product-block-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.product-block-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Feature list (RTMS Operations) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
}

/* Four-col features (RTMS Commercial) */
.feature-cols.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.feature-col-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-col-icon { margin-bottom: 16px; }
.feature-col-item h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.feature-col-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.feature-tagline {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Modules grid */
.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.module-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color var(--trans), color var(--trans);
}
.module-pill:hover { border-color: var(--red); color: var(--white); }

/* Why grid (FMS) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--trans), box-shadow var(--trans);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.why-icon {
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,16,46,0.12);
  border-radius: 14px;
}
.why-icon img { width: 36px; height: 36px; object-fit: contain; }
.why-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.why-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* Inside grid (FMS What's inside) */
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 500;
}
.ai-tag::before {
  content: '✦';
  font-size: 0.7rem;
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.inside-item {
  padding: 24px 30px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background var(--trans), color var(--trans);
}
.inside-item:nth-child(even) { border-right: none; }
.inside-item:nth-last-child(-n+2) { border-bottom: none; }
.inside-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 2px;
}
.inside-item:hover { background: var(--surface2); color: var(--white); }

/* Trust strip (FMS) */
.trust-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
}
.trust-quote {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 28px;
  border-left: 3px solid var(--red);
  padding-left: 20px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tbadge {
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.25);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 14px;
}

/* Workspace grid (DCS) */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.workspace-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.ws-icon { margin-bottom: 20px; }
.workspace-card h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.workspace-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* Benefit grid (DCS) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.benefit-item {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.benefit-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 6px;
}
.benefit-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.benefit-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* Lifecycle strip (DCS) */
.lifecycle-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.lifecycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lc-num {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
}
.lc-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lifecycle-arrow {
  font-size: 1.5rem;
  color: var(--red);
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────
   STATS
───────────────────────────────────────────────────────────── */
.stats-section {
  background-color: var(--bg);
  background-image: url('../assets/stats-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,14,20,0.88);
  background-image:
    linear-gradient(rgba(200,16,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.stats-section .container { position: relative; z-index: 1; }

.stats-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  position: relative;
}
.stat-item {
  background: var(--bg2);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--trans);
}
.stat-item:hover { background: var(--surface); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.industries-served {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.served-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.served-list {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
}
.served-list .dot { color: var(--red); }

/* ─────────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────────── */
.contact-section {
  background-color: var(--bg2);
  background-image: url('../assets/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,14,20,0.90);
  z-index: 0;
}
.contact-section .container { position: relative; z-index: 1; }

.contact-intro {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

/* Form */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group label span { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  resize: vertical;
  width: 100%;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A91A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option { background: var(--surface); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* Offset so the box aligns with the first form field (under its label),
     not with the label row. Reset when the grid stacks (≤1024px). */
  margin-top: 27px;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.ci-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--red-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ci-item a:hover { color: var(--white); }

/* Form success */
.form-success {
  text-align: center;
  padding: 80px 24px;
}
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 20px 0 12px;
  text-transform: uppercase;
}
.form-success p { color: var(--muted); }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(20,23,31,0.10);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 24px 18px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { display: inline-flex; }
.footer-logo-img { height: 60px; width: auto; }
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
}
.footer-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light-text);
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--red); }
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}
.footer-contact a,
.footer-contact span {
  font-size: 0.8rem;
  color: var(--light-muted);
  transition: color var(--trans);
}
.footer-contact a:hover { color: var(--red); }
.footer-contact .fc-sep { color: rgba(20,23,31,0.30); }
.footer-bottom {
  border-top: 1px solid rgba(20,23,31,0.08);
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--light-muted);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .solutions-grid        { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .feature-cols.four-col { grid-template-columns: repeat(2, 1fr); }
  .feature-cards.four    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid            { grid-template-columns: repeat(2, 1fr); }
  .contact-grid          { grid-template-columns: 1fr; }
  .contact-info          { margin-top: 0; }
  .footer-inner          { grid-template-columns: 1fr 1fr; }
  .kpi-row               { grid-template-columns: repeat(3, 1fr); }
  .kpi-row-4             { grid-template-columns: repeat(2, 1fr); }
  .dash-charts           { grid-template-columns: 1fr; }
  .fleet-mid             { grid-template-columns: 1fr; }
  .gauges                { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  /* Nav mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 32px;
    gap: 2px;
    border-bottom: 1px solid rgba(20,23,31,0.10);
    box-shadow: 0 12px 24px rgba(20,23,31,0.10);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: 14px 16px; }
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #F4F6F9;
    margin-top: 4px;
    border-radius: var(--radius);
  }
  .nav-links .btn { margin: 12px 16px 0; }

  .hero-headline { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .hero-sub      { font-size: 1rem; }

  .why-grid       { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .inside-grid    { grid-template-columns: 1fr; }
  .inside-item:nth-child(even) { border-right: 1px solid var(--border); }
  .inside-item:nth-last-child(1) { border-bottom: none; }
  .inside-item:nth-last-child(2) { border-bottom: 1px solid var(--border); }

  .benefit-grid  { grid-template-columns: 1fr; }
  .feature-cols.four-col { grid-template-columns: 1fr; }
  .feature-cards,
  .feature-cards.four { grid-template-columns: 1fr 1fr; }

  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item     { padding: 32px 20px; }

  .form-row.two-col { grid-template-columns: 1fr; }

  .lifecycle-strip  { padding: 28px 24px; gap: 12px; }
  .lifecycle-arrow  { font-size: 1rem; }

  .nav-logo-img { height: 40px; }

  /* Flow diagram → vertical stack on mobile */
  .flow-diagram { flex-direction: column; align-items: stretch; }
  .flow-step { flex-direction: row; justify-content: flex-start; gap: 14px; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }

  /* Stepper → wrap to 2 rows on mobile */
  .stepper { flex-wrap: wrap; justify-content: center; gap: 16px 12px; }
  .step-line { display: none; }

  /* DCS workspace → stack */
  .dcs-stepper { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .dcs-stepper .step-line { display: none; }
  .dcs-layout { grid-template-columns: 1fr; }
  .dcs-detail { position: static; }
  .dcs-workspace { padding: 18px; }
  .dcs-cols { grid-template-columns: 1fr; }

  /* Hub (linear) → nodes wrap to a grid; hide the single-row rail */
  .hub-linear { padding: 18px; }
  .hub-row { grid-template-columns: repeat(3, 1fr); padding-top: 4px; }
  .hub-row::before, .hub-row::after { display: none; }
  .hub-node::before { display: none; }
  .hub-bar-sub { display: none; }

  .tank-layout { grid-template-columns: 1fr; }
  .tank-detail { position: static; }
  .tank-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .trust-strip { padding: 28px 20px; }
  .contact-info { padding: 24px; }
  .solutions-grid { max-width: 100%; }
  .feature-cards,
  .feature-cards.four { grid-template-columns: 1fr; }
  .tab-btn { padding: 12px 12px; font-size: 0.8rem; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard { padding: 18px; }
  .dashboard-app { padding: 0; }

  /* App shell → sidebar becomes a horizontal module strip */
  .app-shell { grid-template-columns: 1fr; }
  .app-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
  }
  .app-brand, .app-search { display: none; }
  .app-menu { flex-direction: row; gap: 8px; }
  .app-item {
    flex-shrink: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 14px;
  }
  .app-item.is-active { box-shadow: none; border-color: var(--red); }
  .app-chev { display: none; }
  .app-main { padding: 18px; }
}

/* Disable fixed attachment on mobile (iOS Safari bug) */
@media (max-width: 768px) {
  .about,
  #rtms, #fms, #dcs,
  .stats-section,
  .contact-section {
    background-attachment: scroll;
  }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION — honour user preference
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-wordmark,
  .wm-dot,
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-content .btn {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-cue { animation: none !important; }
  /* Fall back to the static poster image instead of the looping video */
  .hero-video { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT SURFACE — alternating light sections
   Apply class "surface-light" to a <section>. Dark is the default.
═══════════════════════════════════════════════════════════════ */
.surface-light {
  background: var(--light-bg);
  color: var(--light-text);
}
.surface-light .section-title { color: var(--light-text); }
.surface-light .red { color: var(--red); }            /* accent stays crimson */
.surface-light .section-label { color: var(--red); }
.surface-light .about-body,
.surface-light .product-intro,
.surface-light .solutions-intro,
.surface-light .stats-sub,
.surface-light .contact-intro,
.surface-light p { color: var(--light-muted); }
.surface-light .product-tagline { color: var(--red); }

/* Industry strip / badges on light */
.surface-light .industry-strip { border-top-color: var(--light-border); }
.surface-light .strip-label { color: var(--red); }
.surface-light .badge {
  color: var(--light-text);
  background: rgba(200,16,46,0.06);
  border-color: rgba(200,16,46,0.30);
}

/* Solutions footnote on light */
.surface-light .solutions-footnote {
  background: rgba(200,16,46,0.05);
  color: var(--light-text);
}
.surface-light .solutions-intro strong { color: var(--light-text); }

/* Stats on light */
.surface-light .stats-grid { background: var(--light-border); border-color: var(--light-border); }
.surface-light .stat-item { background: var(--light-surface); }
.surface-light .stat-label { color: var(--light-muted); }
.surface-light .served-label { color: var(--light-muted); }
.surface-light .served-list { color: var(--light-text); }
.surface-light .stats-section::before { display: none; } /* drop dark grid overlay */

/* Generic light card (value points etc.) */
.surface-light .lcard {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: 0 10px 30px rgba(20,23,31,0.06);
}

/* Feature cards / pills on light */
.surface-light .feature-card,
.surface-light .module-pill {
  background: var(--light-surface);
  border-color: var(--light-border);
}
.surface-light .feature-card h4 { color: var(--light-text); }
.surface-light .feature-card p,
.surface-light .module-pill { color: var(--light-muted); }

/* Neutralize the legacy dark background-image on a light contact section */
.surface-light.contact-section { background-image: none; background-color: var(--light-bg); }
.surface-light.contact-section::before { display: none; }

/* Contact form on light */
.surface-light .form-group label { color: var(--light-muted); }
.surface-light .form-group input,
.surface-light .form-group textarea,
.surface-light .form-group select {
  background-color: var(--light-surface);
  border-color: var(--light-border);
  color: var(--light-text);
}
.surface-light .form-group input::placeholder,
.surface-light .form-group textarea::placeholder { color: var(--light-muted); }
.surface-light .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23586173' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.surface-light .form-group select option { background: var(--light-surface); color: var(--light-text); }
.surface-light .contact-info { background: var(--light-surface); border-color: var(--light-border); }
.surface-light .ci-item { color: var(--light-muted); }
.surface-light .ci-item a:hover { color: var(--light-text); }
.surface-light .form-success h3 { color: var(--light-text); }
.surface-light .form-success p { color: var(--light-muted); }

/* ── Generic value-point grid (used on About / Solutions) ──── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.lcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.lcard-ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(200,16,46,0.12);
  margin-bottom: 18px;
}
.lcard h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.surface-light .lcard h4 { color: var(--light-text); }
.lcard p { font-size: 0.92rem; line-height: 1.65; color: var(--muted); }

/* ── CTA band (reused at the foot of most pages) ───────────── */
.cta-band { text-align: center; }
.cta-band .section-title { display: inline-block; }
.cta-band-text {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--text);
}
.surface-light .btn-outline { color: var(--light-text); }
.btn-outline:hover { background: rgba(200,16,46,0.08); border-color: var(--red); color: var(--red); box-shadow: none; }

/* ── Inner page hero (non-home pages) ──────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 64px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(200,16,46,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0B0E14 0%, #0F1320 100%);
  text-align: center;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 100%);
}
.page-hero .section-label { display: inline-block; }
.page-hero .page-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
}
.page-hero .page-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* ── Multi-page nav active state ────────────────────────────── */
.nav-link.active,
.nav-link[aria-current="page"] { color: var(--red-dark); }
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 4px;
}

/* Dark "Get a Demo" button on the red header */
.btn-dark {
  background: #0B0E14;
  color: #fff;
}
.btn-dark:hover {
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND IMAGES — restore industrial imagery on heroes/intro
═══════════════════════════════════════════════════════════════ */
.page-hero.bg-about,
.page-hero.bg-rtms,
.page-hero.bg-fms,
.page-hero.bg-dcs {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-hero.bg-about { background-image: linear-gradient(180deg, rgba(11,14,20,0.80), rgba(11,14,20,0.93)), url('/assets/about-bg.jpg'); }
.page-hero.bg-rtms  { background-image: linear-gradient(180deg, rgba(11,14,20,0.82), rgba(11,14,20,0.93)), url('/assets/rtms-bg.jpg'); }
.page-hero.bg-fms   { background-image: linear-gradient(180deg, rgba(11,14,20,0.82), rgba(11,14,20,0.93)), url('/assets/fms-bg.jpg'); }
.page-hero.bg-dcs   { background-image: linear-gradient(180deg, rgba(11,14,20,0.82), rgba(11,14,20,0.93)), url('/assets/dcs-bg.jpg'); }

/* Home intro keeps an industrial backdrop */
#intro {
  background-image: linear-gradient(180deg, rgba(11,14,20,0.88), rgba(11,14,20,0.94)), url('/assets/about-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (max-width: 768px) {
  .page-hero.bg-about,
  .page-hero.bg-rtms,
  .page-hero.bg-fms,
  .page-hero.bg-dcs { background-attachment: scroll; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT-MODE WIDGETS — the 3 solutions' interactive demos render
   light (bright app UI) inside the dark product pages.
   Achieved by re-scoping the design tokens within .widget-light.
═══════════════════════════════════════════════════════════════ */
.widget-light {
  --surface:   #FFFFFF;
  --surface2:  #EAEEF4;
  --bg2:       #FFFFFF;
  --bg:        #F4F6F9;
  --border:    rgba(20,23,31,0.12);
  --text:      #14171F;
  --muted:     #586173;
  --white:     #14171F;     /* headings/values become dark on light */
  background: #F4F6F9;
  border: 1px solid rgba(20,23,31,0.10);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.dashboard-app.widget-light { padding: 0; }   /* app shell manages its own padding */

/* Tank board hardcoded-white fixes */
.widget-light .tank-vessel { border-color: rgba(20,23,31,0.22); background: rgba(20,23,31,0.03); }
.widget-light .tank-gauge  { color: rgba(20,23,31,0.45); }
.widget-light .td-bar,
.widget-light .target-track,
.widget-light .bar-track   { background: rgba(20,23,31,0.07); }

/* Faint SVG track rings */
.widget-light .donut-ring,
.widget-light .gauge-ring svg circle:first-child { stroke: rgba(20,23,31,0.10); }

/* Force white where text/icons sit on SOLID red */
.widget-light .dcs-stepper .step.is-active .step-dot,
.widget-light .mini-step.current .mini-dot,
.widget-light .hub-node.is-active .hub-node-ico { color: #FFFFFF; }
.widget-light .mini-dot { background: rgba(20,23,31,0.06); }

/* DCS hub: bar stays a dark accent on the light widget */
.widget-light .hub-row::after { background: rgba(20,23,31,0.12); }
.widget-light .hub-node::before { background: rgba(20,23,31,0.14); }
.widget-light .hub-bar-label { color: #FFFFFF; }
.widget-light .hub-bar-sub   { color: rgba(255,255,255,0.7); }

/* FMS app shell: light sidebar */
.widget-light .app-nav {
  background: #EAEEF4;
  border-right-color: rgba(20,23,31,0.10);
  border-bottom-color: rgba(20,23,31,0.10);
}

/* ═══════════════════════════════════════════════════════════════
   BATCH UPDATE — new section background images + contrast
═══════════════════════════════════════════════════════════════ */

/* Page-hero light-image variants (dark text via .surface-light) */
.page-hero.bg-about {
  background-image: linear-gradient(rgba(255,255,255,0.60), rgba(255,255,255,0.72)), url('/assets/about header.png');
  background-attachment: scroll;
}
.page-hero.bg-solutions {
  background-image: linear-gradient(rgba(255,255,255,0.52), rgba(255,255,255,0.68)), url('/assets/solutions header.png');
  background-attachment: scroll;
}
/* RTMS header — amber image, keep WHITE text with a dark scrim */
.page-hero.bg-rtms {
  background-image: linear-gradient(rgba(11,14,20,0.58), rgba(11,14,20,0.72)), url('/assets/RTMS BG.png');
  background-attachment: scroll;
}
/* When a page-hero is light, flip its title/sub to dark */
.page-hero.surface-light { background-color: var(--light-bg); }
.page-hero.surface-light .page-title { color: var(--light-text); }
.page-hero.surface-light .page-sub   { color: var(--light-muted); }
.page-hero.surface-light .product-tagline { color: var(--red); }
.page-hero.surface-light .section-label a { color: var(--red); }

/* Home — What We Do (#intro) over image 6 */
#intro {
  background-image: linear-gradient(rgba(244,246,249,0.62), rgba(244,246,249,0.74)), url('/assets/image 6.png');
  background-size: cover;
  background-position: center;
}

/* Home — Get Started CTA over image 12 */
.bg-getstarted {
  background-image: linear-gradient(rgba(244,246,249,0.42), rgba(244,246,249,0.58)), url('/assets/image 12.png');
  background-size: cover;
  background-position: center;
}
/* "Get started" CTA backgrounds (all light images → light scrim, dark text) */
.bg-solutionscta {
  background-image: linear-gradient(rgba(244,246,249,0.45), rgba(244,246,249,0.62)), url('/assets/solutions bg.png');
  background-size: cover;
  background-position: center;
}
.bg-startrtms {
  background-image: linear-gradient(rgba(244,246,249,0.45), rgba(244,246,249,0.62)), url('/assets/get started rtms.png');
  background-size: cover;
  background-position: center;
}
.bg-startfms {
  background-image: linear-gradient(rgba(244,246,249,0.45), rgba(244,246,249,0.62)), url('/assets/get started fms.png');
  background-size: cover;
  background-position: center;
}
.bg-startdcs {
  background-image: linear-gradient(rgba(244,246,249,0.45), rgba(244,246,249,0.62)), url('/assets/get started dcs.png');
  background-size: cover;
  background-position: center;
}

/* Home — Trust stats box: white at 70% opacity */
#trust .stats-grid {
  background: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.45);
}
#trust .stat-item { background: transparent; }
#trust .stat-label { color: #2A2E38; }
/* .stat-num stays crimson — strong on the white panel */

/* About — Our Approach: white-70% boxes, dark text */
.approach-boxes .lcard {
  background: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.55);
}
.approach-boxes .lcard h4 { color: var(--light-text); }
.approach-boxes .lcard p  { color: #2A2E38; }

/* About — Based in UAE over gulf map */
.bg-gulf {
  background-image: linear-gradient(rgba(244,246,249,0.58), rgba(244,246,249,0.72)), url('/assets/gulf map.png');
  background-size: cover;
  background-position: center;
}

/* Solutions — three-card section over the red-tunnel image */
#solutions.bg-redtunnel {
  background-image: linear-gradient(rgba(255,255,255,0.30), rgba(255,255,255,0.45)), url('/assets/red tunnel.png');
  background-size: cover;
  background-position: center;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME FLIP (batch) — light is now the site default
═══════════════════════════════════════════════════════════════ */
body { background: var(--light-bg); }

/* Solid white boxes (was rgba(255,255,255,0.7)) */
#trust .stats-grid { background: #FFFFFF; border-color: rgba(20,23,31,0.10); }

/* --- Comprehensive component light variants under .surface-light --- */
.surface-light .product-block-title {
  color: var(--light-text);
  border-bottom-color: rgba(20,23,31,0.12);
}
.surface-light .product-block-sub { color: var(--light-muted); }
.surface-light .dash-hint { color: var(--light-muted); }

/* Flow diagram → solid white box (RTMS) */
.flow-diagram {
  background: #FFFFFF;
  border-color: rgba(20,23,31,0.10);
  box-shadow: 0 10px 30px rgba(20,23,31,0.10);
}
.flow-label { color: var(--light-text); }

/* Why-cards (FMS) */
.surface-light .why-card { background: #FFFFFF; border-color: rgba(20,23,31,0.10); box-shadow: 0 10px 30px rgba(20,23,31,0.06); }
.surface-light .why-card h4 { color: var(--light-text); }
.surface-light .why-card p { color: var(--light-muted); }

/* What's inside grid (FMS) */
.surface-light .inside-grid { border-color: rgba(20,23,31,0.12); }
.surface-light .inside-item { border-color: rgba(20,23,31,0.12); color: var(--light-text); }
.surface-light .inside-item:hover { background: #EEF1F6; color: var(--light-text); }

/* Workspace cards (DCS) */
.surface-light .workspace-card { background: #FFFFFF; border-color: rgba(20,23,31,0.10); box-shadow: 0 10px 30px rgba(20,23,31,0.06); }
.surface-light .workspace-card h4 { color: var(--light-text); }
.surface-light .workspace-card p { color: var(--light-muted); }

/* Benefit grid (DCS) */
.surface-light .benefit-item { background: #FFFFFF; border-color: rgba(20,23,31,0.10); }
.surface-light .benefit-item strong { color: var(--light-text); }
.surface-light .benefit-item p { color: var(--light-muted); }

/* Trust strip (FMS) */
.surface-light .trust-strip { background: #FFFFFF; border-color: rgba(20,23,31,0.10); box-shadow: 0 10px 30px rgba(20,23,31,0.06); }
.surface-light .trust-quote { color: var(--light-text); }
.surface-light .tbadge { color: var(--light-text); background: rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.30); }

/* lcard on light */
.surface-light .lcard { background: #FFFFFF; border-color: rgba(20,23,31,0.10); box-shadow: 0 10px 30px rgba(20,23,31,0.06); }
.surface-light .lcard p { color: var(--light-muted); }

/* Product section base → light surface */
.surface-light.product-section,
.surface-light.product-alt { background-color: var(--light-bg); }

/* RTMS — Storage Overview + flow over the pipes image */
.bg-rtmspipes {
  background-image: linear-gradient(rgba(244,246,249,0.78), rgba(244,246,249,0.86)), url('/assets/rtms pipes.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) { .bg-rtmspipes { background-attachment: scroll; } }

/* Home stats section → light (neutralize dark image) */
.surface-light.stats-section { background-image: none; background-color: var(--light-bg); }
.surface-light.stats-section::before { display: none; }

/* About — "Our Approach": white section, RED solid boxes (item 10) */
.approach-boxes .lcard { background: var(--red); border-color: var(--red-dark); box-shadow: 0 14px 34px rgba(200,16,46,0.25); }
.approach-boxes .lcard h4 { color: #FFFFFF; }
.approach-boxes .lcard p { color: rgba(255,255,255,0.92); }
.approach-boxes .lcard-ico { background: rgba(255,255,255,0.20); }
.approach-boxes .lcard-ico svg * { stroke: #FFFFFF; }

/* About page header → white box with red title (item 9) */
.page-hero.ph-white {
  background: #FFFFFF;
}
.page-hero.ph-white .page-title { color: var(--red); }
.page-hero.ph-white .page-sub { color: var(--light-muted); }
.page-hero.ph-white .section-label { color: var(--red); }
.page-hero.ph-white .page-hero-grid { display: none; }

/* ── Batch: About header image + Our Approach icons ─────────── */
.page-hero.bg-aboutsection {
  background-image: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.70)), url('/assets/about section.png');
  background-size: cover;
  background-position: center;
}
.page-hero.bg-aboutsection .page-title { color: var(--light-text); }
.page-hero.bg-aboutsection .page-sub { color: var(--light-muted); }
.page-hero.bg-aboutsection .section-label { color: var(--red); }
.page-hero.bg-aboutsection .page-hero-grid { display: none; }

/* Contact / Get-a-Demo header — demo.png (light hexagon motif) */
.page-hero.bg-demo {
  background-image: linear-gradient(rgba(244,246,249,0.40), rgba(244,246,249,0.58)), url('/assets/demo.png');
  background-size: cover;
  background-position: center;
}
.page-hero.bg-demo .page-title { color: var(--light-text); }
.page-hero.bg-demo .page-sub { color: var(--light-muted); }
.page-hero.bg-demo .section-label { color: var(--red); }
.page-hero.bg-demo .page-hero-grid { display: none; }

/* RETRO.DCS header — retrodcs.png (light refinery + document motif) */
.page-hero.bg-retrodcs {
  background-image: linear-gradient(rgba(244,246,249,0.42), rgba(244,246,249,0.60)), url('/assets/retrodcs.png');
  background-size: cover;
  background-position: center;
}
.page-hero.bg-retrodcs .page-title { color: var(--light-text); }
.page-hero.bg-retrodcs .page-sub { color: var(--light-muted); }
.page-hero.bg-retrodcs .product-tagline { color: var(--red); }
.page-hero.bg-retrodcs .section-label,
.page-hero.bg-retrodcs .section-label a { color: var(--red); }
.page-hero.bg-retrodcs .page-hero-grid { display: none; }

/* Image icons inside the red Approach cards */
.lcard-ico img { width: 30px; height: 30px; object-fit: contain; }

/* ── Batch: FMS / RTMS new headers + backgrounds ────────────── */
/* FMS header — fms new.png, no dark gradient, light scrim + dark text */
.page-hero.bg-fmsnew {
  background-image: linear-gradient(rgba(255,255,255,0.46), rgba(255,255,255,0.60)), url('/assets/fms new.png');
  background-size: cover; background-position: center;
}
.page-hero.bg-fmsnew .page-title,
.page-hero.bg-rtmsnew .page-title { text-shadow: 0 1px 14px rgba(255,255,255,0.7); }

/* RTMS header — rtms new header.png (very light) + dark text */
.page-hero.bg-rtmsnew {
  background-image: linear-gradient(rgba(255,255,255,0.40), rgba(255,255,255,0.55)), url('/assets/rtms new header.png');
  background-size: cover; background-position: center;
}

/* RTMS — Storage Overview area background */
.bg-rtmsbackgrounds {
  background-image: linear-gradient(rgba(244,246,249,0.80), rgba(244,246,249,0.88)), url('/assets/rtms backgrounds.png');
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) { .bg-rtmsbackgrounds { background-attachment: scroll; } }

/* ── FMS "Why fleets choose" → dark boxes, red icons, white text ── */
.why-card,
.surface-light .why-card {
  background: #14171F;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 38px rgba(20,23,31,0.16);
  display: flex;
  flex-direction: column;
}
.why-card h4,
.surface-light .why-card h4 { color: #FFFFFF; }
.why-card p,
.surface-light .why-card p { color: rgba(255,255,255,0.82); }
.why-icon { background: rgba(200,16,46,0.16); }
.why-grid { align-items: stretch; }

/* ════════════════════════════════════════════════════════════════════════
   RETRO.DCS interactive model — Documents / Review / Workflow
   ════════════════════════════════════════════════════════════════════════ */
.dcs-app {
  border: 1px solid var(--light-border);
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 24px 60px rgba(20,23,31,0.12);
}
/* browser chrome */
.dcs-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: #ECEEF1;
  border-bottom: 1px solid var(--light-border);
}
.dcs-cdot { width: 11px; height: 11px; border-radius: 50%; background: #C7CBD2; }
.dcs-cdot:nth-child(1){ background:#E5897F; } .dcs-cdot:nth-child(2){ background:#E6C079; } .dcs-cdot:nth-child(3){ background:#94C79A; }
.dcs-url {
  display: flex; align-items: center; gap: 6px;
  margin-left: 10px; flex: 1; max-width: 540px;
  background: #FFFFFF; border: 1px solid var(--light-border); border-radius: 8px;
  padding: 6px 14px; color: var(--light-muted);
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 0.78rem;
}
.dcs-url span:nth-of-type(1){ color: var(--light-text); font-weight: 600; }
.dcs-url-path { color: var(--light-muted); }

/* avatars */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 0.6rem; font-weight: 700; color: #fff; font-style: normal;
  letter-spacing: 0.02em; border: 1.5px solid #fff; flex: 0 0 auto;
}
.av-olive{background:#8a7b2a;} .av-navy{background:#2E4A7D;} .av-teal{background:#15807d;}
.av-purple{background:#6D4AA0;} .av-green{background:#2f8f57;} .av-slate{background:#565f6e;} .av-red{background:var(--red);}

/* status pills */
.dcs-status { display:inline-flex; align-items:center; font-size:0.74rem; font-weight:600; padding:4px 10px; border-radius:20px; white-space:nowrap; }
.dcs-table .dcs-status::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:7px; }
.dcs-status.under,.dcs-status.amberpill { color:#B07A28; background:rgba(224,168,46,0.16); }
.dcs-status.consol { color:#2E7DD1; background:rgba(46,125,209,0.13); }
.dcs-status.pending { color:#5A6473; background:rgba(90,100,115,0.12); }
.dcs-status.done { color:#1F7D3A; background:rgba(43,168,74,0.15); }
.dcs-status.draft { color:#8A91A0; background:rgba(138,145,160,0.14); }

/* ── Documents panel ── */
.dcs-docs { display:grid; grid-template-columns: 210px 1fr; min-height:430px; }
.dcs-side { padding:22px 18px; border-right:1px solid var(--light-border); background:#FBFCFD; }
.dcs-side-eyebrow { font-size:0.62rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--light-muted); margin:0 0 8px; }
.dcs-side-disc { margin-top:24px; }
.dcs-side-proj { font-size:1.02rem; font-weight:700; color:var(--light-text); margin:0; }
.dcs-side-meta { font-size:0.8rem; color:var(--light-muted); margin:3px 0 0; }
.dcs-disc { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.dcs-disc-btn { width:100%; display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:9px 11px; border:none; background:transparent; border-radius:8px; cursor:pointer;
  font-size:0.88rem; color:var(--light-text); text-align:left; border-left:2px solid transparent; transition: background var(--trans), color var(--trans); }
.dcs-disc-btn span { font-size:0.78rem; color:var(--light-muted); font-variant-numeric:tabular-nums; }
.dcs-disc-btn:hover { background:rgba(20,23,31,0.04); }
.dcs-disc-btn.is-active { background:rgba(200,16,46,0.08); color:var(--red); border-left-color:var(--red); font-weight:600; }
.dcs-disc-btn.is-active span { color:var(--red); }

.dcs-main { padding:18px 20px 20px; min-width:0; }
.dcs-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.dcs-search { flex:1 1 240px; display:flex; align-items:center; gap:8px; min-width:0;
  border:1px solid var(--light-border); border-radius:9px; padding:9px 13px; color:var(--light-muted); font-size:0.86rem; }
.dcs-search svg { color:var(--light-muted); flex:0 0 auto; }
.dcs-pill { border:1px solid var(--light-border); background:#fff; color:var(--light-muted); border-radius:20px;
  padding:7px 14px; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all var(--trans); white-space:nowrap; }
.dcs-pill:hover { border-color:var(--red); color:var(--red); }
.dcs-pill.is-active { border-color:var(--red); color:var(--red); background:rgba(200,16,46,0.07); }
.dcs-upload { background:#14171F; color:#fff; border:none; border-radius:9px; padding:9px 16px; font-size:0.83rem; font-weight:600; cursor:pointer; white-space:nowrap; }
.dcs-upload:hover { background:#000; }
.dcs-upload span { color:var(--red); font-weight:700; }

.dcs-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:18px 0 4px;
  border-top:1px solid var(--light-border); border-bottom:1px solid var(--light-border); }
.dcs-stat { padding:14px 16px; border-right:1px solid var(--light-border); }
.dcs-stat:last-child { border-right:none; }
.dcs-stat-l { display:block; font-size:0.64rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--light-muted); }
.dcs-stat-v { display:block; font-size:1.7rem; font-weight:700; color:var(--light-text); line-height:1.1; margin-top:5px; font-variant-numeric:tabular-nums; }
.dcs-stat-v.amber { color:#B07A28; } .dcs-stat-v.green { color:#1F7D3A; }

.dcs-table { margin-top:2px; }
.dcs-tr { display:grid; grid-template-columns: minmax(0,2.5fr) 0.95fr 0.5fr 1.45fr 1.15fr 0.95fr; align-items:center;
  gap:10px; width:100%; padding:13px 8px; border:none; background:transparent; border-bottom:1px solid var(--light-border);
  text-align:left; cursor:pointer; font:inherit; transition: background var(--trans); }
.dcs-tr.dcs-thead { cursor:default; padding:11px 8px; }
.dcs-tr.dcs-thead span { font-size:0.62rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--light-muted); }
.dcs-rows .dcs-tr:hover { background:rgba(200,16,46,0.045); }
.dcs-rows .dcs-tr:last-child { border-bottom:none; }
.dcs-doc { display:flex; flex-direction:column; gap:2px; min-width:0; }
.dcs-doc strong { font-size:0.86rem; font-weight:700; color:var(--light-text); font-family:var(--font-mono, ui-monospace, Menlo, monospace); }
.dcs-doc em { font-size:0.8rem; font-style:normal; color:var(--light-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dcs-c { font-size:0.82rem; color:var(--light-muted); }
.dcs-rev { font-weight:700; color:var(--light-text); }
.dcs-avs { display:flex; align-items:center; }
.dcs-avs .av { margin-left:-7px; } .dcs-avs .av:first-child { margin-left:0; }
.dcs-noassign { font-size:0.78rem; color:var(--light-muted); }
.dcs-upd { font-size:0.8rem; }
.dcs-empty { padding:30px; text-align:center; color:var(--light-muted); font-size:0.9rem; }

/* ── Review panel ── */
.dcs-review { display:grid; grid-template-columns: 50px 1fr 330px; min-height:480px; }
.dcs-tools { display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 0; background:#FBFCFD; border-right:1px solid var(--light-border); }
.dcs-tool { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:none; border-radius:8px; background:transparent; color:var(--light-muted); cursor:pointer; transition:all var(--trans); }
.dcs-tool:hover { background:rgba(20,23,31,0.06); color:var(--light-text); }
.dcs-tool.is-active { background:var(--red); color:#fff; }
.dcs-canvas { background:#DCDFE3; display:flex; align-items:center; justify-content:center; padding:28px; }
.dcs-sheet { position:relative; background:#fff; width:100%; max-width:430px; aspect-ratio:43/36; box-shadow:0 8px 26px rgba(20,23,31,0.18); }
.dcs-pid { position:absolute; inset:0; width:100%; height:100%; }
.dcs-pid .dcs-hl { animation:dcsPulse 2.6s ease-in-out infinite; }
@keyframes dcsPulse { 0%,100%{ stroke-opacity:1; } 50%{ stroke-opacity:0.45; } }
.dcs-pin { position:absolute; transform:translate(-50%,-50%); width:26px; height:26px; border-radius:50%;
  background:var(--red); color:#fff; border:2px solid #fff; font-size:0.74rem; font-weight:700; cursor:pointer; line-height:1;
  display:flex; align-items:center; justify-content:center; box-shadow:0 3px 8px rgba(200,16,46,0.4); transition:transform var(--trans), box-shadow var(--trans); }
.dcs-pin.is-active,.dcs-pin:hover { transform:translate(-50%,-50%) scale(1.18); box-shadow:0 0 0 4px rgba(200,16,46,0.22),0 3px 8px rgba(200,16,46,0.45); }
.dcs-titleblock { position:absolute; right:14px; bottom:14px; display:grid; grid-template-columns:auto auto; gap:0; border:1px solid #c7ccd4; font-size:0.6rem; font-family:var(--font-mono,Menlo,monospace); }
.dcs-titleblock span { padding:3px 8px; color:#8A91A0; border-right:1px solid #e2e5ea; border-bottom:1px solid #e2e5ea; }
.dcs-titleblock b { padding:3px 10px; color:var(--light-text); border-bottom:1px solid #e2e5ea; text-align:right; }
.dcs-titleblock span:nth-last-child(2),.dcs-titleblock b:last-child { border-bottom:none; }
.dcs-comments { padding:20px; border-left:1px solid var(--light-border); display:flex; flex-direction:column; }
.dcs-rev-eyebrow { font-size:0.62rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--light-muted); margin:0; }
.dcs-rev-title { font-size:1.05rem; font-weight:700; color:var(--light-text); margin:5px 0 16px; }
.dcs-cmt { border:1px solid var(--light-border); border-radius:11px; padding:13px 14px; margin-bottom:12px; cursor:pointer; transition:all var(--trans); }
.dcs-cmt:hover { border-color:rgba(200,16,46,0.4); }
.dcs-cmt.is-active { border-color:var(--red); background:rgba(200,16,46,0.05); box-shadow:0 0 0 1px var(--red) inset; }
.dcs-cmt-head { display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.dcs-cmt-head strong { display:block; font-size:0.86rem; color:var(--light-text); }
.dcs-cmt-head span { display:block; font-size:0.72rem; color:var(--light-muted); }
.dcs-cmt p { font-size:0.84rem; color:var(--light-text); line-height:1.5; margin:0 0 11px; }
.dcs-cmt-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dcs-code { font-size:0.72rem; font-weight:600; padding:3px 9px; border-radius:6px; }
.dcs-code.code3 { color:#B07A28; background:rgba(224,168,46,0.16); }
.dcs-code.code2 { color:#1F7D3A; background:rgba(43,168,74,0.15); }
.dcs-pinref { font-size:0.74rem; color:var(--red); font-weight:600; }
.dcs-submit { margin-top:auto; background:#14171F; color:#fff; border:none; border-radius:10px; padding:13px; font-size:0.92rem; font-weight:600; cursor:pointer; }
.dcs-submit:hover { background:#000; }
.dcs-submit-note { text-align:center; font-size:0.72rem; color:var(--light-muted); margin:10px 0 0; }

/* ── Workflow panel ── */
.dcs-workflow { padding:24px; }
.dcs-wf-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.dcs-wf-doc { font-size:1.02rem; font-weight:700; color:var(--light-text); margin:0; font-family:var(--font-mono,Menlo,monospace); }
.dcs-wf-sub { font-size:0.86rem; color:var(--light-muted); margin:3px 0 0; }
.dcs-wf-badge { font-size:0.76rem; font-weight:600; color:#5A6473; background:rgba(90,100,115,0.12); padding:6px 13px; border-radius:20px; white-space:nowrap; }
.dcs-stepper { list-style:none; display:flex; margin:26px 0 0; padding:0; }
.dcs-stepper li { flex:1; position:relative; padding-top:26px; }
.dcs-step-dot { position:absolute; top:0; left:0; width:15px; height:15px; border-radius:50%; background:#fff; border:2px solid #C2C7CF; z-index:1; }
.dcs-stepper li::before { content:''; position:absolute; top:7px; left:7px; right:0; height:2px; background:#D7DBE0; }
.dcs-stepper li:last-child::before { display:none; }
.dcs-stepper li.is-done .dcs-step-dot { background:#2BA84A; border-color:#2BA84A; }
.dcs-stepper li.is-done::before { background:#2BA84A; }
.dcs-stepper li.is-active .dcs-step-dot { background:#fff; border-color:#B9722B; }
.dcs-stepper li.is-active::before { background:linear-gradient(90deg,#B9722B,#D7DBE0); }
.dcs-step-name { display:block; font-size:0.86rem; font-weight:600; color:var(--light-text); }
.dcs-step-state { display:block; font-size:0.64rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--light-muted); margin-top:3px; }
.dcs-stepper li.is-done .dcs-step-state { color:#1F7D3A; }
.dcs-stepper li.is-active .dcs-step-state { color:#B9722B; }
.dcs-wf-cols { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:26px; border-top:1px solid var(--light-border); }
.dcs-wf-parties { padding:20px 22px 4px 0; }
.dcs-wf-audit { padding:20px 0 4px 26px; border-left:1px solid var(--light-border); }
.dcs-wf-eyebrow { font-size:0.62rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--light-muted); margin:0 0 14px; }
.dcs-party { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--light-border); }
.dcs-party:last-child { border-bottom:none; }
.dcs-party-n { font-size:0.74rem; color:var(--light-muted); font-family:var(--font-mono,Menlo,monospace); }
.dcs-party-info { flex:1; min-width:0; }
.dcs-party-info strong { display:block; font-size:0.88rem; color:var(--light-text); }
.dcs-party-info span { display:block; font-size:0.76rem; color:var(--light-muted); }
.dcs-audit { list-style:none; margin:0; padding:0; }
.dcs-audit li { display:flex; gap:14px; padding:9px 0; border-bottom:1px dashed var(--light-border); font-size:0.82rem; color:var(--light-text); }
.dcs-audit li:last-child { border-bottom:none; }
.dcs-audit .t { flex:0 0 42px; color:var(--light-muted); font-family:var(--font-mono,Menlo,monospace); font-size:0.78rem; }
.dcs-audit b { color:var(--red); font-weight:600; }

/* ── DCS responsive ── */
@media (max-width: 860px) {
  .dcs-docs { grid-template-columns:1fr; }
  .dcs-side { border-right:none; border-bottom:1px solid var(--light-border); }
  .dcs-disc { flex-direction:row; flex-wrap:wrap; }
  .dcs-disc-btn { width:auto; border-left:none; }
  .dcs-disc-btn.is-active { border-left:none; }
  .dcs-review { grid-template-columns:44px 1fr; }
  .dcs-comments { grid-column:1 / -1; border-left:none; border-top:1px solid var(--light-border); }
  .dcs-wf-cols { grid-template-columns:1fr; }
  .dcs-wf-audit { border-left:none; border-top:1px solid var(--light-border); padding:20px 0 4px; }
  .dcs-wf-parties { padding:20px 0 4px; }
}
@media (max-width: 620px) {
  .dcs-stats { grid-template-columns:repeat(2,1fr); }
  .dcs-stat:nth-child(2) { border-right:none; }
  .dcs-tr { grid-template-columns: minmax(0,2fr) 1.3fr 0.9fr; }
  .dcs-tr > :nth-child(2),.dcs-tr > :nth-child(3),.dcs-tr.dcs-thead > :nth-child(2),.dcs-tr.dcs-thead > :nth-child(3) { display:none; }
  .dcs-stepper { overflow-x:auto; }
  .dcs-stepper li { min-width:120px; }
}

/* DCS doc cell — force left alignment of stacked number/title */
.dcs-doc { align-items: flex-start; text-align: left; }
.dcs-doc strong, .dcs-doc em { width: 100%; }

/* Solutions cards sit on dark boxes — keep "RETRO." white (overrides .surface-light p) */
.surface-light .sol-card .sol-tag { color: #FFFFFF; }

/* ── Implementation & Support timeline (Solutions page) ── */
.impl-lead { font-size: 1.05rem; font-weight: 600; color: var(--red); margin: 6px 0 14px; font-style: italic; }
.impl-steps {
  list-style: none; margin: 50px 0 0; padding: 0;
  max-width: 880px; position: relative;
}
.impl-steps::before {
  content: ''; position: absolute; left: 23px; top: 24px; bottom: 24px;
  width: 2px; background: var(--light-border);
}
.impl-step { display: flex; gap: 24px; padding-bottom: 34px; position: relative; }
.impl-step:last-child { padding-bottom: 0; }
.impl-num {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(200,16,46,0.3);
}
.impl-body { padding-top: 2px; }
.impl-body h4 { font-family: var(--font-head); font-size: 1.1rem; color: var(--light-text); margin: 8px 0 8px; }
.impl-body p { color: var(--light-muted); line-height: 1.65; font-size: 0.95rem; max-width: 700px; margin: 0; }
@media (max-width: 560px) {
  .impl-step { gap: 16px; }
  .impl-steps::before { left: 19px; }
  .impl-num { flex-basis: 40px; width: 40px; height: 40px; font-size: 1rem; }
  .impl-body h4 { font-size: 1.02rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   RETRO.CS — Custom Solutions interactive mockups (docs / assets / invoice)
   Reuses .dcs-chrome, .av avatars and .dcs-status pills.
   ════════════════════════════════════════════════════════════════════════ */
.cs-app {
  border: 1px solid var(--light-border);
  border-radius: 16px; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 24px 60px rgba(20,23,31,0.12);
}
.cs-tab-sub { font-size: 0.66rem; font-weight: 600; color: var(--light-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: 4px; }
.cs-app-bar { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px 0; }
.cs-app-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--light-text); letter-spacing: -0.01em; }
.cs-app-tag { font-size: 0.8rem; color: var(--light-muted); }
.cs-disclaimer { font-size: 0.78rem; color: var(--light-muted); font-style: italic; margin: 14px 2px 0; }

/* stat tiles */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 16px 20px 4px;
  border: 1px solid var(--light-border); border-radius: 12px; overflow: hidden; }
.cs-stat { padding: 13px 16px; border-right: 1px solid var(--light-border); }
.cs-stat:last-child { border-right: none; }
.cs-stat-l { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-muted); }
.cs-stat-v { display: block; font-size: 1.35rem; font-weight: 700; color: var(--light-text); line-height: 1.15; margin-top: 5px; font-variant-numeric: tabular-nums; }
.cs-stat-v.red { color: var(--red); } .cs-stat-v.green { color: #1F7D3A; } .cs-stat-v.amber { color: #B07A28; }

/* two-pane master/detail layout shared by all three apps */
.cs-docs, .cs-assets, .cs-invoice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 20px 20px; }
.cs-panecard { border: 1px solid var(--light-border); border-radius: 12px; padding: 16px; background: #FBFCFD; min-width: 0; }
.cs-card-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--light-text); margin: 0 0 12px; }

/* list rows (employees / properties) */
.cs-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: none; background: transparent; border-radius: 9px; padding: 10px 11px; cursor: pointer; font: inherit;
  transition: background var(--trans); }
.cs-row + .cs-row { margin-top: 2px; }
.cs-row:hover { background: rgba(200,16,46,0.05); }
.cs-row.is-active { background: rgba(200,16,46,0.08); box-shadow: inset 0 0 0 1px rgba(200,16,46,0.4); }
.cs-row-main { flex: 1; min-width: 0; }
.cs-row-main strong { display: block; font-size: 0.88rem; color: var(--light-text); font-weight: 600; }
.cs-row-main span { display: block; font-size: 0.76rem; color: var(--light-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-row-end { font-size: 0.74rem; flex: 0 0 auto; }

/* detail panes */
.cs-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cs-detail-head .av { width: 46px; height: 46px; font-size: 0.9rem; }
.cs-detail-head h5 { font-family: var(--font-head); font-size: 1.05rem; color: var(--light-text); margin: 0; }
.cs-detail-head p { font-size: 0.8rem; color: var(--light-muted); margin: 2px 0 0; }
.cs-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.84rem; }
.cs-kv dt { color: var(--light-muted); }
.cs-kv dd { color: var(--light-text); margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cs-doc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cs-doc-chip { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.cs-doc-chip.ok { color: #1F7D3A; background: rgba(43,168,74,0.14); }
.cs-doc-chip.due { color: #B07A28; background: rgba(224,168,46,0.16); }
.cs-doc-chip.exp { color: var(--red); background: rgba(200,16,46,0.1); }
.cs-detail-empty { color: var(--light-muted); font-size: 0.88rem; padding: 30px 8px; text-align: center; }

/* retro.assets — map placeholder */
.cs-map { position: relative; height: 150px; border-radius: 10px; margin-bottom: 14px; overflow: hidden;
  background:
    linear-gradient(rgba(20,40,30,0.04), rgba(20,40,30,0.04)),
    repeating-linear-gradient(0deg, #e8ede9 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #e8ede9 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #eef3ee, #e3ebe6);
  border: 1px solid var(--light-border); }
.cs-map-road { position: absolute; background: #d7ddd6; }
.cs-map-r1 { top: 56%; left: 0; right: 0; height: 9px; }
.cs-map-r2 { top: 0; bottom: 0; left: 40%; width: 9px; }
.cs-map-pin { position: absolute; top: 56%; left: 40%; transform: translate(-50%,-100%); width: 22px; height: 22px;
  border-radius: 50% 50% 50% 2px; background: var(--red); rotate: -45deg; box-shadow: 0 3px 8px rgba(200,16,46,0.45); }
.cs-map-pin::after { content: ''; position: absolute; inset: 6px; background: #fff; border-radius: 50%; rotate: 45deg; }
.cs-map-label { position: absolute; left: 10px; bottom: 8px; rotate: 0deg; font-size: 0.72rem; font-weight: 600;
  color: var(--light-text); background: rgba(255,255,255,0.9); padding: 4px 9px; border-radius: 6px; box-shadow: 0 2px 6px rgba(20,23,31,0.12); }

/* retro.invoice — table */
.cs-inv-table { display: flex; flex-direction: column; }
.cs-inv-row { display: grid; grid-template-columns: minmax(0,1.6fr) 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: none; background: transparent; border-bottom: 1px solid var(--light-border);
  padding: 11px 8px; cursor: pointer; font: inherit; transition: background var(--trans); }
.cs-inv-row:hover { background: rgba(200,16,46,0.05); }
.cs-inv-row.is-active { background: rgba(200,16,46,0.08); }
.cs-inv-head { cursor: default; }
.cs-inv-head span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-muted); }
.cs-inv-ref { display: flex; flex-direction: column; }
.cs-inv-ref strong { font-size: 0.84rem; color: var(--light-text); font-family: var(--font-mono, ui-monospace, Menlo, monospace); }
.cs-inv-ref span { font-size: 0.76rem; color: var(--light-muted); }
.cs-inv-party { font-size: 0.8rem; color: var(--light-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-inv-amt { font-size: 0.84rem; font-weight: 700; color: var(--light-text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* RETRO.CS responsive */
@media (max-width: 760px) {
  .cs-docs, .cs-assets, .cs-invoice { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-stat:nth-child(2) { border-right: none; }
}

.dcs-status.over { color: var(--red); background: rgba(200,16,46,0.10); }

/* ════════════════ ROUND 3 ════════════════ */

/* §5 — RETRO.CS header (retrocs.png — very light 3D motif) */
.page-hero.bg-retrocs {
  background-image: linear-gradient(rgba(244,246,249,0.30), rgba(244,246,249,0.52)), url('/assets/retrocs.png');
  background-size: cover; background-position: center;
}
.page-hero.bg-retrocs .page-title { color: var(--light-text); }
.page-hero.bg-retrocs .page-sub { color: var(--light-muted); }
.page-hero.bg-retrocs .product-tagline { color: var(--red); }
.page-hero.bg-retrocs .section-label,
.page-hero.bg-retrocs .section-label a { color: var(--red); }
.page-hero.bg-retrocs .page-hero-grid { display: none; }

/* §1 — each retro.cs system is its own clearly delineated block */
.cs-system { border-top: 1px solid var(--light-border); padding-top: 52px; }
.cs-system .product-block-sub { max-width: 760px; }

/* §4 — Implementation & Support: no numbers, red bold titles, card rhythm */
.impl-list { max-width: 900px; margin: 44px 0 0; display: grid; gap: 18px; }
.impl-item {
  padding: 22px 26px; background: #FFFFFF;
  border: 1px solid var(--light-border); border-left: 3px solid var(--red);
  border-radius: 12px; box-shadow: 0 6px 20px rgba(20,23,31,0.04);
}
.impl-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--red); margin: 0 0 8px; letter-spacing: 0.01em; }
.impl-item p { color: var(--light-muted); line-height: 1.65; font-size: 0.95rem; margin: 0; }

/* §6 — Built For: lit/active state on click/tap/focus */
.surface-light a.badge.is-lit,
.surface-light a.badge:active,
a.badge.is-lit,
a.badge:active {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(200,16,46,0.35); transform: translateY(-2px);
}
a.badge:focus-visible {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(200,16,46,0.35); transform: translateY(-2px);
}

/* §3 — solution boxes go single-column only on phones */
@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* ════════════════ RESPONSIVE: 4K / large desktop — widen to fill the canvas ════════════════ */
@media (min-width: 1600px) { :root { --container-max: 1440px; } }
@media (min-width: 1920px) {
  html { font-size: 17.5px; }
  :root { --container-max: 1680px; }
  .hero-content { max-width: 1120px; }
}
@media (min-width: 2560px) {
  html { font-size: 19px; }
  :root { --container-max: 2200px; }
  .hero-content { max-width: 1320px; }
}
@media (min-width: 3200px) {
  html { font-size: 21px; }
  :root { --container-max: 2720px; }
  .hero-content { max-width: 1500px; }
}

/* ════════════════ §7 — RESPONSIVE: foldables / very-narrow handhelds ════════════════ */
/* Galaxy Fold (folded ~280px), small Androids — keep everything single-column & tight */
@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 56px 0; }
  .cs-stats, .dcs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-app-bar { flex-wrap: wrap; gap: 4px 10px; }
  .cs-panecard { padding: 13px; }
  .impl-item { padding: 18px 18px; }
  .badge { padding: 8px 14px; font-size: 0.8rem; }
  .footer-nav { gap: 10px 18px; }
}
@media (max-width: 320px) {
  .cs-stats, .dcs-stats { grid-template-columns: 1fr; }
  .cs-stat:nth-child(2) { border-right: none; }
  .dcs-tr { grid-template-columns: minmax(0,2fr) 1fr; }
  .hero-wordmark { font-size: clamp(2rem, 13vw, 2.6rem); }
}

/* Very-narrow (Galaxy Fold folded ~280px): keep long buttons from overflowing */
@media (max-width: 400px) {
  .btn { max-width: 100%; white-space: normal; }
  .btn-lg { padding-left: 20px; padding-right: 20px; }
}

/* Very-narrow dashboards (Fold folded ~280px): shrink donut, stack legend, tighten padding */
@media (max-width: 420px) {
  .dashboard { padding: 16px; }
  .dash-card { padding: 16px; }
  .donut-area { gap: 14px; }
  .donut-wrap { width: 150px; height: 150px; }
  .donut-legend { min-width: 0; flex-basis: 100%; }
}
@media (max-width: 320px) {
  .donut-wrap { width: 128px; height: 128px; }
}

/* Allow dashboard grid/cards to shrink below intrinsic content width (prevents narrow-width overflow) */
.dash-charts, .fleet-mid { min-width: 0; }
.dash-charts > *, .fleet-mid > * { min-width: 0; }
.dash-card { min-width: 0; }
.dash-card .bar-row, .dash-card .target, .dash-card .donut-legend li { min-width: 0; }

/* §3 — RETRO.CS "custom build for a client" eyebrow tag */
.cs-client-tag {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
  margin: -6px 0 12px;
}

/* §4/§5 — full-width panes below the two boxes above; edges snap to the grid
   (left edge = properties-list left, right edge = detail/description right). */
.cs-docs, .cs-assets { align-items: stretch; }   /* row-1 boxes match heights for a clean grid */
.cs-leave-card, .cs-rent-card { grid-column: 1 / -1; }

/* Leave management rows */
.cs-leave-list { display: flex; flex-direction: column; }
.cs-leave-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--light-border); }
.cs-leave-row:last-child { border-bottom: none; }
.cs-leave-main { flex: 1; min-width: 0; }
.cs-leave-main strong { display: block; font-size: 0.86rem; color: var(--light-text); }
.cs-leave-main span { display: block; font-size: 0.76rem; color: var(--light-muted); }
.cs-leave-status { font-size: 0.72rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; white-space: nowrap; flex: 0 0 auto; }
.cs-leave-status.approved { color: #1F7D3A; background: rgba(43,168,74,0.15); }
.cs-leave-status.pending  { color: #B07A28; background: rgba(224,168,46,0.16); }

/* Rental overview — full-width table */
.cs-rent-list { display: flex; flex-direction: column; }
.cs-rent-row { display: grid; grid-template-columns: minmax(0,2fr) 1fr 1fr 1fr; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--light-border); }
.cs-rent-row:last-child { border-bottom: none; }
.cs-rent-head span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-muted); }
.cs-rent-name { font-size: 0.86rem; font-weight: 600; color: var(--light-text); min-width: 0; }
.cs-rent-amt { font-size: 0.84rem; color: var(--light-text); font-variant-numeric: tabular-nums; }
.cs-rent-amt em { color: var(--light-muted); font-style: normal; font-size: 0.72rem; }
.cs-occ, .cs-pay { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; justify-self: start; }
.cs-occ.occ-y { color: #1F7D3A; background: rgba(43,168,74,0.13); }
.cs-occ.occ-n { color: #5A6473; background: rgba(90,100,115,0.12); }
.cs-pay.pay-paid { color: #1F7D3A; background: rgba(43,168,74,0.15); }
.cs-pay.pay-due  { color: var(--red); background: rgba(200,16,46,0.10); }
.cs-pay.pay-na   { color: #8A91A0; background: rgba(138,145,160,0.12); }
@media (max-width: 560px) {
  .cs-rent-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .cs-rent-head { display: none; }
  .cs-rent-name { grid-column: 1 / -1; }
  .cs-rent-amt { grid-column: 1 / -1; color: var(--light-muted); }
}
