﻿/* ecosystem-pro — Refero lock: customer.io foundation + Dock previews + Sauce Labs dark band */

:root {
  --ep-deep: #061528;
  --ep-deep-2: #132322;
  --ep-accent-glow: #3ddc91;
}

/* Primary CTA = navy (reference lock), not default teal */
.btn--primary {
  background: var(--navy);
  color: #fff;
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--deep-2);
    color: #fff;
  }

  .btn--teal:hover {
    background: var(--teal-deep);
    color: #fff;
  }

  .btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ── Eyebrow: Manrope uppercase with teal dot marker (override shared mono) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Hero ── */
.hero--pro {
  padding: 88px 0 72px;
  background: var(--canvas);
}

.hero--pro .hero__grid {
  gap: 48px;
  align-items: start;
}

.hero__visual {
  position: relative;
}

/* ── Device stage layout ── */
.device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.device-stage__desktop {
  width: 100%;
}

.device-stage__desktop .preview-frame {
  box-shadow: var(--shadow-hover);
}

.device-stage__phone {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone--hero {
  --phone-screen-w: 160px;
}

.phone--showcase {
  --phone-screen-w: min(248px, 72vw);
}

.device-stage--showcase {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--surface), #ffffff 70%);
  box-shadow:
    rgba(0, 0, 0, 0.06) 0 1px 1px,
    rgba(9, 30, 66, 0.06) 0 24px 48px -16px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .device-stage--hero {
    display: block;
    position: relative;
    padding-bottom: 40px;
  }

  .device-stage--hero .device-stage__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: auto;
  }

  .phone--hero {
    --phone-screen-w: 150px;
  }
}

.platform-link {
  color: var(--navy);
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

@media (hover: hover) {
  .platform-link:hover {
    color: var(--teal-deep);
  }
}

.platform-link:active {
  color: var(--teal);
}

.hero__visual-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-body);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  color: var(--navy);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.chip--ok .dot { background: #0e7a51; }

/* ── Trust strip ── */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.strip > div {
  padding: 24px 20px;
  background: var(--canvas);
  text-align: center;
}

.strip b {
  display: block;
  font: 800 1.35rem/1.2 var(--font-display);
  color: var(--navy);
  margin-bottom: 6px;
}

.strip span {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ── Solutions (pillars) ── */
.solution-card {
  padding: 32px 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.solution-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.solution-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

.solution-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.solution-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.solution-card li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.solution-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Dark ecosystem band (Sauce Labs borrow) ── */
.section--command {
  background: var(--ep-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 96px 0;
}

.section--command h2,
.section--command h3 {
  color: #fff;
}

.section--command .eyebrow {
  color: var(--sky);
}

.section--command .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* === Ecosystem mission-control stage === */
.eco-stage {
  position: relative;
  margin: 48px 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(25, 160, 193, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
  isolation: isolate;
  background:
    radial-gradient(80% 70% at 50% 120%, rgba(6, 21, 40, 0.9), rgba(6, 21, 40, 0) 60%),
    radial-gradient(circle at 50% 46%, #0e335c 0%, #08203c 46%, #061528 80%);
}

/* dotted technical texture, faded toward edges */
.eco-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(120, 190, 210, 0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 28%, transparent 80%);
          mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 28%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

/* vignette (sits below cards so it never dims them) */
.eco-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 120px 18px rgba(4, 14, 28, 0.7);
}

/* --- network layer (rings, links, flow, packets) --- */
.eco-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.eco-net__rings {
  stroke: rgba(25, 160, 193, 0.13);
  stroke-width: 1;
  transform-box: view-box;
  transform-origin: 800px 450px;
}

.eco-net__links {
  stroke: rgba(25, 160, 193, 0.30);
  stroke-width: 1.5;
}

.eco-net__flow {
  stroke: #46c7e6;
  stroke-width: 1.6;
  stroke-dasharray: 5 15;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(70, 199, 230, 0.65));
}

.eco-packet {
  fill: #7ce7ff;
  filter: drop-shadow(0 0 7px rgba(124, 231, 255, 0.95));
}

.eco-packet--in {
  fill: #9ff0c1;
  filter: drop-shadow(0 0 7px rgba(159, 240, 193, 0.95));
}

/* --- central hub --- */
.eco-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: max-content;
  text-align: center;
}

.eco-hub__core {
  position: relative;
  width: clamp(78px, 8vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 34%, #eef9fc, #cfe6ec 72%);
  box-shadow:
    0 0 0 6px rgba(25, 160, 193, 0.16),
    0 0 0 14px rgba(25, 160, 193, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 64px rgba(25, 160, 193, 0.45);
}

.eco-hub__core::before {
  content: "";
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 160, 193, 0.38), rgba(25, 160, 193, 0) 70%);
  z-index: -1;
}

.eco-hub__mark {
  width: 50%;
  height: 50%;
}

.eco-hub__label strong {
  display: block;
  color: #fff;
  font: 700 16px/1.1 var(--font-display);
}

.eco-hub__label span {
  display: block;
  margin-top: 4px;
  color: var(--sky);
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- role nodes --- */
.eco-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 4;
  width: var(--w, 234px);
  box-sizing: border-box;
  display: block;
  padding: 14px 16px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 35, 60, 0.92), rgba(9, 26, 46, 0.92));
  border: 1px solid rgba(25, 160, 193, 0.30);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.eco-node--resident { --x: 27%; --y: 28%; --w: 218px; }
.eco-node--dispatcher { --x: 27%; --y: 72%; --w: 234px; }
.eco-node--director { --x: 73%; --y: 28%; --w: 232px; }
.eco-node--contractor { --x: 73%; --y: 72%; --w: 244px; }

.eco-node__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.eco-node__copy {
  min-width: 0;
}

.eco-node__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(25, 160, 193, 0.12);
  border: 1px solid rgba(25, 160, 193, 0.28);
}

.eco-node__icon svg {
  width: 20px;
  height: 20px;
}

.eco-node__body {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-width: 0;
}

.eco-node__title {
  margin: 0;
  min-height: 0;
  font: 700 14.5px/1.08 var(--font-display);
  color: #fff;
}

.eco-node__role {
  margin: 3px 0 0;
  min-height: 0;
  font-size: 11.2px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.6);
}

.eco-node__chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 0;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(25, 160, 193, 0.12);
  border: 1px solid rgba(25, 160, 193, 0.28);
  font: 600 11px/1 var(--font-mono);
  color: #bfe9f3;
  white-space: nowrap;
}

.eco-node__chip--ok {
  background: rgba(61, 220, 145, 0.12);
  border-color: rgba(61, 220, 145, 0.3);
  color: #b9f0d2;
}

.eco-node__chip--live .eco-dot {
  background: #46c7e6;
  box-shadow: 0 0 6px rgba(70, 199, 230, 0.9);
}

.eco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc91;
  box-shadow: 0 0 6px rgba(61, 220, 145, 0.9);
  flex-shrink: 0;
}

/* --- micro-UI inside nodes --- */
.eco-node__bubble {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 8px 8px 8px 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
}

.eco-node__typing {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px 8px 8px 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.eco-node__typing b {
  font: 600 10.5px/1 var(--font-body);
}

.eco-node__typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5fd0e6;
  opacity: 0.58;
}

.eco-node__bubble,
.eco-node__typing,
.eco-node__rows,
.eco-node__progress,
.eco-node__bars,
.eco-node__wave,
.eco-node__metrics,
.eco-node__checks {
  flex-shrink: 0;
  margin-top: 14px;
  margin-bottom: 8px;
}

.eco-node__rows {
  display: grid;
  gap: 4px;
  height: 22px;
  align-content: center;
  width: 100%;
}

.eco-node__rows i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(25, 160, 193, 0.55), rgba(25, 160, 193, 0.1));
}

.eco-node__rows i:nth-child(1) { width: 100%; }
.eco-node__rows i:nth-child(2) { width: 76%; }
.eco-node__rows i:nth-child(3) { width: 54%; }

.eco-node__progress {
  display: block;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  padding-top: 8px;
}

.eco-node__progress i {
  display: block;
  height: 6px;
  width: 62%;
  border-radius: 4px;
  background: linear-gradient(90deg, #19a0c1, #3ddc91);
}

.eco-node__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eco-node__bars i {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #46c7e6, #19a0c1);
}

.eco-node__bars i:nth-child(1) { height: 40%; }
.eco-node__bars i:nth-child(2) { height: 62%; }
.eco-node__bars i:nth-child(3) { height: 50%; }
.eco-node__bars i:nth-child(4) { height: 82%; }
.eco-node__bars i:nth-child(5) { height: 100%; }

.eco-node__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.eco-node__metrics i {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(25, 160, 193, 0.10);
  border: 1px solid rgba(25, 160, 193, 0.22);
  color: rgba(213, 241, 248, 0.78);
  font: 600 10px/1 var(--font-mono);
  font-style: normal;
}

.eco-node__metrics i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(95, 208, 230, 0.22), transparent);
}

.eco-node__checks {
  display: grid;
  gap: 5px;
  min-height: 52px;
  width: 100%;
}

.eco-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(213, 241, 248, 0.42);
  font: 600 10.5px/1.15 var(--font-mono);
  transition: color 0.25s ease;
}

.eco-check__box {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1.5px solid rgba(95, 208, 230, 0.34);
  background: transparent;
  box-sizing: border-box;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.eco-check__mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eco-check__mark path {
  fill: none;
  stroke: #062a45;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eco-check.is-done {
  color: rgba(213, 241, 248, 0.92);
}

.eco-check.is-done .eco-check__box {
  background: #3ddc91;
  border-color: #3ddc91;
  box-shadow: 0 0 8px rgba(61, 220, 145, 0.55);
}

.eco-check.is-done .eco-check__mark {
  opacity: 1;
  transform: scale(1);
}

.eco-node__wave {
  display: grid;
  grid-template-columns: repeat(22, minmax(0, 1fr));
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  width: 100%;
  box-sizing: border-box;
}

.eco-node__wave i {
  width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #7adcf0, #19a0c1);
  transform-origin: center bottom;
  transform: scaleY(0.16);
}

.eco-node--dispatcher .eco-node__wave i {
  animation: eco-voice var(--voice-dur, 2s) linear infinite;
  animation-delay: var(--voice-phase, 0s);
}

.eco-node--dispatcher .eco-node__wave i:nth-child(1) { --peak: 0.24; --voice-dur: 1.82s; --voice-phase: -0.15s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(2) { --peak: 0.34; --voice-dur: 2.08s; --voice-phase: -0.42s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(3) { --peak: 0.5; --voice-dur: 1.94s; --voice-phase: -0.28s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(4) { --peak: 0.64; --voice-dur: 2.16s; --voice-phase: -0.51s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(5) { --peak: 0.78; --voice-dur: 1.88s; --voice-phase: -0.19s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(6) { --peak: 0.88; --voice-dur: 2.22s; --voice-phase: -0.63s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(7) { --peak: 0.94; --voice-dur: 2.02s; --voice-phase: -0.34s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(8) { --peak: 0.98; --voice-dur: 1.9s; --voice-phase: -0.47s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(9) { --peak: 1; --voice-dur: 2.12s; --voice-phase: -0.22s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(10) { --peak: 0.96; --voice-dur: 1.96s; --voice-phase: -0.58s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(11) { --peak: 0.9; --voice-dur: 2.26s; --voice-phase: -0.31s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(12) { --peak: 0.84; --voice-dur: 1.86s; --voice-phase: -0.44s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(13) { --peak: 0.76; --voice-dur: 2.04s; --voice-phase: -0.17s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(14) { --peak: 0.68; --voice-dur: 2.18s; --voice-phase: -0.55s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(15) { --peak: 0.58; --voice-dur: 1.92s; --voice-phase: -0.26s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(16) { --peak: 0.48; --voice-dur: 2.1s; --voice-phase: -0.49s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(17) { --peak: 0.4; --voice-dur: 1.84s; --voice-phase: -0.33s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(18) { --peak: 0.34; --voice-dur: 2.24s; --voice-phase: -0.61s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(19) { --peak: 0.28; --voice-dur: 2s; --voice-phase: -0.21s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(20) { --peak: 0.24; --voice-dur: 1.98s; --voice-phase: -0.39s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(21) { --peak: 0.2; --voice-dur: 2.14s; --voice-phase: -0.53s; }
.eco-node--dispatcher .eco-node__wave i:nth-child(22) { --peak: 0.18; --voice-dur: 1.88s; --voice-phase: -0.27s; }

/* --- motion --- */
@media (prefers-reduced-motion: no-preference) {
  .eco-net__flow {
    animation: eco-flow 2.4s linear infinite;
  }

  .eco-net__rings {
    transform-origin: 800px 450px;
    animation: eco-breathe 7s ease-in-out infinite;
  }

  .eco-hub__core::before {
    animation: eco-aura 5s ease-in-out infinite;
  }

  .eco-node__typing i {
    animation: eco-typing 1.05s ease-in-out infinite;
  }

  .eco-node__typing i:nth-child(3) { animation-delay: 0.14s; }
  .eco-node__typing i:nth-child(4) { animation-delay: 0.28s; }

  .eco-node__metrics i {
    animation: eco-kpi-pulse 3.2s ease-in-out infinite;
  }

  .eco-node__metrics i::after {
    animation: eco-kpi-scan 3.2s ease-in-out infinite;
  }

  .eco-node__metrics i:nth-child(2),
  .eco-node__metrics i:nth-child(2)::after {
    animation-delay: 0.55s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-net__packets { display: none; }
}

@keyframes eco-flow {
  to { stroke-dashoffset: -40; }
}

@keyframes eco-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.015); }
}

@keyframes eco-aura {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes eco-voice {
  0%, 100% { transform: scaleY(calc(var(--peak, 0.8) * 0.56)); }
  8% { transform: scaleY(calc(var(--peak, 0.8) * 0.72)); }
  16% { transform: scaleY(calc(var(--peak, 0.8) * 0.86)); }
  25% { transform: scaleY(var(--peak, 0.8)); }
  33% { transform: scaleY(calc(var(--peak, 0.8) * 0.84)); }
  41% { transform: scaleY(calc(var(--peak, 0.8) * 0.68)); }
  50% { transform: scaleY(calc(var(--peak, 0.8) * 0.54)); }
  58% { transform: scaleY(calc(var(--peak, 0.8) * 0.66)); }
  66% { transform: scaleY(calc(var(--peak, 0.8) * 0.82)); }
  75% { transform: scaleY(calc(var(--peak, 0.8) * 0.96)); }
  83% { transform: scaleY(calc(var(--peak, 0.8) * 0.78)); }
  91% { transform: scaleY(calc(var(--peak, 0.8) * 0.62)); }
}

@keyframes eco-typing {
  0%, 100% { opacity: 0.42; transform: translateY(0) scale(0.9); }
  40% { opacity: 1; transform: translateY(-3px) scale(1); }
}

@keyframes eco-kpi-pulse {
  0%, 100% { border-color: rgba(25, 160, 193, 0.22); background: rgba(25, 160, 193, 0.10); }
  42% { border-color: rgba(95, 208, 230, 0.45); background: rgba(25, 160, 193, 0.18); }
}

@keyframes eco-kpi-scan {
  0%, 32% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}

.ecosystem-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.eco-step {
  padding: 4px 0 4px 16px;
  border-left: 2px solid rgba(25, 160, 193, 0.45);
  background: none;
  border-radius: 0;
}

.eco-step__num {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--sky);
  margin-bottom: 8px;
}

.eco-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.eco-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Product showcase (Dock borrow) ── */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.showcase-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.showcase-block--reverse .showcase-block__visual {
  order: -1;
}

.showcase-block__text .eyebrow { margin-bottom: 12px; }
.showcase-block__text h2 { margin-bottom: 14px; }
.showcase-block__text .lead { margin-bottom: 20px; }

.showcase-block__visual {
  position: relative;
}

.preview-frame {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow:
    rgba(0, 0, 0, 0.07) 0 1px 1px,
    rgba(0, 0, 0, 0.04) 0 20px 20px -8px;
  overflow: hidden;
}

.preview-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-soft);
}

.preview-frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.preview-frame__bar i:nth-child(1) { background: #ff5f57; }
.preview-frame__bar i:nth-child(2) { background: #febc2e; }
.preview-frame__bar i:nth-child(3) { background: #28c840; }

.preview-frame__body {
  position: relative;
  background: var(--surface);
  min-height: 280px;
}

.preview-frame__body--desktop {
  container-type: inline-size;
  aspect-ratio: 1180 / 760;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  background: #eceff3;
}

.preview-frame__body--desktop iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1180px;
  height: 760px;
  max-width: none;
  border: 0;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1180));
  pointer-events: none;
}

.preview-frame__body iframe:not(.phone__frame) {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  pointer-events: none;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.stat-row--outcomes {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  gap: 32px 48px;
}

.stat-row--outcomes .stat {
  flex: 1 1 240px;
  max-width: 36ch;
}

.stat-row--outcomes .stat b {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.stat-row--outcomes .stat span {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.stat {
  min-width: 120px;
}

.stat b {
  display: block;
  font: 800 1.5rem/1 var(--font-display);
  color: var(--teal-deep);
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── Social proof ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.testimonial cite {
  font: 600 14px/1.4 var(--font-display);
  color: var(--navy);
  font-style: normal;
  display: block;
}

.testimonial cite span {
  display: block;
  font: 400 13px/1.4 var(--font-body);
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ── Why us comparison ── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-col {
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.compare-col--bad {
  background: #fafbfc;
}

.compare-col--good {
  background: linear-gradient(180deg, #f4fafb 0%, #fff 100%);
  border-color: var(--teal);
  box-shadow: var(--shadow-card);
}

.compare-col h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.compare-col li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  align-items: flex-start;
}

.compare-col--bad li::before {
  content: "×";
  color: #c2410c;
  font-weight: 700;
  flex-shrink: 0;
}

.compare-col--good li::before {
  content: "✓";
  color: var(--teal-deep);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Final CTA ── */
.cta-final {
  text-align: center;
}

.cta-final .btn--primary {
  min-width: 200px;
}

.cta-final .btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cta-final .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--navy);
}

.cta-band .btn--primary:hover {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-hover);
}

.footer p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

/* ── Download / store cards ── */
.store-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.store-cards--noscript {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.store-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.store-card:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .store-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--mist);
  }
}

.store-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 260px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.store-card__badge-glyph {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.store-card__badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: 1;
  min-width: 0;
}

.store-card__badge-text small {
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.store-card__badge-text strong {
  font: 700 17px/1.2 var(--font-display);
  color: #fff;
}

.store-card__external {
  flex-shrink: 0;
  opacity: 0.72;
}

.store-card__qr {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 0;
}

.store-card__qr img {
  display: block;
  width: 152px;
  height: 152px;
}

.store-card__hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.store-card__hint--tap {
  display: none;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 640px) {
  .store-card__qr {
    display: none;
  }

  .store-card__hint--scan {
    display: none;
  }

  .store-card__hint--tap {
    display: block;
  }
}

@media (max-width: 1024px) {
  .strip,
  .solutions-grid,
  .ecosystem-steps,
  .testimonials,
  .compare,
  .store-cards {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-block--reverse .showcase-block__visual {
    order: 0;
  }
}

/* Ecosystem stage — compact orbital map on small screens */
@media (max-width: 860px) {
  .eco-stage {
    aspect-ratio: 4 / 5;
    min-height: 460px;
    margin-top: 32px;
  }

  .eco-hub {
    gap: 8px;
  }

  .eco-hub__core {
    width: 56px;
  }

  .eco-hub__label strong {
    font-size: 13px;
  }

  .eco-hub__label span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .eco-node {
    width: var(--w, 158px);
    padding: 10px 11px 9px;
    border-radius: 12px;
  }

  .eco-node--resident { --x: 24%; --y: 21%; --w: 148px; }
  .eco-node--dispatcher { --x: 24%; --y: 79%; --w: 158px; }
  .eco-node--director { --x: 76%; --y: 21%; --w: 152px; }
  .eco-node--contractor { --x: 76%; --y: 79%; --w: 162px; }

  .eco-node__head {
    gap: 8px;
  }

  .eco-node__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .eco-node__icon svg {
    width: 16px;
    height: 16px;
  }

  .eco-node__title {
    font-size: 12.5px;
  }

  .eco-node__role {
    font-size: 10px;
    margin-top: 2px;
  }

  .eco-node__bubble,
  .eco-node__typing,
  .eco-node__rows,
  .eco-node__progress,
  .eco-node__bars,
  .eco-node__wave,
  .eco-node__metrics,
  .eco-node__checks {
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .eco-node__chip {
    font-size: 10px;
    padding: 2px 7px 2px 6px;
  }

  .eco-node__typing {
    padding: 4px 6px;
    gap: 4px;
  }

  .eco-node__typing b {
    font-size: 9.5px;
  }

  .eco-node__wave {
    height: 16px;
    gap: 1px;
  }

  .eco-node__checks {
    min-height: 44px;
    gap: 3px;
  }

  .eco-check {
    gap: 5px;
    font-size: 9.5px;
  }

  .eco-check__box {
    width: 9px;
    height: 9px;
  }

  .eco-node__metrics i {
    padding: 4px 5px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .eco-stage {
    aspect-ratio: 4 / 5.2;
    min-height: 420px;
  }

  .eco-node--resident { --x: 23%; --y: 20%; --w: 136px; }
  .eco-node--dispatcher { --x: 23%; --y: 80%; --w: 146px; }
  .eco-node--director { --x: 77%; --y: 20%; --w: 140px; }
  .eco-node--contractor { --x: 77%; --y: 80%; --w: 150px; }

  .eco-hub__core {
    width: 50px;
  }

  .eco-hub__label strong {
    font-size: 12px;
  }

  .eco-node {
    padding: 9px 10px 8px;
  }

  .eco-node__title {
    font-size: 11.5px;
  }

  .eco-node__role {
    font-size: 9.5px;
  }
}

@media (max-width: 640px) {
  .strip,
  .solutions-grid,
  .ecosystem-steps,
  .testimonials,
  .compare,
  .store-cards {
    grid-template-columns: 1fr;
  }

  .hero--pro {
    padding-top: 64px;
  }
}

