/* Homepage composition; all visual tokens and controls live in theme.css
   and reusable premium primitives live in premium.css. */
.hd-home section {
  scroll-margin-top: calc(var(--hs-header-height) + 24px);
}
.hd-hero {
  padding: 120px 0 110px;
  background-color: var(--hs-bg);
  background-image:
    var(--hs-grad-hero-atmosphere), var(--hs-grad-hero-glow),
    var(--hs-grad-bottom);
  background-repeat: no-repeat;
}
[data-theme="dark"] .hd-hero {
  background-color: var(--hs-dark-bg);
}
.hd-hero h1 {
  margin-bottom: 24px;
}
.hd-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hs-muted);
  max-width: 640px;
}
.hd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hd-trust-line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hs-muted);
  margin: 24px 0 0;
}
.hd-section {
  padding-block: var(--hs-section-space);
}
.hd-section-alt {
  background: var(--hs-bg-soft);
}
.hd-section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}
.hd-section-heading h2 {
  margin-bottom: 20px;
}
.hd-section-heading p {
  color: var(--hs-muted);
  margin-bottom: 8px;
  font-size: 18px;
}
.hd-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: var(--hs-card-padding);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-sm);
  transition:
    transform var(--hs-card-transition),
    box-shadow var(--hs-card-transition),
    border-color var(--hs-card-transition);
}
.hd-card > *:not(.hs-cursor-glow) {
  position: relative;
  z-index: 2;
}
.hd-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
.hd-card p {
  color: var(--hs-muted);
}
.hd-icon {
  width: 36px;
  height: 36px;
  color: var(--hs-primary);
  margin-bottom: 24px;
}
.hd-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--hs-radius-md);
  margin-bottom: 12px;
}
.hd-icon-wrap .hd-icon {
  margin-bottom: 0;
}
.hd-text-link {
  color: var(--hs-primary-hover);
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 8px;
}
.hd-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero visual: abstract product frame + floating labels. */
.hs-hero-visual {
  position: relative;
  padding: 20px 0;
}
.hs-float-card--1 {
  top: -6px;
  left: -30px;
}
.hs-float-card--2 {
  top: 44%;
  right: -34px;
}
.hs-float-card--3 {
  bottom: -4px;
  left: 10%;
}

.hd-product {
  padding: var(--hs-product-padding);
  border-top: 3px solid var(--hs-primary);
}
.hd-product .hs-product-symbol {
  margin-bottom: 24px;
}
.hd-product h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.hd-product .hd-category {
  color: var(--hs-primary-hover);
  font-size: 14px;
  font-weight: 600;
}
.hd-product .hd-price {
  font: 700 28px/1.3 var(--font-heading);
  color: var(--hs-heading);
  margin: auto 0 24px;
  padding-top: 24px;
}
[data-theme="dark"] .hd-product .hd-price {
  color: var(--hs-dark-text);
}
.hs-product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
}
.hs-product-highlights li {
  padding-block: 5px;
}
.hs-product-highlights i {
  color: var(--hs-primary);
  margin-right: 8px;
}
.hd-value {
  padding: 24px;
  border-top: 1px solid var(--hs-border);
}
.hd-value h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hd-value p {
  color: var(--hs-muted);
  font-size: 15px;
  margin: 0;
}
.hd-value .hd-icon {
  border-radius: var(--hs-radius-md);
  padding: 10px;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  transition:
    background-color var(--hs-card-transition),
    transform var(--hs-card-transition);
}
@media (hover: hover) {
  .hd-value:hover .hd-icon {
    background: var(--hs-primary-light);
    transform: translateY(-2px);
  }
}
.hd-demo .btn {
  margin-top: auto;
}
.hd-demo-swiper {
  padding-bottom: 8px;
}

/* Custom development: light section with a themed visual panel. */
.hd-section-custom {
  background: var(--hs-bg);
}
.hd-section-custom .btn {
  margin-top: 12px;
}

/* Premium panel â€” dark by default, theme-aware in light mode. */
.hd-custom-panel {
  position: relative;
  padding: 36px;
  border-radius: var(--hs-radius-xl);
  border: 1px solid var(--hs-dark-border);
  background: linear-gradient(160deg, #1b1e26 0%, #111318 60%, #171126 100%);
  box-shadow: var(--hs-shadow-lg);
  overflow: hidden;
}
.hd-custom-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(109, 74, 255, 0.26),
    transparent 70%
  );
  pointer-events: none;
}
.hd-custom-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 108, 255, 0.55),
    transparent
  );
  pointer-events: none;
}
.hd-custom-panel > * {
  position: relative;
  z-index: 1;
}
.hd-panel-title {
  color: var(--hs-dark-text);
  margin-bottom: 24px;
}
[data-theme="light"] .hd-custom-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f8f9fc 60%, #f1eeff 100%);
  border-color: var(--hs-border);
  box-shadow: var(--hs-shadow-md);
}
[data-theme="light"] .hd-custom-panel::before {
  background: radial-gradient(
    circle at center,
    rgba(109, 74, 255, 0.1),
    transparent 70%
  );
}
[data-theme="light"] .hd-custom-panel::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 108, 255, 0.35),
    transparent
  );
}
[data-theme="light"] .hd-panel-title {
  color: var(--hs-heading);
}
[data-theme="light"] .hs-dark-list li {
  color: var(--hs-text);
}

/* Animated "stack" illustration inside the custom-development panel. */
.hs-stack-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}
.hs-stack-core,
.hs-stack-layer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--hs-radius-md);
  font: 600 14px/1.4 var(--font-body);
  letter-spacing: 0.01em;
  border: 1px solid rgba(139, 108, 255, 0.36);
  background: rgba(23, 26, 33, 0.86);
  color: #eaf0ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.hs-stack-core {
  background-image: var(--hs-grad-primary);
  border-color: transparent;
  color: #fff;
}
[data-theme="light"] .hs-stack-core,
[data-theme="light"] .hs-stack-layer {
  background: var(--hs-bg-subtle);
  border-color: rgba(109, 74, 255, 0.25);
  color: var(--hs-text);
  box-shadow: var(--hs-shadow-sm);
}
[data-theme="light"] .hs-stack-core {
  background-image: var(--hs-grad-primary);
  border-color: transparent;
  color: #fff;
}
.hs-stack-visual span:nth-child(2) {
  margin-left: 18px;
}
.hs-stack-visual span:nth-child(3) {
  margin-left: 38px;
}
.hs-stack-visual span:nth-child(4) {
  margin-left: 58px;
}
.hs-stack-visual span:nth-child(5) {
  margin-left: 78px;
}
@media (max-width: 1199.98px) {
  .hs-stack-visual span:nth-child(3) {
    margin-left: 26px;
  }
  .hs-stack-visual span:nth-child(4) {
    margin-left: 40px;
  }
  .hs-stack-visual span:nth-child(5) {
    margin-left: 54px;
  }
}
@media (max-width: 991.98px) {
  .hs-stack-visual span:nth-child(2),
  .hs-stack-visual span:nth-child(3),
  .hs-stack-visual span:nth-child(4),
  .hs-stack-visual span:nth-child(5) {
    margin-left: 28px;
  }
}
[data-theme="dark"] .hd-section-custom {
  background: var(--hs-dark-bg);
}

.hd-faq {
  max-width: 900px;
}
.hd-faq h3 {
  margin: 0;
}

/* Final CTA: atmosphere comes from .hs-final-cta in premium.css. */
.hd-final {
  text-align: center;
}
.hd-final p {
  color: var(--hs-muted);
  max-width: 780px;
  margin: 24px auto;
}
.hd-final .hd-actions {
  justify-content: center;
}

@media (hover: hover) {
  .hd-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 74, 255, 0.25);
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
  }
}
@media (max-width: 1199.98px) {
  .hd-hero {
    padding-block: var(--hs-section-space);
  }
  .hd-hero h1 {
    font-size: 46px;
  }
  .hs-float-card--1 {
    left: -12px;
  }
  .hs-float-card--2 {
    right: -12px;
  }
}
@media (max-width: 991.98px) {
  .hs-float-card {
    display: none;
  }
  .hs-hero-visual {
    padding: 8px 0 0;
  }
}
@media (max-width: 767.98px) {
  .hd-hero {
    padding-block: 64px;
  }
  .hd-hero h1 {
    font-size: 38px;
  }
  .hd-lead,
  .hd-section-heading p {
    font-size: 17px;
  }
  .hd-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hd-actions .btn {
    width: 100%;
  }
}
@media (max-width: 420px) {
  /* Keep the approved long hero heading within three lines on narrow phones. */
  .hd-hero h1 {
    font-size: 29px;
    line-height: 1.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hd-card:hover,
  .hd-value:hover .hd-icon {
    transform: none;
  }
}
