/* StructPulse showcase: the monitoring system's dark look (24 Oct 2026). */
.sp-section, .sp-page { --sp-bg: #07141a; --sp-panel: #0c1e25; --sp-panel-2: #10262f; --sp-line: #1c3a45; --sp-text: #e6f1f3;
  --sp-muted: #8fa9b1; --sp-cyan: #39d3df; --sp-lime: #c6ea74; --sp-amber: #edbb63; --sp-red: #ff6b6b; color: var(--sp-text); }
.sp-section { background: radial-gradient(1200px 600px at 75% 30%, rgba(57,211,223,.10), transparent 60%), var(--sp-bg);
  min-height: 100vh; display: flex; align-items: center; padding: 72px 0; overflow: hidden; }
.sp-section > .wrap, .sp-hero > .wrap { width: 100%; }
.sp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.sp-eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-lime); font-weight: 700; margin: 0 0 18px; }
.sp-copy h2, .sp-hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.sp-lede { color: var(--sp-muted); font-size: 1.1rem; line-height: 1.6; margin: 20px 0 0; max-width: 520px; }
.sp-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-points li { border: 1px solid var(--sp-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--sp-text); background: rgba(16,38,47,.6); }
.sp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-ghost { border: 1px solid var(--sp-line); color: #fff; background: transparent; }
.sp-ghost:hover { border-color: var(--sp-cyan); color: #fff; }

/* App window */
.sp-app { container-type: inline-size; background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(57,211,223,.05) inset; min-width: 0; }
.sp-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sp-line); background: #0a1a20; font-size: 13px; white-space: nowrap; }
.sp-dots { display: inline-flex; gap: 6px; } .sp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #23434e; }
.sp-brand { color: #fff; letter-spacing: .02em; }
.sp-crumb { color: var(--sp-muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.sp-sim { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-amber); border: 1px solid rgba(237,187,99,.4); border-radius: 6px; padding: 2px 8px; }
.sp-clock { color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.sp-tabs { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--sp-line); overflow-x: auto; scrollbar-width: none; }
.sp-tabs button { flex: none; background: transparent; color: var(--sp-muted); border: 1px solid var(--sp-line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.sp-tabs button[aria-pressed="true"] { background: var(--sp-lime); color: #0b1a1f; border-color: var(--sp-lime); font-weight: 700; }
.sp-body { padding: 16px; display: grid; gap: 14px; }
.sp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sp-muted); }
.sp-status { border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12px; background: rgba(57,211,223,.12); color: var(--sp-cyan); }
.sp-status[data-state="watch"] { background: rgba(237,187,99,.14); color: var(--sp-amber); }
.sp-status[data-state="alert"] { background: rgba(255,107,107,.16); color: var(--sp-red); }
.sp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-kpi { text-align: left; background: var(--sp-panel-2); border: 1px solid var(--sp-line); border-left: 3px solid var(--sp-lime); border-radius: 10px;
  padding: 12px; color: var(--sp-text); font: inherit; cursor: pointer; min-width: 0; transition: border-color .3s, background .3s; }
.sp-kpi > span:first-child { font-size: 12px; color: var(--sp-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-kpi strong { display: block; margin: 6px 0 4px; color: var(--sp-lime); font-size: clamp(1.2rem, 2.6cqi, 1.7rem); font-variant-numeric: tabular-nums; }
.sp-kpi strong small { font-size: 12px; color: var(--sp-muted); font-weight: 500; }
.sp-kpi-id { font-size: 11px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sp-kpi.is-focus { background: #133039; border-color: var(--sp-cyan); }
.sp-kpi[data-state="watch"] { border-left-color: var(--sp-amber); } .sp-kpi[data-state="watch"] strong { color: var(--sp-amber); }
.sp-kpi[data-state="alert"] { border-left-color: var(--sp-red); background: rgba(255,107,107,.08); } .sp-kpi[data-state="alert"] strong { color: var(--sp-red); }
.sp-main { display: grid; gap: 14px; }
@container (min-width: 820px) { .sp-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }

/* Diagram and pins */
.sp-stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--sp-line); background: #061217; aspect-ratio: 16 / 9; }
.sp-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-pins { position: absolute; inset: 0; }
.sp-pin { position: absolute; transform: translate(-50%, -7px); background: none; border: 0; padding: 0; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-pin.sp-up { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 7px)); }
.sp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sp-lime); box-shadow: 0 0 0 3px rgba(11,26,31,.9), 0 0 0 5px rgba(198,234,116,.5); position: relative; }
.sp-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; color: var(--sp-lime); opacity: 0; animation: sp-ping 2.4s ease-out infinite; }
.sp-pin[data-state="watch"] .sp-dot { background: var(--sp-amber); box-shadow: 0 0 0 3px rgba(11,26,31,.9), 0 0 0 5px rgba(237,187,99,.55); }
.sp-pin[data-state="alert"] .sp-dot { background: var(--sp-red); box-shadow: 0 0 0 3px rgba(11,26,31,.9), 0 0 0 6px rgba(255,107,107,.6); }
.sp-pin[data-state="watch"] .sp-dot::after { color: var(--sp-amber); } .sp-pin[data-state="alert"] .sp-dot::after { color: var(--sp-red); animation-duration: 1s; }
.sp-tag { background: rgba(7,20,26,.88); border: 1px solid rgba(198,234,116,.55); border-radius: 6px; padding: 2px 7px; font-size: 11px; line-height: 1.35; text-align: center; white-space: nowrap; }
.sp-tag b { display: block; font-size: 10.5px; letter-spacing: .02em; } .sp-tag i { font-style: normal; color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.sp-pin[data-state="watch"] .sp-tag { border-color: var(--sp-amber); } .sp-pin[data-state="alert"] .sp-tag { border-color: var(--sp-red); }
.sp-pin.is-focus .sp-tag { border-color: var(--sp-cyan); box-shadow: 0 0 0 2px rgba(57,211,223,.25); }
@container (max-width: 620px) { .sp-tag { display: none; } .sp-pin.is-focus .sp-tag, .sp-pin[data-state="alert"] .sp-tag { display: block; } }
@keyframes sp-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* Trend and events */
.sp-side { background: var(--sp-panel-2); border: 1px solid var(--sp-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--sp-muted); }
.sp-chart-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-chart-head strong { color: var(--sp-cyan); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-chart-head strong[data-state="watch"] { color: var(--sp-amber); } .sp-chart-head strong[data-state="alert"] { color: var(--sp-red); }
.sp-chart { width: 100%; height: 150px; display: block; }
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 11px; color: var(--sp-muted); margin: 0; }
.sp-legend span { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--sp-cyan); margin-right: -6px; }
.sp-legend .l-band { height: 8px; border: 0; background: rgba(57,211,223,.2); } .sp-legend .l-alert { border-top: 2px dashed var(--sp-red); }
.sp-events { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--sp-line); display: grid; gap: 6px; font-size: 12px; min-height: 88px; }
.sp-events li { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.sp-events li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-cyan); flex: none; align-self: center; }
.sp-events li[data-state="watch"]::before { background: var(--sp-amber); } .sp-events li[data-state="alert"]::before { background: var(--sp-red); }
.sp-events time { color: var(--sp-muted); font-variant-numeric: tabular-nums; } .sp-events span { color: var(--sp-muted); margin-left: auto; }
.sp-events b { color: #fff; font-weight: 600; } .sp-events .sp-quiet { color: var(--sp-muted); } .sp-events .sp-quiet::before { display: none; }

/* Landing page */
.sp-page { background: var(--sp-bg); }
.sp-hero { min-height: 100vh; padding: 64px 0 72px; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  background: radial-gradient(1000px 520px at 50% 0%, rgba(57,211,223,.14), transparent 65%); }
.sp-hero-copy { text-align: center; max-width: 820px; margin: 0 auto; } .sp-hero-copy .sp-lede { margin: 20px auto 0; max-width: 640px; }
.sp-hero-copy .sp-cta { justify-content: center; }
.sp-band { padding: 96px 0; border-top: 1px solid var(--sp-line); }
.sp-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 14px; }
.sp-band .sp-lede { margin-top: 0; }
.sp-flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.sp-flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--sp-line), var(--sp-cyan), var(--sp-line)); }
.sp-flow::after { content: ""; position: absolute; top: 22px; left: 6%; width: 12px; height: 12px; border-radius: 50%; background: var(--sp-lime); box-shadow: 0 0 16px var(--sp-lime); animation: sp-travel 5s linear infinite; }
@keyframes sp-travel { from { left: 6%; } to { left: 94%; } }
.sp-flow li { position: relative; text-align: center; }
.sp-flow .n { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--sp-panel-2); border: 1px solid var(--sp-line); color: var(--sp-lime); font-weight: 800; position: relative; z-index: 1; }
.sp-flow h3 { color: #fff; margin: 0 0 6px; font-size: 1.05rem; } .sp-flow p { color: var(--sp-muted); margin: 0; font-size: 14px; }
.sp-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.sp-asset { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--sp-line); aspect-ratio: 16 / 9; display: block; color: #fff; text-decoration: none; background: #061217; }
.sp-asset img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; opacity: .85; }
.sp-asset:hover img { transform: scale(1.05); opacity: 1; }
.sp-asset span { position: absolute; left: 12px; bottom: 12px; background: rgba(7,20,26,.85); border: 1px solid var(--sp-line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 14px; }
.sp-asset small { position: absolute; right: 12px; bottom: 14px; color: var(--sp-lime); font-size: 12px; }
.sp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.sp-feature { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: 14px; padding: 22px; }
.sp-feature svg { width: 28px; height: 28px; color: var(--sp-lime); } .sp-feature h3 { color: #fff; margin: 14px 0 6px; font-size: 1.05rem; }
.sp-feature p { color: var(--sp-muted); margin: 0; font-size: 14px; line-height: 1.55; }
.sp-states { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sp-states span { border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; border: 1px solid var(--sp-line); }
.sp-final { text-align: center; padding: 110px 0; border-top: 1px solid var(--sp-line); background: radial-gradient(800px 400px at 50% 100%, rgba(198,234,116,.10), transparent 70%); }
.sp-final .sp-cta { justify-content: center; } .sp-final .sp-lede { margin: 14px auto 0; }
.sp-note { color: var(--sp-muted); font-size: 12px; margin-top: 14px; }

@media (max-width: 1000px) {
  .sp-split { grid-template-columns: 1fr; gap: 32px; } .sp-section { min-height: 0; padding: 64px 0; }
  .sp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-bar .sp-clock { display: none; }
  .sp-flow { grid-template-columns: 1fr 1fr; row-gap: 28px; } .sp-flow::before, .sp-flow::after { display: none; }
  .sp-features, .sp-assets { grid-template-columns: 1fr; } .sp-hero { min-height: 0; padding-top: 48px; } .sp-band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .sp-dot::after, .sp-flow::after { animation: none; } .sp-asset img { transition: none; } }
