/* F.T. Solutions — layout: full-bleed bands, each with a centered 1140px inner wrapper carrying the side gutter */
:root {
  --bg: #ffffff;
  --bg-tint: #f5f7fa;
  --surface: #ffffff;
  --ink: #0a1726;
  --muted: #3e4e66;
  --line: #dfe6f0;
  --accent: #004b88;      /* brand blue, sampled from the FT logo */
  --accent-hover: #003a6b;
  --accent-ink: #00365f;
  --accent-soft: #e9f1f8;
  --gold: #ffd200;        /* brand yellow, for accents on dark bands */
  --band: #08263f;
  --band-ink: #eef3fa;
  --band-muted: #aebfd6;
  --amber: #e8930c;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}
/* Single light theme by design: a clean white corporate look. */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px; flex: none; border-radius: 2px;
  background: linear-gradient(90deg, #004b88 0 55%, #fff100 55% 75%, #ec1c24 75% 100%);
}
.section-head { display: flex; flex-direction: column; gap: 0.7rem; max-width: 46rem; }
.section-head p { color: var(--muted); }
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-tint { background: var(--bg-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.nav-bar { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.header-logo { height: 44px; width: auto; display: block; }
.header-sap { height: 40px; width: auto; flex: none; }
.footer-logo { height: 46px; width: auto; }
.sap-badge { height: 60px; width: auto; align-self: flex-start; }
.img-row { display: flex; gap: 1rem; margin-top: 1.8rem; }
.img-row img { width: calc(50% - 0.5rem); min-width: 0; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn.on-dark { background: #fff; color: #0a1726; }
.btn.on-dark:hover { background: var(--gold); color: #0a1726; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; color: var(--ink); font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.3rem; min-width: 0; }
.hero-copy .lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.chip.gold { border-color: color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.accent-word { background: linear-gradient(100deg, var(--accent) 10%, #2f7fd6 55%, #ec1c24 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero flow diagram */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  min-width: 0;
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--ink) 30%, transparent);
}
.flow-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.flow-row { display: flex; align-items: center; gap: 0.6rem; }
.flow-node {
  flex: 1; min-width: 0;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 9px;
  padding: 0.6rem 0.7rem; font-size: 0.8rem; font-weight: 600; text-align: center;
}
.flow-node small { display: block; font-weight: 400; color: var(--muted); font-size: 0.68rem; }
.flow-node.core { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-ink); }
.flow-arrow { color: var(--muted); font-size: 0.85rem; flex: none; }
.flow-foot { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 0.74rem; color: var(--muted); font-family: var(--font-mono); flex-wrap: wrap; }
.flow-foot b { color: var(--ink); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--band); color: var(--band-ink); padding-block: 2.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat b { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat b span { color: var(--gold); }
.stat small { color: #dbe5f1; font-size: 0.82rem; line-height: 1.4; font-weight: 600; }
.stat em { font-style: normal; color: var(--band-muted); font-size: 0.72rem; line-height: 1.4; }
.stats-band.light .stat small, .stats-band.light .stat em { color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(12, 27, 42, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #004b88 0 55%, #fff100 55% 75%, #ec1c24 75% 100%);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12, 27, 42, 0.08); }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.15rem;
  margin-bottom: 0.3rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.card:hover .icon { background: var(--accent); color: #fff; transform: scale(1.06); }
.card .tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Product grid: compact cells */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.2rem; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0;
  box-shadow: 0 1px 3px rgba(12, 27, 42, 0.05);
  transition: border-color 0.15s ease;
}
.product:hover { border-color: var(--accent); }
.product .p-icon { font-size: 1.3rem; }
.product h3 { font-size: 0.92rem; }
.product p { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

/* ---------- Why / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 0.4rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item .n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.why-item h3 { margin-bottom: 0.2rem; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--band), #0a3d6b); color: var(--band-ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: var(--band-muted); margin-top: 0.5rem; max-width: 32rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--band); color: var(--band-ink); padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--band-muted); max-width: 40rem; margin-top: 0.8rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.milestone { border-top: 2px solid var(--accent); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.milestone .year { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.milestone p { color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 0.98rem; transition: color 0.15s ease; }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { color: var(--accent); margin-bottom: 0.5rem; }
.faq details p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.8rem;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-ok { background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.9rem; }
.office-list { display: flex; flex-direction: column; gap: 1rem; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.office .tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.office p { color: var(--muted); font-size: 0.9rem; }
.office a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.15s ease; }
.office a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 3rem 2rem; margin-top: 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; font-family: var(--font-mono); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { color: var(--band-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { margin-top: 0.8rem; max-width: 20rem; }
.footer-bottom { border-top: 1px solid #22344d; margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; }

/* ---------- Brand bar & polish ---------- */
.brand-bar { height: 3px; background: linear-gradient(90deg, #004b88 0%, #004b88 58%, #fff100 58%, #fff100 72%, #ec1c24 72%, #ec1c24 100%); }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
.hero { background: radial-gradient(1100px 520px at 88% -10%, var(--accent-soft), transparent 70%), radial-gradient(700px 360px at -5% 110%, rgba(255, 210, 0, 0.09), transparent 70%); }

/* ---------- Feature checklist ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.feat { display: flex; gap: 0.7rem; align-items: flex-start; min-width: 0; }
.feat .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 1px; }
.feat b { display: block; font-size: 0.95rem; font-family: var(--font-display); }
.feat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Portal mockup ---------- */
.portal-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 28px 70px -32px rgba(10, 23, 38, 0.4); min-width: 0; }
.pm-top { display: flex; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-tint); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.pm-dot { width: 9px; height: 9px; border-radius: 50%; background: #e65b55; box-shadow: 15px 0 0 #f0b32e, 30px 0 0 #5fb95f; margin-right: 46px; flex: none; }
.pm-body { display: flex; min-height: 310px; }
.pm-side { width: 160px; flex: none; padding: 0.8rem 0; background: var(--band); display: flex; flex-direction: column; gap: 2px; }
.pm-nav { padding: 0.55rem 1.1rem; font-size: 0.78rem; color: var(--band-muted); }
.pm-nav.active { background: rgba(255, 255, 255, 0.08); color: #fff; border-left: 3px solid var(--gold); padding-left: calc(1.1rem - 3px); }
.pm-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.pm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.pm-tile { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 9px; padding: 0.6rem 0.75rem; min-width: 0; }
.pm-tile b { font-family: var(--font-display); font-size: 1.1rem; display: block; font-variant-numeric: tabular-nums; }
.pm-tile small { color: var(--muted); font-size: 0.68rem; }
.pm-bars { display: flex; align-items: flex-end; gap: 6%; height: 88px; border: 1px solid var(--line); border-radius: 9px; padding: 0.8rem 1rem 0.6rem; }
.pm-bar { flex: 1; background: linear-gradient(180deg, var(--accent), #0a3d6b); border-radius: 3px 3px 0 0; min-width: 0; }
.pm-rows { display: flex; flex-direction: column; }
.pm-row { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.pm-row:last-child { border-bottom: none; }
.pm-row .muted { color: var(--muted); }
.pm-pill { font-family: var(--font-mono); font-size: 0.62rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.pm-pill.ok { background: #e4f4e4; color: #2e7d32; }
.pm-pill.warn { background: #fdf1dc; color: #a36a00; }
.pm-kv { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.78rem; padding: 0.4rem 0.1rem; border-bottom: 1px solid var(--line); }
.pm-kv span:last-child { font-weight: 600; }
.pm-kv:last-of-type { border-bottom: none; }
.prog-row { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; }
.prog-row .lbl { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.pm-progress { height: 8px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pm-progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bc { height: 42px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 9px, transparent 9px 11px, var(--ink) 11px 12px, transparent 12px 16px); border-radius: 3px; opacity: 0.85; }

/* ---------- Phone mockup ---------- */
.phone { width: 280px; max-width: 100%; margin-inline: auto; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 28px 70px -32px rgba(10, 23, 38, 0.4); overflow: hidden; }
.phone-top { height: 28px; display: grid; place-items: center; }
.phone-notch { width: 64px; height: 7px; border-radius: 999px; background: var(--line); }
.phone-body { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--bg-tint); min-height: 330px; }
.bubble { max-width: 88%; padding: 0.55rem 0.7rem; border-radius: 12px; font-size: 0.78rem; line-height: 1.45; }
.bubble.in { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: #d7f2d0; color: #1b3a16; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble small { display: block; opacity: 0.6; font-size: 0.62rem; margin-top: 0.25rem; text-align: right; }
.approve-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.8rem; }
.approve-btns { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.approve-btns span { flex: 1; text-align: center; padding: 0.45rem; border-radius: 7px; font-weight: 600; font-size: 0.78rem; }
.ok-btn { background: #2e7d32; color: #fff; }
.no-btn { background: var(--bg-tint); color: var(--muted); border: 1px solid var(--line); }

/* ---------- HMI mockup ---------- */
.hmi { background: #10151c; border: 1px solid #2a3442; border-radius: 14px; overflow: hidden; box-shadow: 0 28px 70px -32px rgba(10, 23, 38, 0.5); color: #d7e2ee; min-width: 0; }
.hmi-head { padding: 0.65rem 1rem; background: #1a222e; font-family: var(--font-mono); font-size: 0.72rem; display: flex; justify-content: space-between; gap: 1rem; color: #8ea2bb; }
.hmi-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.hmi .pm-tile { background: #1a222e; border-color: #2a3442; }
.hmi .pm-tile b { color: #fff; }
.hmi .pm-tile small { color: #8ea2bb; }
.hmi .prog-row .lbl { color: #8ea2bb; }
.hmi .pm-progress { background: #1a222e; border-color: #2a3442; }
.hmi .pm-progress i { background: #4caf50; }
.hmi-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.hmi-btn { padding: 0.9rem 0.5rem; text-align: center; border-radius: 10px; font-weight: 700; font-family: var(--font-display); letter-spacing: 0.04em; font-size: 0.85rem; }
.hmi-btn.start { background: #1f7a33; color: #fff; }
.hmi-btn.stop { background: #b3261e; color: #fff; }
.hmi-btn.decl { background: #245a8f; color: #fff; }

/* ---------- Arrow CTAs ---------- */
.btn.arrow::after, .cta-band .btn::after { content: " \2192"; }

/* ---------- Technology marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; padding-left: 3rem; animation: marquee-scroll 36s linear infinite; }
.marquee-item { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; }
.marquee-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.4; flex: none; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; row-gap: 0.8rem; padding-block: 0; }
}

/* ---------- Nav dropdown ---------- */
.nav-sub { position: relative; }
.nav-sub-btn { background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--ink); transition: color 0.15s ease; }
.nav-sub-btn:hover { color: var(--accent); }
.nav-sub-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem; min-width: 175px; box-shadow: 0 14px 34px rgba(10, 23, 38, 0.14); z-index: 60; }
.nav-sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-sub:hover .nav-sub-menu, .nav-sub:focus-within .nav-sub-menu { display: flex; flex-direction: column; }
.nav-sub-menu a { padding: 0.5rem 0.75rem; border-radius: 6px; white-space: nowrap; }
.nav-sub-menu a:hover { background: var(--bg-tint); }
.nav-sub > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-sub-menu.mega { min-width: 430px; }
.nav-sub:hover .nav-sub-menu.mega, .nav-sub:focus-within .nav-sub-menu.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.nav-sub-menu .menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.6rem; color: var(--accent); font-weight: 600; border-radius: 0; }

/* ---------- Scroll reveal (enabled only when JS runs; content stays readable at rest) ---------- */
html.rv .rv-t { opacity: 0.35; transform: translateY(16px); }
html.rv .rv-t.in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

/* ---------- Card links ---------- */
.card-link { margin-top: 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.center-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.video-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; transition: border-color 0.15s ease, transform 0.15s ease; }
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.vc-thumb { aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(135deg, var(--band), #0a3d6b); position: relative; display: grid; place-items: center; }
.vc-play { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.75); display: grid; place-items: center; transition: background 0.15s ease; }
.video-card:hover .vc-play { background: #ec1c24; border-color: #ec1c24; }
.vc-play::after { content: ""; width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.vc-dur { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 0.66rem; background: rgba(0, 0, 0, 0.72); color: #fff; padding: 0.15rem 0.4rem; border-radius: 4px; }
.vc-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.vc-body h3 { font-size: 0.92rem; }
.vc-body span { color: var(--muted); font-size: 0.78rem; }

/* ---------- Case studies ---------- */
.case-metrics { display: flex; gap: 1.6rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; flex-wrap: wrap; }
.case-metrics div b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.case-metrics div small { color: var(--muted); font-size: 0.75rem; }

/* ---------- Footer social ---------- */
.social-row { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social-row a { width: 34px; height: 34px; border: 1px solid #22344d; border-radius: 8px; display: grid; place-items: center; color: var(--band-muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.78rem; transition: color 0.15s ease, border-color 0.15s ease; }
.social-row a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.8rem; text-align: center; border-bottom: none; }
  .nav-toggle { display: block; }
  .header-logo { height: 36px; }
  .header-sap { height: 30px; }
  .card-grid.cols-3, .card-grid.cols-2, .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid, .timeline { grid-template-columns: 1fr; }
  .flow-row { flex-wrap: wrap; }
  .feature-list { grid-template-columns: 1fr; }
  .pm-side { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .nav-sub { width: 100%; }
  .nav-sub-btn { display: none; }
  .nav-sub-menu { display: flex !important; flex-direction: column; position: static; transform: none; border: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav-sub-menu::before { display: none; }
  .nav-sub-menu a { border-radius: 0; white-space: normal; }
  .nav-sub-menu.mega, .nav-sub:hover .nav-sub-menu.mega { display: none !important; }
}

/* ---- dynamic content additions ---- */
a.product { text-decoration: none; color: inherit; }
.visual-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.empty-note { color: var(--muted); grid-column: 1 / -1; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.job-meta span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; color: var(--muted); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.job-body { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.job-body h3 { margin-top: 0.8rem; }
.job-body p, .job-list { color: var(--muted); }
.job-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.job-side { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; position: sticky; top: 6rem; }
.job-side .btn { margin-top: 0.6rem; text-align: center; justify-content: center; }
.job-side small { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 820px) { .job-layout { grid-template-columns: 1fr; } .job-side { position: static; } }
