/* ===============================
   Home Sections (Products & Demos)
   =============================== */

/* ===== Sections ===== */
.hd-section{
  margin-top: 18px;
  padding: 18px 0 6px;
}

.hd-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hd-section__title{
  margin: 0;
  font-size: 18px;
  color: rgba(243,244,246,.92);
  font-weight: 800;
}

.hd-section__more{
  text-decoration:none;
  font-size: 13px;
  color: rgba(255,211,106,.90);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,179,0,.14);
  background: rgba(255,179,0,.06);
}
.hd-section__more:hover{
  background: rgba(255,179,0,.10);
}

/* ===== Cards Layout ===== */
.hd-cards{
  display:grid;
  gap: 12px;
}

.hd-cards--3{
  grid-template-columns: repeat(3, 1fr);
}
.hd-cards--2{
  grid-template-columns: repeat(2, 1fr);
}

.hd-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  overflow: hidden;
  position: relative;
}

.hd-card::before{
  content:"";
  position:absolute;
  inset:-40px;
  background: radial-gradient(circle at 80% 20%, rgba(255,179,0,.16), transparent 55%);
  pointer-events:none;
}

.hd-card__inner{
  position: relative;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  min-height: 140px;
}

.hd-card__text{
  flex: 1;
  min-width: 0;
}

.hd-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(243,244,246,.95);
}

.hd-card__desc{
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(243,244,246,.78);
  max-width: 46ch;
}

/* media area */
.hd-card__media{
  width: 44%;
  max-width: 210px;
  display:flex;
  justify-content: flex-end;
  align-items: center;
}

.hd-card__mock{
  width: 100%;
  height: 96px;
  border-radius: 14px;
  border: 1px solid rgba(255,179,0,.18);
  background:
    radial-gradient(circle at 70% 30%, rgba(255,179,0,.25), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.hd-card__mock--lg{
  height: 120px;
}

/* buttons small */
.hd-btn--sm{
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* wide demo cards */
.hd-card--wide .hd-card__inner{
  min-height: 160px;
}

/* ===== Responsive ===== */
@media (max-width: 1000px){
  .hd-cards--3,
  .hd-cards--2{
    grid-template-columns: 1fr;
  }

  .hd-card__media{
    width: 38%;
    max-width: 180px;
  }
}

@media (max-width: 520px){
  .hd-card__inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .hd-card__media{
    width: 100%;
    max-width: none;
  }

  .hd-card__mock{
    height: 110px;
  }
}
