:root {
  --ink: #02030a;
  --panel: #0b1020;
  --panel-2: #11182b;
  --line: rgba(148, 163, 184, .22);
  --text: #f8fafc;
  --muted: #a9b4c7;
  --cyan: #2dd4ff;
  --blue: #38bdf8;
  --red: #ff2b2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 10px 20px 10px 0;
  background: #0a0a0a; border-bottom: 2px solid #fff;
}
.logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.logo { display: block; width: 180px; height: 50px; object-fit: contain; object-position: left center; background: transparent; }
nav { flex: 1; display: flex; justify-content: center; }
nav ul { display: flex; align-items: center; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
nav li { position: relative; }
nav a, .dropdown-toggle { border: 0; background: none; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; padding: 8px 0; white-space: nowrap; }
nav a:hover, nav a:focus-visible, .dropdown-toggle:hover, .dropdown-toggle:focus-visible, .active { color: var(--cyan); }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; }
.dropdown-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.dropdown.open .dropdown-toggle::after { transform: translateY(2px) rotate(225deg); }
.dropdown-menu { display: none; position: absolute; z-index: 80; top: calc(100% + 14px); left: 50%; min-width: 280px; padding: 10px; overflow: hidden; background: rgba(10,15,30,.98); border: 1px solid rgba(148,163,184,.25); border-radius: 14px; box-shadow: 0 22px 60px rgba(0,0,0,.58); transform: translateX(-50%); backdrop-filter: blur(14px); }
.dropdown-menu::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.dropdown-menu li, .dropdown-menu a { display: block; width: 100%; }
.dropdown-menu a { padding: 12px 14px; border-radius: 9px; color: #e7eef9; font-size: 14px; font-weight: 700; transition: color .16s ease, background .16s ease, transform .16s ease; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { color: #fff; background: rgba(45,212,255,.14); transform: translateX(3px); }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.header-cta { flex: 0 0 auto; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; animation: blink 1s infinite; }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: .25; } }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: #fff; background: #111827; }

.catalog-hero { padding: 72px 24px 58px; text-align: center; background: radial-gradient(circle at top, #162044, #02030a 68%); }
.eyebrow { color: var(--cyan); letter-spacing: .2em; font-size: 13px; font-weight: 800; }
.catalog-hero h1 { max-width: 900px; margin: 12px auto 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; }
.catalog-hero > p { max-width: 800px; margin: 0 auto; color: #cbd5e1; font-size: 18px; line-height: 1.65; }
.catalog-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); justify-content: center; gap: 12px; margin-top: 34px; }
.catalog-stats div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15,23,42,.74); }
.catalog-stats strong, .catalog-stats span { display: block; }
.catalog-stats strong { color: var(--cyan); font-size: 30px; }
.catalog-stats span { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.catalog-shell { max-width: 1480px; margin: 0 auto; padding: 56px 24px 80px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.catalog-heading h2 { margin: 8px 0 6px; font-size: 42px; }
.catalog-heading p { margin: 0; color: var(--muted); }
.source-link { color: var(--cyan); font-weight: 700; text-decoration: none; }
.catalog-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.catalog-controls label { display: grid; gap: 8px; color: #cbd5e1; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-controls input, .catalog-controls select { width: 100%; padding: 13px 14px; color: #fff; background: #050816; border: 1px solid #27324a; border-radius: 10px; outline: none; }
.catalog-controls input:focus, .catalog-controls select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45,212,255,.12); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 28px; }
.filter-chip { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: #dbeafe; background: #0a0f1e; cursor: pointer; }
.filter-chip:hover, .filter-chip.selected { color: #001018; background: var(--cyan); border-color: var(--cyan); }
.filter-chip small { margin-left: 5px; opacity: .72; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #11182b, #090d18); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.product-image-wrap { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; background: #f8fafc; }
.product-image { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 18px; }
.product-kicker { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.sku { color: #7f8aa0; font-size: 12px; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.product-details div { min-width: 0; padding: 9px; border-radius: 10px; background: rgba(2,6,23,.54); }
.product-details dt { color: #7f8aa0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.product-details dd { overflow: hidden; margin: 4px 0 0; color: #dce6f6; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; }
.quote-button { margin-top: auto; padding: 12px 16px; border: 0; border-radius: 999px; color: #001018; background: linear-gradient(90deg, var(--cyan), var(--blue)); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.quote-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.empty-state { padding: 42px; border: 1px dashed #36506a; border-radius: 18px; text-align: center; background: #08101c; }
.empty-state h3 { margin-top: 0; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--cyan); font-weight: 800; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 28px; }
.load-more { padding: 13px 24px; border: 1px solid var(--cyan); border-radius: 999px; color: var(--cyan); background: transparent; font-weight: 800; cursor: pointer; }
.load-more:hover { color: #001018; background: var(--cyan); }

.quote-dialog { width: min(680px, calc(100% - 28px)); padding: 0; border: 1px solid #334155; border-radius: 20px; color: #fff; background: #0b1020; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.quote-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.quote-card { position: relative; padding: 30px; }
.quote-card h2 { margin: 9px 0 8px; font-size: 34px; }
.quote-card > p { color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; color: #fff; background: transparent; font-size: 30px; cursor: pointer; }
.quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-fields label { display: grid; gap: 7px; color: #cbd5e1; font-size: 12px; font-weight: 800; }
.quote-fields .full { grid-column: 1 / -1; }
.quote-fields input, .quote-fields textarea { width: 100%; padding: 12px; color: #fff; background: #050816; border: 1px solid #334155; border-radius: 9px; }
.prototype-note { padding: 12px; border-radius: 10px; background: rgba(45,212,255,.08); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.secondary-button, .primary-button { padding: 12px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; }
.secondary-button { border: 1px solid #475569; color: #fff; background: transparent; }
.primary-button { border: 0; color: #001018; background: var(--cyan); }

.site-footer { display: grid; justify-items: center; gap: 9px; padding: 36px 20px; border-top: 1px solid #fff; color: #a9b4c7; text-align: center; background: #000; }
.site-footer img { width: 220px; height: 64px; object-fit: contain; background: transparent; }
.site-footer p { margin: 0; }
.site-footer div { font-size: 12px; }

@media (max-width: 1180px) {
  .site-header { flex-wrap: wrap; padding-left: 14px; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: 0; }
  nav { display: none; flex-basis: 100%; order: 4; }
  nav.open { display: block; }
  nav > ul { align-items: flex-start; flex-direction: column; gap: 4px; padding: 10px 0; }
  .dropdown-menu { position: static; min-width: 0; margin: 6px 0 8px 12px; border-radius: 10px; box-shadow: none; transform: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .catalog-stats { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-controls { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .logo { width: 145px; }
  .header-cta { display: none; }
  .catalog-hero { padding-top: 52px; }
  .catalog-shell { padding-inline: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .quote-fields { grid-template-columns: 1fr; }
  .quote-fields .full { grid-column: auto; }
  .dialog-actions { align-items: stretch; flex-direction: column; text-align: center; }
}
