/* Homepage How it works — native split layout (live text + CSS atmosphere) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap");

.how-section {
  --hiw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hiw-blue: #60a5fa;
  --hiw-blue-bright: #3b82f6;
  --hiw-line: rgba(96, 165, 250, 0.32);
  --hiw-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hiw-font-display: "Space Grotesk", var(--hiw-font-body);
  position: relative;
  z-index: 2;
  padding: clamp(52px, 6vw, 88px) 0;
  background: transparent;
  overflow: hidden;
  font-family: var(--hiw-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.how-section__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.how-header {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(40px, 5vw, 56px);
  text-align: center;
}

.how-kicker--center {
  margin: 0;
  font-family: var(--hiw-font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  color: var(--hiw-blue);
}

.how-section__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.how-section__orb--primary {
  top: 50%;
  left: 18%;
  width: min(460px, 50vw);
  height: min(460px, 50vw);
  transform: translate(-45%, -50%);
  background:
    radial-gradient(circle at 42% 38%, rgba(96, 165, 250, 0.22) 0%, rgba(59, 130, 246, 0.08) 28%, transparent 68%);
  filter: blur(10px);
  opacity: 0.85;
}

.how-container {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 0 24px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.how-copy {
  max-width: 580px;
}

.how-brand {
  margin: 0 0 28px;
  color: #f8fafc;
  font-family: var(--hiw-font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.how-kicker {
  margin: 0 0 16px;
  font-family: var(--hiw-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hiw-blue);
}

.how-title {
  margin: 0;
  font-family: var(--hiw-font-display);
  font-size: clamp(30px, 3.75vw, 50px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #f8fafc;
}

.how-tagline {
  margin: clamp(32px, 4.5vw, 52px) 0 0;
  font-family: var(--hiw-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78);
}

.how-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 36px);
}

.how-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 29px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--hiw-line) 6%,
    var(--hiw-line) 94%,
    transparent
  );
}

.how-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.how-timeline__icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e2e8f0;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.how-timeline__content {
  padding-top: 4px;
}

.how-timeline__num {
  display: block;
  font-family: var(--hiw-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hiw-blue);
}

.how-timeline__title {
  margin: 8px 0 0;
  font-family: var(--hiw-font-body);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.how-timeline__text {
  margin: 10px 0 0;
  font-family: var(--hiw-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 38ch;
}

.how-section[data-hiw-home-reveal] [data-hiw-home] {
  opacity: 0;
  transform: translateY(14px);
}

.how-section.is-visible [data-hiw-home="header"] {
  animation: hiwFadeUp 620ms var(--hiw-ease) 0ms forwards;
}

.how-section.is-visible [data-hiw-home="copy"] {
  animation: hiwFadeUp 620ms var(--hiw-ease) 80ms forwards;
}

.how-section.is-visible [data-hiw-home="timeline"] {
  animation: hiwFadeUp 620ms var(--hiw-ease) 160ms forwards;
}

@keyframes hiwFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .how-section {
    padding: clamp(44px, 7vw, 68px) 0;
  }

  .how-container {
    padding: 0 16px;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .how-copy {
    max-width: none;
    text-align: center;
  }

  .how-brand {
    margin-bottom: 20px;
  }

  .how-tagline {
    margin-top: 22px;
  }

  .how-section__orb--primary {
    left: 50%;
    top: 18%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 560px) {
  .how-timeline__item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
  }

  .how-timeline__icon {
    width: 50px;
    height: 50px;
  }

  .how-timeline::before {
    left: 25px;
  }

  .how-timeline__text {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-section[data-hiw-home-reveal] [data-hiw-home],
  .how-section.is-visible [data-hiw-home] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
