:root {
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-elevated: #111216;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #f5f5f7;
  --text-light-muted: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.14);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 980px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.5;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .product-card {
  transform: none !important;
}

body.modal-open .card-hover-brief {
  opacity: 0 !important;
  pointer-events: none !important;
}

[hidden] {
  display: none !important;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation & Apple Mega-Menu ---------- */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 48px;
  background: rgba(251, 251, 253, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand .brand-icon {
  width: 20px;
  height: 20px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #0071e3, #38bdf8);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-cat-btn {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.86;
  transition: background-color 0.2s var(--ease-apple), opacity 0.2s var(--ease-apple), color 0.2s var(--ease-apple);
  white-space: nowrap;
}

.nav-cat-btn:hover,
.nav-cat-btn.active {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
  color: var(--accent);
}

.nav-cat-btn.is-selected,
.nav-cat-btn.is-selected:hover {
  background: #1d1d1f;
  color: #ffffff;
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

body.is-authenticated #btn-open-rfq {
  display: none;
}

.nav-link-plain {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 5px 8px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link-plain:hover {
  color: var(--text-primary);
}

.nav-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.nav-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--text-primary);
  transition: background-color 0.2s, border-color 0.2s;
}

.nav-lang-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta-btn {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: var(--accent-hover);
}

.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-mobile-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* Mega Menu Curtain */
.mega-backdrop {
  position: fixed;
  inset: 48px 0 0 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-apple);
  z-index: 990;
}

.mega-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: rgba(251, 251, 253, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.26s var(--ease-apple), transform 0.28s var(--ease-apple);
  z-index: 999;
}

.mega-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 34px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: stretch;
}

.mega-cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mega-cat-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.45;
}

.mega-model-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mega-model-item {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.mega-model-item:hover,
.mega-model-item.active {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateX(3px);
}

.mega-model-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-model-item span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.mega-model-arrow {
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.mega-model-item:hover .mega-model-arrow,
.mega-model-item.active .mega-model-arrow {
  opacity: 1;
}

.mega-all-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 2px;
}

.mega-all-btn:hover {
  text-decoration: underline;
}

.mega-right {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mega-preview-media {
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-apple);
}

.mega-right:hover .mega-preview-media img {
  transform: scale(1.03);
}

.mega-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mega-hover-hint {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.mega-preview-info h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.mega-preview-brief {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.mega-preview-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mega-preview-highlights li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.mega-preview-actions {
  display: flex;
  gap: 10px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  overflow-y: auto;
  z-index: 998;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-cat-link {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.22s var(--ease-apple);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline-dark:hover {
  background: rgba(0, 113, 227, 0.08);
}

.btn-ghost {
  background: var(--bg-light);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: #e8e8ed;
}

.full-width {
  width: 100%;
}

.pill-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-muted {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow-light { color: #5ac8fa; }
.eyebrow-blue { color: var(--accent); }

/* ---------- Hero Sections ---------- */
.hero-dark {
  background: radial-gradient(circle at 50% 0%, #151a26 0%, #050608 70%);
  color: var(--text-light);
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto 38px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-display {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-light-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.hero-sub-dark {
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media-wrap {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.65);
}

.hero-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* ---------- Equipment Family Strip ---------- */
.family-strip-section {
  background: #fbfbfd;
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0 34px;
}

.strip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.strip-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.strip-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.family-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
}

.family-tile {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple), border-color 0.25s;
}

.family-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.35);
}

.family-tile img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg-light);
}

.family-tile-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.family-tile-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: 240px;
  background: rgba(29, 29, 31, 0.94);
  color: #f5f5f7;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
  z-index: 20;
}

.family-tile:hover .family-tile-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Light Hero & Split Grid ---------- */
.hero-light {
  background: var(--bg-light);
  padding: 80px 24px 48px;
  text-align: center;
}

.hero-light-media {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.hero-light-media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--bg-white);
}

.split-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 48px 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  min-height: 520px;
}

.split-dark {
  background: #0d0f14;
  color: var(--text-light);
}

.split-light {
  background: var(--bg-light);
  color: var(--text-primary);
}

.split-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.split-copy p {
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 18px;
  opacity: 0.84;
}

.split-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.link-arrow {
  font-size: 15px;
  font-weight: 500;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-light { color: #5ac8fa; }
.link-blue { color: var(--accent); }

.split-media {
  margin: 0 -10px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.45s var(--ease-apple);
}

.split-tile:hover .split-media img {
  transform: scale(1.03);
}

/* ---------- Interactive Equipment Catalog (Hover-to-Read Intro) ---------- */
.catalog-section {
  padding: 32px 0 64px;
  background: var(--bg-white);
}

.catalog-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.catalog-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.catalog-sub {
  font-size: 16.5px;
  color: var(--text-secondary);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s var(--ease-apple);
}

.filter-pill:hover {
  background: #e8e8ed;
}

.filter-pill.active {
  background: var(--text-primary);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  transition: transform 0.32s var(--ease-apple), box-shadow 0.32s var(--ease-apple);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.card-media {
  position: relative;
  height: 245px;
  background: #eceef2;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-apple);
}

.product-card:hover .card-media img {
  transform: scale(1.05);
}

.card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.card-hover-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-model {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-footer-hint {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* Frosted Hover Brief Panel — Smoothly slides/fades over the card on hover */
.card-hover-brief {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-apple), transform 0.3s var(--ease-apple);
  z-index: 5;
}

.product-card:hover .card-hover-brief,
.product-card:focus-within .card-hover-brief,
.product-card.is-revealed .card-hover-brief {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hover-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hover-brief-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.hover-brief-text {
  font-size: 13.8px;
  color: #3a3a3c;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hover-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.hover-highlights li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hover-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- Why TVETEdu Bento ---------- */
.why-section {
  background: var(--bg-light);
  padding: 84px 0;
}

.why-header {
  text-align: center;
  margin-bottom: 44px;
}

.why-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.why-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- RFQ Section ---------- */
.rfq-section {
  background: #0b0d12;
  color: var(--text-light);
  padding: 84px 0;
}

.rfq-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.rfq-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.rfq-sub {
  color: var(--text-light-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.rfq-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rfq-channel-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
}

.rfq-channel-item span {
  display: block;
  font-size: 12px;
  color: var(--text-light-muted);
  margin-bottom: 2px;
}

.rfq-channel-item strong {
  font-size: 15px;
  font-weight: 600;
}

.rfq-card {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rfq-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rfq-card input,
.rfq-card textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fbfbfd;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rfq-card input:focus,
.rfq-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.rfq-feedback {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.24);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 36px 0 42px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-cats button {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-cats button:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Spec Modal & Search Overlay ---------- */
.modal-overlay,
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.76);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-apple), visibility 0.22s var(--ease-apple);
  z-index: 2147483000;
}

.modal-overlay.open,
.search-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-sheet {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: #ffffff;
  border-radius: 24px;
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.36);
  padding: 32px;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e2e7;
}

.spec-modal-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.spec-modal-media {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.spec-modal-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spec-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.spec-modal-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.spec-brief {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.spec-subhead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 18px 0 10px;
}

.spec-table {
  border-top: 1px solid var(--border-light);
}

.spec-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.spec-row dt {
  font-weight: 600;
  color: var(--text-primary);
}

.spec-row dd {
  color: var(--text-secondary);
}

.spec-exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.spec-exp-list li {
  font-size: 13.5px;
  padding-left: 16px;
  position: relative;
}

.spec-exp-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Search Overlay */
.search-overlay {
  align-items: flex-start;
  padding-top: 72px;
}

.search-panel {
  background: #ffffff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  padding: 20px 24px 24px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.25);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
}

.modal-close-inline {
  font-size: 24px;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
}

.search-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}

.search-hit {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.18s;
}

.search-hit:hover {
  background: var(--bg-light);
}

.search-hit img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.search-hit strong {
  display: block;
  font-size: 14.5px;
}

.search-hit span {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ---------- Auth Nav, Welcome Modal, Message Board & Admin Inbox ---------- */
.nav-auth-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.nav-auth-btn:hover {
  background: rgba(0, 0, 0, 0.11);
}

.nav-badge-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-user-pill {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-sheet {
  max-width: 580px;
}

.auth-sheet-sm {
  max-width: 420px;
}

.auth-header {
  margin-bottom: 18px;
}

.auth-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.auth-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.auth-tab {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-apple);
}

.auth-tab.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fbfbfd;
  color: var(--text-primary);
  font-size: 14px;
}

.auth-form input:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.form-error {
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.28);
  color: #c62828;
  font-size: 13px;
  font-weight: 500;
}

.inline-link-btn {
  color: #5ac8fa;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
}

/* Logged-in Message Board & Admin Console inside #contact */
.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.board-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.inbox-card {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.inbox-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.inbox-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thread-item {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thread-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.thread-author {
  font-size: 15px;
  font-weight: 700;
}

.thread-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.status-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.status-open {
  background: rgba(255, 149, 0, 0.14);
  color: #b25e00;
}

.status-replied {
  background: rgba(52, 199, 89, 0.16);
  color: #167a32;
}

.thread-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1d1d1f;
  background: var(--bg-light);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.replies-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.reply-bubble {
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 13.8px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.reply-admin {
  background: rgba(0, 113, 227, 0.08);
  border-left: 3px solid var(--accent);
}

.reply-user {
  background: #f5f5f7;
  border-left: 3px solid #8e8e93;
}

.reply-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.reply-admin .reply-head {
  color: var(--accent);
}

.reply-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.reply-form textarea {
  flex: 1;
  min-width: 220px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fbfbfd;
  font-size: 13.5px;
  resize: vertical;
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 16px 18px;
}

.stat-box span {
  display: block;
  font-size: 12px;
  color: var(--text-light-muted);
  margin-bottom: 4px;
}

.stat-box strong {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-btn {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light-muted);
  background: rgba(255, 255, 255, 0.08);
}

.admin-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.btn-danger-ghost {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #c62828;
  background: rgba(255, 59, 48, 0.09);
}

.btn-danger-ghost:hover {
  background: rgba(255, 59, 48, 0.16);
}

.empty-inbox {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  color: var(--text-light-muted);
  font-size: 15px;
}

/* Light-surface styling for Inbox & Admin Modal */
.inbox-modal-sheet {
  max-width: 980px;
}

.inbox-modal-sheet .rfq-title {
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 32px);
}

.inbox-modal-sheet .rfq-sub {
  color: var(--text-secondary);
}

.inbox-modal-sheet .eyebrow-light {
  color: var(--accent);
}

.inbox-modal-sheet .btn-outline-light {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.16);
}

.inbox-modal-sheet .btn-outline-light:hover {
  background: var(--bg-light);
}

.inbox-modal-sheet .stat-box {
  background: var(--bg-light);
  border-color: var(--border-light);
}

.inbox-modal-sheet .stat-box span {
  color: var(--text-secondary);
}

.inbox-modal-sheet .stat-box strong {
  color: var(--text-primary);
}

.inbox-modal-sheet .admin-filter-btn {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.inbox-modal-sheet .admin-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.inbox-modal-sheet .thread-item {
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.inbox-modal-sheet .inbox-card {
  background: var(--bg-light);
}

.inbox-modal-sheet .empty-inbox {
  background: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link-plain {
    display: none;
  }
}

@media (max-width: 1024px) {
  .board-grid,
  .admin-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .family-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rfq-layout {
    grid-template-columns: 1fr;
  }
  .spec-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .split-grid,
  .product-grid,
  .why-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .family-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-tile-tooltip {
    display: none;
  }
  .mega-menu {
    display: none !important;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
