.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8f5f0, rgb(169 214 229 / 0.3), rgb(149 184 162 / 0.2), rgb(244 199 184 / 0.15));
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--calm-dark), var(--trust-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.6;
}

.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-search-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-search-grid { grid-template-columns: 1fr 1fr; }
}

.hero-search-full { grid-column: 1 / -1; }

.role-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.role-toggle button {
  flex: 1;
  min-height: var(--touch);
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.role-toggle button.active {
  background: var(--white);
  color: var(--calm-dark);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: none;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) { .hero-visual { display: block; } }

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-trust {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hero-trust-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgb(149 184 162 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-card {
  padding: 1.25rem;
  text-align: center;
  cursor: default;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.benefit-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 20px 56px -12px rgb(149 184 162 / 0.28),
    0 8px 20px -6px rgb(0 0 0 / 0.08);
  border-color: rgb(149 184 162 / 0.6);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.18) rotate(-4deg);
  background: rgb(149 184 162 / 0.3);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius);
  background: rgb(149 184 162 / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.32s ease;
  will-change: transform;
}

.step-card {
  padding: 1.5rem;
  cursor: default;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 20px 56px -12px rgb(149 184 162 / 0.28),
    0 8px 20px -6px rgb(0 0 0 / 0.08);
  border-color: rgb(149 184 162 / 0.6);
}

.step-card:hover .step-num {
  transform: scale(1.15);
  background: var(--calm-dark);
  box-shadow: 0 6px 18px -4px rgb(85 125 104 / 0.45);
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--calm);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform;
}

/* iOS Safari: disable hover on touch devices to prevent sticky states */
@media (hover: none) {
  .benefit-card:hover,
  .step-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--border);
  }

  .benefit-card:hover .benefit-icon {
    transform: none;
    background: rgb(149 184 162 / 0.15);
  }

  .step-card:hover .step-num {
    transform: none;
    background: var(--calm);
    box-shadow: none;
  }
}
