:root {
  --gf-border: var(--border, rgba(15, 23, 42, 0.08));
  --gf-radius-lg: 1rem;
  --gf-radius-xl: 1.35rem;
  --gf-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --hc-chip-bg: color-mix(in srgb, var(--gf-primary) 12%, #ffffff 88%);
  --hc-chip-border: color-mix(in srgb, var(--gf-primary) 24%, transparent);
  --hc-chip-shadow: 0 8px 18px color-mix(in srgb, var(--gf-primary) 18%, transparent);
}

.hc-how-it-works {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, #f8fbff 78%, #ffffff 22%) 0%, #ffffff 58%);
  overflow: hidden;
  border-top: 1px solid var(--gf-border);
  border-bottom: 1px solid var(--gf-border);
  isolation: isolate;
}

.hc-how-it-works::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  background: radial-gradient(circle at 12% 30%, color-mix(in srgb, var(--gf-primary) 22%, transparent) 0%, transparent 48%),
    radial-gradient(circle at 90% 68%, color-mix(in srgb, var(--gf-accent) 16%, transparent) 0%, transparent 50%);
  opacity: 0.55;
  filter: blur(38px);
  z-index: -1;
}

.hc-how-wrapper {
  max-width: 1120px;
  margin: 0 auto;
}

.hc-how-header {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.hc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hc-chip-border);
  background: var(--hc-chip-bg);
  box-shadow: var(--hc-chip-shadow);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg, #0f172a);
  margin-bottom: 1rem;
}

.hc-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gf-primary) 72%, var(--gf-accent) 28%), var(--gf-accent));
}

.hc-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.hc-title span {
  position: relative;
  display: inline-block;
}

.hc-title-highlight {
  background: linear-gradient(120deg, var(--gf-primary), var(--gf-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hc-subtitle {
  font-size: 1rem;
  color: var(--fg-soft, #475569);
  max-width: 36rem;
  line-height: 1.6;
  margin: 0;
}

.hc-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.hc-roles-card {
  position: relative;
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: var(--gf-radius-xl);
  background: color-mix(in srgb, var(--card, #ffffff) 96%, #f1f5f9 4%);
  box-shadow: var(--gf-shadow-soft);
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.16));
  overflow: hidden;
}

.hc-roles-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--gf-primary) 18%, transparent) 0%, transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hc-roles-card--tech::before {
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--gf-accent) 18%, transparent) 0%, transparent 55%);
}

.hc-roles-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--gf-primary) 12%, #ffffff 88%);
  color: var(--fg, #0f172a);
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.hc-roles-label-pill {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gf-primary) 82%, #ffffff 18%);
}

.hc-roles-card--tech .hc-roles-label-pill {
  background: color-mix(in srgb, var(--gf-accent) 82%, #ffffff 18%);
}

.hc-roles-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
}

.hc-roles-text {
  font-size: 0.95rem;
  color: var(--fg-soft, #475569);
  margin: 0 0 0.9rem;
  position: relative;
  z-index: 1;
}

.hc-roles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.hc-roles-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gf-ink);
}

.hc-roles-bullet {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--gf-primary) 20%, transparent);
  color: var(--gf-primary);
  flex-shrink: 0;
}

.hc-roles-card--tech .hc-roles-bullet {
  background: color-mix(in srgb, var(--gf-accent) 20%, transparent);
  color: var(--gf-accent);
}

.hc-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2.75rem, 4vw, 3.25rem);
}

.hc-connector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.55);
}

.hc-connector-pill span {
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gf-primary), var(--gf-accent));
}

.hc-steps {
  position: relative;
  padding: 1.75rem 1.5rem 1.8rem;
  border-radius: var(--gf-radius-xl);
  background: color-mix(in srgb, var(--card, #ffffff) 98%, #f8fafc 2%);
  box-shadow: var(--gf-shadow-soft);
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.16));
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hc-steps::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--gf-primary) 80%, #ffffff 20%),
      color-mix(in srgb, var(--gf-accent) 80%, #ffffff 20%),
      color-mix(in srgb, var(--gf-cta) 80%, #ffffff 20%));
}

.hc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.hc-step {
  position: relative;
  padding-top: 0.5rem;
}

.hc-step-index {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3rem, 5vw, 3.4rem);
  height: clamp(3rem, 5vw, 3.4rem);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gf-primary, #1e3a8a), var(--gf-accent, #22d3ee));
  color: #f8fafc;
  font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.hc-step-index::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.3), transparent 50%);
  opacity: 0.7;
  filter: blur(10px);
  z-index: 0;
}

.hc-step-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.hc-step-text {
  font-size: 0.9rem;
  color: var(--fg-soft, #475569);
  margin: 0;
  line-height: 1.5;
}

.hc-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.hc-bottom-left {
  max-width: 520px;
}

.hc-bottom-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.hc-bottom-text {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: var(--fg-soft, #475569);
}

.hc-bottom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gf-ink);
}

.hc-bottom-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.hc-bottom-list-badge {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gf-success);
}

.hc-bottom-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.hc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #0b1120;
  background: linear-gradient(120deg,
      color-mix(in srgb, var(--gf-cta) 90%, #ffffff 10%),
      color-mix(in srgb, var(--gf-cta) 70%, var(--gf-success) 30%));
  box-shadow: 0 16px 38px color-mix(in srgb, var(--gf-cta) 32%, transparent);
  transform: translateY(0);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px color-mix(in srgb, var(--gf-cta) 42%, transparent);
}

.hc-btn-primary span {
  font-size: 1.05rem;
}

.hc-cta-caption {
  font-size: 0.8rem;
  color: var(--fg-soft, #475569);
}

@media (max-width: 900px) {
  .hc-roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-how-it-works {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hc-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-bottom-list {
    flex-direction: column;
    align-items: flex-start;
  }
}
