/* ============================================
   PHLEBOTEX — Enterprise Homecare Orchestration
   Brand palette strictly from logo guidelines
   ============================================ */

:root {
  /* Brand palette from guidelines */
  --blue: #18289B;
  --blue-deep: #0F1A6B;
  --blue-dark: #0A1247;
  --red: #D81335;
  --red-deep: #B30E2A;
  --cyan: #45D8F9;
  --grey: #909AA7;
  --grey-light: #E8EAEF;
  --grey-lighter: #F4F5F8;
  --white: #FFFFFF;
  --ink: #0A1247;
  --ink-soft: #3A4358;
  --ink-muted: #6B7388;

  /* System */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 71, 0.04), 0 1px 3px rgba(10, 18, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 18, 71, 0.06), 0 2px 4px rgba(10, 18, 71, 0.04);
  --shadow-lg: 0 20px 60px -12px rgba(10, 18, 71, 0.18), 0 8px 20px -8px rgba(10, 18, 71, 0.10);
  --border: 1px solid rgba(24, 40, 155, 0.08);
  --border-strong: 1px solid rgba(24, 40, 155, 0.14);

  --container: 1280px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-feature-settings: 'tnum';
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(24, 40, 155, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(24, 40, 155, 0.2);
}
.btn--outline:hover {
  border-color: var(--blue);
  background: rgba(24, 40, 155, 0.03);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--blue); }

.btn--light {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(0,0,0,0.2); }

.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--full { width: 100%; }

/* Disabled state — used on form submit buttons until all fields are valid */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: #E0E3EA;
  color: #8A93A6;
  border-color: #E0E3EA;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================
   ANNOUNCE BAR
   ============================================ */
.announce {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  padding: 9px 0;
  position: relative;
  overflow: hidden;
}
.announce::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(216, 19, 53, 0.15), transparent 40%);
  pointer-events: none;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
/* Responsive message: show full copy on wide screens, short copy on narrow */
.announce__msg {
  display: inline-block;
}
.announce__msg-short { display: none; }
@media (max-width: 1200px) {
  .announce__msg-full { display: none; }
  .announce__msg-short { display: inline; }
}
@media (max-width: 560px) {
  .announce__msg { display: none; }  /* on very narrow screens, drop the tagline; keep just the dot + Request a Demo link */
}
.announce__dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(216, 19, 53, 0.8);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.announce__link {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.announce__link:hover { border-color: var(--white); }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--blue);
  background: rgba(24, 40, 155, 0.04);
}
.header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-btn { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.menu-btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition); }
.mobile-nav { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFBFD 0%, var(--white) 60%);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}
.hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(24, 40, 155, 0.18), transparent 70%);
  top: -100px; left: -100px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(216, 19, 53, 0.10), transparent 70%);
  bottom: -50px; right: -100px;
}
.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero__visual { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(24, 40, 155, 0.06);
  border: 1px solid rgba(24, 40, 155, 0.12);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow__mark {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(216, 19, 53, 0.15);
}

.hero__title {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero__pillars li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(216, 19, 53, 0.06);
  border-radius: 3px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: var(--border);
}
.hero__trust > span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}
.hero__trust-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.dot-sep {
  width: 3px; height: 3px;
  background: var(--grey);
  border-radius: 50%;
  opacity: 0.6;
}

/* ---- Console Visual ---- */
.hero__visual { position: relative; }

.console {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: var(--border-strong);
  overflow: hidden;
}
.console__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #FAFBFD, var(--white));
  border-bottom: var(--border);
}
.console__dots { display: flex; gap: 6px; }
.console__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grey-light);
}
.console__dots span:first-child { background: var(--red); opacity: 0.6; }
.console__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: rgba(216, 19, 53, 0.08);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}

.console__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: var(--border);
}
.kpi-card {
  padding: 20px;
  border-right: var(--border);
}
.kpi-card:last-child { border-right: none; }
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.kpi-unit { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.kpi-trend {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.kpi-trend--up { color: #0EA36A; }
.kpi-trend--down { color: var(--blue); }

.console__section {
  padding: 18px 20px;
  border-bottom: var(--border);
}
.console__section:last-child { border-bottom: none; }
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.section-label .mono { text-transform: none; font-weight: 500; letter-spacing: 0; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.stage {
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--grey-lighter);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.stage--active {
  background: rgba(24, 40, 155, 0.05);
  border-color: rgba(24, 40, 155, 0.2);
}
.stage__name {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.stage__count {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: 'tnum';
  margin-bottom: 6px;
}
.stage__bar {
  height: 3px;
  background: rgba(24, 40, 155, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.stage__bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  animation: barFill 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: left;
  transform: scaleX(0);
}
.stage--active .stage__bar span { background: var(--red); }
@keyframes barFill { to { transform: scaleX(1); } }

.activity { display: flex; flex-direction: column; gap: 8px; }
.activity li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: var(--grey-lighter);
  border-radius: var(--radius);
  font-size: 12px;
}
.tag {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.tag--blue { background: rgba(24, 40, 155, 0.1); color: var(--blue); }
.tag--green { background: rgba(14, 163, 106, 0.1); color: #0EA36A; }
.tag--red { background: rgba(216, 19, 53, 0.1); color: var(--red); }
.act-msg { color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-time { font-size: 11px; color: var(--ink-muted); }

.float-card {
  position: absolute;
  bottom: -24px;
  left: -32px;
  background: var(--blue);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}
.float-card__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.float-card__value span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* ============================================
   TRUSTED BY (partner logos)
   ============================================ */
.trusted {
  background: var(--white);
  padding: 64px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}
.trusted__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.trusted__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.trusted__sub {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.trusted__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.partner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border: 1px dashed rgba(24, 40, 155, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FAFBFD 0%, var(--white) 100%);
  transition: all var(--transition);
  min-height: 90px;
}
.partner-slot:hover {
  border-style: solid;
  border-color: var(--blue);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.partner-slot__mark {
  font-size: 22px;
  color: var(--grey);
  transition: color var(--transition);
}
.partner-slot:hover .partner-slot__mark { color: var(--red); }
.partner-slot__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: center;
  transition: color var(--transition);
}
.partner-slot:hover .partner-slot__name { color: var(--ink); }

/* ============================================
   RESULTS / METRICS (animated counters)
   ============================================ */
.results {
  padding: 100px 0;
  background: var(--blue-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.results__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(216, 19, 53, 0.12), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(69, 216, 249, 0.08), transparent 45%);
  pointer-events: none;
}
.results::before {
  content: '';
  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: 50px 50px;
  pointer-events: none;
}
.results__head {
  max-width: 680px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.results__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
  color: var(--white);
}
.results__title em {
  font-style: normal;
  color: var(--red);
}
.results__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 560px;
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.result-card {
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--cyan);
  transition: width var(--transition);
}
.result-card--red::before { background: var(--red); }
.result-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}
.result-card:hover::before { width: 100%; }
.result-card__num {
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  font-feature-settings: 'tnum';
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
}
.result-card--red .result-card__num { color: var(--white); }
.result-card__sfx {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--cyan);
  margin-left: 4px;
}
.result-card--red .result-card__sfx { color: var(--red); }
.result-card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.result-card__desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ============================================
   OUR PRODUCTS — 3 product showcase
   ============================================ */
.products {
  padding: 120px 0;
  background: var(--grey-lighter);
  position: relative;
}
.products::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(24, 40, 155, 0.05), transparent 60%);
  pointer-events: none;
}
.products-grid {
  position: relative;
}

/* ===== Products tab selector (section 05) ===== */
.products-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto 48px;
}
.products-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1.5px solid rgba(24, 40, 155, 0.12);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
  position: relative;
}
.products-tab:hover {
  border-color: rgba(24, 40, 155, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.products-tab--active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(24, 40, 155, 0.35);
}
.products-tab--active:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.products-tab--active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--blue-deep);
}
.products-tab__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(24, 40, 155, 0.06);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.products-tab__icon svg { width: 22px; height: 22px; }
.products-tab--active .products-tab__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cyan);
}
.products-tab__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.products-tab__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.products-tab--active .products-tab__name { color: var(--white); }
.products-tab__note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.products-tab--active .products-tab__note { color: rgba(255, 255, 255, 0.7); }

/* Products panels — only one visible at a time */
.products-panel { display: none; }
.products-panel--active {
  display: block;
  animation: fadePanel 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* @keyframes fadePanel already defined in deploy section */

/* Responsive: stack tabs on narrow viewports */
@media (max-width: 900px) {
  .products-tabs {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }
  .products-tab { padding: 16px 18px; }
  .products-tab--active::after { display: none; }
}
.product-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding: 56px;
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: rgba(24, 40, 155, 0.25);
  box-shadow: var(--shadow-lg);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 5px;
  width: 120px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 70%, rgba(216, 19, 53, 0) 100%);
  border-radius: 0 0 3px 0;
}
/* Alternate layout: odd = visual right, even = visual left */
.product-card:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.product-card:nth-child(even) .product-card__visual { order: 2; }
.product-card:nth-child(even) .product-card__content { order: 1; }
.product-card:nth-child(even) .product-card__meta { order: 0; grid-column: 1 / -1; }

.product-card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.product-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  background: var(--blue);
  padding: 6px 12px;
  border-radius: 3px;
}
.product-tag--alt { background: var(--red); }
.product-for {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* Card variants for decorative background tint */
.product-card--admin { background: linear-gradient(135deg, #FAFBFD 0%, var(--white) 100%); }
.product-card--field::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(216, 19, 53, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.product-card--patient::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(69, 216, 249, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.product-card__content { position: relative; z-index: 1; }
.product-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.product-card__desc {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 24px;
}
.product-card__feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card__feats li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.product-card__feats li strong {
  color: var(--ink);
  font-weight: 700;
}
.feat-dot {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(24, 40, 155, 0.08);
  position: relative;
  margin-top: 2px;
}
.feat-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.feat-dot--red { background: rgba(216, 19, 53, 0.1); }
.feat-dot--red::before { background: var(--red); }

.product-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== Real Admin Screenshot — Browser Frame ===== */
.product-card__visual--admin { position: relative; }

.browser-frame {
  width: 100%;
  max-width: 640px;
  background: var(--white);
  border: 1px solid rgba(24, 40, 155, 0.14);
  border-radius: 10px;
  box-shadow:
    0 32px 70px -20px rgba(10, 18, 71, 0.28),
    0 10px 24px -8px rgba(10, 18, 71, 0.12);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.browser-frame:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0.5deg);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #FAFBFD, #F0F2F7);
  border-bottom: 1px solid rgba(24, 40, 155, 0.08);
}
.browser-frame__dots { display: flex; gap: 6px; }
.browser-frame__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D6DAE2;
}
.browser-frame__dots span:first-child { background: var(--red); opacity: 0.6; }
.browser-frame__dots span:nth-child(2) { background: #FFB020; opacity: 0.7; }
.browser-frame__dots span:nth-child(3) { background: #00C472; opacity: 0.7; }
.browser-frame__url {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--white);
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(24, 40, 155, 0.06);
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame__spacer { width: 60px; }
.browser-frame__screen {
  display: block;
  background: var(--grey-lighter);
  line-height: 0;
}
.browser-frame__screen img {
  width: 100%;
  display: block;
  height: auto;
}

/* Floating "Powered by Phlebotex" badge */
.badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 40, 155, 0.1);
  box-shadow: 0 12px 30px -8px rgba(10, 18, 71, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.badge-float__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}
.badge-float__brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--blue);
}

/* "In production" / live status tag in product meta */
.product-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: auto;
  padding: 5px 10px;
  background: rgba(14, 163, 106, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(14, 163, 106, 0.2);
}
.product-live .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0EA36A;
  box-shadow: 0 0 0 3px rgba(14, 163, 106, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
.product-live .live-dot--red {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 19, 53, 0.15);
}
.product-live .live-dot--cyan {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 216, 249, 0.25);
  animation: none;
}

/* Adjust product card meta to accommodate live badge */
.product-card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ===== Phone Gallery Carousel (Field App) ===== */
.product-card__visual--gallery {
  position: relative;
}

/* ===== New Phone Showcase — single phone with nav arrows + dots + store badges ===== */
.phone-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-showcase__phone {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-showcase__frame {
  position: relative;
  width: 240px;
  aspect-ratio: 9 / 19.5;
  background: transparent;
  border-radius: 22px;
  box-shadow:
    0 22px 50px -14px rgba(15, 26, 107, 0.28),
    0 8px 20px -6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  overflow: hidden;
}

.phone-showcase__slides {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #f7f9fc;
}

.phone-showcase__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone-showcase__slide.is-active {
  opacity: 1;
  transform: translateX(0);
}
.phone-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Nav arrows flanking the phone */
.phone-showcase__nav {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(24, 40, 155, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px -4px rgba(15, 26, 107, 0.2);
  flex-shrink: 0;
  z-index: 2;
}
.phone-showcase__nav svg { width: 18px; height: 18px; }
.phone-showcase__nav:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: scale(1.08);
  box-shadow: 0 6px 16px -4px rgba(24, 40, 155, 0.35);
}
.phone-showcase__nav--prev { margin-right: 10px; }
.phone-showcase__nav--next { margin-left: 10px; }

/* Dot indicators */
.phone-showcase__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.phone-showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(24, 40, 155, 0.2);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.phone-showcase__dot:hover {
  background: rgba(24, 40, 155, 0.45);
}
.phone-showcase__dot.is-active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* Store badges */
.phone-showcase__stores {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #0F1523;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  min-width: 130px;
  cursor: default;
  user-select: none;
}
.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge__small {
  font-size: 8.5px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.store-badge__big {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== Trusted partner "live" variant — Al Borg ===== */
.partner-slot--live {
  border: 1px solid var(--blue);
  border-style: solid;
  background: linear-gradient(135deg, rgba(24, 40, 155, 0.04) 0%, var(--white) 100%);
  position: relative;
}
.partner-slot__mark--live { color: var(--red) !important; }
.partner-slot__name--live { color: var(--ink) !important; font-weight: 700 !important; }
.partner-slot__status {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  background: #0EA36A;
  padding: 3px 6px;
  border-radius: 3px;
}

/* ===== Phone Mockup (Field & Patient apps) ===== */
.mockup--phone {
  width: 260px;
  height: 520px;
  background: #1A1F2E;
  border-radius: 36px;
  padding: 8px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(10, 18, 71, 0.3), 0 10px 30px -10px rgba(10, 18, 71, 0.2);
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mockup--phone:hover { transform: rotate(-2deg); }
.mockup--phone--patient { transform: rotate(4deg); }
.mockup--phone--patient:hover { transform: rotate(2deg); }

.phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 20px;
  background: #1A1F2E;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--white);
  border-radius: 28px;
  padding: 32px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 4px;
}
.phone-head__time { font-family: 'JetBrains Mono', monospace; }
.phone-head__icons { display: flex; gap: 4px; }
.phone-head__icons span {
  width: 12px; height: 8px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0.5;
}
.phone-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 8px;
  margin-bottom: 4px;
}
.phone-card {
  padding: 12px 14px;
  background: var(--grey-lighter);
  border-radius: 8px;
  border: 1px solid transparent;
  position: relative;
}
.phone-card--active {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(24, 40, 155, 0.08);
}
.phone-card__badge {
  position: absolute;
  top: 10px; right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(216, 19, 53, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
}
.phone-card__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.phone-card__meta {
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 500;
}
.phone-fab {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(216, 19, 53, 0.4);
}

/* Patient app specific */
.phone-hero {
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 10px;
  color: var(--white);
  margin-top: 8px;
}
.phone-hero__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 6px;
}
.phone-hero__eta {
  font-size: 14px;
  font-weight: 600;
}
.phone-hero__eta strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cyan);
}
.phone-tracker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  background: var(--grey-lighter);
  border-radius: 8px;
}
.track-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.track-step span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(24, 40, 155, 0.15);
  flex-shrink: 0;
}
.track-step--done { color: var(--ink-soft); }
.track-step--done span { background: var(--blue); }
.track-step--active { color: var(--red); font-weight: 700; }
.track-step--active span {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 19, 53, 0.2);
  animation: pulse 1.5s ease-in-out infinite;
}
.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 4px;
}
.phone-btn {
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--grey-lighter);
  border-radius: 6px;
}
.phone-btn--primary {
  background: var(--blue);
  color: var(--white);
}

/* Products footer CTA */
.products-footer {
  margin-top: 48px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.products-footer::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 100%;
  background: radial-gradient(circle at right, rgba(216, 19, 53, 0.25), transparent 70%);
  pointer-events: none;
}
.products-footer__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.55;
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.products-footer__text strong { color: var(--white); font-weight: 700; }
.products-footer .btn { position: relative; z-index: 1; background: var(--white); color: var(--blue); border-color: var(--white); }
.products-footer .btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--blue-dark); }

/* Responsive products */
@media (max-width: 1080px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  .product-card:nth-child(even) { grid-template-columns: 1fr; }
  .product-card:nth-child(even) .product-card__visual { order: unset; }
  .product-card:nth-child(even) .product-card__content { order: unset; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .trusted__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .product-card { padding: 28px 24px; gap: 32px; }
  .browser-frame { transform: none; }
  .browser-frame:hover { transform: none; }
  .mockup--phone { transform: none; width: 220px; height: 440px; }
  .mockup--phone--patient { transform: none; }
  .product-card__meta { flex-wrap: wrap; gap: 10px; }
  .product-live { margin-left: 0; }
  .products-footer { flex-direction: column; align-items: flex-start; padding: 28px; }
  .results__grid { grid-template-columns: 1fr; }
  .trusted__grid { grid-template-columns: repeat(2, 1fr); }
  .trusted__head { flex-direction: column; align-items: flex-start; }
  .badge-float { right: 10px; bottom: -14px; padding: 10px 14px; }
  .badge-float__brand { font-size: 13px; }
  .screen-gallery__item { flex: 0 0 220px; }
}

/* ============================================
   SECTION HEADS
   ============================================ */
.section-head {
  max-width: 860px;
  margin-bottom: 64px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 20px;
}
.section-head__label--light { color: rgba(255,255,255,0.7); }
.section-head__label .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--red);
  padding: 2px 6px;
  background: rgba(216, 19, 53, 0.08);
  border-radius: 3px;
}
.section-head__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-head__title--light { color: var(--white); }
.section-head__title em {
  font-style: normal;
  color: var(--red);
  font-weight: 700;
}
.section-head__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ============================================
   CHALLENGES
   ============================================ */
.challenges {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.challenge {
  padding: 32px 28px;
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.challenge::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.challenge:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.challenge:hover::before { width: 100%; background: var(--blue); }

.challenge__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.challenge h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.challenge p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.challenge--quote {
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.challenge--quote::before { display: none; }
.challenge--quote:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.challenge__quotemark {
  font-family: 'Georgia', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 8px;
}
.challenge--quote p {
  color: var(--white);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}
.challenge--quote strong { color: var(--cyan); font-weight: 700; }

/* ============================================
   APPROACH
   ============================================ */
.approach {
  padding: 120px 0;
  background: var(--blue-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.approach__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216, 19, 53, 0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(69, 216, 249, 0.08), transparent 40%);
  pointer-events: none;
}
.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.approach__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.approach__title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.approach__title em {
  font-style: normal;
  color: var(--red);
}
.approach__desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-bottom: 32px;
}
.approach__desc strong { color: var(--white); font-weight: 700; }
.approach__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* Orchestra visual */
.orchestra {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
}
.orchestra__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.orchestra__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.hub-core {
  position: relative;
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-core__inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(24, 40, 155, 0.5), 0 0 80px rgba(216, 19, 53, 0.3);
  position: relative;
  z-index: 2;
}
.hub-core__logo {
  width: 54px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: hubLogoFloat 4s ease-in-out infinite;
}
@keyframes hubLogoFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.hub-core__ring {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}
.hub-core__ring::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}
.hub-core__ring--2 {
  inset: -40px;
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.08);
}
.hub-core__ring--2::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes rotate { to { transform: rotate(360deg); } }

.orchestra__node {
  position: absolute;
  width: 95px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.orchestra__node:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 19, 53, 0.18), 0 8px 24px -4px rgba(216, 19, 53, 0.3);
}
.node__icon {
  color: var(--cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}
.node__icon svg { width: 26px; height: 26px; stroke-width: 2; }
.node__label { font-size: 12.5px; font-weight: 700; color: var(--white); letter-spacing: 0.02em; }
.node--1 { top: 4%; left: 10%; }
.node--2 { top: 4%; right: 10%; }
.node--3 { top: 43%; left: -4%; }
.node--4 { top: 43%; right: -4%; }
.node--5 { bottom: 4%; left: 10%; }
.node--6 { bottom: 4%; right: 10%; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 120px 0;
  background: var(--grey-lighter);
}
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.flow__line {
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--blue));
  opacity: 0.2;
  z-index: 0;
}
.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.flow-step__circle {
  width: 60px; height: 60px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(24, 40, 155, 0.12);
  transition: all var(--transition);
}
.flow-step:hover .flow-step__circle {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}
.flow-step:nth-child(3) .flow-step__circle { border-color: var(--red); color: var(--red); }
.flow-step:nth-child(3):hover .flow-step__circle { background: var(--red); color: var(--white); }

.flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.flow-step p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================
   SOLUTIONS
   ============================================ */
.solutions {
  padding: 120px 0;
  background: var(--white);
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: var(--border-strong);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab:hover { color: var(--ink); }
.tab--active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-panel--active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.solution {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.solution__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 20px;
}
.solution__left h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.solution__left > p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
}
.solution__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #FAFBFD, #F4F5F8);
  border: var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--red);
}
.metric__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: 'tnum';
}
.metric__value span { font-size: 14px; color: var(--ink-muted); }
.metric__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solution__right {
  display: grid;
  gap: 20px;
}
.sol-block {
  padding: 24px 28px;
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
}
.sol-block h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sol-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sol-dot--red { background: var(--red); }
.sol-dot--blue { background: var(--blue); }
.sol-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sol-block li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.sol-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--grey);
}

/* ============================================
   WHY
   ============================================ */
.why {
  padding: 120px 0;
  background: var(--blue-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.why-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.why-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.why-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}
.why-before {
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: rgba(216, 19, 53, 0.6);
  text-decoration-thickness: 1.5px;
}
.why-after {
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}
.why-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
}
.why-before .why-label { color: var(--red); }
.why-after .why-label { color: var(--cyan); }
.why-arrow {
  font-size: 24px;
  color: var(--red);
  font-weight: 300;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(24, 40, 155, 0.08), transparent 60%),
    radial-gradient(circle at 30% 20%, rgba(216, 19, 53, 0.06), transparent 50%);
  pointer-events: none;
}
.cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.cta__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  background: rgba(216, 19, 53, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.cta__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.cta__title span { color: var(--blue); }
.cta__desc {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer__logo {
  height: 36px;
  margin-bottom: 24px;
  width: auto;
}
.footer__brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 380px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__tag {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer__compliance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.footer__compliance::before {
  content: '';
  width: 6px; height: 6px;
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  display: inline-block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .hero__container { grid-template-columns: 1fr; gap: 48px; }
  .approach__inner { grid-template-columns: 1fr; gap: 48px; }
  .modular__inner { grid-template-columns: 1fr; gap: 48px; }
  .solution { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .header__actions { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-top: var(--border);
    background: var(--white);
  }
  .mobile-nav a {
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
  }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__line { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 80px; }
  .challenges, .approach, .how, .solutions, .capabilities, .modular, .why, .cta { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .console__grid { grid-template-columns: 1fr; }
  .kpi-card { border-right: none; border-bottom: var(--border); }
  .kpi-card:last-child { border-bottom: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .float-card { left: 16px; bottom: -20px; }
  .hero__pillars { grid-template-columns: 1fr; }
  .trust-strip__items { gap: 16px; }
  .why-row { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 20px; }
  .why-arrow { transform: rotate(90deg); }
  .why-before { text-decoration: none; opacity: 0.6; }
  .solution__metrics { grid-template-columns: 1fr; gap: 12px; }
  .announce__inner { font-size: 11.5px; }
  .trust-strip__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================
   SUB-PAGES — Demo & Contact
   ============================================ */

/* ===== Page Hero ===== */
.page-hero {
  position: relative;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #FAFBFD 0%, var(--white) 100%);
  overflow: hidden;
  border-bottom: var(--border);
}
.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.page-hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(216, 19, 53, 0.08), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}
.breadcrumb a {
  color: var(--ink-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden] {
  color: var(--grey);
  font-size: 14px;
}
.breadcrumb > span:not([aria-hidden]) { color: var(--ink); font-weight: 600; }

.page-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 24px 0 20px;
}
.page-hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ===== Form Section Layout ===== */
.form-section {
  padding: 72px 0 120px;
  background: var(--grey-lighter);
  position: relative;
}
.form-section__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== Form Card ===== */
.form-wrap { position: relative; }
.form-card {
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--red);
}
.form-card__head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: var(--border);
}
.form-card__head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 16px 0 10px;
}
.form-card__head p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Form Fields ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.form-field .req { color: var(--red); font-weight: 700; }
.form-field .opt { color: var(--ink-muted); font-weight: 500; font-size: 12px; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 14px;
  background: var(--white);
  border: 1.5px solid rgba(24, 40, 155, 0.14);
  border-radius: var(--radius);
  transition: all var(--transition);
  width: 100%;
  line-height: 1.4;
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 40, 155, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-muted);
  font-weight: 400;
}

/* Custom select arrow */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* Radio pills */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-pill {
  position: relative;
  cursor: pointer;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--grey-lighter);
  border: 1.5px solid transparent;
  border-radius: 100px;
  transition: all var(--transition);
}
.radio-pill:hover span {
  background: var(--white);
  border-color: rgba(24, 40, 155, 0.14);
}
.radio-pill input:checked + span {
  background: rgba(24, 40, 155, 0.06);
  border-color: var(--blue);
  color: var(--blue);
}

/* Checkbox pill */
.checkbox-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--grey-lighter);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.checkbox-pill:hover { background: #ECEEF4; }
.checkbox-pill input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(24, 40, 155, 0.3);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 1px;
  position: relative;
}
.checkbox-pill input:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-pill input:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}
.checkbox-pill span {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Error state */
.form-field--error input,
.form-field--error select,
.form-field--error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 19, 53, 0.08);
}
.form-field--error .checkbox-pill,
.form-consent.form-field--error .checkbox-pill { border-color: var(--red); background: rgba(216, 19, 53, 0.04); }

/* Anti-spam honeypot: invisible to humans, attractive to bots.
   Bots will fill any visible field; humans don't see this one. */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Form actions */
.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success__icon {
  width: 72px; height: 72px;
  color: #0EA36A;
  margin: 0 auto 20px;
  background: rgba(14, 163, 106, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-success__icon svg { width: 48px; height: 48px; }
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

/* ===== Side Panel ===== */
.form-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}
.side-block {
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.side-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 16px 0 20px;
}
.side-block--dark {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  border-color: var(--blue);
}
.side-block--dark::before {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(216, 19, 53, 0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.side-block--dark h3 { color: var(--white); }
.side-dark-title {
  font-size: 22px;
  margin-top: 16px;
  margin-bottom: 12px;
}
.side-dark-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}
.side-block--minimal {
  padding: 0;
  border: none;
  background: transparent;
}

/* Steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.steps-list__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(24, 40, 155, 0.08);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}
.steps-list li:nth-child(2) .steps-list__num { background: rgba(216, 19, 53, 0.08); color: var(--red); }
.steps-list h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.steps-list p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Check list (in dark block) */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin-top: 18px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.check-list__mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* Quick contact */
.quick-contact {
  padding: 24px 28px;
  background: var(--white);
  border: var(--border-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-contact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}
.quick-contact__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--transition);
}
.quick-contact__link:hover { color: var(--red); }

/* ===== Contact Channels ===== */
.contact-channels {
  padding: 56px 0 40px;
  background: var(--white);
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.channel-card {
  padding: 32px;
  background: var(--white);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.channel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.channel-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.channel-card:hover::before { width: 100%; }
.channel-card--featured {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  border-color: var(--blue);
}
.channel-card--featured::before { background: var(--red); }
.channel-card--featured:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(24, 40, 155, 0.4); }

.channel-card__icon {
  width: 44px; height: 44px;
  background: rgba(24, 40, 155, 0.06);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.channel-card__icon svg { width: 22px; height: 22px; }
.channel-card--featured .channel-card__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.channel-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 10px;
}
.channel-card--featured .channel-card__label { color: var(--cyan); }
.channel-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.channel-card--featured h3 { color: var(--white); }
.channel-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}
.channel-card--featured p { color: rgba(255, 255, 255, 0.8); }
.channel-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  transition: gap var(--transition);
}
.channel-card__link:hover { gap: 10px; }
.channel-card--featured .channel-card__link { color: var(--white); }
.channel-card--featured .channel-card__link:hover { color: var(--cyan); }

/* Channel list (sidebar) */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel-list--spaced {
  margin-top: 20px;
  gap: 12px;
}
.channel-line {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--grey-lighter);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.channel-line:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}
.channel-line__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--white);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-line__icon svg { width: 18px; height: 18px; }
.channel-line > div { display: flex; flex-direction: column; gap: 2px; }
.channel-line__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.channel-line__value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .form-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .form-side { position: static; }
  .channels-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .form-card { padding: 28px 24px; }
  .side-block { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-actions .btn--full-mobile { width: 100%; }
  .page-hero { padding: 48px 0 40px; }
  .form-section { padding: 40px 0 72px; }
  .contact-channels { padding: 40px 0 24px; }
}


/* ============================================
   DEPLOY BY CLIENT TYPE
   ============================================ */
.deploy {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.deploy__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(24, 40, 155, 0.04), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(216, 19, 53, 0.04), transparent 45%);
  pointer-events: none;
}
.deploy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.deploy .container { position: relative; z-index: 1; }

/* ===== Tabs ===== */
.deploy-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.deploy-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1.5px solid rgba(24, 40, 155, 0.12);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
  position: relative;
}
.deploy-tab:hover {
  border-color: rgba(24, 40, 155, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.deploy-tab--active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(24, 40, 155, 0.35);
}
.deploy-tab--active:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.deploy-tab--active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--blue-deep);
}
.deploy-tab__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(24, 40, 155, 0.06);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.deploy-tab__icon svg { width: 22px; height: 22px; }
.deploy-tab--active .deploy-tab__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cyan);
}
.deploy-tab__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.deploy-tab__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.deploy-tab--active .deploy-tab__name { color: var(--white); }
.deploy-tab__note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.deploy-tab--active .deploy-tab__note { color: rgba(255, 255, 255, 0.7); }

/* ===== Panels ===== */
.deploy-panel { display: none; }
.deploy-panel--active { display: block; animation: fadePanel 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Deploy card ===== */
.deploy-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 48px;
  background: var(--white);
  border: var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.deploy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 3px;
  background: var(--red);
}

.deploy-card__lead { position: relative; z-index: 1; }
.deploy-card__badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--blue);
  background: rgba(24, 40, 155, 0.08);
  padding: 6px 10px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.deploy-card__badge--red { color: var(--red); background: rgba(216, 19, 53, 0.08); }
.deploy-card__badge--dark { color: var(--white); background: var(--blue-dark); }
.deploy-card__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.deploy-card__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
}
.deploy-card__desc strong { color: var(--ink); font-weight: 700; }

/* ===== Cycle flow ===== */
.deploy-card__cycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 8px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #FAFBFD 0%, #F4F5F8 100%);
  border: var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.deploy-card__cycle--alt {
  border-left-color: var(--blue);
}
.cycle-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.cycle-step__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: rgba(216, 19, 53, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
}
.deploy-card__cycle--alt .cycle-step__num {
  color: var(--blue);
  background: rgba(24, 40, 155, 0.08);
}
.cycle-arrow {
  font-size: 14px;
  color: var(--grey);
  font-weight: 300;
}

/* ===== Modules side ===== */
.deploy-card__modules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.modules-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.modules-section-label--spaced { margin-top: 12px; }
.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.label-dot--red { background: var(--red); }
.label-dot--blue { background: var(--blue); }
.label-dot--grey { background: var(--grey); }

/* Individual module */
.deploy-mod {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--grey-lighter);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all var(--transition);
}
.deploy-mod:hover { transform: translateX(3px); }

.deploy-mod--required {
  background: rgba(24, 40, 155, 0.03);
  border-color: rgba(24, 40, 155, 0.15);
}
.deploy-mod--optional {
  background: var(--grey-lighter);
  border-color: rgba(24, 40, 155, 0.08);
  border-style: dashed;
}
.deploy-mod--excluded {
  background: transparent;
  border-color: rgba(144, 154, 167, 0.2);
  opacity: 0.6;
}

.deploy-mod__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 40, 155, 0.08);
}
.deploy-mod__icon svg { width: 20px; height: 20px; }
.deploy-mod--excluded .deploy-mod__icon {
  color: var(--grey);
  background: transparent;
}

.deploy-mod__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deploy-mod__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.deploy-mod--excluded .deploy-mod__name { color: var(--ink-muted); }

/* Inline highlight pill (e.g. "+ Multi-Provider") */
.mod-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(216, 19, 53, 0.1);
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.deploy-mod__desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.deploy-mod__desc strong { color: var(--ink); font-weight: 700; }
.deploy-mod--excluded .deploy-mod__desc { color: var(--ink-muted); }

.deploy-mod__tag {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--blue);
  padding: 4px 8px;
  border-radius: 3px;
  align-self: flex-start;
}
.deploy-mod__tag--opt { background: var(--grey); }
.deploy-mod__tag--excl { background: transparent; color: var(--grey); border: 1px solid var(--grey); padding: 3px 7px; }

/* Deploy CTA */
.deploy__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 40px;
  background: linear-gradient(90deg, #FAFBFD 0%, #F4F5F8 100%);
  border: var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.deploy__cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--red));
}
.deploy__cta-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}
.deploy__cta-text strong { color: var(--ink); font-weight: 700; }

/* Responsive */
@media (max-width: 1080px) {
  .deploy-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .deploy-tabs { grid-template-columns: 1fr; gap: 10px; max-width: 500px; }
  .deploy-tab--active::after { display: none; }
}
@media (max-width: 600px) {
  .deploy { padding: 80px 0; }
  .deploy-card { padding: 28px 24px; }
  .deploy-card__cycle { padding: 14px; gap: 8px 6px; }
  .cycle-step { font-size: 11.5px; }
  .deploy__cta { flex-direction: column; text-align: center; padding: 24px; gap: 14px; }
  .deploy__cta-text { font-size: 14px; }
  .deploy-mod { grid-template-columns: auto 1fr; }
  .deploy-mod__tag { grid-column: 2; justify-self: flex-start; margin-top: 4px; }
}


/* ============================================
   Hero Console — Live Animation States
   ============================================ */
.activity li {
  transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.activity-item--enter {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}
.activity-item--shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.activity-item--leave {
  opacity: 0;
  transform: translateX(20px);
}

/* KPI pulse effect when value updates */
.kpi-pulse {
  animation: kpiPulse 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes kpiPulse {
  0% { color: var(--ink); }
  30% { color: var(--red); transform: scale(1.08); }
  100% { color: var(--ink); transform: scale(1); }
}

/* Event count flash */
.count-flash {
  animation: countFlash 400ms ease-out;
}
@keyframes countFlash {
  0% { color: var(--red); }
  100% { color: var(--ink-muted); }
}

/* Shimmer on active dispatch stage */
.stage--active {
  position: relative;
  overflow: hidden;
}
.stage--active::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(216, 19, 53, 0.12) 50%, transparent 100%);
  animation: stageShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes stageShimmer {
  0% { left: -100%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

/* Orchestra nodes — smooth cursor-follow */
.orchestra__node {
  transition: transform 80ms linear, background 200ms, border-color 200ms;
}
.hub-core {
  transition: transform 80ms linear;
}

/* ============================================
   404 PAGE
   ============================================ */
.page--404 { background: var(--white); }

.error-page {
  position: relative;
  padding: 100px 0 140px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FAFBFD 0%, var(--white) 60%);
  overflow: hidden;
}
.error-page__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.error-page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}
.error-page__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(24, 40, 155, 0.15), transparent 70%);
  top: -100px; left: -100px;
}
.error-page__glow--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(216, 19, 53, 0.10), transparent 70%);
  bottom: -100px; right: -100px;
}
.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 4 X 4 treatment */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.error-404__digit {
  font-size: clamp(100px, 16vw, 200px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--blue);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-404__x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 13vw, 160px);
  height: clamp(90px, 13vw, 160px);
  animation: xSpin 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  filter: drop-shadow(0 10px 30px rgba(216, 19, 53, 0.25));
}
.error-404__x svg {
  width: 100%; height: 100%;
  animation: xPulse 3s ease-in-out infinite;
}
@keyframes xSpin {
  from { opacity: 0; transform: scale(0.6) rotate(-30deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes xPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.error-page .eyebrow {
  margin-bottom: 20px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}
.error-page__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards;
}
.error-page__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s backwards;
}
.error-page__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 72px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s backwards;
}

/* Quick-link suggest grid */
.error-page__suggest {
  width: 100%;
  max-width: 680px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s backwards;
}
.error-page__suggest-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.error-page__suggest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.suggest-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid rgba(24, 40, 155, 0.12);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.suggest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.suggest-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.suggest-card:hover::before { width: 100%; }
.suggest-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.suggest-card__desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 720px) {
  .error-page { padding: 56px 0 80px; min-height: auto; }
  .error-404 { margin-bottom: 20px; }
  .error-page__actions { margin-bottom: 48px; }
  .error-page__suggest-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LIVE JOURNEY SIMULATOR
   ========================================================= */
.journey {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}
.journey > .container {
  position: relative;
  z-index: 1;
}

.journey-sim {
  margin-top: 56px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(15, 26, 107, 0.18),
              0 4px 16px -4px rgba(15, 26, 107, 0.08);
}

/* TOP BAR */
.journey-sim__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: linear-gradient(180deg, #0A1247 0%, #0F1A6B 100%);
  color: #ffffff;
  border-bottom: 1px solid #0a1247;
  flex-wrap: wrap;
}
.journey-sim__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #D81335;
}
.sim-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D81335;
  box-shadow: 0 0 0 0 rgba(216, 19, 53, 0.6);
  animation: simDotPulse 1.6s ease-out infinite;
}
@keyframes simDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 19, 53, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(216, 19, 53, 0); }
}
.journey-sim__order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #D3DCFF;
  flex-wrap: wrap;
  justify-content: center;
}
.journey-sim__order-id { color: #ffffff; font-weight: 700; letter-spacing: 0.04em; }
.journey-sim__order-sep { color: #4A5590; }
.journey-sim__order-type { color: #B8C2DB; }
.journey-sim__order-time { color: #45D8F9; font-weight: 600; }
.journey-sim__controls { display: inline-flex; gap: 8px; }
.sim-btn {
  width: 34px; height: 34px;
  border: 1px solid #2A3480;
  background: #141C5F;
  color: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sim-btn:hover { background: #1C2675; border-color: #45D8F9; transform: translateY(-1px); }
.sim-btn svg { width: 14px; height: 14px; }
.sim-btn__pause { display: none; }
.journey-sim.is-playing .sim-btn__play { display: none; }
.journey-sim.is-playing .sim-btn__pause { display: block; }

/* PIPELINE */
.journey-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 20px 24px;
  background: #f7f9fc;
  border-bottom: 1px solid #e6e9ef;
}
.pipeline-fill {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  width: calc(100% - 48px);
  background: #e6e9ef;
  border-radius: 2px;
  overflow: hidden;
}
.pipeline-fill::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #18289B 0%, #D81335 100%);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.journey-sim[data-stage="0"] .pipeline-fill::after { width: 10%; }
.journey-sim[data-stage="1"] .pipeline-fill::after { width: 30%; }
.journey-sim[data-stage="2"] .pipeline-fill::after { width: 55%; }
.journey-sim[data-stage="3"] .pipeline-fill::after { width: 80%; }
.journey-sim[data-stage="4"] .pipeline-fill::after { width: 100%; }

.pipeline-stage {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 999px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 0 4px;
  justify-self: center;
  min-width: 140px;
  justify-content: center;
}
.pipeline-stage:hover { border-color: #18289B; transform: translateY(-1px); }
.pipeline-stage__num {
  font-size: 10px;
  font-weight: 700;
  color: #909AA7;
  letter-spacing: 0.06em;
}
.pipeline-stage__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #4A5266;
  letter-spacing: 0.02em;
}
.pipeline-stage.is-active {
  background: #18289B;
  border-color: #18289B;
  box-shadow: 0 4px 14px -2px rgba(24, 40, 155, 0.4);
}
.pipeline-stage.is-active .pipeline-stage__num { color: #45D8F9; }
.pipeline-stage.is-active .pipeline-stage__name { color: #ffffff; }
.pipeline-stage.is-done {
  background: #EAF0FF;
  border-color: #C9D5FF;
}
.pipeline-stage.is-done .pipeline-stage__num { color: #18289B; }
.pipeline-stage.is-done .pipeline-stage__name { color: #18289B; }
.pipeline-stage.is-done .pipeline-stage__name::after {
  content: " ✓";
  color: #18289B;
  font-weight: 700;
}

/* STAGE AREA */
.journey-stage {
  position: relative;
  min-height: 500px;
  padding: 40px 32px 32px;
  background: #ffffff;
}
.scene {
  position: absolute;
  inset: 40px 32px 32px;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.scene.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.scene__layout--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  height: 100%;
}
.scene__left { display: flex; flex-direction: column; gap: 16px; }
.scene__right { display: flex; align-items: center; justify-content: center; }
.scene-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #D81335;
  margin-bottom: 4px;
}
.scene-label__num {
  background: #D81335;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.scene-label__text { color: #0F1A6B; }
.scene-label__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #D81335;
  animation: simDotPulse 1.6s ease-out infinite;
}
.scene__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #0F1523;
  letter-spacing: -0.01em;
  margin: 0;
}
.scene__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4A5266;
  margin: 0;
  max-width: 420px;
}

/* --- SCENE 01: Order channels + Order card --- */
.scene-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #909AA7;
  background: #f4f5f8;
  border: 1px solid #e6e9ef;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.channel-chip__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #C9D5FF;
}
.channel-chip--active {
  color: #18289B;
  background: #EAF0FF;
  border-color: #C9D5FF;
}
.channel-chip--active .channel-chip__dot {
  background: #18289B;
  box-shadow: 0 0 0 2px rgba(24, 40, 155, 0.2);
}

.order-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 8px 32px -8px rgba(15, 26, 107, 0.15);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation-fill-mode: forwards;
}
.scene.is-active[data-scene="0"] .order-card {
  animation: orderSlideIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
@keyframes orderSlideIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0F1A6B 0%, #18289B 100%);
}
.order-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  background: #D81335;
  padding: 4px 9px;
  border-radius: 4px;
  animation: badgePulse 1.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 19, 53, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(216, 19, 53, 0); }
}
.order-card__id {
  font-size: 12px;
  font-weight: 600;
  color: #45D8F9;
  letter-spacing: 0.04em;
}
.order-card__body { padding: 14px 18px; }
.order-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #eef0f5;
  font-size: 12.5px;
}
.order-row:last-child { border-bottom: none; }
.order-row__k { color: #909AA7; font-weight: 500; }
.order-row__v { color: #0F1523; font-weight: 600; text-align: right; }
.tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
}
.tag--red { background: #FEE7EB; color: #D81335; }

/* --- SCENE 02: Validation rules --- */
.validate-rules {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.validate-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f7f9fc;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  opacity: 0.3;
  transform: translateX(-6px);
  transition: all 0.4s ease;
}
.validate-rule__check {
  position: relative;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #C9D5FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.validate-rule__spin {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #18289B;
  opacity: 0;
  animation: spinOnce 0.9s linear;
  animation-play-state: paused;
}
@keyframes spinOnce {
  to { transform: rotate(360deg); }
}
.validate-rule__tick {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.validate-rule__name { font-size: 13.5px; font-weight: 600; color: #0F1523; margin-bottom: 2px; }
.validate-rule__desc { font-size: 11.5px; color: #7A8499; }

/* Active validation: rules light up in sequence when scene is active */
.scene.is-active[data-scene="1"] .validate-rule {
  animation-fill-mode: forwards;
}
.scene.is-active[data-scene="1"] .validate-rule[data-rule="1"] { animation: ruleIn 0.45s ease 0.2s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="2"] { animation: ruleIn 0.45s ease 0.9s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="3"] { animation: ruleIn 0.45s ease 1.6s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="4"] { animation: ruleIn 0.45s ease 2.3s forwards; }
@keyframes ruleIn {
  to {
    opacity: 1;
    transform: translateX(0);
    background: #EAF0FF;
    border-color: #18289B;
  }
}
.scene.is-active[data-scene="1"] .validate-rule[data-rule="1"] .validate-rule__check { animation: checkFill 0.4s ease 0.55s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="2"] .validate-rule__check { animation: checkFill 0.4s ease 1.25s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="3"] .validate-rule__check { animation: checkFill 0.4s ease 1.95s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="4"] .validate-rule__check { animation: checkFill 0.4s ease 2.65s forwards; }
@keyframes checkFill {
  to { background: #18289B; border-color: #18289B; }
}
.scene.is-active[data-scene="1"] .validate-rule[data-rule="1"] .validate-rule__tick { animation: tickIn 0.3s ease 0.7s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="2"] .validate-rule__tick { animation: tickIn 0.3s ease 1.4s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="3"] .validate-rule__tick { animation: tickIn 0.3s ease 2.1s forwards; }
.scene.is-active[data-scene="1"] .validate-rule[data-rule="4"] .validate-rule__tick { animation: tickIn 0.3s ease 2.8s forwards; }
@keyframes tickIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.validate-stamp {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #EAF0FF 0%, #D8E3FF 100%);
  border: 2px solid #18289B;
  border-radius: 10px;
  margin-top: 12px;
  max-width: 300px;
}
.scene.is-active[data-scene="1"] .validate-stamp {
  display: inline-flex;
  animation: stampIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.1s forwards;
  opacity: 0;
  transform: scale(0.85);
}
@keyframes stampIn {
  to { opacity: 1; transform: scale(1); }
}
.validate-stamp__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #18289B; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.validate-stamp__title { font-size: 13px; font-weight: 800; color: #18289B; letter-spacing: 0.1em; }
.validate-stamp__meta { font-size: 11px; color: #7A8499; }

/* --- SCENE 03: Dispatch map --- */
.dispatch-logic { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.logic-chip {
  font-size: 11px;
  font-weight: 600;
  color: #18289B;
  background: #EAF0FF;
  border: 1px solid #C9D5FF;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
}
.scene.is-active[data-scene="2"] .logic-chip:nth-child(1) { animation: chipIn 0.4s ease 0.4s forwards; }
.scene.is-active[data-scene="2"] .logic-chip:nth-child(2) { animation: chipIn 0.4s ease 0.6s forwards; }
.scene.is-active[data-scene="2"] .logic-chip:nth-child(3) { animation: chipIn 0.4s ease 0.8s forwards; }
.scene.is-active[data-scene="2"] .logic-chip:nth-child(4) { animation: chipIn 0.4s ease 1.0s forwards; }
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }

.dispatch-map {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.5 / 1;
  background: linear-gradient(180deg, #F4F5F8 0%, #EAEDF5 100%);
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24, 40, 155, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 155, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  opacity: 0.55;
  transition: all 0.4s ease;
}
.map-pin__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #909AA7;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 26, 107, 0.2);
  margin: 0 auto 4px;
}
.map-pin__label {
  font-size: 10px;
  font-weight: 600;
  color: #4A5266;
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.map-pin__ring {
  position: absolute;
  top: 6px; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #D81335;
  opacity: 0;
}
.scene.is-active[data-scene="2"] .map-pin--selected {
  animation: pinSelect 0.6s ease 1.2s forwards;
}
@keyframes pinSelect {
  to { opacity: 1; transform: translate(-50%, -100%) scale(1.15); }
}
.scene.is-active[data-scene="2"] .map-pin--selected .map-pin__dot {
  animation: dotRed 0.4s ease 1.3s forwards;
}
@keyframes dotRed { to { background: #D81335; } }
.scene.is-active[data-scene="2"] .map-pin--selected .map-pin__label {
  animation: labelHi 0.4s ease 1.3s forwards;
}
@keyframes labelHi {
  to { background: #D81335; color: #ffffff; }
}
.scene.is-active[data-scene="2"] .map-pin--selected .map-pin__ring {
  animation: ringPulse 1.4s ease-out 1.5s infinite;
}
@keyframes ringPulse {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

.map-patient {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
}
.map-patient__marker {
  width: 30px; height: 30px;
  color: #D81335;
  filter: drop-shadow(0 3px 6px rgba(216, 19, 53, 0.35));
  margin: 0 auto;
}
.map-patient__marker svg { width: 100%; height: 100%; }
.map-patient__label {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: #D81335;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
}
.map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: visible;
}
.scene.is-active[data-scene="2"] .map-route {
  animation: routeFade 0.6s ease 1.9s forwards;
}
@keyframes routeFade { to { opacity: 1; } }
.scene.is-active[data-scene="2"] .map-route path {
  animation: routeDraw 1.4s ease-in-out 2.1s both;
}
@keyframes routeDraw {
  from { stroke-dashoffset: 50; }
  to { stroke-dashoffset: 0; }
}

.map-assigned {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15, 26, 107, 0.15);
  opacity: 0;
  transform: translateY(10px);
}
.scene.is-active[data-scene="2"] .map-assigned {
  animation: assignedIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s forwards;
}
@keyframes assignedIn { to { opacity: 1; transform: translateY(0); } }
.map-assigned__pic {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #18289B, #D81335);
  color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.map-assigned__name { font-size: 13px; font-weight: 700; color: #0F1523; }
.map-assigned__meta { font-size: 11px; color: #7A8499; }
.map-assigned__tag {
  margin-left: auto;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: #ffffff; background: #18289B;
  padding: 4px 8px; border-radius: 4px;
}

/* --- SCENE 04: Execute — events + phone --- */
.execute-events {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  position: relative;
  max-width: 380px;
  padding-left: 50px;
}
.execute-events::before {
  content: "";
  position: absolute;
  left: 55px; top: 18px; bottom: 18px;
  width: 2px;
  background: #e6e9ef;
  border-radius: 1px;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  opacity: 0;
  transform: translateX(-6px);
  position: relative;
}
.event-item__time {
  font-size: 11px;
  color: #7A8499;
  font-weight: 600;
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  text-align: right;
}
.event-item__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #ffffff;
  border: 2px solid #C9D5FF;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-left: -1px;
}
.event-item__text { font-size: 12.5px; color: #4A5266; }

.scene.is-active[data-scene="3"] .event-item[data-event="1"] { animation: eventIn 0.4s ease 0.4s forwards; }
.scene.is-active[data-scene="3"] .event-item[data-event="2"] { animation: eventIn 0.4s ease 1.4s forwards; }
.scene.is-active[data-scene="3"] .event-item[data-event="3"] { animation: eventIn 0.4s ease 2.4s forwards; }
@keyframes eventIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.scene.is-active[data-scene="3"] .event-item[data-event="1"] .event-item__dot { animation: eventDot 0.3s ease 0.6s forwards; }
.scene.is-active[data-scene="3"] .event-item[data-event="2"] .event-item__dot { animation: eventDot 0.3s ease 1.6s forwards; }
.scene.is-active[data-scene="3"] .event-item[data-event="3"] .event-item__dot { animation: eventDot 0.3s ease 2.6s forwards; }
@keyframes eventDot {
  to { background: #18289B; border-color: #18289B; box-shadow: 0 0 0 3px rgba(24, 40, 155, 0.15); }
}

.execute-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ===== NEW THREE-PANEL LIVE COMPOSITION ===== */
.live-composition {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

/* Top: live tracking map */
.tracking-map {
  position: relative;
  height: 115px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef1f8 100%);
  border: 1px solid #e3e5ed;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(15, 26, 107, 0.15);
}
.tracking-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(24, 40, 155, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 40, 155, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.8;
}
.tracking-map__label {
  position: absolute;
  top: 10px; left: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #D81335;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tracking-map__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D81335;
  animation: simDotPulse 1.6s ease-out infinite;
}
.tracking-map__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.scene.is-active[data-scene="3"] .tracking-map__route {
  animation: trackRouteFade 0.6s ease 0.5s forwards;
}
@keyframes trackRouteFade { to { opacity: 1; } }

/* Sara's moving marker */
.tracker-car {
  position: absolute;
  top: 60%; left: 12%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.scene.is-active[data-scene="3"] .tracker-car {
  animation: carMove 4s ease-in-out 0.4s forwards;
}
@keyframes carMove {
  0%   { top: 60%; left: 12%; }
  25%  { top: 54%; left: 32%; }
  55%  { top: 49%; left: 52%; }
  80%  { top: 45%; left: 68%; }
  100% { top: 42%; left: 76%; }
}
.tracker-car__pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(24, 40, 155, 0.18);
  animation: carPulse 1.8s ease-out infinite;
}
@keyframes carPulse {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.tracker-car__icon {
  width: 46px; height: 23px;
  color: #18289B;
  filter: drop-shadow(0 2px 4px rgba(15, 26, 107, 0.45));
  position: relative;
  z-index: 1;
}
.tracker-car__icon svg { width: 100%; height: 100%; display: block; }
.tracker-car__label {
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  background: #18289B;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
}

/* Layla's home (destination) */
.tracker-home {
  position: absolute;
  top: 42%; left: 88%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}
.tracker-home__icon {
  width: 22px; height: 22px;
  color: #D81335;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(216, 19, 53, 0.3));
}
.tracker-home__icon svg { width: 100%; height: 100%; display: block; }
.tracker-home__label {
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  background: #D81335;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
}

/* Bottom: two phones side by side */
.live-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-phone {
  background: #0F1523;
  border-radius: 18px;
  padding: 4px;
  box-shadow: 0 10px 22px -8px rgba(15, 26, 107, 0.3);
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
}
.scene.is-active[data-scene="3"] .mini-phone--specialist {
  animation: phoneIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
}
.scene.is-active[data-scene="3"] .mini-phone--patient {
  animation: phoneIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}
@keyframes phoneIn {
  to { opacity: 1; transform: translateY(0); }
}

.mini-phone__notch {
  width: 38px; height: 6px;
  background: #0F1523;
  border-radius: 0 0 5px 5px;
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mini-phone__screen {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 10px 10px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
}
.mini-phone__tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #18289B;
  background: #eef1ff;
  padding: 2.5px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 8px;
}
.mini-phone__tag--red {
  color: #D81335;
  background: #feeaed;
}
.mini-phone__head { margin-bottom: 8px; }
.mini-phone__title { font-size: 12px; font-weight: 700; color: #0F1523; }
.mini-phone__code { font-size: 9px; color: #909AA7; margin-top: 1px; }

.mini-phone__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  align-self: flex-start;
}
.mini-phone__status--live {
  background: #FEE7EB;
  color: #D81335;
}
.mini-phone__status-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: simDotPulse 1.6s ease-out infinite;
}
.mini-phone__card {
  background: #f7f9fc;
  border: 1px solid #e6e9ef;
  border-radius: 7px;
  padding: 7px 9px;
  margin-bottom: 8px;
}
.mini-phone__card-title { font-size: 11px; font-weight: 700; color: #0F1523; }
.mini-phone__card-meta { font-size: 9px; color: #7A8499; margin: 2px 0 3px; }
.mini-phone__card-addr { font-size: 9px; color: #4A5266; }

.mini-phone__action {
  margin-top: auto;
  text-align: center;
  padding: 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
}
.mini-phone__action--primary { background: #18289B; color: #ffffff; }

/* Patient notification card that flies in */
.patient-notif {
  background: linear-gradient(135deg, #18289B, #0F1A6B);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 8px;
  box-shadow: 0 5px 12px -4px rgba(15, 26, 107, 0.4);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}
.scene.is-active[data-scene="3"] .patient-notif {
  animation: notifIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s forwards;
}
@keyframes notifIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.patient-notif__head {
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: #9DB4FF;
  font-weight: 700;
  margin-bottom: 3px;
}
.patient-notif__title { font-size: 10.5px; font-weight: 700; line-height: 1.25; }
.patient-notif__body { font-size: 9px; color: #D3DCFF; margin-top: 2px; line-height: 1.3; }

.patient-eta {
  background: #f7f9fc;
  border: 1px solid #e6e9ef;
  border-radius: 7px;
  padding: 6px 9px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
}
.patient-eta__label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #7A8499;
}
.patient-eta__value {
  font-size: 14px;
  font-weight: 800;
  color: #18289B;
  font-variant-numeric: tabular-nums;
}
#etaMin {
  transition: color 0.3s ease;
}

.patient-track {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  position: relative;
}
.patient-track__step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  color: #909AA7;
  font-weight: 600;
}
.patient-track__step span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e3e5ed;
  flex-shrink: 0;
}
.patient-track__step--done {
  color: #4A5266;
}
.patient-track__step--done span {
  background: #18289B;
}
.patient-track__step--active {
  color: #D81335;
  font-weight: 700;
}
.patient-track__step--active span {
  background: #D81335;
  box-shadow: 0 0 0 2.5px rgba(216, 19, 53, 0.15);
  animation: simDotPulse 1.6s ease-out infinite;
}

/* Legacy sms-bubble kept for backward compat (unused now) */
.sms-bubble {
  display: none;
}

/* --- SCENE 05: Close --- */
.close-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.close-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.close-stat__val { font-size: 28px; font-weight: 700; color: #18289B; letter-spacing: -0.02em; }
.close-stat__val span { font-size: 14px; color: #909AA7; margin-left: 3px; }
.close-stat__lbl { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #7A8499; font-weight: 600; }

.close-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}
.close-card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 14px;
  opacity: 0;
  transform: translateY(8px);
}
.close-card--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0F1A6B 0%, #18289B 100%);
  border-color: #0F1A6B;
  color: #ffffff;
}
.scene.is-active[data-scene="4"] .close-card:nth-child(1) { animation: closeIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards; }
.scene.is-active[data-scene="4"] .close-card:nth-child(2) { animation: closeIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s forwards; }
.scene.is-active[data-scene="4"] .close-card:nth-child(3) { animation: closeIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s forwards; }
.scene.is-active[data-scene="4"] .close-card:nth-child(4) { animation: closeIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s forwards; }
@keyframes closeIn { to { opacity: 1; transform: translateY(0); } }
.close-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #45D8F9;
  margin-bottom: 4px;
}
.close-card:not(.close-card--primary) .close-card__label { color: #D81335; }
.close-card__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.close-check {
  width: 30px; height: 30px; border-radius: 50%;
  background: #ffffff; color: #18289B;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.close-card__value-sm { font-size: 14px; font-weight: 700; color: #0F1523; }
.close-card__sub { font-size: 10.5px; color: #909AA7; margin-top: 3px; letter-spacing: 0.02em; }
.close-card--primary .close-card__sub { color: #B8C2DB; }

/* CAPTION BAR */
.journey-caption {
  padding: 14px 24px;
  background: #f7f9fc;
  border-top: 1px solid #e6e9ef;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.journey-caption__label { color: #909AA7; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.journey-caption__text { color: #0F1523; font-weight: 500; transition: opacity 0.3s ease; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .journey { padding: 80px 0 90px; }
  .journey-pipeline { grid-template-columns: repeat(5, 1fr); padding: 14px 10px; }
  .pipeline-stage { min-width: 0; padding: 8px 6px; margin: 0 2px; flex-direction: column; gap: 2px; }
  .pipeline-stage__name { font-size: 10.5px; }
  .pipeline-stage__num { font-size: 9px; }
  .journey-stage { min-height: 820px; padding: 28px 18px 20px; }
  .scene { inset: 28px 18px 20px; }
  .scene__layout--two { grid-template-columns: 1fr; gap: 24px; }
  .scene__title { font-size: 24px; }
  .scene__desc { font-size: 13.5px; }
  .journey-sim__top { padding: 12px 16px; gap: 12px; }
  .journey-sim__order { font-size: 11.5px; }
  .dispatch-map { max-width: 100%; }
  .execute-phone { max-width: 100%; }
  .sms-bubble { right: 8px; }
  .close-grid { max-width: 100%; }
  .order-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .pipeline-stage__num { display: none; }
  .journey-sim__order-type { display: none; }
  .journey-caption { font-size: 11.5px; padding: 12px 16px; }
}
