/* file: site/assets/landing-visuals.css */

.svx-hero-rail{
  display:grid;
  gap:12px;
  margin-top:12px;
}

/* Hero sticky slider (two-page rail) */
.svx-side-slider{ position:relative; margin-top:12px; padding:0 26px; }
.svx-side-viewport{ overflow:hidden; border-radius:16px; height:auto; transition:height 333ms ease; }
.svx-side-track{
  display:flex;
  width:200%;
  align-items:flex-start;
  transform:translateX(0%);
  transition:transform 420ms cubic-bezier(.22,.61,.36,1);
}
.svx-side-page{ width:50%; flex:0 0 50%; align-self:flex-start; padding:0; }

.svx-side-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  padding:6px 8px;
  border:none;
  background:transparent;
  color:rgb(var(--c-white) / 0.72);
  font:900 28px/1 Consolas, monospace;
  cursor:pointer;
  z-index:3;
}
.svx-side-arrow:hover{ color:rgb(var(--c-white) / 0.92); }
.svx-side-arrow--left{ left:0; }
.svx-side-arrow--right{ right:0; }

.svx-preview-card,
.svx-cost-card,
.svx-activity-card,
.svx-integration-card,
.svx-status-card{
  border:1px solid rgb(var(--c-white) / 0.10);
  background:rgb(var(--c-white) / 0.04);
  border-radius:18px;
  padding:14px;
  box-shadow:0 14px 46px rgb(var(--c-black) / 0.28);
}

/* Flat variant (no liquid-glass look) */
.svx-cost-card--flat{
  background: rgb(var(--c-black) / 0.35);
  border: 1px solid rgb(var(--c-white) / 0.10);
  box-shadow: none;
  backdrop-filter: none;
}

.svx-preview-head,
.svx-cost-meta,
.svx-uptime-meta,
.svx-online-wrap,
.svx-live-pill,
.svx-activity-axis{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.svx-preview-head h3,
.svx-cost-card h3,
.svx-activity-card h4,
.svx-status-card h4{
  margin:0;
  font-size:13px;
  font-weight:900;
}

.svx-preview-head p,
.svx-cost-card p,
.svx-status-sub,
.svx-activity-note{
  margin:4px 0 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.svx-live-pill{
  font:900 10px/1 Consolas, monospace;
  color:var(--svx-blueText);
}

.svx-live-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgb(var(--c-blue) / 0.92);
  box-shadow:0 0 0 6px rgb(var(--c-blue) / 0.16);
  animation:svxPulse 1.8s ease-in-out infinite;
}

.svx-preview-wave{
  height:48px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  margin:12px 0 14px;
}

.svx-wave-bars{
  width:100%;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:2px;
}

.svx-wave-bar{
  width:4px;
  min-height:8px;
  border-radius:999px;
  background:rgb(var(--c-blue) / 0.46);
  transition:height 140ms linear;
}

.svx-preview-chat{
  display:grid;
  gap:10px;
}

.svx-chat-row{
  display:flex;
  gap:10px;
  opacity:0;
  transform:translateY(8px);
  transition:opacity 240ms ease, transform 240ms ease;
}

.svx-chat-row.is-visible{
  opacity:1;
  transform:none;
}

.svx-chat-row--user{
  justify-content:flex-end;
}

.svx-chat-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgb(var(--c-blue) / 0.18);
  border:1px solid rgb(var(--c-blue) / 0.32);
  position:relative;
  flex:0 0 auto;
}

.svx-chat-avatar::after{
  content:"";
  position:absolute;
  inset:9px;
  border-radius:999px;
  background:rgb(var(--c-blue) / 0.92);
}

.svx-chat-bubble{
  max-width:78%;
  border-radius:14px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.55;
  border:1px solid rgb(var(--c-white) / 0.08);
  background:rgb(var(--c-white) / 0.05);
}

.svx-chat-row--user .svx-chat-bubble{
  background:rgb(var(--c-purple) / 0.14);
  border-color:rgb(var(--c-purple) / 0.22);
}

.svx-cost-card .svx-cost-row{
  display:grid;
  grid-template-columns: 260px 1fr;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.svx-cost-track{
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgb(var(--c-white) / 0.08);
}

.svx-cost-fill{
  width:0;
  height:100%;
  border-radius:999px;
  transition:none;
}

.svx-cost-fill--staff{ background:rgb(56 189 127 / 0.55); }
.svx-cost-fill--vendor{ background:rgb(var(--c-white) / 0.24); }
.svx-cost-fill--brand{ background:rgb(var(--c-purple) / 0.90); }

.svx-cost-card--wide{
  width:100%;
  max-width:none;
}

.is-brand{ color:var(--svx-blueText); }

.svx-activity-total{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin:0 0 10px 0 !important;
  font:900 20px/1 Consolas, monospace;
}

.svx-activity-total span:last-child{
  font:400 10px/1.2 Aptos, sans-serif;
  color:var(--muted);
}

.svx-activity-bars{
  height:64px;
  display:flex;
  align-items:flex-end;
  gap:4px;
}

.svx-activity-bar{
  flex:1 1 0;
  height:0;
  border-radius:8px 8px 0 0;
  background:rgb(var(--c-blue) / 0.38);
  box-shadow: 0 10px 26px rgb(var(--c-blue) / 0.16);
  transition:height 650ms cubic-bezier(.22,.61,.36,1), background 333ms ease, box-shadow 333ms ease;
}

.svx-activity-bar:hover{
  background:rgb(var(--c-purple) / 0.72);
  box-shadow: 0 12px 34px rgb(var(--c-purple) / 0.24);
}

.svx-activity-axis{
  margin-top:6px;
  font-size:10px;
  color:var(--muted2);
}

.svx-integration-card{
  display:grid;
  gap:14px;
}

.svx-constellation{
  position:relative;
  height:220px;
}

.svx-constellation-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.svx-constellation-lines line{
  stroke:rgb(var(--c-purple) / 0.45);
  stroke-width:0.5;
  stroke-dasharray:1 1;
}

.svx-node{
  position:absolute;
  transform:translate(-50%, -50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:var(--muted);
}

.svx-node-dot{
  position: relative;
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgb(var(--c-blue) / 0.92);
  box-shadow:
    0 0 0 6px rgb(var(--c-blue) / 0.20),
    0 0 18px rgb(var(--c-blue) / 0.78),
    0 0 44px rgb(var(--c-blue) / 0.40);
  animation: dotPulse 2.2s ease-in-out infinite;
  transform-origin: center;
}

.svx-node-dot::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:5px;
  height:5px;
  transform: translate(-50%,-50%);
  border-radius:999px;
  background: rgb(var(--c-white) / 0.92);
  filter: blur(0.6px);
  opacity: 0.85;
  animation: dotInnerPulse 2.2s ease-in-out infinite;
  pointer-events:none;
}

.svx-node--core span{
  color:var(--svx-blueText);
  font-weight:800;
}

/* Core node: intentionally styled differently (bring back the larger purple core) */
.svx-node--core .svx-node-dot{
  width:40px;
  height:40px;
  background:rgb(var(--c-purple) / 0.85);
  border:1px solid rgb(var(--c-purple) / 0.95);
  box-shadow:
    0 0 0 8px rgb(var(--c-purple) / 0.14),
    0 0 26px rgb(var(--c-purple) / 0.55),
    0 0 58px rgb(var(--c-purple) / 0.32);
  animation: svxCorePulse 2.2s ease-in-out infinite;
}

.svx-node--core .svx-node-dot::after{
  width:10px;
  height:10px;
  background: rgb(var(--c-white) / 0.94);
  animation: dotInnerPulse 2.2s ease-in-out infinite;
}

@keyframes svxCorePulse{
  0%, 100%{
    transform: scale(1);
    box-shadow:
      0 0 0 8px rgb(var(--c-purple) / 0.14),
      0 0 26px rgb(var(--c-purple) / 0.55),
      0 0 58px rgb(var(--c-purple) / 0.32);
  }
  50%{
    transform: scale(1.06);
    box-shadow:
      0 0 0 12px rgb(var(--c-purple) / 0.08),
      0 0 38px rgb(var(--c-purple) / 0.72),
      0 0 78px rgb(var(--c-purple) / 0.42);
  }
}

/* Keep the dot centered while pulsing (dotPulse uses transform, which would override translate). */
@keyframes svxCenteredDotPulse{
  0%, 100%{
    transform: translate(-50%,-50%) scale(1);
    box-shadow:
      0 0 0 6px rgb(var(--c-blue) / 0.20),
      0 0 18px rgb(var(--c-blue) / 0.78),
      0 0 44px rgb(var(--c-blue) / 0.40);
    filter: blur(0.8px);
  }
  50%{
    transform: translate(-50%,-50%) scale(1.10);
    box-shadow:
      0 0 0 9px rgb(var(--c-blue) / 0.09),
      0 0 28px rgb(var(--c-blue) / 0.95),
      0 0 62px rgb(var(--c-blue) / 0.48);
    filter: blur(1.2px);
  }
}

.svx-control-list{
  display:grid;
  gap:8px;
}

.svx-control-list b{
  display:block;
  font-size:12px;
}

.svx-control-list span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.reliability-grid{
  grid-template-columns:repeat(4,1fr);
}

.svx-uptime-strip{
  display:flex;
  gap:3px;
  margin:10px 0 8px;
}

.svx-uptime-bar{
  flex:1 1 0;
  position:relative;
  height:24px;
  border-radius:3px;
  transform-origin:50% 100%;
  transform:scaleY(0);
  background:rgb(var(--c-blue) / 0.42);
  box-shadow: 0 10px 28px rgb(var(--c-blue) / 0.14);
  transition:transform 380ms ease, background 333ms ease, box-shadow 333ms ease;
}

.svx-uptime-bar.is-incident::after{
  content:"13min downtime";
  position:absolute;
  left:50%;
  bottom:100%;
  transform:translate(-50%,-8px);
  padding:4px 7px;
  border-radius:8px;
  border:1px solid rgb(var(--c-white) / 0.12);
  background:rgb(var(--c-black) / 0.70);
  color:rgb(var(--c-white) / 0.92);
  font-size:10px;
  font-weight:800;
  letter-spacing:0.02em;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity 333ms ease;
}

.svx-uptime-bar.is-incident:hover::after{
  opacity:1;
}

.svx-uptime-bar:hover{
  background:rgb(var(--c-purple) / 0.68);
  box-shadow: 0 12px 36px rgb(var(--c-purple) / 0.22);
}

.svx-uptime-bar.is-incident{
  background:rgb(214 80 80 / 0.42);
}

.svx-online-wrap{
  margin-top:12px;
  justify-content:flex-start;
}

.svx-online-ping{
  position:relative;
  width:48px;
  height:48px;
  flex:0 0 48px;
}

.svx-online-ring{
  position:absolute;
  inset:0;
  border-radius:999px;
}

.svx-online-ring{
  border:1px solid rgb(var(--c-blue) / 0.20);
  animation:svxRing 2.4s ease-out infinite;
}

.svx-online-ring:nth-child(2){ animation-delay:.6s; }
.svx-online-ring:nth-child(3){ animation-delay:1.2s; }

.svx-online-core{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgb(var(--c-blue) / 0.92);
  box-shadow:
    0 0 0 6px rgb(var(--c-blue) / 0.20),
    0 0 18px rgb(var(--c-blue) / 0.78),
    0 0 44px rgb(var(--c-blue) / 0.40);
  animation: svxCenteredDotPulse 2.2s ease-in-out infinite;
  transform-origin:center;
}

.svx-online-core::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:5px;
  height:5px;
  transform: translate(-50%,-50%);
  border-radius:999px;
  background: rgb(var(--c-white) / 0.92);
  filter: blur(0.6px);
  opacity: 0.85;
  animation: dotInnerPulse 2.2s ease-in-out infinite;
  pointer-events:none;
}

.svx-online-title{
  margin:0;
  font-size:12px;
  font-weight:800;
}

.svx-online-sub{
  margin:3px 0 0 0;
  color:var(--muted);
  font-size:11px;
}

@keyframes svxPulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.08); opacity:.82; }
}

@keyframes svxRing{
  0%{ transform:scale(.9); opacity:.9; }
  100%{ transform:scale(1.9); opacity:0; }
}

@media (max-width: 980px){
  .reliability-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  /* Make kicker span most of the screen on mobile */
  .kicker{ --kicker-w: 92vw; }
  .svx-cost-card .svx-cost-row{ grid-template-columns: 1fr; }
  .reliability-grid{
    grid-template-columns:1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .svx-live-dot,
  .svx-node-dot,
  .svx-online-core,
  .svx-online-ring,
  .svx-online-core::after{
    animation:none !important;
  }
  .svx-node-dot::after,
  .svx-online-core::after{
    animation:none !important;
  }
  .svx-wave-bar,
  .svx-chat-row,
  .svx-cost-fill,
  .svx-activity-bar,
  .svx-uptime-bar{
    transition:none !important;
  }
}
