/* ─── Tokens ─── */

:root {
  --g: linear-gradient(
    91deg,
    #f00 0%,
    #fe0145 38.2%,
    #883aff 61.8%,
    #07dcff 100%
  );
  --g-wide: linear-gradient(91deg, #fe0145, #07dcff, #883aff, #fe0145);
  --dur-bar: 1.8s;
  --dur-col: 0.35s;
  --t-card: 2.05s;
  --t-content: 2.5s;
}

/* ── Keyframes ── */
@keyframes collapse-wrap {
  0% {
    max-height: 72px;
    opacity: 1;
    margin-bottom: 4px;
  }
  55% {
    opacity: 0;
  }
  100% {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
  }
}
@keyframes fill-bar {
  0% {
    width: 0%;
  }
  70% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}
@keyframes shimmer-bar {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(22px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 1500px;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Phase 1: Progress bar ── */
.progress-wrap {
  width: 100%;

  overflow: hidden;
  animation: collapse-wrap var(--dur-col) ease var(--dur-bar) both;
}
.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--g-wide);
  background-size: 300% 100%;
  animation: fill-bar var(--dur-bar) cubic-bezier(0.25, 0, 0.5, 1) forwards,
    shimmer-bar 2s ease infinite;
}

/* ── Phase 2: Card ── */
.grad-border {
  background: linear-gradient(
    103deg,
    #ffdad4 32.04%,
    #ffd8e7 57.46%,
    #e7deff 74.48%,
    #bee9ff 100%
  );
  padding: 1px;
  border-radius: 16px;
}
.card-wrapper {
  width: 100%;

  overflow: hidden;
  opacity: 0;
  animation: card-appear 0.55s cubic-bezier(0.2, 0, 0.3, 1) var(--t-card) both;
}
.card-inner {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
}

/* ── Gradient helpers ── */
.grad-text {
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bullet dot ── */
.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
  background: #303c46;
}

/* ── Phase 3: Content fade-up ── */
.fi {
  opacity: 0;
  animation: fade-up 0.5s ease both;
  animation-delay: var(--delay, var(--t-content));
}

/* Named delay classes — replaces --delay inline styles */
.fi-d0 {
  --delay: var(--t-content);
}
.fi-d1 {
  --delay: calc(var(--t-content) + 0.2s);
}
.fi-d2 {
  --delay: calc(var(--t-content) + 0.4s);
}
.fi-d3 {
  --delay: calc(var(--t-content) + 0.6s);
}
