/* ═══════════════════════════════════════
   HELIA — hardware.css
   Hardware Shop Section (#S-HW)
═══════════════════════════════════════ */

/* ── SECTION ── */
#S-HW {
  padding: 40px 44px 60px;
  margin-top: -80px;
  background: transparent;
  position: relative;
  z-index: 2;
}
.HW-IN {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── HEADER ── */
.HW-HEAD {
  margin-bottom: 32px;
}
.HW-EY {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--m2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.HW-EY::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--m2);
}
.HW-TI {
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 10px;
}
.HW-TI-G {
  color: var(--p1);
}
.HW-SU {
  font-size: 16px;
  color: var(--m);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ── FILTER BAR ── */
.HW-FILT {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.HW-FB {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--c4);
  background: transparent;
  color: var(--m);
  cursor: pointer;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}
.HW-FB:hover {
  border-color: var(--k);
  color: var(--k);
}
.HW-FB.on {
  background: var(--k);
  border-color: var(--k);
  color: var(--c);
}

/* ── PRODUCT GRID ── */
.HW-GRID {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ── PRODUCT CARD — slim, scannable ── */
.HW-CARD {
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(200,200,200,.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, border-color .3s;
  position: relative;
}
.HW-CARD:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
  border-color: rgba(139,92,246,.12);
}
.HW-CARD.hw-hidden {
  display: none;
}

/* Card image area — shorter */
.HW-IMG {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.HW-IMG.hw-dark {
  background: #111;
}
.HW-IMG.hw-light {
  background: #f0ece4;
}

/* LED glow visual for Helia servers */
.HW-VIS {
  position: relative;
  width: 64px;
  height: 80px;
}
.HW-VIS-BOX {
  width: 64px;
  height: 80px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  position: relative;
}
.HW-VIS-LED {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 10px;
}
.HW-VIS-LED:nth-child(1) { top: 16px; background: var(--ok); box-shadow: 0 0 12px rgba(62, 122, 80, .6); }
.HW-VIS-LED:nth-child(2) { top: 30px; background: #B8924A; box-shadow: 0 0 12px rgba(184, 146, 74, .5); }
.HW-VIS-LED:nth-child(3) { top: 44px; background: var(--p1); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
.HW-VIS-LINES {
  position: absolute;
  right: 12px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.HW-VIS-LINE {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .06);
  border-radius: 1px;
}

/* Server glow */
.HW-IMG.hw-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, .15) 0%, transparent 70%);
  pointer-events: none;
}

/* Third-party product icon placeholder */
.HW-ICON {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--M);
  font-size: 10px;
  color: var(--m);
  letter-spacing: 1px;
  font-weight: 600;
}

/* Service icon */
.HW-SVC-ICON {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--M);
  font-size: 16px;
  color: var(--m);
}

/* Badge */
.HW-BADGE {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--M);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.HW-BADGE.hw-helia {
  background: rgba(184, 146, 74, .12);
  color: #8B6B32;
  border: 1px solid rgba(184, 146, 74, .2);
}
.HW-BADGE.hw-best {
  background: rgba(220, 50, 50, .08);
  color: #c0392b;
  border: 1px solid rgba(220, 50, 50, .15);
}
.HW-BADGE.hw-ent {
  background: rgba(139, 92, 246, .08);
  color: var(--p1);
  border: 1px solid rgba(139, 92, 246, .15);
}
.HW-BADGE.hw-new {
  background: rgba(62, 122, 80, .08);
  color: var(--ok);
  border: 1px solid rgba(62, 122, 80, .15);
}
.HW-BADGE.hw-max {
  background: rgba(12, 11, 8, .06);
  color: var(--k);
  border: 1px solid rgba(12, 11, 8, .1);
}

/* Card body — compact */
.HW-BODY {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.HW-CAT {
  font-family: var(--M);
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--m2);
  margin-bottom: 4px;
}
.HW-NAME {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.2;
  color: var(--k);
  margin-bottom: 8px;
}
.HW-DESC { display: none; }

/* Spec pills — smaller */
.HW-SPECS {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.HW-SPEC {
  font-family: var(--M);
  font-size: 8px;
  letter-spacing: .3px;
  padding: 3px 7px;
  background: rgba(244,242,236,.5);
  border: 1px solid rgba(200,200,200,.2);
  border-radius: 100px;
  color: var(--m);
  white-space: nowrap;
}

/* Price + CTA row */
.HW-BOT {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(200,200,200,.2);
}
.HW-PRICE {
  font-size: 15px;
  font-weight: 800;
  color: var(--k);
  letter-spacing: -.5px;
}
.HW-PSUB {
  font-family: var(--M);
  font-size: 7px;
  color: var(--m2);
  letter-spacing: .5px;
}
.HW-CTA {
  font-family: var(--M);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--k);
  color: var(--c);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  border-radius: 6px;
  white-space: nowrap;
}
.HW-CTA:hover {
  background: var(--p1);
}

/* ── MORE BUTTON ── */
.HW-MORE {
  display: block;
  margin: 28px auto 0;
  font-family: var(--M);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--c4);
  color: var(--m);
  cursor: pointer;
  border-radius: 100px;
  transition: all .25s;
}
.HW-MORE:hover {
  border-color: var(--k);
  color: var(--k);
}
.HW-MORE.hw-hide {
  display: none;
}

/* ── TRUST FOOTER ── */
.HW-FOOT {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.HW-TRUST {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.HW-TI2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--M);
  font-size: 10px;
  color: var(--m);
  letter-spacing: .3px;
}
.HW-TI2::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.HW-TI2.hw-ok::before { background: var(--ok); }
.HW-TI2.hw-gld::before { background: #B8924A; }
.HW-TI2.hw-pur::before { background: var(--p1); }
.HW-TI2.hw-k::before { background: var(--k); }
.HW-FOOT-LINK {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--m);
  text-decoration: none;
  transition: color .2s;
}
.HW-FOOT-LINK:hover {
  color: var(--k);
}

/* ── SCROLL REVEAL for cards ── */
.HW-CARD.R {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1);
}
.HW-CARD.R.V {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .HW-GRID {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .HW-GRID {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #S-HW {
    padding: 80px 20px 60px;
  }
  .HW-GRID {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .HW-IMG {
    height: 120px;
  }
  .HW-NAME {
    font-size: 14px;
  }
  .HW-DESC {
    font-size: 12px;
  }
  .HW-BOT {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .HW-CTA {
    width: 100%;
    text-align: center;
  }
  .HW-FOOT {
    flex-direction: column;
    align-items: flex-start;
  }
  .HW-TRUST {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .HW-GRID {
    grid-template-columns: 1fr;
  }
  .HW-FILT {
    gap: 6px;
  }
  .HW-FB {
    font-size: 9px;
    padding: 7px 14px;
  }
}
