/* =================================================================
   HOMEPAGE
   ================================================================= */

/* ---- Hero ---- */
.sw-hero {
  position: relative;
  padding: var(--sw-space-2xl) 0 var(--sw-space-xl);
  overflow: hidden;
}

.sw-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--sw-space-lg);
}

.sw-hero__eyebrow {
  margin-bottom: 1.1rem;
}

.sw-hero__title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.sw-hero__title .sw-accent {
  background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-focus) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-hero__desc {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: var(--sw-text-muted);
  max-width: 46ch;
  line-height: 1.65;
}

.sw-hero__actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sw-hero__stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.sw-hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sw-ink);
}

.sw-hero__stat-label {
  font-size: 0.8rem;
  color: var(--sw-text-muted);
}

/* ---- Hero signature wheel visual ---- */
.sw-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.sw-hero__wheel-wrap {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.sw-hero__wheel {
  width: 100%;
  height: 100%;
  animation: sw-hero-spin 40s linear infinite;
  filter: drop-shadow(0 24px 48px rgba(79, 70, 229, 0.25));
}

@keyframes sw-hero-spin {
  to {
    transform: rotate(360deg);
  }
}

.sw-hero__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--sw-focus);
  filter: drop-shadow(0 4px 10px rgba(255, 95, 41, 0.45));
  z-index: 2;
}

.sw-hero__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(15, 17, 23, 0.18);
  font-size: 1.9rem;
  z-index: 2;
}

.sw-hero__glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 960px) {
  .sw-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sw-hero__desc {
    margin-inline: auto;
  }

  .sw-hero__actions,
  .sw-hero__stats {
    justify-content: center;
  }

  .sw-hero__wheel-wrap {
    width: min(300px, 80%);
    margin-top: 1rem;
  }
}

/* ---- Section headers ---- */
.sw-sectionhead {
  max-width: 640px;
  margin-bottom: var(--sw-space-lg);
}

.sw-sectionhead--center {
  margin-inline: auto;
  text-align: center;
}

.sw-sectionhead__title {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.sw-sectionhead__desc {
  margin-top: 0.85rem;
  color: var(--sw-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- Grids ---- */
.sw-grid-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sw-grid-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.sw-grid-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 1024px) {
  .sw-grid-tools,
  .sw-grid-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-grid-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .sw-grid-tools,
  .sw-grid-categories,
  .sw-grid-steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Why choose us ---- */
.sw-why {
  background: var(--sw-surface);
  border-top: 1px solid var(--sw-border);
  border-bottom: 1px solid var(--sw-border);
}

.sw-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sw-why__item {
  padding: 1.75rem;
  border-radius: var(--sw-radius);
  border: 1px solid var(--sw-border);
}

.sw-why__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--sw-radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--sw-primary-light);
  margin-bottom: 1rem;
}

.sw-why__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sw-why__desc {
  font-size: 0.9rem;
  color: var(--sw-text-muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .sw-why__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA band ---- */
.sw-cta {
  border-radius: var(--sw-radius-lg);
  background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
  padding: var(--sw-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 95, 41, 0.3), transparent 60%);
  pointer-events: none;
}

.sw-cta__title {
  font-size: 1.6rem;
  position: relative;
}

.sw-cta__desc {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  position: relative;
}

.sw-cta .sw-btn--primary {
  background: #fff;
  color: var(--sw-primary-dark);
  box-shadow: none;
  position: relative;
}

.sw-cta .sw-btn--primary:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---- Newsletter ---- */
.sw-newsletter {
  border-radius: var(--sw-radius-lg);
  border: 1px solid var(--sw-border);
  background: var(--sw-surface);
  padding: var(--sw-space-lg);
  text-align: center;
}

.sw-newsletter__form {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin-inline: auto;
}

.sw-newsletter__input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  border-radius: var(--sw-radius-full);
  border: 1.5px solid var(--sw-border);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-newsletter__input:focus {
  border-color: var(--sw-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

@media (max-width: 560px) {
  .sw-newsletter__form {
    flex-direction: column;
  }
}
