/* homepage */

/* ---------- top warehouse banner ---------- */
.hv {
  background: #14161a;
  color: #fff;
  padding: 34px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: end;
  margin-bottom: 18px;
}

.hv-eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffb066;
}

.hv-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: #fff;
}

.hv-lead {
  margin: 0;
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.6;
  color: #c6ccd3;
}

.hv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding-bottom: 4px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #aeb6bf;
}

.hv-stats b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hv-figure {
  margin: 0;
}

.hv-img {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 500px);
  object-fit: cover;
  object-position: center bottom;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .38);
}

.hv-caption {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: .03em;
  color: #98a1ab;
}

.hv-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.hv-families {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hv-families a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.hv-families a:hover,
.hv-families a:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #14161a;
  transform: translateY(-1px);
}

.hv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hv-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
  background: transparent;
}

.hv-actions .btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #14161a;
}

@media (max-width: 900px) {
  .hv-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hv-img {
    height: clamp(280px, 56vw, 420px);
  }
}

@media (max-width: 640px) {
  .hv {
    padding: 26px 0 24px;
  }

  .hv-img {
    height: auto;
    border-radius: 12px;
  }

  .hv-caption {
    font-size: 11px;
    line-height: 1.5;
  }

  .hv-foot {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-families a { transition: none; }
}

.hero {
  background:
    radial-gradient(1200px 420px at 78% -10%, rgba(245, 135, 10, .14), transparent 62%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 20px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 106, 5, .18);
}

.hero-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }

.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px 20px 8px;
}

.price-card h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.price-list { list-style: none; margin: 0; padding: 0; }

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.price-list li:last-child { border-bottom: 0; }

.price-list .pl-name { font-weight: 550; }

.price-list .pl-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.price-list .pl-price { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--brand-dark); white-space: nowrap; }

.market-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding: 14px 18px;
  background: var(--dark);
  color: #d6dbe1;
  border-radius: var(--radius);
  font-size: 14px;
}

.market-strip .ms-item { display: inline-flex; align-items: baseline; gap: 8px; }

.market-strip b { color: #fff; font-variant-numeric: tabular-nums; }

.market-strip .up { color: #f2b46a; font-size: 12px; }

.market-strip .strip-label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8f979f;
}

.trade-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.trade-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.trade-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.trade-list .tl-meta { font-size: 12px; color: var(--muted); }

.supplier-card { display: flex; flex-direction: column; gap: 10px; }

.supplier-card .sc-name { font-weight: 650; font-size: 15px; }

.supplier-card .sc-meta { font-size: 13px; color: var(--muted); }

/* ---------- producer directory (nine material families) ---------- */
.producer-lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 92ch;
  margin-bottom: 18px;
}

.producer-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.producer-card:hover {
  border-color: var(--brand);
  background: #fffdf9;
  box-shadow: var(--shadow-sm);
}

.producer-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
}

.producer-card:active { background: #fff7ea; }

.producer-card .pc-name { font-weight: 650; font-size: 14px; line-height: 1.3; }

.producer-card .pc-families {
  font-size: 12px;
  color: var(--brand-dark);
  letter-spacing: .02em;
  line-height: 1.5;
}

.producer-card .pc-meta { font-size: 12px; color: var(--muted); }

.producer-more { margin-top: 20px; }

.producer-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.producer-more > summary::-webkit-details-marker { display: none; }

.producer-more > summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.producer-more > summary:hover {
  border-color: var(--brand);
  background: #fffaf3;
  box-shadow: var(--shadow-sm);
}

.producer-more > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.producer-more[open] > summary {
  margin-bottom: 16px;
  border-style: solid;
  border-color: var(--brand);
}

.producer-more[open] > summary::after { content: "\2013"; }

.producer-foot { margin-top: 18px; }

.producer-foot a { color: var(--brand-dark); }

.producer-foot a:hover { text-decoration: underline; }

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- nine material families board ---------- */
.family-lead { gap: 18px; }

.family-lead-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(160deg, #fff 0%, #fffaf3 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.family-lead-card:hover {
  border-color: var(--line-strong);
  border-top-color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.family-lead-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.family-lead-card .fl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.family-lead-card .fl-code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.family-lead-card .fl-name { font-size: 15px; font-weight: 600; color: var(--ink-2); }

.family-lead-card .fl-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

.family-lead-card .fl-price {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
}

.family-lead-card .fl-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}

.family-rest { margin-top: 18px; }

.family-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.family-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.family-tile:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.family-tile .ft-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-dark);
}

.family-tile .ft-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }

.family-tile .ft-meta { margin-top: auto; font-size: 12px; color: var(--muted); }

.support-panel {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
}

.support-panel .sp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.support-panel h3 { font-size: 17px; margin: 0 0 4px; }

.support-panel p { margin: 0; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .family-lead-card:hover,
  .family-tile:hover { transform: none; }
}

.news-teaser { display: grid; gap: 14px; }

.news-teaser a { display: block; }

.news-teaser .nt-title { font-weight: 600; font-size: 15px; line-height: 1.4; }

.news-teaser .nt-meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.why-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.why-item h3 { font-size: 16px; }

.why-item p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

.why-item .why-index {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.cta-band {
  background: linear-gradient(120deg, #1b1f24 0%, #262b31 100%);
  color: #e7eaee;
  border-radius: var(--radius-lg);
  padding: 34px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.cta-band h2 { color: #fff; font-size: 24px; }

.cta-band p { color: #b9c0c8; margin-bottom: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .home-split,
  .cta-band { grid-template-columns: 1fr; }

  .hero h1 { font-size: 34px; }

  .why-grid { grid-template-columns: 1fr; }
}
