/* ==========================================================================
   United Quartz — Precision Dark
   Design system: dark shell, glass panels, cyan accent, white product wells
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #060a13;
  --bg-2: #080d18;
  --surface: #0b1322;
  --surface-2: #0e1729;
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .06);
  --well: #f2f5f9;
  --well-line: #dde5ee;

  /* lines & text */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --line-cyan: rgba(125, 211, 252, .32);
  --text: #eaf1fb;
  --muted: #9aa8bd;
  --dim: #7d92a8;

  /* accents */
  --cyan: #7dd3fc;
  --electric: #22d3ee;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --magenta: #f0abfc;
  --brand: #01baba;
  --green: #34d399;
  --amber: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(92deg, #7dd3fc, #a78bfa 55%, #f0abfc);
  --grad-soft: linear-gradient(120deg, rgba(125, 211, 252, .16), rgba(167, 139, 250, .13) 55%, rgba(240, 171, 252, .1));

  /* geometry */
  --wrap: 1320px;
  --wrap-wide: 1320px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header: 70px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, .9);

  /* type */
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --h1: clamp(2.15rem, 4.4vw, 3.5rem);
  --h2: clamp(1.55rem, 2.6vw, 2.3rem);
  --h3: clamp(1.05rem, 1.5vw, 1.28rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(167, 139, 250, .08), transparent 60%),
    var(--bg);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.18;
  letter-spacing: -.015em;
  font-weight: 750;
  color: var(--text);
}
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.lead { font-size: 1.04rem; line-height: 1.75; color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(96deg, #67e8f9, #22d3ee 45%, #38bdf8);
  color: #04222c;
  box-shadow: 0 12px 30px -14px rgba(34, 211, 238, .75);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(34, 211, 238, .85); }
.btn-dark { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: rgba(255, 255, 255, .13); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-cyan); color: var(--cyan); background: rgba(125, 211, 252, .06); }
.btn-light { background: var(--text); color: #0a1622; }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 9px 16px; font-size: .82rem; border-radius: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: gap .2s ease;
}
.link-arrow:hover { gap: 14px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: .74rem;
  letter-spacing: .06em;
  font-family: var(--mono);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 36px; }
.topbar a:hover { color: var(--cyan); }
.topbar .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar strong { color: var(--text); font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: rgba(6, 10, 19, .82);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: .95rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text); }
.brand-sub { font-family: var(--mono); font-size: .55rem; letter-spacing: .21em; color: var(--dim); margin-top: 4px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 9px;
  transition: color .16s, background .16s;
}
.nav > a:hover, .nav-item > button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav > a.is-active { color: var(--cyan); }
.nav .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-item { position: relative; }
.nav-item:hover .caret { transform: rotate(225deg) translateY(-2px); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 660px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #0a1120;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: block; padding: 10px 12px; border-radius: 10px; transition: background .15s; }
.mega a:hover { background: rgba(255, 255, 255, .06); }
.mega .m-name { display: block; font-size: .87rem; font-weight: 600; color: var(--text); }
.mega .m-sub { font-size: .74rem; color: var(--dim); }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.wl-link {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.wl-link svg { width: 17px; height: 17px; }
.wl-link:hover { border-color: var(--line-cyan); color: var(--cyan); }
.wl-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--electric);
  color: #04222c;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.search-mini {
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .15s, box-shadow .15s;
}
.search-mini:focus-within { border-color: var(--line-cyan); box-shadow: 0 0 0 3px rgba(125, 211, 252, .1); }
.search-mini input {
  width: 140px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: .82rem;
  color: var(--text);
}
.search-mini input::placeholder { color: var(--dim); }
.search-mini button { width: 32px; height: 100%; border: 0; background: none; color: var(--dim); display: grid; place-items: center; cursor: pointer; }
.search-mini button:hover { color: var(--cyan); }
.search-mini button svg { width: 15px; height: 15px; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.6px; background: var(--text); margin: 4px auto; transition: transform .2s, opacity .2s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 60% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 0; padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 18px; color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.05rem; line-height: 1.8; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--dim); }

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14% -8% -18%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent 72%);
  filter: blur(12px);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--well);
  box-shadow: var(--shadow);
}
.hero-chip {
  position: absolute;
  z-index: 2;
  left: -16px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #0a1120;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  font-size: .78rem;
  line-height: 1.35;
}
.hero-chip b { font-family: var(--mono); font-size: 1.1rem; color: var(--cyan); }
.hero-chip span { color: var(--muted); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.hero-stats div { padding: 26px 22px 30px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.hero-stats span { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-sm { padding: 60px 0; }
.section-tint { background: rgba(255, 255, 255, .014); }
.section-dark { background: var(--bg-2); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { margin-bottom: 0; }
.section-index {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--dim);
  margin-right: 14px;
  vertical-align: middle;
}

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--line-cyan); box-shadow: var(--shadow-card); }
.cat-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--well); }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-body { padding: 22px 22px 24px; }
.cat-card-body h3 { font-size: 1.08rem; margin-bottom: 8px; color: #fff; }
.cat-card-body p { font-size: .875rem; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.cat-card .count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 10, 19, .82);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--cyan);
}

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.prod-card:hover { transform: translateY(-3px); border-color: var(--line-cyan); box-shadow: var(--shadow-card); }
.prod-card-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--well); }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-card-img img { transform: scale(1.035); }
.prod-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.prod-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.prod-sku { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.prod-card h3 { font-size: .95rem; line-height: 1.35; margin: 4px 0 8px; color: var(--text); }
.prod-card h3 a:hover { color: var(--cyan); }
.prod-card .tagline { flex: 1; margin: 0 0 14px; font-size: .78rem; line-height: 1.55; color: var(--dim); }
.prod-card .spec-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

.wl-heart {
  width: 26px; height: 26px; padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .16s, border-color .16s, color .16s, background .16s;
}
.wl-heart svg { width: 13px; height: 13px; }
.wl-heart:hover { border-color: var(--line-cyan); color: var(--cyan); }
.wl-heart.is-on { background: rgba(125, 211, 252, .12); border-color: var(--line-cyan); color: var(--cyan); }
.wl-heart.is-on svg { fill: currentColor; }

/* ---------- process / capability grid ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process div { padding: 30px 26px 32px; background: var(--surface); }
.process b { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--cyan); }
.process h3 { font-size: 1.02rem; margin-bottom: 8px; color: #fff; }
.process p { margin: 0; font-size: .85rem; line-height: 1.65; color: var(--muted); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--well); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 82% 10%, rgba(34, 211, 238, .16), transparent 65%),
              radial-gradient(600px 300px at 10% 100%, rgba(167, 139, 250, .12), transparent 65%);
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 66px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 56ch; color: var(--muted); }

/* ---------- page head / breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span.sep { opacity: .45; }

.page-head { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); padding: 24px 0 56px; }
.page-head h1 { max-width: 22ch; margin-bottom: 14px; }
.page-head .lead { margin-bottom: 0; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 56px; align-items: start; padding: 44px 0 20px; }
.gallery-main { max-width: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--well); }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; max-width: 480px; }
.gallery-thumbs button { padding: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--well); cursor: pointer; }
.gallery-thumbs button.is-active { border-color: var(--electric); box-shadow: 0 0 0 1px var(--electric); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; color: #fff; }
.pdp-tagline { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.badge {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-accent { border-color: var(--line-cyan); background: rgba(125, 211, 252, .1); color: var(--cyan); }

.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.quick-specs div { padding: 14px 16px; background: var(--surface); }
.quick-specs span { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.quick-specs b { font-size: .92rem; font-weight: 600; color: var(--text); }

.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wishlist-btn svg { width: 15px; height: 15px; }
.wishlist-btn.is-on { border-color: var(--line-cyan); color: var(--cyan); }
.wishlist-btn.is-on svg { fill: currentColor; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; font-weight: 500; color: var(--dim); background: rgba(255, 255, 255, .02); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--text); }

.tab-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: start; padding: 64px 0; }
.aside-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.aside-card h3 { font-size: 1rem; color: #fff; }
.aside-card p { font-size: .85rem; color: var(--muted); }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.app-list li { position: relative; padding-left: 18px; font-size: .87rem; color: var(--muted); }
.app-list li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); }

.prose h2 { margin-top: 34px; font-size: 1.45rem; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--muted); }

/* ---------- filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 34px; }
.filter-bar a {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  color: var(--muted);
  transition: all .16s;
}
.filter-bar a:hover { border-color: var(--line-cyan); color: var(--cyan); }
.filter-bar a.is-active { background: var(--electric); border-color: var(--electric); color: #04222c; font-weight: 700; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--line-cyan); box-shadow: 0 0 0 3px rgba(125, 211, 252, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .74rem; color: var(--dim); }

.alert { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; font-size: .9rem; }
.alert-ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #7ff0c0; }
.alert-err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: #ffb3b3; }

/* ---------- info grid ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-grid h4 { margin-bottom: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.info-grid p { margin: 0; font-size: .92rem; color: var(--muted); }
.info-grid a { color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer { background: #04070e; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.site-footer a { color: #c5d3da; }
.site-footer a:hover { color: var(--cyan); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 54px; }
.footer-top h4 { margin-bottom: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; line-height: 1.75; color: var(--dim); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--dim); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.pagination a:hover { border-color: var(--line-cyan); color: var(--cyan); }
.pagination .is-current { background: var(--electric); border-color: var(--electric); color: #04222c; font-weight: 700; }
.pagination .is-disabled { opacity: .35; }
.pagination .is-gap { border: 0; min-width: 18px; }
.pagination a.is-wide { padding: 0 14px; }

.search-count { margin: 0 0 22px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--dim); }
.search-snip { margin: 0 0 10px; font-size: .76rem; line-height: 1.55; color: var(--muted); }
.search-snip mark { background: rgba(125, 211, 252, .18); color: var(--text); padding: 0 1px; border-radius: 2px; }

/* ---------- wishlist ---------- */
.wishlist-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wishlist-total { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--dim); }

/* ---------- quotation modal ---------- */
.qm { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 16px; overflow-y: auto; }
.qm[hidden] { display: none; }
.qm-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 10, .78); backdrop-filter: blur(4px); }
.qm-dialog {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 720px;
  padding: 30px 34px;
  background: #0a1120;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: qmIn .2s ease-out;
}
@keyframes qmIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qm-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--dim); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.qm-close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.qm-title { margin: 0 40px 22px 0; font-size: 1.25rem; font-weight: 600; color: var(--text); }
.qm-title .qm-product { color: var(--cyan); }
.qm-form { display: grid; gap: 16px; }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qm-field { display: flex; flex-direction: column; gap: 6px; }
.qm-field > span { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.qm-field > span i { color: var(--electric); font-style: normal; }
.qm-field input[type="text"], .qm-field input[type="email"], .qm-field input[type="tel"],
.qm-field select, .qm-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  transition: border-color .15s, box-shadow .15s;
}
.qm-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.qm-field input:focus, .qm-field select:focus, .qm-field textarea:focus { outline: none; border-color: var(--line-cyan); box-shadow: 0 0 0 3px rgba(125, 211, 252, .12); }
.qm-field em { font-style: normal; font-size: .72rem; color: var(--dim); }
.qm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qm-status { font-size: .86rem; line-height: 1.5; }
.qm-status.is-ok { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #7ff0c0; }
.qm-status.is-err { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #ffb3b3; }
.qm-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; }

/* ---------- file inputs ---------- */
input[type="file"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  font-family: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
input[type="file"]:hover { border-color: var(--line-cyan); }
input[type="file"]:focus { outline: none; border-color: var(--line-cyan); box-shadow: 0 0 0 3px rgba(125, 211, 252, .12); }
input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 11px 18px;
  border: 0;
  border-right: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, .12); }

/* ---------- misc ---------- */
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- layout helpers used by the templates ---------- */
.cat-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.two-col { display: grid; gap: 64px; align-items: start; }
.contact-grid { grid-template-columns: 1fr 1.2fr; }
.quote-grid { grid-template-columns: 1.25fr .75fr; }
.cap-strip { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 1080px) {
  .cat-head { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid, .quote-grid { grid-template-columns: 1fr; }
  .cap-strip { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .cap-strip { grid-template-columns: 1fr !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 520px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .tab-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cat-head, .contact-grid, .quote-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .cap-strip { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 980px) {
  .search-mini input { width: 92px; }
  .nav { gap: 0; }
}

@media (max-width: 860px) {
  .header-cta .search-mini { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 2px;
    overflow-y: auto;
    background: #070c16;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav-item > button { justify-content: space-between; padding: 14px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; border: 0; box-shadow: none; padding: 4px 0 8px 10px; background: transparent; }
  .nav-item.is-open .mega { display: grid; }
  .mega .mega-foot { display: none; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .page-head h1 { max-width: none; }
  .qm-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar-left { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .cat-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; }
  .quick-specs { grid-template-columns: 1fr; }
  .cap-strip { grid-template-columns: 1fr !important; }
  .qm-dialog { padding: 24px 18px; }
}


/* ---------- product summary & FAQ ---------- */
.pdp-summary {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  border-left: 2px solid var(--line-cyan);
  padding-left: 18px;
  margin-bottom: 22px;
}

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.faq-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--cyan);
  transition: transform .2s ease;
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-answer {
  padding: 0 22px 20px;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}
.faq-item[open] summary { border-bottom: 1px solid var(--line); }


/* --- product spec presentation (grouped blocks + at-a-glance chips) --- */
.pdp-glance{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:14px 0 0;padding:0}
.pdp-glance li{font-size:.74rem;letter-spacing:.04em;text-transform:uppercase;color:#c7d6ea;
  border:1px solid rgba(125,211,252,.28);border-radius:999px;padding:5px 11px;background:rgba(125,211,252,.06)}
.spec-blocks{display:grid;gap:18px;margin-bottom:22px}
.spec-block h3{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#8ba0b8);
  margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
.spec-block .spec-table{margin:0}
.spec-table-order{margin-top:6px}
@media (min-width:900px){.spec-blocks{grid-template-columns:1fr 1fr}.spec-blocks .spec-block:first-child{grid-column:1/-1}}


/* --- material grade table (home) --- */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px}
.grade-table{width:100%;min-width:640px;border-collapse:separate;border-spacing:0;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden}
.grade-table th,.grade-table td{padding:16px 20px;text-align:left;font-size:.92rem;line-height:1.5;vertical-align:middle}
.grade-table thead th{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#7dd3fc;
  background:rgba(125,211,252,.07);border-bottom:1px solid rgba(255,255,255,.08);font-weight:600}
.grade-table tbody th{font-weight:700;color:#fff;letter-spacing:.04em;font-size:.98rem}
.grade-table tbody td{color:#c7d6ea;border-bottom:1px solid rgba(255,255,255,.05)}
.grade-table tbody tr:last-child th,.grade-table tbody tr:last-child td{border-bottom:0}
.grade-table tbody tr:hover td,.grade-table tbody tr:hover th{background:rgba(125,211,252,.04)}
.grade-note{margin-top:14px;font-size:.78rem;color:var(--muted,#8ba0b8);letter-spacing:.01em}
@media (max-width:720px){.grade-table th,.grade-table td{padding:13px 14px;font-size:.85rem}}


/* --- family technical tags --- */
.cat-card-tech{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.cat-card-tech li{font-size:.68rem;letter-spacing:.03em;color:#9fb3c8;border:1px solid rgba(255,255,255,.1);
  border-radius:6px;padding:3px 8px;background:rgba(255,255,255,.03)}
.cat-tech{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.cat-tech li{font-size:.8rem;color:#c7d6ea;border:1px solid rgba(125,211,252,.24);border-radius:8px;
  padding:8px 12px;background:rgba(125,211,252,.05)}
.cat-tech li span{display:block;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:#7dd3fc;margin-bottom:3px}


/* --- family schematic fallback --- */
.gallery-note{margin:10px 0 0;font-size:.76rem;color:var(--muted,#8ba0b8);letter-spacing:.01em}
.gallery-main img[src$=".svg"]{padding:34px;box-sizing:border-box;background:
  radial-gradient(120% 120% at 50% 0%,rgba(125,211,252,.08),transparent 60%)}
.wishlist-rfq{margin:34px 0 8px;padding:26px;border:1px solid rgba(255,255,255,.1);border-radius:14px;
  background:rgba(255,255,255,.02);display:grid;gap:14px}
.wishlist-rfq h2{font-size:1.05rem;margin:0}
.wishlist-rfq label{display:grid;gap:6px;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:#8ba0b8}
.wishlist-rfq input,.wishlist-rfq textarea{width:100%;padding:11px 13px;border-radius:9px;
  border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.25);color:#e6f0fa;font:inherit;font-size:.92rem}
.wishlist-rfq input:focus,.wishlist-rfq textarea:focus{outline:none;border-color:rgba(125,211,252,.6)}
.wishlist-rfq-grid{display:grid;gap:14px;grid-template-columns:1fr 1fr}
.wishlist-rfq-actions{display:flex;gap:10px;flex-wrap:wrap}
.wishlist-rfq-status{margin:0;font-size:.85rem;color:#a78bfa;min-height:1.2em}
@media (max-width:640px){.wishlist-rfq-grid{grid-template-columns:1fr}}




/* --- motion: inherited animation classes from the scene --- */
@keyframes uqRay { 0%,100%{opacity:.25} 50%{opacity:.75} }
@keyframes uqSpin { to { transform: rotate(360deg) } }
@keyframes uqFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes uqGlow { 0%,100%{opacity:.55} 50%{opacity:1} }
.hero-scene .ray{animation:uqRay 9s ease-in-out infinite;animation-delay:var(--del,0s)}
.hero-scene .spin{animation:uqSpin 48s linear infinite;transform-box:fill-box;transform-origin:center}
.hero-scene .mote{animation:uqFloat 7s ease-in-out infinite}
.hero-scene .mote:nth-of-type(2n){animation-duration:9s;animation-delay:-2s}
.hero-scene .pglow,.hero-scene .caustic{animation:uqGlow 6s ease-in-out infinite}
.hero-scene .part{transition:opacity .3s}
@media (prefers-reduced-motion: reduce){
  .hero-scene .ray,.hero-scene .spin,.hero-scene .mote,.hero-scene .pglow,.hero-scene .caustic{animation:none}
}
/* rail progress */
.hero-rail::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;
  background:linear-gradient(90deg,#7dd3fc,#a78bfa);opacity:.85}
.hero-rail.is-playing::after{animation:uqRailProgress 7s linear infinite}
@keyframes uqRailProgress{from{width:0}to{width:100%}}


/* --- wide shell, comfortable measure --- */
.prose p, .prose li, .pdp-summary, .lead{max-width:72ch}
.section-head p.lead{max-width:68ch}
.pdp-summary{max-width:76ch}
.admin-wrap,.admin-main{max-width:none}
@media (max-width:1400px){:root{--wrap:1240px}}
@media (max-width:1200px){:root{--wrap:1120px}}
@media (max-width:900px){:root{--wrap:100%}}


/* --- use the extra width on wide screens --- */
@media (min-width:1500px){
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  .prod-grid{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:1700px){
  .prod-grid{grid-template-columns:repeat(5,1fr)}
}
@media (max-width:1100px){
  .cat-grid{grid-template-columns:repeat(2,1fr)}
}





/* table headers for multi-column tables (capabilities, grades) */
.spec-table thead th{width:auto;background:rgba(125,211,252,.07);color:var(--text);
  font-weight:600;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
  border-bottom:1px solid var(--line)}
.spec-table thead th:first-child{width:24%}
