/* ===== QiChip Electronics — dark B2B theme (Expertonic-style) v5 ===== */
:root {
  --bg: #0b1220;
  --bg-soft: #0f1729;
  --panel: #111c30;
  --panel-2: #14203a;
  --line: #22314d;
  --text: #e7eef8;
  --muted: #9fb1c9;
  --dim: #6d809c;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --green: #25d366;
  --navy: #0b1220;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "PingFang SC", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.3px; }
h2 { font-size: 32px; color: var(--text); }

/* topbar */
.topbar { background: #060b14; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--accent); text-decoration: none; }

/* nav */
.nav { background: rgba(11,18,32,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121f; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a.on { color: #fff; }

/* buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--accent); color: #04121f; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-green { background: var(--green); color: #052e12; }
.btn-green:hover { filter: brightness(1.1); }
.btn-block { width: 100%; }

/* hero */
.hero {
  background:
    linear-gradient(100deg, rgba(6,11,20,.96) 0%, rgba(8,16,30,.90) 45%, rgba(10,22,44,.62) 100%),
    url("/img/hero-bg.jpg") center right / cover no-repeat,
    linear-gradient(135deg, var(--navy) 0%, #0d1830 55%, #0e2242 100%);
  color: #fff;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.4); color: var(--accent); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; }
.hero .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.hero h1 { font-size: 52px; line-height: 1.12; margin: 22px 0 18px; max-width: 720px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 17.5px; max-width: 640px; }
.hero-search { display: flex; gap: 0; max-width: 560px; margin-top: 30px; background: #fff; border-radius: 10px; padding: 5px; }
.hero-search input { flex: 1; border: 0; outline: none; padding: 13px 16px; font-size: 15px; border-radius: 7px; color: #122; background: transparent; }
.hero-search .btn { border-radius: 7px; }
.hero-note { color: var(--dim); font-size: 13px; margin-top: 10px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* metric strip */
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 44px; background: rgba(15,23,41,.75); }
.metric-strip .info-box { padding: 22px 24px; border-right: 1px solid var(--line); }
.metric-strip .info-box:last-child { border-right: 0; }
.metric-strip strong { display: block; font-size: 16.5px; color: #fff; margin-bottom: 4px; }
.metric-strip span { color: var(--dim); font-size: 13px; }
.hero-stats { display: flex; gap: 56px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { font-size: 34px; color: var(--accent); display: block; line-height: 1.1; }
.hero-stats span { color: var(--dim); font-size: 13.5px; }

/* section head */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .sub { color: var(--muted); margin-top: 8px; max-width: 620px; }
.sec-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }

/* about + company box */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.company-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.company-box h3 { color: #fff; margin-bottom: 14px; font-size: 17px; }
.company-box p { color: var(--muted); font-size: 14px; margin: 6px 0; }
.company-box b { color: var(--text); }

/* service grid */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.service-grid .svc { padding: 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.service-grid .svc:nth-child(2n) { border-right: 0; }
.service-grid .svc:nth-child(n+3) { border-bottom: 0; }
.svc h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 14.5px; }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; transition: all .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(56,189,248,.12); }
.card strong { color: #fff; font-size: 16.5px; }
.card .muted { font-size: 14px; }
.card .icon { color: var(--accent); margin-bottom: 4px; }
.chip { display: inline-block; background: rgba(56,189,248,.12); color: var(--accent); border-radius: 14px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.chip-green { background: rgba(52,211,153,.12); color: #34d399; }

/* category cloud & brand row */
.category-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.cat-chip { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.brand-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.brand-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 10px; text-align: center; color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.brand-cell:hover { color: var(--accent); border-color: var(--accent); }

/* keyword grid (brand RFQ entrances) */
.keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kw-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.kw-card:hover { border-color: var(--accent); }
.kw-card b { color: #fff; font-size: 15px; }
.kw-card span { color: var(--dim); font-size: 13px; }

/* inventory / image stack */
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.inv-grid img { border-radius: 12px; border: 1px solid var(--line); }
.inv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.inv-list .item { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.inv-list .item::before { content: "✓"; color: #34d399; font-weight: 800; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: rgba(56,189,248,.15); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 17px; }
.step h3 { color: #fff; margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ind-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.ind-item:hover { border-color: var(--accent); color: var(--text); }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.faq-item h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }

/* contact band */
.contact-band { background: linear-gradient(100deg, rgba(56,189,248,.14), rgba(34,211,238,.07)), var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 44px; text-align: center; }
.contact-band h2 { margin-bottom: 10px; }
.contact-band p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.contact-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tbl caption { text-align: left; padding: 12px 4px; color: var(--muted); font-size: 13px; }
.tbl th { background: var(--panel-2); color: var(--muted); text-align: left; padding: 11px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--text); font-size: 14.5px; }
.tbl-tight th, .tbl-tight td { padding: 8px 12px; }
.tbl a { color: var(--accent); text-decoration: none; font-weight: 600; }
.parts-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.parts-wrap table { border: 0; }

/* product page */
.crumbs { padding: 20px 0 0; color: var(--dim); font-size: 13.5px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.product-head { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 30px 0 48px; align-items: start; }
.product-info h1 { font-size: 36px; margin: 12px 0; }
.product-info .muted { font-size: 15px; }
.product-buy { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.rfq-form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rfq-form h3 { color: #fff; margin-bottom: 4px; }
.rfq-form input, .rfq-form textarea { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 14.5px; font-family: inherit; outline: none; }
.rfq-form input:focus, .rfq-form textarea:focus { border-color: var(--accent); }
.rfq-form ::placeholder { color: var(--dim); }
.rfq-status { color: #34d399; font-size: 14px; font-weight: 600; }

/* brand & scenario pages */
.page-hero { background: linear-gradient(100deg, rgba(6,11,20,.95) 0%, rgba(8,16,30,.88) 50%, rgba(10,22,44,.58) 100%), url("/img/page-hero-bg.jpg") center right / cover no-repeat, linear-gradient(135deg, #0b1220 0%, #0e2242 100%); color: #fff; padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 40px; margin: 10px 0; }
.page-hero .lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.crumbs-light { font-size: 13px; color: var(--dim); }
.crumbs-light a { color: var(--dim); text-decoration: none; }
.crumbs-light a:hover { color: #fff; }
.crumbs-light span { color: var(--text); }
.hero-actions { margin-top: 22px; }
.brand-body { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 48px 0; align-items: start; }
.brand-info p { line-height: 1.75; margin: 0 0 14px; color: var(--muted); }
.brand-info em { color: var(--accent); font-style: normal; }
.trust-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sc-block { margin-bottom: 26px; }
.sc-block h3 { font-size: 18px; margin: 0 0 8px; color: #fff; }
.sc-block p { line-height: 1.75; margin: 0; color: var(--muted); }
.brand-parts, .related { padding: 8px 0 48px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 48px; }
.chip-link { text-decoration: none; color: var(--accent); border: 1px solid var(--line); background: var(--panel); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: all .15s; display: inline-block; }
.chip-link:hover { background: var(--accent); color: #04121f; border-color: var(--accent); }
.badge { display: inline-block; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.3); color: var(--accent); border-radius: 6px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.notfound { padding: 80px 0; }
.notfound h1 { font-size: 30px; margin-bottom: 14px; }
.notfound .btn { margin-top: 20px; }

/* footer */
.footer { background: #060b14; border-top: 1px solid var(--line); padding: 52px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.footer p, .footer a { color: var(--muted); font-size: 14px; }
.footer a { text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--accent); }
.footer h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.footer .logo { margin-bottom: 12px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-note { font-size: 12px; color: var(--dim); line-height: 1.6; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 12px; }
.footer-bottom { color: var(--dim); font-size: 13px; padding: 16px 20px 24px; }

/* WhatsApp pill (Expertonic style) */
.wa-float { position: fixed; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #052e12; font-weight: 800; font-size: 15px; padding: 13px 22px; border-radius: 999px; box-shadow: 0 8px 26px rgba(37,211,102,.4); z-index: 999; text-decoration: none; transition: transform .15s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { flex: none; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* catalog page */
.catalog-hero { background: linear-gradient(100deg, rgba(6,11,20,.95) 0%, rgba(8,16,30,.88) 50%, rgba(10,22,44,.6) 100%), url("/img/page-hero-bg.jpg") center / cover no-repeat; color: #fff; padding: 56px 0; border-bottom: 1px solid var(--line); }
.catalog-hero h1 { font-size: 38px; margin-bottom: 8px; }
.catalog-hero p { color: var(--muted); }
.catalog-search { display: flex; gap: 10px; margin-top: 22px; max-width: 520px; }
.catalog-search input { flex: 1; background: #fff; border: 0; border-radius: 8px; padding: 12px 16px; font-size: 15px; outline: none; }
.stock-badge { color: #34d399; font-weight: 700; }

/* responsive */
@media (max-width: 960px) {
  .grid, .grid3, .grid4, .steps, .ind-grid, .keyword-grid { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip .info-box:nth-child(2n) { border-right: 0; }
  .metric-strip .info-box:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .inv-grid, .product-head, .brand-body { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .svc { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
}

/* ===== shared page utilities (v5) ===== */
.page-narrow { max-width: 780px; margin: 0 auto; padding: 48px 20px; }
.page-narrow h1 { font-size: 34px; margin-bottom: 18px; color: #fff; }
.page-narrow p { color: var(--muted); margin-bottom: 14px; }
.page-narrow h3 { color: #fff; margin: 22px 0 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 960px; margin: 0 auto; padding: 48px 20px; }
.contact-grid h1 { color: #fff; margin-bottom: 14px; }
.contact-grid .box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--muted); }
.form-wide { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.form-wide input, .form-wide textarea { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 14.5px; font-family: inherit; outline: none; }
.form-wide input:focus, .form-wide textarea:focus { border-color: var(--accent); }
.form-wide label { color: var(--muted); font-size: 13px; font-weight: 600; }
.chip-btn { display: inline-block; background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; }
.chip-btn:hover { color: var(--accent); border-color: var(--accent); }
.chip-btn.on { background: var(--accent); color: #04121f; border-color: var(--accent); }
.stock-ok, .stock-badge { color: #34d399; font-weight: 700; }
.form-ok { color: #34d399; font-size: 14px; font-weight: 600; padding: 6px 0; }
.cat-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.catalog-count { color: var(--dim); font-size: 13.5px; }
.catalog-wrap { padding-bottom: 56px; }
