/* ============================================================
   VITALITY — refined layer (Cairn-grade sections)
   All classes namespaced .vx-* ; sections carry .vx so
   modern.js text-splitting skips them.
   ============================================================ */

.vx {
  position: relative;
  /* transparent — the fixed #vitality-shader-bg plasma flows through every section */
  background: transparent;
  color: #f2eefc;
  font-family: 'Inter', system-ui, sans-serif;
}
.vx * { box-sizing: border-box; }

.vx-wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ---------- shared type ---------- */
.vx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 166, 255, 0.9);
}
.vx-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9147ff;
  box-shadow: 0 0 10px #9147ff;
}
.vx-title {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 20px 0 14px;
  color: #f2eefc;
}
.vx-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #cdb2ff;
}
.vx-sub {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: rgba(242, 238, 252, 0.6);
  max-width: 560px;
}
.vx-head { text-align: center; }
.vx-head .vx-sub { margin-inline: auto; }

/* ---------- reveals ---------- */
.vx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vx-reveal.in { opacity: 1; transform: none; }

/* ============================================================
   INSIDE THE APP — product-UI bento
   ============================================================ */
.vx-suite { padding: clamp(80px, 11vw, 150px) 0; }
.vx-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.vx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(13, 10, 22, 0.82), rgba(8, 6, 14, 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 26px 26px 24px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
/* center the visual in whatever height the grid row gives the card */
.vx-chart, .vx-meter { margin-block: auto; }
.vx-card:hover { transform: translateY(-3px); border-color: rgba(145, 71, 255, 0.38); }
.vx-c7 { grid-column: span 7; }
.vx-c5 { grid-column: span 5; }

.vx-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.vx-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 238, 252, 0.45);
}
.vx-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(145, 71, 255, 0.14);
  border: 1px solid rgba(145, 71, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cdb2ff;
}
.vx-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9147ff;
  animation: vx-pulse 1.6s ease-in-out infinite;
}
@keyframes vx-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.vx-card h3 {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 4px 0 6px;
  color: #f2eefc;
}
.vx-card-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(242, 238, 252, 0.55);
  margin: 0 0 18px;
}

/* --- FPS chart card --- */
.vx-chart { position: relative; }
.vx-chart svg { width: 100%; height: auto; display: block; }
.vx-chart .axis { font-size: 9px; letter-spacing: 0.12em; fill: rgba(242,238,252,0.35); }
.vx-chart .grid { stroke: rgba(255,255,255,0.07); stroke-dasharray: 2 5; }
.vx-chart .before { stroke: rgba(242,238,252,0.28); stroke-width: 1.6; fill: none; }
.vx-chart .after {
  stroke: #9147ff;
  stroke-width: 2.4;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(145, 71, 255, 0.55));
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.3, 0, 0.2, 1) 0.25s;
}
.vx-chart.in .after { stroke-dashoffset: 0; }
.vx-chart .after-fill { fill: url(#vxGradFill); opacity: 0; transition: opacity 1s ease 1.2s; }
.vx-chart.in .after-fill { opacity: 1; }
.vx-chip {
  position: absolute;
  top: 26%;
  right: 8%;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(12, 8, 22, 0.85);
  border: 1px solid rgba(145, 71, 255, 0.4);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: #e9defc;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 1.5s, transform 0.6s ease 1.5s;
}
.vx-chart.in + .vx-chip, .vx-card .vx-chip.in { opacity: 1; transform: none; }
.vx-chip b { color: #cdb2ff; }

/* --- timeline feed card --- */
.vx-feed { display: grid; gap: 0; margin-top: 8px; }
.vx-feed-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 13px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vx-feed.in .vx-feed-row { opacity: 1; transform: none; }
.vx-feed.in .vx-feed-row:nth-child(1) { transition-delay: 0.15s; }
.vx-feed.in .vx-feed-row:nth-child(2) { transition-delay: 0.4s; }
.vx-feed.in .vx-feed-row:nth-child(3) { transition-delay: 0.65s; }
.vx-feed.in .vx-feed-row:nth-child(4) { transition-delay: 0.9s; }
.vx-feed-row + .vx-feed-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.vx-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(145, 71, 255, 0.12);
  border: 1px solid rgba(145, 71, 255, 0.4);
  margin-top: 2px;
}
.vx-dot::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9147ff;
}
.vx-feed-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 166, 255, 0.55);
}
.vx-feed-row strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f2eefc;
  margin: 2px 0;
}
.vx-feed-row span:last-child {
  font-size: 0.84rem;
  color: rgba(242, 238, 252, 0.5);
}

/* --- latency card --- */
.vx-meter { margin-top: 14px; display: grid; gap: 18px; }
.vx-meter-row { display: grid; gap: 8px; }
.vx-meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(242, 238, 252, 0.55);
}
.vx-meter-top b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #f2eefc;
}
.vx-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.vx-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #7534b3, #9147ff);
  box-shadow: 0 0 12px rgba(145, 71, 255, 0.5);
  transition: width 1.3s cubic-bezier(0.3, 0, 0.2, 1) 0.3s;
}
.vx-bar.dim i { background: rgba(242, 238, 252, 0.25); box-shadow: none; }
.vx-meter.in .vx-bar i { width: var(--w); }
.vx-delta {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #b8ffce;
}
.vx-delta b { font-family: 'JetBrains Mono', monospace; }

/* --- tweaks checklist card --- */
.vx-rules { margin-top: 10px; display: grid; }
.vx-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.95rem;
  color: rgba(242, 238, 252, 0.8);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.vx-rules.in .vx-rule { opacity: 1; transform: none; }
.vx-rules.in .vx-rule:nth-child(1) { transition-delay: 0.1s; }
.vx-rules.in .vx-rule:nth-child(2) { transition-delay: 0.3s; }
.vx-rules.in .vx-rule:nth-child(3) { transition-delay: 0.5s; }
.vx-rules.in .vx-rule:nth-child(4) { transition-delay: 0.7s; }
.vx-rules.in .vx-rule:nth-child(5) { transition-delay: 0.9s; }
.vx-rule + .vx-rule { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.vx-check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(145, 71, 255, 0.5);
  background: rgba(145, 71, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #cdb2ff;
}
.vx-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.vx-tag {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(242, 238, 252, 0.6);
}

/* ============================================================
   STAT BAND — full-bleed frame backdrop
   ============================================================ */
.vx-band {
  padding: clamp(90px, 13vw, 170px) 0;
  /* fully transparent — no scrim, the plasma flows through uninterrupted */
  background: transparent;
  text-align: center;
}
.vx-band .vx-title { margin-bottom: 56px; }
.vx-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.vx-num {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.vx-num-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(242, 238, 252, 0.62);
}

/* ============================================================
   QUOTES — from the players
   ============================================================ */
.vx-quotes { padding: clamp(80px, 11vw, 150px) 0; }
.vx-quote-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.vx-quote-col { display: grid; gap: 18px; align-content: start; }
.vx-quote {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(13, 10, 22, 0.82), rgba(8, 6, 14, 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 30px 30px 26px;
}
.vx-quote-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(145, 71, 255, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(20, 10, 38, 0.55), rgba(5, 5, 10, 0.92));
}
.vx-quote .mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  line-height: 0;
  color: #9147ff;
  display: block;
  margin-bottom: 16px;
}
.vx-quote blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(242, 238, 252, 0.88);
}
.vx-quote-hero blockquote {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35;
}
.vx-quote blockquote em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  color: #cdb2ff;
}
.vx-quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.vx-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7534b3, #9147ff);
}
.vx-quote-who strong { display: block; font-size: 0.92rem; color: #f2eefc; }
.vx-quote-who span { font-size: 0.8rem; color: rgba(242, 238, 252, 0.5); }

/* ============================================================
   FINAL CTA — rounded panel restyle (targets existing section)
   ============================================================ */
.final-cta-section { padding: clamp(40px, 7vw, 110px) clamp(16px, 4vw, 48px) !important; background: transparent !important; }
.final-cta-section .container {
  max-width: 1180px;
  margin-inline: auto;
  border-radius: 30px;
  border: 1px solid rgba(145, 71, 255, 0.25);
  background:
    radial-gradient(110% 120% at 50% 0%, rgba(117, 52, 179, 0.32), transparent 60%),
    linear-gradient(180deg, rgba(16, 8, 30, 0.6), rgba(5, 5, 10, 0.9));
  padding: clamp(70px, 9vw, 130px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.final-cta-section h2 {
  font-family: 'Clash Display', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem) !important;
  letter-spacing: -0.01em;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .vx-c7, .vx-c5 { grid-column: span 12; }
  .vx-quote-grid { grid-template-columns: 1fr; }
  .vx-band-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .vx-reveal, .vx-feed-row, .vx-rule, .vx-chip { opacity: 1 !important; transform: none !important; transition: none !important; }
  .vx-chart .after { stroke-dashoffset: 0 !important; transition: none !important; }
  .vx-meter .vx-bar i { width: var(--w) !important; transition: none !important; }
  .vx-live::before { animation: none; }
}
