/* ── Hardware Page Styles ─────────────────────────────────────────────────── */

.nav-active { color: var(--accent) !important; }

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.hw-header {
  padding: 100px 24px 60px;
  border-bottom: 1px solid var(--border);
}
.hw-header-inner { max-width: 760px; margin: 0 auto; }
.hw-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #fff;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.hw-sub { font-size: 18px; color: var(--text-muted); line-height: 1.7; }

/* ── LEVEL CARDS ──────────────────────────────────────────────────────────── */
.hw-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 32px; overflow: hidden;
  border-top-width: 4px;
}
.hw-card--l0 { border-top-color: var(--text-muted); }
.hw-card--l1 { border-top-color: var(--green); }
.hw-card--l2 { border-top-color: var(--accent2); }
.hw-card--l3 { border-top-color: var(--accent3); }

.hw-card-header {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 28px 32px; border-bottom: 1px solid var(--border);
}
.hw-level-badge {
  font-family: var(--mono); font-weight: 900; font-size: 18px;
  padding: 6px 18px; border-radius: 30px; min-width: 64px; text-align: center;
}
.hw-l0 { background: rgba(107,118,137,0.2); color: var(--text-muted); }
.hw-l1 { background: rgba(63,185,80,0.2); color: var(--green); }
.hw-l2 { background: rgba(79,142,247,0.2); color: var(--accent2); }
.hw-l3 { background: rgba(185,124,249,0.2); color: var(--accent3); }

.hw-card-title-group { display: flex; align-items: center; gap: 14px; flex: 1; flex-wrap: wrap; }
.hw-card-title { font-size: 24px; font-weight: 800; color: #fff; }
.hw-cost { font-family: var(--mono); font-size: 14px; color: var(--text-muted); margin-left: auto; }

.hw-card-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 32px;
}
.hw-col { display: flex; flex-direction: column; gap: 24px; }
.hw-col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: -12px;
}

.hw-list { padding-left: 18px; color: var(--text); font-size: 14px; line-height: 2; }
.hw-list li { margin-bottom: 2px; }
.hw-list code {
  font-family: var(--mono); font-size: 12px; color: var(--accent2);
  background: var(--bg3); padding: 2px 6px; border-radius: 4px;
}
.hw-usecase { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Trust bars */
.hw-trust-grid { display: flex; flex-direction: column; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-label { font-size: 12px; color: var(--text-muted); width: 130px; flex-shrink: 0; }
.trust-bar {
  flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden;
}
.trust-fill {
  height: 100%; background: var(--green); border-radius: 3px;
  transition: width 0.6s ease;
}
.trust-fill--blue { background: var(--accent2); }
.trust-bar--25 .trust-fill { width: 25%; }
.trust-bar--30 .trust-fill { width: 30%; }
.trust-bar--40 .trust-fill { width: 40%; }
.trust-bar--50 .trust-fill { width: 50%; }
.trust-bar--65 .trust-fill { width: 65%; }
.trust-bar--70 .trust-fill { width: 70%; }
.trust-bar--75 .trust-fill { width: 75%; }
.trust-bar--80 .trust-fill { width: 80%; }
.trust-bar--90 .trust-fill { width: 90%; }
.trust-bar--95 .trust-fill { width: 95%; }
.trust-bar--98 .trust-fill { width: 98%; }
.trust-val { font-size: 11px; color: var(--text-muted); width: 90px; text-align: right; }

/* Parts list */
.hw-parts-list { display: flex; flex-direction: column; gap: 16px; }
.hw-part { display: flex; align-items: flex-start; gap: 14px; }
.hw-part-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.hw-part-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.hw-part-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Code example */
.hw-code-example {
  border-top: 1px solid var(--border); padding: 24px 32px;
  background: var(--bg);
}
.hw-code-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
}
.hw-code {
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--text); white-space: pre; overflow-x: auto;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px;
}

/* ── BUYING GUIDE ─────────────────────────────────────────────────────────── */
.buy-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.buy-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.buy-table th {
  text-align: left; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); padding: 10px 16px;
}
.buy-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(30,45,61,0.5);
  color: var(--text); vertical-align: middle;
}
.buy-table td:nth-child(4) { font-family: var(--mono); color: var(--green); font-weight: 600; }
.buy-table td:last-child { color: var(--text-muted); font-size: 13px; }
.buy-table code { font-family: var(--mono); font-size: 12px; color: var(--accent2); }
.buy-table a { color: var(--accent2); }
.buy-total td { font-weight: 700; color: #fff; border-top: 2px solid var(--border); }

.buy-skip {
  background: rgba(240,180,41,0.08); border: 1px solid rgba(240,180,41,0.2);
  border-radius: 10px; padding: 16px 20px;
  font-size: 14px; color: var(--text); line-height: 1.6;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .hw-card-body { grid-template-columns: 1fr; gap: 24px; }
  .hw-card-header { padding: 20px; }
  .hw-card-body { padding: 20px; }
  .hw-code-example { padding: 20px; }
}
