/* ===== Homepage template — homelifedevice.com (alt) ===== */
.home-alt {
  --ha-ink: #0c1222;
  --ha-ink-soft: #4b5563;
  --ha-ink-muted: #6b7280;
  --ha-surface: #fafbff;
  --ha-white: #ffffff;
  --ha-teal: #0d9488;
  --ha-teal-dark: #0f766e;
  --ha-indigo: #4f46e5;
  --ha-indigo-soft: #818cf8;
  --ha-coral: #f97316;
  --ha-magenta: #db2777;
  --ha-border: rgba(15, 23, 42, 0.08);
  --ha-radius: 1.25rem;
  --ha-font-display: 'Outfit', 'Montserrat', system-ui, sans-serif;
  --ha-font-body: 'DM Sans', 'Montserrat', system-ui, sans-serif;
  font-family: var(--ha-font-body);
  color: var(--ha-ink);
  background: var(--ha-surface);
}

.home-alt .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ha-border);
}
.home-alt .site-header__nav a:hover { color: var(--ha-teal); }

.home-alt .site-logo__text-accent {
  background: linear-gradient(120deg, var(--ha-teal) 0%, var(--ha-indigo) 55%, var(--ha-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ha-promo {
  background: linear-gradient(90deg, var(--ha-indigo) 0%, #4338ca 50%, var(--ha-teal) 100%);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}

.ha-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(4rem, 10vw, 7rem);
}
.ha-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(79, 70, 229, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(219, 39, 119, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #eef2ff 0%, #f0fdfa 45%, var(--ha-surface) 100%);
  pointer-events: none;
}
.ha-hero__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ha-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}
.ha-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ha-indigo);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ha-border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
}
.ha-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ha-teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25);
  animation: ha-pulse 2s ease-in-out infinite;
}
@keyframes ha-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}
.ha-hero__title {
  font-family: var(--ha-font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.ha-hero__title span {
  background: linear-gradient(120deg, var(--ha-teal-dark) 0%, var(--ha-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.ha-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ha-ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.ha-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 1.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ha-btn--primary {
  background: linear-gradient(135deg, var(--ha-indigo) 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(79, 70, 229, 0.55);
}
.ha-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(79, 70, 229, 0.65);
}
.ha-btn--ghost {
  color: var(--ha-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ha-border);
}
.ha-btn--ghost:hover {
  border-color: var(--ha-indigo-soft);
  color: var(--ha-indigo);
}

.ha-hero__visual {
  position: relative;
  min-height: 280px;
}
.ha-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .ha-bento { margin-right: 0; max-width: none; }
}
.ha-bento__cell {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ha-border);
  border-radius: var(--ha-radius);
  padding: 1.15rem 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.ha-bento__cell--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(13, 148, 136, 0.1) 100%);
}
.ha-bento__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.ha-bento__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ha-ink);
}
.ha-bento__sub {
  font-size: 0.75rem;
  color: var(--ha-ink-muted);
  margin-top: 0.15rem;
}
.ha-bento__score {
  font-family: var(--ha-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ha-indigo);
  line-height: 1;
}

.ha-strip {
  border-top: 1px solid var(--ha-border);
  border-bottom: 1px solid var(--ha-border);
  background: var(--ha-white);
  padding: 1.5rem 1.25rem;
}
.ha-strip__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.ha-strip__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ha-ink-soft);
}
.ha-strip__item em {
  font-style: normal;
  color: var(--ha-teal-dark);
}

.ha-values {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.ha-values__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.ha-section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ha-coral);
  margin-bottom: 0.5rem;
}
.ha-section-title {
  font-family: var(--ha-font-display);
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.ha-values__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ha-values__grid { grid-template-columns: repeat(3, 1fr); }
}
.ha-value-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--ha-radius);
  background: var(--ha-white);
  border: 1px solid var(--ha-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ha-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(79, 70, 229, 0.15);
}
.ha-value-card__num {
  font-family: var(--ha-font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ha-indigo-soft);
  margin-bottom: 0.75rem;
}
.ha-value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ha-value-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ha-ink-soft);
}

.ha-spotlight {
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem clamp(4rem, 9vw, 6rem);
  background:
    linear-gradient(180deg, transparent 0%, rgba(79, 70, 229, 0.04) 40%, rgba(13, 148, 136, 0.06) 100%);
}
.ha-spotlight__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.ha-spotlight__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.ha-spotlight__head p {
  color: var(--ha-ink-soft);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.ha-product {
  display: grid;
  gap: 0;
  background: var(--ha-white);
  border-radius: calc(var(--ha-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--ha-border);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.02),
    0 24px 64px -20px rgba(79, 70, 229, 0.22);
}
@media (min-width: 900px) {
  .ha-product {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 480px;
  }
}
.ha-product__media {
  position: relative;
  background: linear-gradient(145deg, #1e1b4b 0%, #134e4a 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ha-product__glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.ha-product__media img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}
.ha-product__tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(135deg, var(--ha-coral) 0%, var(--ha-magenta) 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.ha-product__body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ha-product__cat {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ha-teal);
  margin-bottom: 0.5rem;
}
.ha-product__name {
  font-family: var(--ha-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.ha-product__desc {
  color: var(--ha-ink-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-size: 0.9875rem;
}
.ha-product__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.ha-product__pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.12);
}
.ha-product__pill:nth-child(2) {
  background: #ccfbf1;
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.15);
}
.ha-product__pill:nth-child(3) {
  background: #fce7f3;
  color: #be185d;
  border-color: rgba(219, 39, 119, 0.12);
}
.ha-product__rating {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--ha-ink-soft);
}
.ha-product__rating strong { color: var(--ha-ink); }
.ha-product__stars { color: #f59e0b; letter-spacing: 0.05em; margin-right: 0.35rem; }
.ha-product__cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--ha-teal) 0%, var(--ha-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(13, 148, 136, 0.55);
}
.ha-product__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(13, 148, 136, 0.65);
}

.ha-cta-band {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--ha-radius);
  background: linear-gradient(120deg, #312e81 0%, #115e59 100%);
  color: #fff;
}
.ha-cta-band p {
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 1.25rem;
  opacity: 0.92;
  line-height: 1.55;
}
.ha-cta-band .ha-btn--primary {
  background: #fff;
  color: var(--ha-indigo);
  box-shadow: none;
}
.ha-cta-band .ha-btn--primary:hover {
  background: #eef2ff;
}

.home-alt .site-footer {
  background: var(--ha-ink);
}

/* ===== Mobile & touch ===== */
.home-alt .site-header__inner,
.ha-promo,
.ha-hero,
.ha-strip,
.ha-values,
.ha-spotlight,
.home-alt .site-footer .container {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.home-alt .site-header__nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  .home-alt .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .home-alt .site-logo__text {
    font-size: 1.2rem;
  }

  .home-alt .site-header__nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  }

  .home-alt .site-header__nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.35rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .ha-promo {
    font-size: 0.6875rem;
    line-height: 1.45;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .ha-hero {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }

  .ha-hero__inner {
    gap: 1.75rem;
  }

  .ha-hero__badge {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.7rem;
  }

  .ha-hero__title {
    font-size: clamp(1.75rem, 7.5vw, 2.15rem);
    margin-bottom: 1rem;
  }

  .ha-hero__lead {
    font-size: 0.9875rem;
    margin-bottom: 1.35rem;
  }

  .ha-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ha-hero__actions .ha-btn {
    width: 100%;
    min-height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .ha-hero__visual {
    min-height: 0;
  }

  .ha-bento {
    max-width: none;
    gap: 0.5rem;
  }

  .ha-bento__cell {
    padding: 0.85rem 0.75rem;
  }

  .ha-bento__cell--wide {
    padding: 1rem 0.85rem;
  }

  .ha-bento__score {
    font-size: 1.85rem;
  }

  .ha-strip {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .ha-strip__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .ha-strip__item {
    font-size: 0.8125rem;
    padding: 0.35rem 0;
  }

  .ha-values {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .ha-section-title {
    font-size: 1.45rem;
    margin-bottom: 1.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .ha-section-eyebrow {
    letter-spacing: 0.12em;
  }

  .ha-value-card {
    padding: 1.25rem 1.15rem;
  }

  .ha-value-card:hover {
    transform: none;
  }

  .ha-spotlight {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }

  .ha-spotlight__head {
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .ha-spotlight__head .ha-section-eyebrow,
  .ha-spotlight__head .ha-section-title {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .ha-product {
    border-radius: var(--ha-radius);
  }

  .ha-product__media {
    min-height: 240px;
    padding: 1.15rem 0.75rem 1.35rem;
  }

  .ha-product__media img {
    width: min(78vw, 300px);
  }

  .ha-product__tag {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.6875rem;
    padding: 0.35rem 0.65rem;
  }

  .ha-product__body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .ha-product__desc {
    font-size: 0.9375rem;
  }

  .ha-product__cta {
    align-self: stretch;
    width: 100%;
    min-height: 48px;
  }

  .ha-cta-band {
    margin-top: 1.75rem;
    padding: 1.35rem 1rem;
    text-align: left;
  }

  .ha-cta-band p {
    font-size: 0.9875rem;
    margin-left: 0;
    margin-right: 0;
  }

  .ha-cta-band .ha-btn--primary {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 359px) {
  .home-alt .site-header__nav {
    font-size: 0.6875rem;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-hero__badge-dot {
    animation: none;
  }

  .ha-btn,
  .ha-value-card,
  .ha-product__cta {
    transition: none;
  }
}
