/* ========  HOMEPAGE  ======== */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: clamp(680px, 94vh, 920px);
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-12);
  background: #050912;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.5) contrast(1.15) brightness(0.75);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.4) 0%, rgba(5, 9, 18, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 9, 18, 0.92) 0%, rgba(5, 9, 18, 0.3) 55%, rgba(5, 9, 18, 0.6) 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(90, 140, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

.hero-copy .eyebrow { color: rgba(255,255,255,0.75); }
.hero-copy .eyebrow::before { background: rgba(255,255,255,0.4); }

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1rem + 6.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  text-transform: none;
  margin-block: var(--space-6) var(--space-8);
  max-width: 16ch;
  /* crisp rendering on dark background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "ss01" 1;
}
.hero-copy h1 .accent {
  color: #ff3a4e;
  /* eliminate red fringing / graininess on dark bg */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  text-shadow: 0 0 1px rgba(255,58,78,0.35);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* --- Word rotator --- */
.hero-copy h1 .rotator {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}
.hero-copy h1 .rotator-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 550ms ease-in-out;
}
.hero-copy h1 .rotator-word.is-out {
  opacity: 0;
}

.hero-copy h1 .tick {
  display: inline-block;
  width: 0.09em; height: 0.78em;
  background: #ff3a4e;
  margin-left: 0.1em;
  vertical-align: -0.08em;
  animation: blink 1.1s steps(2) infinite;
  box-shadow: 0 0 10px rgba(255,58,78,0.5);
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 .rotator-word { transition: none; }
  .hero-copy h1 .tick { animation: none; }
}

.hero-copy .lead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  max-width: 56ch;
  margin-bottom: var(--space-10);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* HUD label on hero */
.hero-hud {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-2);
}
.hero-hud .dot {
  background: var(--color-live);
  box-shadow: 0 0 12px var(--color-live-soft);
}

/* =========================================================
   Hero: Project Command Console
   A premium, industrial-feel live project dashboard that
   directly shows what "technology-driven partner" means.
   ========================================================= */
.hero-viz {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-block: var(--space-4);
}

.console {
  position: relative;
  background: linear-gradient(160deg, #0a1c3d 0%, #050e22 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,58,78,0.08) inset,
    0 0 120px -20px rgba(255,58,78,0.2);
  overflow: hidden;
  isolation: isolate;
}
.console::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
.console::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,58,78,0.18) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.console > * { position: relative; z-index: 1; }

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,58,78,0.6);
  z-index: 2;
}
.corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.console-brand { display: inline-flex; align-items: center; gap: 8px; }
.console-tag {
  color: #fff;
  background: #ce1126;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.console-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.8);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.8); }
  70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.console-meta {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4);
}
.console-meta b {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.console-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-4);
}

.gauge { position: relative; aspect-ratio: 1 / 1; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 415;
  stroke-dashoffset: 415;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(255,58,78,0.5));
}
.gauge-ticks line { stroke: rgba(255,255,255,0.3); stroke-width: 1.5; }
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.gauge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  color: #fff; line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.gauge-num i { font-style: normal; color: #ff3a4e; font-size: 0.5em; font-weight: 700; }
.gauge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  line-height: 1.4;
}

.systems { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.system-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  animation: rowFade 0.5s ease-out backwards;
}
.system-row:nth-child(1) { animation-delay: 0.1s; }
.system-row:nth-child(2) { animation-delay: 0.2s; }
.system-row:nth-child(3) { animation-delay: 0.3s; }
.system-row:nth-child(4) { animation-delay: 0.4s; }
.system-row:nth-child(5) { animation-delay: 0.5s; }
@keyframes rowFade {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.sys-code { color: #ff3a4e; font-weight: 700; letter-spacing: 0.04em; min-width: 36px; }
.sys-name {
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sys-bar {
  width: 56px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}
.sys-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #ce1126, #ff5e6f);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,58,78,0.45);
  animation: sysFill 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sysFill { from { width: 0; } to { width: var(--pct, 0%); } }
.sys-pct { color: #fff; font-weight: 700; min-width: 34px; text-align: right; }
.sys-pct i { font-style: normal; color: rgba(255,255,255,0.45); font-size: 0.85em; margin-left: 1px; }
.sys-status {
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
}
.sys-status.done { color: #4ade80; background: rgba(74,222,128,0.12); }
.sys-status.live { color: #ff3a4e; background: rgba(255,58,78,0.15); }
.sys-status.wip { color: #fbbf24; background: rgba(251,191,36,0.12); }
.sys-status.queued { color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.console-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.kpi {
  background: rgba(5,14,34,0.9);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
}
.kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.01em;
}
.kpi-hl { background: rgba(255,58,78,0.1); }
.kpi-hl .kpi-num { color: #ff5e6f; font-size: 14px; padding-top: 4px; }

.chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
  background: rgba(10, 28, 61, 0.88);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 3;
  animation: chipFloat 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chip-eng { top: -8px; left: 14%; animation-delay: 0s; border-color: rgba(255,58,78,0.4); color: #fff; }
.chip-db { top: 12%; right: -26px; animation-delay: 0.8s; }
.chip-arc { top: 48%; right: -10px; animation-delay: 1.4s; border-color: rgba(255,58,78,0.4); color: #fff; }
.chip-neta { bottom: 14%; right: -18px; animation-delay: 2.0s; }
.chip-comm { bottom: -6px; left: 22%; animation-delay: 2.6s; border-color: rgba(255,58,78,0.4); color: #fff; }
.chip-rng { top: 34%; left: -24px; animation-delay: 3.2s; }

@media (max-width: 720px) {
  .console { padding: var(--space-4); }
  .console-main { grid-template-columns: 1fr; gap: var(--space-4); }
  .gauge { max-width: 180px; margin-inline: auto; }
  .sys-bar { width: 40px; }
  .console-kpis { grid-template-columns: repeat(2, 1fr); }
  .chip { display: none; }
}

/* ---- Stat ticker ---- */
.stat-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 720px) { .stat-ticker { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .num .unit { color: var(--color-accent); font-weight: 700; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ---- Marquee (client logos / strip) ---- */
.marquee {
  padding-block: var(--space-10);
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: var(--space-16);
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}

/* ---- Service selector (interactive) ---- */
.services-section { background: var(--color-bg); position: relative; }

.service-selector {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
  min-height: 520px;
}
@media (max-width: 960px) {
  .service-selector { grid-template-columns: 1fr; }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  border-left: 1px solid var(--color-divider);
}
.service-item {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  border-left: 3px solid transparent;
  margin-left: -1px;
  transition: all var(--transition-interactive);
  color: var(--color-text);
  display: flex; align-items: baseline; gap: var(--space-4);
}
.service-item:hover { color: var(--color-primary); background: var(--color-surface-offset); }
.service-item.active {
  border-left-color: var(--color-accent);
  color: var(--color-primary);
  background: var(--color-surface);
}
.service-item .num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  opacity: 0.78;
}
.service-item:hover .num { opacity: 1; }
.service-item .name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.service-item.active .num { color: var(--color-accent); opacity: 1; }

.service-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  min-height: 520px;
}
@media (max-width: 720px) {
  .service-panel { grid-template-columns: 1fr; padding: var(--space-6); }
}
.service-panel .copy h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.service-panel .copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.service-panel ul.features {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.service-panel ul.features li {
  display: flex; gap: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-divider);
}
.service-panel ul.features li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 700;
}

.service-panel .visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-primary);
  min-height: 320px;
}
.service-panel .visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.service-panel .visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 43, 92, 0.75) 100%);
}
.service-panel .visual .tag-list {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.service-panel .visual .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ---- Industries section ---- */
.industries {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.industries::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}
.industries .eyebrow { color: #ff5e6f; }
.industries .eyebrow::before { background: #ff5e6f; }
.industries h2 { color: #fff; }
.industries .section-head p { color: rgba(255, 255, 255, 0.82); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
  position: relative;
}
@media (max-width: 960px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.industry-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition-slow), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-card:hover img {
  opacity: 0.85;
  transform: scale(1.05);
}
.industry-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 22, 51, 0.95) 100%);
}
.industry-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-6);
  color: #fff;
  z-index: 1;
}
.industry-card .content .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ff5e6f;
  text-transform: uppercase;
}
.industry-card .content h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-block: var(--space-2);
}
.industry-card .content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.industry-card:hover .content p { max-height: 80px; }

/* ---- Beyond Earth card (space / frontier accent) ---- */
.industry-card--space {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 320px;
  box-shadow: 0 0 0 1px rgba(223, 241, 64, 0.35), 0 20px 40px -20px rgba(223, 241, 64, 0.18);
}
.industry-card--space img {
  object-position: center 40%;
}
.industry-card--space .content {
  max-width: 640px;
}
.industry-card--space .content h3 {
  font-size: var(--text-2xl);
}
.industry-card--space .content p {
  max-height: 140px;
  font-size: var(--text-base);
}
@media (max-width: 640px) {
  .industry-card--space .content h3 { font-size: var(--text-xl); }
  .industry-card--space { min-height: 420px; }
}
.industry-card--space::after {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(223, 241, 64, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, transparent 40%, rgba(6, 22, 51, 0.95) 100%);
}
.industry-card--space .content .num {
  color: var(--color-live);
}
.industry-card--space::before {
  content: 'NEW FRONTIER';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  color: #061633;
  background: var(--color-live);
  border-radius: 999px;
  font-weight: 600;
}

/* ---- Tracker Technologies callout ---- */
.tracker-block {
  position: relative;
  background: var(--color-surface);
  padding: 0;
  overflow: hidden;
}
.tracker-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, #0a2b5c 0%, #061633 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-8);
}
@media (max-width: 900px) { .tracker-inner { grid-template-columns: 1fr; } }
.tracker-copy { padding: var(--space-12); display: flex; flex-direction: column; justify-content: center; }
.tracker-copy .eyebrow { color: #ff5e6f; }
.tracker-copy .eyebrow::before { background: #ff5e6f; }
.tracker-copy h2 {
  color: #fff;
  font-size: var(--text-xl);
  margin-block: var(--space-4);
}
.tracker-copy p { color: rgba(255,255,255,0.78); margin-bottom: var(--space-6); }

.tracker-products {
  display: flex; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap;
}
.tracker-product {
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.tracker-product strong { color: #ff5e6f; font-weight: 600; }

.tracker-visual {
  position: relative;
  background: #061633;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tracker-visual .dashboard-mock {
  width: 90%; max-width: 480px;
  aspect-ratio: 16/11;
  background: #0a1020;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}
.tracker-visual .dashboard-mock .bar {
  height: 10px; border-radius: 4px;
  background: linear-gradient(90deg, #5a8cff, #ff3a4e);
  margin-bottom: var(--space-2);
  opacity: 0.9;
}
.tracker-visual .dashboard-mock .bar:nth-child(2) { width: 72%; }
.tracker-visual .dashboard-mock .bar:nth-child(3) { width: 46%; opacity: 0.6; }
.tracker-visual .dashboard-mock .bar:nth-child(4) { width: 88%; opacity: 0.8; }
.tracker-visual .dashboard-mock .bar:nth-child(5) { width: 58%; opacity: 0.5; }
.tracker-visual .dashboard-mock .grid-cells {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-top: var(--space-4);
}
.tracker-visual .dashboard-mock .cell {
  aspect-ratio: 1;
  background: rgba(90, 140, 255, 0.15);
  border-radius: 2px;
}
.tracker-visual .dashboard-mock .cell.active { background: #ff3a4e; }
.tracker-visual .dashboard-mock .cell.mid { background: rgba(90,140,255,0.5); }

/* ---- Testimonial ---- */
.testimonial-section { background: var(--color-bg); }
.testimonial-big {
  padding: var(--space-12);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}
.testimonial-big::before {
  content: '"';
  position: absolute;
  top: -20px; left: 30px;
  font-family: var(--font-display);
  font-size: 180px;
  color: var(--color-accent);
  opacity: 0.15;
  line-height: 1;
  font-weight: 700;
}
.testimonial-big blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 38ch;
  margin-bottom: var(--space-6);
  position: relative;
}
.testimonial-big cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonial-big cite strong { color: var(--color-primary); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--gradient-accent);
  color: #fff;
  padding-block: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.cta-band h2 {
  color: #fff;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  max-width: 18ch;
  margin-inline: auto;
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,0.88);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  max-width: 52ch;
  position: relative;
}
.cta-band .btn-wrap { position: relative; display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ---- Section header ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: end;
  margin-bottom: var(--space-10);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}
.section-head h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 52ch;
}

/* ==========================================================
   TECH-DRIVEN PARTNER — Proof bar, Lifecycle, Compare
   ========================================================== */
.tech-partner {
  padding-block: var(--space-16);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  position: relative;
}
.tech-partner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-primary) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.tech-partner > .container { position: relative; z-index: 1; }

.tech-partner .section-head {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: var(--space-12);
}
.tech-partner .section-head h2 { max-width: 22ch; margin-inline: auto; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.tech-partner .section-head p { max-width: 64ch; margin-inline: auto; }

/* Proof bar */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  padding: var(--space-6);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
  .proof-bar { grid-template-columns: repeat(2, 1fr); }
}
.proof-item {
  text-align: center;
  padding: var(--space-4);
  border-right: 1px solid var(--color-border);
  transition: background 0.2s;
}
.proof-item:last-child { border-right: none; }
@media (max-width: 860px) {
  .proof-item:nth-child(2) { border-right: none; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}
.proof-item.proof-highlight {
  background: color-mix(in srgb, var(--color-accent) 5%, transparent);
  border-radius: var(--radius-md);
  border-right-color: transparent;
  outline: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
}
.proof-item.proof-highlight + .proof-item { border-left-color: transparent; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.proof-highlight .proof-num { color: var(--color-accent); }
.proof-num .unit { color: var(--color-accent); margin-left: 2px; }
.proof-highlight .proof-num .unit { color: var(--color-accent); }
.proof-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.proof-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Lifecycle */
.lifecycle {
  margin-bottom: var(--space-12);
}
.lifecycle-head { text-align: center; margin-bottom: var(--space-6); }
.lifecycle-head h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.lifecycle-head p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 54ch; margin-inline: auto; }

.lifecycle-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}
@media (max-width: 760px) {
  .lifecycle-stepper { grid-template-columns: repeat(2, 1fr); }
}
.phase {
  background: var(--color-card);
  border: none;
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-display);
  color: var(--color-text);
  position: relative;
}
.phase:hover { background: color-mix(in srgb, var(--color-primary) 6%, var(--color-card)); }
.phase.is-active {
  background: var(--color-primary);
  color: #fff;
}
.phase.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}
.phase-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.phase.is-active .phase-num { color: rgba(255,255,255,0.7); }
.phase-name {
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.2;
}

.phase-panels {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-8);
  position: relative;
  min-height: 360px;
}
@media (max-width: 760px) {
  .phase-panels { padding: var(--space-6) var(--space-5); min-height: 0; }
}
.phase-panel {
  display: none;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-10);
  animation: phaseIn 0.4s ease-out;
}
.phase-panel.is-active { display: grid; }
@media (max-width: 860px) {
  .phase-panel { grid-template-columns: 1fr; gap: var(--space-6); }
}
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.phase-body .eyebrow { color: var(--color-accent); }
.phase-body h4 {
  font-size: var(--text-xl);
  margin: var(--space-2) 0 var(--space-3);
  max-width: 22ch;
}
.phase-body p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 52ch; }
.phase-rev1 {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.phase-rev1 li {
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text);
}
.phase-rev1 li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 2px;
  background: var(--color-accent);
}
.phase-tech {
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 8%, var(--color-card)) 0%, var(--color-card) 100%);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}
.phase-tech::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.tech-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.phase-tech h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0;
  color: var(--color-text);
}
.phase-tech p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }
.tech-mini-stat {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.tech-mini-stat b {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Compare bar */
.compare-bar {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-head {
  padding: var(--space-6) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.compare-head h3 { font-size: var(--text-lg); margin: 0; max-width: 30ch; }
.compare-toggle {
  display: inline-flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px;
}
.cmp-btn {
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s;
}
.cmp-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}
.cmp-btn[data-cmp="rev1"].is-active {
  background: var(--color-success);
}
.compare-grid {
  display: flex;
  flex-direction: column;
}
.cmp-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  align-items: center;
  transition: background 0.2s;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row:hover { background: color-mix(in srgb, var(--color-primary) 3%, transparent); }
.cmp-metric {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}
.cmp-trad {
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-6);
}
.cmp-trad::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-weight: 700;
}
.cmp-rev1 {
  color: var(--color-text);
  position: relative;
  padding-left: var(--space-6);
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-radius 0.2s, padding 0.2s;
}
.cmp-rev1::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
/* Toggle states */
.compare-bar.mode-traditional .cmp-trad { font-weight: 600; color: var(--color-text); background: color-mix(in srgb, #9ca3af 10%, transparent); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6); border-radius: var(--radius-sm); }
.compare-bar.mode-traditional .cmp-rev1 { opacity: 0.55; }
.compare-bar.mode-rev1 .cmp-rev1 { background: color-mix(in srgb, var(--color-success) 12%, transparent); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6); border-radius: var(--radius-sm); color: var(--color-text); font-weight: 600; }
.compare-bar.mode-rev1 .cmp-trad { opacity: 0.55; }
@media (max-width: 780px) {
  .cmp-row { grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-4) var(--space-5); }
  .cmp-metric { font-size: var(--text-base); }
}
.compare-foot {
  padding: var(--space-4) var(--space-8);
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-surface));
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* =========================================================
   FIRST CORE VALUES — Interactive Infographic (Homepage)
   ========================================================= */
.first-interactive {
  padding: var(--space-24) 0 var(--space-20);
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--color-surface) 0%, color-mix(in srgb, var(--color-primary) 3%, var(--color-surface)) 100%);
  position: relative;
  overflow: hidden;
}
.first-interactive .section-head {
  display: block;
  max-width: 780px;
  margin-bottom: var(--space-12);
}
.first-interactive .section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--color-text);
  margin: var(--space-3) 0 var(--space-4);
}
.first-interactive .section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 640px;
}

.first-stage {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-8);
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: var(--radius-lg, 16px);
  padding: var(--space-6);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

/* ---------- Rail (left tabs) ---------- */
.first-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-right: 1px solid color-mix(in srgb, var(--color-primary) 8%, transparent);
  padding-right: var(--space-5);
}
.first-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  transition: background 260ms ease, transform 260ms ease;
  position: relative;
  font-family: var(--font-body);
}
.first-tab:hover { background: color-mix(in srgb, var(--color-primary) 4%, transparent); }
.first-tab .tab-letter {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--color-primary) 35%, var(--color-text-muted));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  border-radius: 12px;
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}
.first-tab .tab-label { display: flex; flex-direction: column; gap: 2px; }
.first-tab .tab-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.first-tab .tab-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.first-tab .tab-bar {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  margin-top: var(--space-3);
  transition: width 260ms ease;
  border-radius: 2px;
}
.first-tab.is-active { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.first-tab.is-active .tab-letter {
  color: #fff;
  background: var(--color-primary);
  transform: scale(1.02);
}
.first-tab.is-active .tab-bar { width: 100%; }
/* Accent variant for Safety tab when active */
.first-tab[data-value="safety"].is-active .tab-letter { background: var(--color-accent); }
.first-tab[data-value="safety"].is-active .tab-bar { background: var(--color-accent); }

/* ---------- Stages (right content) ---------- */
.first-stages {
  position: relative;
  min-height: 440px;
  padding: var(--space-2) var(--space-2) 0;
}
.first-panel {
  position: relative;
  min-height: 440px;
  color: var(--color-primary);
  overflow: hidden;
  animation: firstPanelIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.first-panel[hidden] { display: none; }
@keyframes firstPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-bg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  color: var(--color-primary);
  opacity: 0.55;
}
.panel-ghost {
  position: absolute;
  right: 40px;
  top: 40%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(240px, 28vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: color-mix(in srgb, var(--color-primary) 6%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.panel-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: var(--space-4) 0;
}
.panel-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.panel-meta .panel-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}
.panel-meta .panel-name { color: var(--color-primary); font-weight: 500; }
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
.panel-copy {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
}
.panel-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.panel-points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.5;
}
.panel-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--color-primary);
  transform: rotate(45deg);
  justify-self: center;
}

/* Safety accent variant */
.first-panel.panel-accent { color: var(--color-accent); }
.first-panel.panel-accent .panel-bg { color: var(--color-accent); opacity: 0.5; }
.first-panel.panel-accent .panel-ghost { color: color-mix(in srgb, var(--color-accent) 7%, transparent); }
.first-panel.panel-accent .panel-meta .panel-dot { background: var(--color-accent); }
.first-panel.panel-accent .panel-meta .panel-name { color: var(--color-accent); }
.first-panel.panel-accent .panel-points li::before { background: var(--color-accent); }

/* ---------- Timer bar ---------- */
.first-timer {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-2);
}
.first-timer-fill {
  flex: 1;
  height: 3px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.first-timer-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)));
  border-radius: 2px;
  transition: width linear;
}
.first-timer[data-running="true"] .first-timer-fill::after { width: 100%; }
.first-timer.is-paused .first-timer-fill::after { background: color-mix(in srgb, var(--color-text-muted) 50%, transparent); }
.first-timer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .first-stage { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); }
  .first-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 8%, transparent);
    padding-right: 0;
    padding-bottom: var(--space-4);
    gap: var(--space-2);
  }
  .first-tab {
    min-width: 180px;
    flex: 0 0 auto;
    grid-template-columns: 40px 1fr;
  }
  .first-tab .tab-letter { width: 40px; height: 40px; font-size: 1.5rem; }
  .first-tab .tab-name { font-size: 0.95rem; }
  .first-stages { min-height: 380px; }
  .panel-ghost { font-size: clamp(180px, 40vw, 260px); right: 10px; }
  .panel-bg { width: 300px; height: 300px; right: -60px; }
}

/* =========================================================
   ROI / Risk Infographic — hero right-column replacement
   Verifiable service-line savings + compliance exposure
   ========================================================= */
/* Refined tech ROI panel */
.roi-panel {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(18,32,58,0.55) 0%, rgba(8,12,22,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: var(--space-7) var(--space-6) var(--space-5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.roi-head { margin-bottom: var(--space-5); }
.roi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
}
.roi-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #dff140;
  box-shadow: 0 0 10px rgba(223,241,64,0.6);
  animation: roiPulse 2s ease-in-out infinite;
}
@keyframes roiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.roi-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.9rem + 1.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  text-transform: none;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 12px;
}
.roi-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 52ch;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: var(--space-4);
}
@media (max-width: 520px) {
  .roi-grid { grid-template-columns: 1fr; }
}
.roi-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 184px;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease;
}
.roi-card:hover {
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.14);
}
.roi-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.65);
  text-transform: none;
}
.roi-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  letter-spacing: 0;
}
.roi-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 2px;
}
.roi-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.3rem + 2.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  color: #fff;
  line-height: 1;
}
.roi-num i {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  color: #ff3a4e;
  margin-left: 3px;
  letter-spacing: 0;
}
.roi-split {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1rem + 1.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum' 1;
  color: #dff140;
  line-height: 1;
}
.roi-split i {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 500;
  color: #dff140;
  opacity: 0.85;
  margin-left: 2px;
}
.roi-card-warn .roi-num { color: #ff4a5e; }
.roi-card-warn .roi-num i { color: rgba(255,255,255,0.7); }
.roi-line {
  color: rgba(255,255,255,0.74);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0;
  flex-grow: 1;
}
.roi-line strong {
  color: #fff;
  font-weight: 600;
}
.roi-ref {
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 500;
  vertical-align: super;
  line-height: 1;
  margin-left: 3px;
}
.roi-ref a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  transition: color 150ms ease, background 150ms ease;
}
.roi-ref a:hover {
  color: #fff;
  background: var(--color-accent);
}

.roi-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: rgba(255,255,255,0.48);
}
.roi-foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #dff140;
  opacity: 0.8;
}

/* =========================================================
   Interactive Service-Line Rotator (replaces static ROI grid)
   - Orbit of 8 nodes around an SVG progress ring
   - Detail panel animates in when active node changes
   ========================================================= */
.sl-panel { padding: var(--space-6) var(--space-5) var(--space-4); }

/* Stack orbit above detail card — the hero's right column isn't wide
   enough for a 2-column rotator. Vertical layout gives the orbit full
   horizontal room for labels, and the detail card takes the full width. */
.sl-rotator {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  margin: var(--space-4) 0 var(--space-4);
}

/* Orbit */
.sl-orbit {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 4px auto 8px;
  container-type: size;
}
.sl-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.sl-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}
.sl-ring-progress {
  fill: none;
  stroke: var(--color-accent, #ce1126);
  stroke-width: 1.5;
  stroke-linecap: round;
  /* circumference of r=96 => 603.185; we animate dasharray */
  stroke-dasharray: 75.4 603.185;  /* 1 of 8 segments initially */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 600ms cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 6px rgba(206,17,38,0.45));
}

.sl-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.sl-core-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 3vw, 3rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sl-core-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.005em;
  margin-top: 4px;
}

/* Nodes — compact circular buttons centered on the orbit ring.
   Labels sit radially outside via the ::after pseudo so they never
   overlap adjacent nodes. */
.sl-node {
  position: absolute;
  top: 50%; left: 50%;
  /* Radius uses cqw (container width) so nodes track the orbit at any size.
     Ring r=96/220=43.6% of diameter; nodes sit on that circle. */
  --r: 43.6cqw;
  --a: 0deg;
  width: 22px;
  height: 22px;
  padding: 0;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,12,22,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform 220ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.sl-node-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 180ms ease, transform 180ms ease;
}
.sl-node-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  pointer-events: none;
  transition: color 180ms ease;
}
.sl-node:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(20,28,44,0.95);
}
.sl-node:hover .sl-node-dot { background: #dff140; transform: scale(1.2); }
.sl-node:hover .sl-node-label { color: #fff; }
.sl-node.is-active {
  background: var(--color-accent, #ce1126);
  border-color: var(--color-accent, #ce1126);
  box-shadow: 0 0 0 4px rgba(206,17,38,0.18), 0 6px 16px -4px rgba(206,17,38,0.45);
  z-index: 2;
}
.sl-node.is-active .sl-node-dot {
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.sl-node.is-active .sl-node-label { color: #fff; font-weight: 600; }

/* Angle assignments for 8 nodes — 0 = top, clockwise */
.sl-node[data-idx="0"] { --a: 0deg; }
.sl-node[data-idx="1"] { --a: 45deg; }
.sl-node[data-idx="2"] { --a: 90deg; }
.sl-node[data-idx="3"] { --a: 135deg; }
.sl-node[data-idx="4"] { --a: 180deg; }
.sl-node[data-idx="5"] { --a: 225deg; }
.sl-node[data-idx="6"] { --a: 270deg; }
.sl-node[data-idx="7"] { --a: 315deg; }

/* Label radial positioning — each label pushed outward from its node */
.sl-node[data-idx="0"] .sl-node-label { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.sl-node[data-idx="1"] .sl-node-label { bottom: calc(100% + 2px); left: calc(100% + 4px); }
.sl-node[data-idx="2"] .sl-node-label { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.sl-node[data-idx="3"] .sl-node-label { top: calc(100% + 2px); left: calc(100% + 4px); }
.sl-node[data-idx="4"] .sl-node-label { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.sl-node[data-idx="5"] .sl-node-label { top: calc(100% + 2px); right: calc(100% + 4px); }
.sl-node[data-idx="6"] .sl-node-label { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.sl-node[data-idx="7"] .sl-node-label { bottom: calc(100% + 2px); right: calc(100% + 4px); white-space: normal; text-align: right; width: max-content; max-width: 96px; line-height: 1.15; }

/* Hide labels on small orbits — keep dot only, show in detail card instead */
@media (max-width: 520px) {
  .sl-node-label { display: none; }
}

/* Detail card */
.sl-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  min-height: 170px;
  position: relative;
  opacity: 1;
  animation: slDetailIn 420ms cubic-bezier(.4,0,.2,1);
}
.sl-detail.is-swapping {
  animation: slDetailIn 420ms cubic-bezier(.4,0,.2,1);
}
@keyframes slDetailIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sl-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
}
.sl-detail-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
}
.sl-detail-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.sl-detail-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 2px;
}
.sl-detail-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 2.8vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  color: #fff;
  line-height: 1;
}
.sl-detail-num i {
  font-style: normal;
  font-size: 0.48em;
  font-weight: 500;
  color: #ff3a4e;
  margin-left: 3px;
}
.sl-detail-num-split {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1rem + 1.3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #dff140;
}
.sl-detail-num-split i {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 500;
  color: #dff140;
  opacity: 0.85;
  margin-left: 2px;
}
.sl-detail.is-warn .sl-detail-num { color: #ff4a5e; }
.sl-detail.is-warn .sl-detail-num i { color: rgba(255,255,255,0.7); }
.sl-detail-line {
  color: rgba(255,255,255,0.76);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0;
}
.sl-detail-line strong {
  color: #fff;
  font-weight: 600;
}
.sl-detail-foot {
  margin-top: auto;
  padding-top: 8px;
}
.sl-detail-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.sl-detail-link:hover {
  color: #fff;
  border-color: var(--color-accent, #ce1126);
  background: rgba(206,17,38,0.12);
}
.sl-detail-link .arrow {
  transition: transform 150ms ease;
}
.sl-detail-link:hover .arrow { transform: translateX(2px); }

/* ==========================================================
   BOOKSHELF / DIGITAL LIBRARY
   ========================================================== */
.bookshelf-section {
  position: relative;
  padding-block: var(--space-16);
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-block: 1px solid var(--color-divider);
  overflow: hidden;
}
.bookshelf-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-primary) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}
.bookshelf-section > .container-default { position: relative; z-index: 1; }

.bookshelf-section .bookshelf-head {
  margin-bottom: var(--space-10);
}
.bookshelf-section .bookshelf-head h2 {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.bookshelf-section .bookshelf-head p {
  max-width: 58ch;
}

.bookshelf-frame {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 32px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 48px -28px color-mix(in srgb, var(--color-primary) 35%, transparent),
    0 8px 20px -12px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.bookshelf-frame::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-accent, #ce1126) 55%,
    var(--color-primary) 100%);
  opacity: 0.85;
}
.bookshelf-frame bookshelf-embed {
  display: block;
  width: 100%;
  min-height: 360px;
}

@media (max-width: 800px) {
  .bookshelf-section { padding-block: var(--space-12); }
  .bookshelf-frame { border-radius: 12px; padding: 14px; }
  .bookshelf-frame bookshelf-embed { min-height: 280px; }
}
