/* Public homepage footer: "network command layer". CSS + SVG-free pseudo-elements, no libraries.
   Palette follows the site grid (cyan 0,242,254 / violet 139,92,246 / teal). Only transform + opacity animate. */
.sh-footer-bridge,
.sh-footer {
  --sh-cyan: 0, 242, 254;
  --sh-violet: 139, 92, 246;
  --sh-ink: #e9edf7;
  --sh-mute: #8a93a8;
  --sh-line: rgba(255, 255, 255, 0.07);
}

/* ---- FAQ -> footer transition ------------------------------------------------ */
.sh-footer-bridge {
  position: relative;
  height: 72px;
  margin-top: -12px;
  overflow: hidden;
  pointer-events: none;
}

.sh-bridge-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(var(--sh-cyan), 0.09), rgba(var(--sh-cyan), 0) 70%),
    linear-gradient(180deg, rgba(5, 8, 16, 0), rgba(5, 8, 16, 0.32));
}

.sh-streak {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: 1px;
  height: var(--h);
  background: linear-gradient(180deg, rgba(var(--sh-cyan), 0), rgba(var(--sh-cyan), 0.5), rgba(var(--sh-cyan), 0));
  opacity: 0;
  animation: sh-streak var(--d) ease-in-out var(--o) infinite;
}

.sh-streak.is-v {
  background: linear-gradient(180deg, rgba(var(--sh-violet), 0), rgba(var(--sh-violet), 0.55), rgba(var(--sh-violet), 0));
}

.sh-bin {
  position: absolute;
  left: var(--x);
  bottom: 10px;
  color: rgba(var(--sh-cyan), 0.5);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: sh-bin var(--d) ease-in-out var(--o) infinite;
}

@keyframes sh-streak {
  0%, 100% { opacity: 0; transform: translateY(18px); }
  45%, 60% { opacity: 0.55; transform: translateY(-10px); }
}

@keyframes sh-bin {
  0%, 100% { opacity: 0; transform: translateY(14px); }
  50% { opacity: 0.32; transform: translateY(-14px); }
}

/* ---- footer shell -------------------------------------------------------------- */
body.sh-home footer.sh-footer {
  content-visibility: visible;
}

.sh-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 88px; /* keeps the utility bar clear of the fixed WhatsApp / live-support button */
  color: var(--sh-ink);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(var(--sh-cyan), 0.07), rgba(var(--sh-cyan), 0) 70%),
    linear-gradient(180deg, rgba(6, 9, 18, 0.25), rgba(5, 7, 14, 0.82) 38%, rgba(4, 6, 12, 0.94));
}

.sh-footer-corner {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -140px;
  width: 520px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(var(--sh-violet), 0.16), rgba(var(--sh-violet), 0));
  pointer-events: none;
}

/* ---- network horizon ------------------------------------------------------------ */
.sh-fh {
  position: relative;
  height: 28px;
  pointer-events: none;
}

.sh-fh-line,
.sh-fh-glow {
  position: absolute;
  left: 0;
  width: 100%;
  transform-origin: 0 50%;
}

.sh-fh-line {
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--sh-cyan), 0.15), rgba(var(--sh-cyan), 0.75) 30%, rgba(var(--sh-violet), 0.75) 70%, rgba(var(--sh-violet), 0.15));
  transform: scaleX(1);
}

.sh-fh-glow {
  top: 2px;
  height: 26px;
  background: radial-gradient(60% 100% at 50% 50%, rgba(var(--sh-cyan), 0.14), rgba(var(--sh-violet), 0.06) 55%, rgba(var(--sh-violet), 0) 80%);
  translate: calc(var(--mx, 0) * 8px) 0;
  transition: translate 0.4s ease-out;
}

.sh-fh-track {
  position: absolute;
  inset: 13px 0 auto 0;
  height: 3px;
  overflow: hidden;
}

.sh-fh-pulse {
  position: absolute;
  left: 0;
  top: 1px;
  width: 16%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--sh-cyan), 0), rgba(var(--sh-cyan), 0.95), rgba(var(--sh-cyan), 0));
  opacity: 0;
}

.sh-fh-node {
  position: absolute;
  top: 14px;
  left: var(--x);
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  translate: calc(var(--mx, 0) * 2px) calc(var(--my, 0) * 1.5px);
}

.sh-fh-node.is-c {
  background: rgb(var(--sh-cyan));
  box-shadow: 0 0 6px rgba(var(--sh-cyan), 0.7), 0 0 0 3px rgba(var(--sh-cyan), 0.1);
}

.sh-fh-node.is-v {
  background: rgb(var(--sh-violet));
  box-shadow: 0 0 6px rgba(var(--sh-violet), 0.7), 0 0 0 3px rgba(var(--sh-violet), 0.12);
}

/* motion is armed by JS (.is-armed) so the page stays complete without it; .is-live starts the sequence */
.sh-footer.is-armed .sh-fh-line,
.sh-footer.is-armed .sh-fh-glow { transform: scaleX(0); opacity: 0; }
.sh-footer.is-armed .sh-fh-node { opacity: 0; transform: scale(0.3); }

.sh-footer.is-live .sh-fh-line {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sh-footer.is-live .sh-fh-glow {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.2s ease-out, translate 0.4s ease-out;
}

.sh-footer.is-live .sh-fh-node {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: calc(1.9s + var(--i) * 0.2s);
}

.sh-footer.is-live .sh-fh-pulse {
  animation: sh-pulse 13s cubic-bezier(0.45, 0, 0.35, 1) 3.6s infinite;
}

.sh-footer.is-live .sh-fh-node.is-c::after,
.sh-footer.is-live .sh-fh-node.is-v::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: sh-ring 12s ease-in-out calc(4s + var(--i) * 1.4s) infinite;
}

.sh-fh-node.is-c { color: rgba(var(--sh-cyan), 0.7); }
.sh-fh-node.is-v { color: rgba(var(--sh-violet), 0.8); }

@keyframes sh-pulse {
  0% { transform: translateX(-100%); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translateX(560%); opacity: 1; }
  56%, 100% { transform: translateX(560%); opacity: 0; }
}

@keyframes sh-ring {
  0%, 82%, 100% { opacity: 0; transform: scale(0.6); }
  90% { opacity: 0.55; transform: scale(1); }
}

/* ---- layout ----------------------------------------------------------------------- */
.sh-footer-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 44px 24px 0;
}

.sh-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

.sh-micro {
  margin: 0;
  color: rgba(var(--sh-cyan), 0.72);
  font: 600 10.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sh-footer h2.sh-micro { font-weight: 600; }

.sh-footer-col h2.sh-micro,
.sh-footer-status h2.sh-micro {
  color: #d8b4fe;
  background: linear-gradient(95deg, #c4b5fd 0%, #d8b4fe 42%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.18);
}

.sh-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--sh-ink);
  font: 800 22px/1 Outfit, Inter, sans-serif;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.sh-wordmark svg { width: 26px; height: 26px; color: #c4b5fd; filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.28)); }
.sh-wordmark span { color: #f3e8ff; }
/* Brand wordmark follows the homepage violet/pink accents (#a855f7 -> #ec4899, same as the hero) instead of cyan. */
.sh-wordmark b {
  font-weight: 800;
  background: linear-gradient(95deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d946ef;
}
.sh-footer-brand .sh-micro { color: rgba(196, 181, 253, 0.7); }

.sh-footer-desc {
  max-width: 24rem;
  margin: 12px 0 0;
  color: var(--sh-mute);
  font-size: 14px;
  line-height: 1.6;
}

.sh-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #aab3c7;
  font: 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.sh-footer-meta li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 2px;
  border-radius: 50%;
  background: rgba(var(--sh-violet), 0.9);
}

.sh-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.sh-footer-col ul,
.sh-footer-status ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sh-footer-col li + li { margin-top: 11px; }

/* link hover: node + data line open in front of the text, text eases right (no colour-only change) */
.sh-flink {
  position: relative;
  display: inline-block;
  padding-left: 0;
  color: #b4bccd;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.35s ease, letter-spacing 0.35s ease, padding-left 0.35s ease;
}

.sh-flink::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--sh-cyan), 0.9), rgba(var(--sh-violet), 0.7));
  opacity: 0;
  transition: width 0.35s ease, opacity 0.35s ease;
}

.sh-flink::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgb(var(--sh-cyan));
  box-shadow: 0 0 6px rgba(var(--sh-cyan), 0.8);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sh-flink:hover,
.sh-flink:focus-visible {
  padding-left: 16px;
  color: #fff;
  letter-spacing: 0.02em;
  outline: none;
}

.sh-flink:hover::before,
.sh-flink:focus-visible::before { width: 10px; opacity: 0.8; }
.sh-flink:hover::after,
.sh-flink:focus-visible::after { opacity: 1; }
.sh-flink:focus-visible { box-shadow: 0 0 0 2px rgba(var(--sh-cyan), 0.4); border-radius: 4px; }

/* system status panel */
.sh-footer-status {
  padding-left: 22px;
  border-left: 1px solid var(--sh-line);
}

.sh-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--sh-ink);
  font-size: 14px;
  font-weight: 600;
}

.sh-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.7);
}

.sh-footer-status li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--sh-line);
  color: var(--sh-mute);
  font-size: 13px;
}

.sh-footer-status ul { margin-top: 12px; }
.sh-footer-status li b { color: #cdd4e4; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sh-footer-status .sh-flink { font-size: 13px; }

/* ---- CTA ------------------------------------------------------------------------- */
.sh-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 52px auto 0;
  text-align: center;
}

.sh-cta-copy h2 {
  margin: 0;
  color: var(--sh-ink);
  font: 700 24px/1.2 Outfit, Inter, sans-serif;
  letter-spacing: -0.01em;
}

.sh-cta-copy p {
  margin: 6px 0 0;
  color: var(--sh-mute);
  font-size: 14px;
}

.sh-cta-wrap {
  position: relative;
  display: inline-flex;
}

.sh-cta-halo {
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(var(--sh-cyan), 0), rgba(var(--sh-cyan), 0.85), rgba(var(--sh-violet), 0.85), rgba(var(--sh-violet), 0), rgba(var(--sh-cyan), 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: sh-orbit 7s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.sh-cta-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(var(--sh-violet), 0.26), rgba(var(--sh-violet), 0));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.sh-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 168px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid rgba(var(--sh-cyan), 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--sh-violet), 0.9), rgba(var(--sh-cyan), 0.55));
  color: #fff;
  font: 600 14px/1 Inter, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(var(--sh-violet), 0.7);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.sh-cta-btn svg { width: 16px; height: 16px; }

@media (min-width: 769px) {
  .sh-footer .sh-cta-halo {
    display: none;
  }
}

.sh-cta-wrap:hover .sh-cta-halo,
.sh-cta-wrap:focus-within .sh-cta-halo,
.sh-footer-cta.is-near .sh-cta-halo { opacity: 0.9; animation-play-state: running; }

.sh-cta-wrap:hover::before,
.sh-cta-wrap:focus-within::before,
.sh-footer-cta.is-near .sh-cta-wrap::before { opacity: 1; }

.sh-cta-btn:hover,
.sh-cta-btn:focus-visible {
  border-color: rgba(var(--sh-cyan), 0.7);
  box-shadow: 0 8px 26px -8px rgba(var(--sh-violet), 0.85);
  outline: none;
}

@keyframes sh-orbit { to { transform: rotate(360deg); } }

/* ---- utility bar ------------------------------------------------------------------- */
.sh-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--sh-line);
  color: #6f788d;
  font-size: 12px;
}

.sh-footer-bar p { margin: 0; }
.sh-footer-tag { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; }

/* intro replay now lives in the bar: small muted action, not a fixed debug chip */
.sh-footer .sh-intro-replay {
  position: static;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: none;
  padding: 4px 2px;
  border: 0;
  border-radius: 4px;
  background: none;
  backdrop-filter: none;
  color: #7e879c;
  font: 500 12px/1 Inter, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sh-footer .sh-intro-replay[hidden] { display: none; }
.sh-footer .sh-intro-replay:hover,
.sh-footer .sh-intro-replay:focus-visible { color: rgb(var(--sh-cyan)); outline: none; }
.sh-footer .sh-intro-replay svg { width: 13px; height: 13px; transition: transform 0.5s ease; }
.sh-footer .sh-intro-replay:hover svg { transform: rotate(-120deg); }

/* ---- responsive --------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .sh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .sh-footer-brand { grid-column: 1 / -1; }
  .sh-footer-status { padding-left: 0; border-left: 0; }
}

@media (max-width: 768px) {
  .sh-footer-bridge { height: 56px; }
}

@media (max-width: 640px) {
  .sh-footer-bridge { height: 48px; margin-top: -10px; }
  .sh-footer-inner { padding: 34px 16px 0; }
  .sh-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sh-footer-nav { gap: 20px; }
  .sh-footer-status { padding-top: 22px; border-top: 1px solid var(--sh-line); }
  .sh-footer-cta { margin-top: 40px; }
  .sh-cta-wrap { display: flex; width: 100%; }
  .sh-cta-btn { width: 100%; }
  .sh-cta-halo, .sh-cta-wrap::before { display: none; }
  .sh-footer { padding-bottom: 28px; }
  .sh-footer-bar { flex-direction: column; align-items: flex-start; padding-bottom: 64px; }
  .sh-fh-node.is-extra, .sh-streak.is-extra, .sh-bin.is-extra { display: none; }
  .sh-fh-pulse { animation-duration: 16s; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-streak, .sh-bin, .sh-fh-pulse, .sh-fh-node::after, .sh-cta-halo { animation: none !important; }
  .sh-footer.is-armed .sh-fh-line,
  .sh-footer.is-armed .sh-fh-glow { transform: none; opacity: 1; }
  .sh-footer.is-armed .sh-fh-node { opacity: 1; transform: none; }
  .sh-footer .sh-fh-line,
  .sh-footer .sh-fh-glow,
  .sh-footer .sh-fh-node,
  .sh-flink,
  .sh-flink::before,
  .sh-flink::after { transition: none !important; }
}
