/* ============================================================
   Demo Site — B2B Components Supplier (Design Prototype)
   Palette: light orange + white / charcoal text / slate borders
   ============================================================ */
:root {
  --orange: #EA580C;
  --orange-hover: #C2410C;
  --orange-light: #FFF7ED;
  --orange-border: #FFEDD5;
  --orange-subtle: #FED7AA;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --ok-bg: #F0FDF4; --ok: #15803D; --ok-line: #BBF7D0;
  --info-bg: #EFF6FF; --info: #1D4ED8; --info-line: #BFDBFE;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(.22,.9,.28,1);
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 64px -24px rgba(15,23,42,.25);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange-subtle); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-xs { width: 13px; height: 13px; }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; border-radius: var(--r-sm);
  border: 1px solid transparent; padding: 12px 22px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -8px rgba(234,88,12,.55); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #94A3B8; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar-note { display: flex; align-items: center; gap: 8px; }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark svg { width: 32px; height: 32px; display: block; }
.logo-word { font-weight: 800; font-size: 17px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.logo-tag { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); border: 1px solid var(--orange-border); background: var(--orange-light); border-radius: 99px; padding: 2px 7px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); position: relative; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rfq-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: border-color .2s, background-color .2s; }
.rfq-link:hover { border-color: var(--orange); background: var(--orange-light); }
.rfq-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange-border); color: var(--orange-hover); font-family: var(--mono); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.rfq-badge.has-items { background: var(--orange); color: #fff; }
.rfq-badge.bump { transform: scale(1.3); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; color: var(--ink); }

/* category subnav */
.cat-subnav { border-top: 1px solid var(--line); }
.cat-subnav-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-subnav-scroll::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; font-size: 12.5px; font-weight: 500; color: var(--ink-3); padding: 9px 12px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.cat-chip:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* mobile menu */
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 24px 20px; }
.mobile-link { display: block; padding: 13px 4px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.mobile-cta { width: 100%; margin-top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 24px 88px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); flex: none; }
.hero-title { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--ink); margin-bottom: 20px; }
.hero-title .accent { font-style: normal; color: var(--orange); }
.mask-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask-line > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); }
body.loaded .mask-line:nth-child(1) > span { transform: translateY(0); transition-delay: .08s; }
body.loaded .mask-line:nth-child(2) > span { transform: translateY(0); transition-delay: .18s; }
body.loaded .mask-line:nth-child(3) > span { transform: translateY(0); transition-delay: .28s; }
.reveal-mask { overflow: hidden; }
.reveal-mask > span { display: inline-block; transform: translateY(130%); transition: transform .9s var(--ease); }
body.loaded .reveal-mask > span { transform: translateY(0); }
.hero-sub { color: var(--ink-2); font-size: 16px; max-width: 52ch; margin-bottom: 30px; }

/* reveal on scroll / load */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in, body.loaded .hero-copy .reveal { opacity: 1; transform: none; }

/* search */
.search-block { position: relative; z-index: 30; max-width: 640px; }
.search-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-border), var(--shadow); }
.search-icon { color: var(--ink-3); }
.search-bar input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); background: transparent; padding: 10px 4px; }
.search-bar input::placeholder { color: var(--ink-3); }
.search-btn { padding: 12px 26px; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: drop .22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 12px 16px 6px; }
.search-dropdown ul { list-style: none; max-height: 320px; overflow-y: auto; }
.sr-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--line); padding: 12px 16px; transition: background-color .15s; }
.sr-item:hover { background: var(--orange-light); }
.sr-main { flex: 1; min-width: 0; }
.sr-name { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.sr-mpn { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--orange-hover); background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: 4px; padding: 1px 6px; }
.sr-mfr { font-size: 11.5px; color: var(--ink-3); }
.sr-add { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--orange); background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: var(--r-sm); padding: 7px 11px; transition: background-color .2s, color .2s; }
.sr-add:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.sr-empty { padding: 18px 16px; font-size: 13px; color: var(--ink-3); }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.search-tip { font-size: 12.5px; color: var(--ink-3); }
.tip-chip { font-family: var(--mono); font-size: 11.5px; color: var(--orange-hover); background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: 4px; padding: 2px 7px; margin: 0 2px; transition: background-color .2s, color .2s; }
.tip-chip:hover { background: var(--orange); color: #fff; }
.adv-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.adv-toggle:hover { color: var(--orange); }
.adv-toggle .chev { transform: rotate(90deg); transition: transform .25s var(--ease); }
.adv-toggle[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.adv-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding: 16px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--r-md); animation: drop .25s var(--ease); }
.adv-field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 5px; }
.adv-field select { width: 100%; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; }
.adv-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.hero-ticks { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.hero-ticks i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

/* hero visual */
.hero-visual { position: relative; z-index: 1; height: 460px; }
.hero-frame { position: absolute; inset: 0 0 40px 40px; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-subtle); box-shadow: var(--shadow-lg); }
.hero-frame img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.hero-caption { position: absolute; left: 14px; bottom: 12px; background: rgba(15,23,42,.82); color: #fff; padding: 5px 10px; border-radius: 4px; backdrop-filter: blur(4px); }
.frame-tick { position: absolute; width: 14px; height: 14px; border: 2px solid var(--orange); }
.frame-tick.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: var(--r-lg) 0 0 0; }
.frame-tick.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 var(--r-lg) 0 0; }
.frame-tick.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 var(--r-lg); }
.frame-tick.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 var(--r-lg) 0; }
.hero-frame-sm { inset: auto auto -6px -24px; width: 168px; height: 128px; border-radius: var(--r-md); z-index: 2; box-shadow: var(--shadow-lg); }
.hero-frame-sm img { height: 100%; }

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-3); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--orange); margin: 0 26px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-subtle); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2, .rfq-copy h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
.section-sub { color: var(--ink-2); font-size: 15px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 20px 20px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.cat-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--orange-light); border: 1px solid var(--orange-border); color: var(--orange); margin-bottom: 12px; transition: background-color .25s, color .25s; }
.cat-card:hover .cat-icon { background: var(--orange); color: #fff; }
.cat-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.cat-sub { font-size: 12.5px; color: var(--ink-3); }
.cat-arrow { position: absolute; top: 20px; right: 18px; width: 15px; height: 15px; color: var(--line-2); transition: color .25s, transform .25s var(--ease); }
.cat-card:hover .cat-arrow { color: var(--orange); transform: translateX(3px); }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.prod-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.045); }
.prod-mfr { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.92); border: 1px solid var(--line); color: var(--ink-2); padding: 4px 8px; border-radius: 4px; backdrop-filter: blur(4px); }
.prod-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.prod-mpn { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--orange-hover); background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: 4px; padding: 2px 8px; }
.prod-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.prod-spec { font-size: 12.5px; color: var(--ink-3); flex: 1; }
.prod-avail { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--info); background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 99px; padding: 3px 10px; }
.prod-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.add-rfq-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 700; color: #fff; background: var(--orange); border: 1px solid var(--orange); border-radius: var(--r-sm); padding: 10px 14px; transition: background-color .2s, transform .15s var(--ease), color .2s; }
.add-rfq-btn:hover { background: var(--orange-hover); }
.add-rfq-btn:active { transform: scale(.98); }
.add-rfq-btn.added { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.view-link { font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.view-link:hover { color: var(--orange); border-color: var(--orange); }

/* rfq section */
.rfq-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rfq-copy .btn { margin-top: 26px; }
.rfq-hint { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.rfq-steps { list-style: none; display: flex; flex-direction: column; }
.rfq-step { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rfq-step:first-child { border-top: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--orange-subtle); line-height: 1.1; flex: none; width: 52px; transition: color .3s; }
.rfq-step:hover .step-num { color: var(--orange); }
.rfq-step h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.rfq-step p { font-size: 13.5px; color: var(--ink-2); }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 20px; transition: border-color .25s, transform .25s var(--ease); }
.trust-item:hover { border-color: var(--orange-subtle); transform: translateY(-2px); }
.trust-icon { width: 22px; height: 22px; color: var(--orange); margin-bottom: 14px; }
.trust-item h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.trust-item p { font-size: 13px; color: var(--ink-2); }

/* footer */
.footer { background: var(--ink); color: #94A3B8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 24px 48px; }
.logo-footer .logo-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.7; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.demo-pill { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--orange-subtle); border: 1px solid rgba(254,215,170,.35); border-radius: 99px; padding: 2px 7px; text-transform: uppercase; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer a, .footer-btn { color: #94A3B8; background: none; border: none; padding: 0; font-size: inherit; text-align: left; transition: color .2s; }
.footer a:hover, .footer-btn:hover { color: var(--orange-subtle); }
.footer-contact li span { color: #64748B; font-size: 11.5px; }
.footer-bottom { border-top: 1px solid #1E293B; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; font-size: 12.5px; flex-wrap: wrap; }
.footer-bottom a { color: #CBD5E1; }
.brandwings { color: var(--orange-subtle) !important; font-weight: 700; border-bottom: 1px solid rgba(254,215,170,.4); }
.brandwings:hover { color: #fff !important; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; }
.mobile-cta-bar .btn { flex: 1; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0 } }
.modal { width: 100%; max-width: 640px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.modal-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.modal-close { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px; color: var(--ink-2); transition: color .2s, border-color .2s; }
.modal-close:hover { color: var(--ink); border-color: var(--line-2); }
.modal-body { padding: 22px 24px 26px; }
.rfq-lines-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.rfq-lines-head h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.rfq-lines-head .mono { font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.rfq-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--surface-subtle); animation: drop .25s var(--ease); }
.rfq-line-name { font-size: 13px; font-weight: 600; }
.rfq-line-mpn { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--orange-hover); margin-top: 1px; }
.qty-wrap { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.qty-btn { width: 26px; height: 30px; background: none; border: none; font-size: 15px; color: var(--ink-2); transition: background-color .15s; }
.qty-btn:hover { background: var(--orange-light); color: var(--orange); }
.qty-input { width: 52px; height: 30px; border: none; border-inline: 1px solid var(--line); text-align: center; font-family: var(--mono); font-size: 12px; outline: none; }
.rfq-remove { background: none; border: none; color: var(--ink-3); padding: 6px; border-radius: 4px; transition: color .2s, background-color .2s; }
.rfq-remove:hover { color: #DC2626; background: #FEF2F2; }
.rfq-remove .icon { width: 15px; height: 15px; }
.rfq-empty { font-size: 12.5px; color: var(--ink-3); padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); text-align: center; }
#rfq-form { margin-top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.form-field .opt { color: var(--ink-3); font-weight: 400; }
.form-field input, .form-field textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-border); }
.form-field textarea { resize: vertical; }
.form-error { font-size: 12.5px; color: #DC2626; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 12px; }
.success-view { text-align: center; padding: 44px 32px; }
.success-ring { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); border: 2px solid var(--ok-line); color: var(--ok); margin-bottom: 18px; animation: ring .5s var(--ease); }
.success-ring .icon { width: 28px; height: 28px; }
@keyframes ring { from { transform: scale(.5); opacity: 0; } }
.success-view h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.success-view p { font-size: 13.5px; color: var(--ink-2); max-width: 40ch; margin: 0 auto 8px; }
.ref-num { display: inline-block; margin: 10px 0 20px; color: var(--orange-hover); background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: var(--r-sm); padding: 8px 16px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; border-radius: var(--r-sm); padding: 12px 18px; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast .icon { width: 15px; height: 15px; color: var(--orange-subtle); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 24px 64px; }
  .hero-visual { height: 340px; max-width: 560px; }
  .cat-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .rfq-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn-primary, .topbar-right { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-main { gap: 14px; }
  .search-bar { flex-wrap: wrap; padding: 10px; }
  .search-bar input { padding: 6px 4px; }
  .search-btn { width: 100%; }
  .adv-panel { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 66px; }
  .section { padding: 60px 0; }
  .hero-visual { height: 280px; }
  .hero-frame { inset: 0 0 24px 16px; }
  .hero-frame-sm { display: none; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .cat-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .logo-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .mask-line > span, .reveal-mask > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
