
/* ---------- VARIABLES ---------- */
:root {
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --emerald-400: #34d399;
  --amber-300: #fcd34d;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --bg-dark: #02050e;
  --bg-card: #0f1116;
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 12px;
}

/* ---------- BLOCK: steps ---------- */
.steps {
  max-width: 1600px;
  margin: 0 auto;
  padding: 6rem 1rem;
}

@media (min-width: 1024px) {
  .steps {
    padding: 3rem 1.5rem;
  }
}

.steps__container {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps__container {
    padding: 2rem;
  }
}

/* ---------- ELEMENT: steps__header ---------- */
.steps__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 6rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .steps__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.steps__intro {
  max-width: 100%;
}

.steps__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.steps__title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .steps__title {
    font-size: 2.25rem;
  }
}

.steps__description {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--zinc-400);
  max-width: 36rem;
  line-height: 1.625;
}

.steps__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.5rem;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--zinc-800);
  border: 1px solid var(--zinc-700);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.steps__cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* ---------- ELEMENT: steps__stack ---------- */
.steps__stack {
  display: flex;
  flex-direction: column;
  gap: 35vh;
  padding-bottom: 20vh;
  position: relative;
}

/* ---------- BLOCK: step-card ---------- */
.step-card {
  position: sticky;
  top: 7rem;
  width: 100%;
  background: linear-gradient(135deg, #020718 0%, rgba(0 0 14) 100%);
  border: 1px solid rgb(12 42 131 / var(--opacity-6));
  border-radius: 32px;
  overflow: hidden;
  transition: transform 75ms linear, opacity 75ms linear, filter 75ms linear;
  transform-origin: top center;
  transform: scale(1.02);
}

.step-card:nth-child(2) {
  top: 8rem;
}

.step-card:nth-child(3) {
  top: 9rem;
}

/* Backgrounds */
.step-card__bg {
  position: absolute;
  pointer-events: none;
}

.step-card__bg--gradient {
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(30, 58, 138, 0.25) 0%, transparent 70%);
}

.step-card__bg--glow {
  width: 18rem;
  height: 18rem;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  top: -6rem;
  right: -6rem;
}

.step-card__bg--glow-cyan {
  background: rgb(1 11 55);
  bottom: -6rem;
  left: -6rem;
  top: auto;
  right: auto;
}

.step-card__bg--glow-top {
  width: 32rem;
  height: 16rem;
  background: rgba(59, 130, 246, 0.1);
  top: -7rem;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

/* Number */
.step-card__number {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 10rem;
  font-weight: 600;
  color: rgb(12 42 131 / var(--opacity-2));
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: inherit;
}

@media (min-width: 640px) {
  .step-card__number {
    font-size: 12.5rem;
    top: 1rem;
    right: 1.5rem;
  }
}

/* Content Layout */
.step-card__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem;
  position: relative;
  z-index: 10;
  align-items: center;
}

@media (min-width: 1024px) {
  .step-card__content {
    grid-template-columns: repeat(2, 1fr);
    padding: 5rem;
  }
}

/* ---------- ELEMENT: step-card__visual ---------- */
.step-card__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Icon Float */
.step-card__icon-float {
  position: absolute;
  top: 0.5rem;
  left: -0.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #0f1219;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: transform 0.5s;
}

.step-card:hover .step-card__icon-float {
  transform: scale(1.05);
}

.step-card__icon-svg {
  width: 24px;
  height:24px;
  stroke: var(--blue-500);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}

.step-card:hover .step-card__icon-svg {
  stroke: var(--color-primary-teal);
}

/* Mockup */
.step-card__mockup {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  position: relative;
}

.step-card__mockup-glow {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 11rem;
  height: 5rem;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(55px);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

/* Mockup Header */
.step-card__mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.step-card__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-card__dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.step-card__mockup-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-card__status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grid */
.step-card__grid {
  display: grid;
  gap: 0.75rem;
}

.step-card__grid--3 {
  grid-template-columns: repeat(2, 1fr);
}

/* Card inside mockup */
.step-card__card {
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: .75rem;
  display: flex;
  align-items: center;
  /* flex-direction: column; */
  gap: 0.75rem;
}

/* List */
.step-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.step-card__row--active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.18);
}

.step-card__row--compact {
  padding: 1rem;
  justify-content: space-between;
}

.step-card__row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card__avatar--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--cyan-400) 100%);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.step-card__avatar--gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

/* Panel */
.step-card__panel {
  margin-top: 1.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
}

.step-card__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.step-card__panel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.step-card__panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.step-card__input {
  flex: 1;
  height: 2.5rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card__btn {
  height: 2.5rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card__btn--primary {
  width: 9rem;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--cyan-400) 100%);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
  border: none;
}

.step-card__btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

/* Divider */
.step-card__divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  margin-top: 1.25rem;
}

/* Status */
.step-card__status {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.8);
}

.step-card__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-card__status-dot--blue {
  background: rgba(96, 165, 250, 0.8);
}

.step-card__status-dot--green {
  background: rgba(52, 211, 153, 0.8);
}

.step-card__status-dot--amber {
  background: rgba(252, 211, 77, 0.8);
}

/* Skeleton */
.step-card__skeleton {
  height: 0.5rem;
  width: 100%;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
}
.step-card__skeleton_circle{
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}
.step-card__skeleton_circle svg{
  color: var(--color-primary-teal);
}
.step-card__skeleton--xs {
  width: 66.666%;
}

.step-card__skeleton--sm {
  width: 83.333%;
}

.step-card__skeleton--md {
  width: 4rem;
}

.step-card__skeleton--lg {
  width: 7rem;
}

.step-card__skeleton--xl {
  width: 10rem;
}

.step-card__skeleton--light {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- ELEMENT: step-card__info ---------- */
.step-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-card__title {
  font-size: clamp(1.5rem, 0.5599rem + 1.4085vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step-card__text {
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--color-text-secondary);
  margin-top: 1rem;
}

/* Tags */
.step-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.step-card__tag {
  font-size: 12px;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--zinc-200);
}

/* Quote */
.step-card__quote {
  margin-top: 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  max-width: 36rem;
}

.step-card__quote-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(147, 197, 253, 0.9);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.step-card__quote-text {
  color: var(--zinc-200);
  font-style: normal;
}

/* Pills */
.step-card__pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.step-card__pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--zinc-200);
  font-size: 0.875rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .steps {
    padding: 3rem 1rem;
  }

  .steps__header {
    margin-bottom: 3rem;
  }

  .step-card {
    top: 5rem;
  }

  .step-card:nth-child(2) {
    top: 5.5rem;
  }

  .step-card:nth-child(3) {
    top: 6rem;
  }

  .step-card__content {
    padding: 1.5rem;
  }

  /* .step-card__title {
    font-size: 1.875rem;
  } */

  .step-card__visual {
    min-height: 320px;
  }
}

@media (max-width: 639px) {
  .step-card__number {
    font-size: 6rem;
  }

  .step-card__grid--3 {
    grid-template-columns: 1fr;
  }

  /* .step-card__row {
    flex-wrap: wrap;
  } */
}