/* ── Section ── */
.praxent_cs-template-output {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

/* ── Inner ── */
.praxent_cs-template-output .cs-output__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 64px 6%;
}

@media (min-width: 1024px) {
  .praxent_cs-template-output .cs-output__inner {
    padding: 80px 8%;
    gap: 32px;
  }
}

/* ── Eyebrow pill ── */
.praxent_cs-template-output .cs-output__eyebrow {
  display: inline-block;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  border-radius: 46px;
  width: fit-content;
  max-width: 90vw;
  padding: 0 clamp(20px, 5vw, 40px);
  font-family: "Fira Code", monospace;
  font-size: clamp(12px, 3vw, 16px);
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 2.08px;
  text-transform: uppercase;
  text-align: center;
  color: #FAFAFB;
  margin: 0;
}

/* ── Stats row ── */
.praxent_cs-template-output .cs-output__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

@media (min-width: 1024px) {
  .praxent_cs-template-output .cs-output__stats {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ── Single stat ── */
.praxent_cs-template-output .cs-output__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  flex: 1;
}

@media (min-width: 1024px) {
  .praxent_cs-template-output .cs-output__stat {
    text-align: center;
  }
}

/* ── Stat number ── */
.praxent_cs-template-output .cs-output__number {
  display: block;
  font-family: "Tiempos Headline", serif;
  font-size: clamp(40px, 10vw, 70px);
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  color: #ffffff;
}

/* ── Stat label ── */
.praxent_cs-template-output .cs-output__stat-label {
  display: block;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
  color: #ffffff;
}

/* ── Circle stat ── */
.praxent_cs-template-output .cs-output__circle {
  --circle-color: #ff5f57;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 258px;
  height: 258px;
  flex-shrink: 0;
  color: #ffffff;
  transition: color 1.5s ease;
}

.praxent_cs-template-output .cs-output__circle.is-visible {
  color: var(--circle-color);
}

/* ── SVG ring — draws on scroll ── */
.praxent_cs-template-output .cs-output__circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

/* ── Cycle: white base always visible, red arc draws → shines → resets → repeat (14s) ── */

/* Red arc draws in, holds for shines, resets instantly */
@keyframes circle-draw-cycle {
  0%      { stroke-dashoffset: 1; }
  25%     { stroke-dashoffset: 0; }   /* fully drawn at ~3.5s */
  65%     { stroke-dashoffset: 0; }   /* holds through shines */
  65.01%  { stroke-dashoffset: 1; }   /* instant reset — white base takes over */
  100%    { stroke-dashoffset: 1; }   /* pause */
}

/* Glow shines on the SVG — only when arc is drawn */
@keyframes circle-filter-cycle {
  0%    { filter: none; }
  25%   { filter: none; }
  31%   { filter: drop-shadow(0 0 8px var(--circle-color)) drop-shadow(0 0 22px var(--circle-color)); }
  38%   { filter: none; }
  44%   { filter: drop-shadow(0 0 8px var(--circle-color)) drop-shadow(0 0 22px var(--circle-color)); }
  51%   { filter: none; }
  57%   { filter: drop-shadow(0 0 8px var(--circle-color)) drop-shadow(0 0 22px var(--circle-color)); }
  65%   { filter: none; }
  100%  { filter: none; }
}

/* Number text blinks with the shines */
@keyframes circle-number-blink {
  0%    { text-shadow: none; }
  25%   { text-shadow: none; }
  31%   { text-shadow: 0 0 6px var(--circle-color); }
  38%   { text-shadow: none; }
  44%   { text-shadow: 0 0 6px var(--circle-color); }
  51%   { text-shadow: none; }
  57%   { text-shadow: 0 0 6px var(--circle-color); }
  65%   { text-shadow: none; }
  100%  { text-shadow: none; }
}

/* Ring color: black (invisible) → red (draws in) → red (shines) → black (fade) */
@keyframes circle-color-cycle {
  0%    { color: #000000; }
  25%   { color: var(--circle-color); }
  65%   { color: var(--circle-color); }
  75%   { color: #000000; }
  100%  { color: #000000; }
}

/* Text color: white (start) → red (with ring) → red (shines) → white (fade) */
@keyframes circle-text-cycle {
  0%    { color: #ffffff; }
  25%   { color: var(--circle-color); }
  65%   { color: var(--circle-color); }
  75%   { color: #ffffff; }
  100%  { color: #ffffff; }
}

.praxent_cs-template-output .cs-output__circle {
  color: #000000;
}

.praxent_cs-template-output .cs-output__circle.is-visible {
  animation: circle-color-cycle 10s ease-in-out infinite;
}

.praxent_cs-template-output .cs-output__circle.is-visible .cs-output__circle-number {
  animation: circle-number-blink 10s ease-in-out infinite,
             circle-text-cycle 10s ease-in-out infinite;
}

.praxent_cs-template-output .cs-output__circle.is-visible .cs-output__circle-label {
  animation: circle-text-cycle 10s ease-in-out infinite;
}

.praxent_cs-template-output .cs-output__circle.is-visible .cs-output__circle-arc {
  animation: circle-draw-cycle 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.praxent_cs-template-output .cs-output__circle.is-visible .cs-output__circle-svg {
  animation: circle-filter-cycle 10s ease-in-out infinite;
}

/* ── Circle content ── */
.praxent_cs-template-output .cs-output__circle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  z-index: 1;
}

/* ── Circle number ── */
.praxent_cs-template-output .cs-output__circle-number {
  display: block;
  font-family: "Tiempos Headline", serif;
  font-size: clamp(40px, 10vw, 70px);
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
}

/* ── Circle label ── */
.praxent_cs-template-output .cs-output__circle-label {
  display: block;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
  color: #ffffff;
}

/* ── Mobile ── */
@media (max-width: 1023px) {
  .praxent_cs-template-output .cs-output__stat {
    text-align: center;
  }

  .praxent_cs-template-output .cs-output__eyebrow {
    font-size: clamp(13px, 3vw, 16px);
  }
}
