@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

:root {
  --ink: #10243b;
  --ink-2: #203a55;
  --muted: #60758a;
  --line: #d8e2e9;
  --paper: #f7faf8;
  --white: #fff;
  --lime: #d6f36b;
  --aqua: #c8f0e8;
  --blue: #3974ed;
  --red: #ed765d;
  --shadow: 0 18px 55px rgba(16, 36, 59, .1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Noto Sans TC', sans-serif; font-weight: 400; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell { min-height: 100vh; overflow: hidden; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font: 500 12px/1.2 'Noto Sans TC', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 36px; letter-spacing: -.045em; line-height: 1.35; margin-bottom: 26px; font-weight: 700; }
h2 { font-size: 34px; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.45; margin-bottom: 10px; font-weight: 600; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.9; }
.muted { color: var(--muted); }
.mono { font-family: 'Noto Sans TC', sans-serif; }

.nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.04em; font-size: 21px; }
.brand-logo { display: block; width: auto; max-width: 230px; height: 56px; object-fit: contain; }
.footer-logo { max-width: 190px; height: 42px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); font: 700 14px 'Noto Sans TC', sans-serif; }
.nav-links { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-2); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 9px; }
.nav-actions { display:inline-flex; align-items:center; gap:10px; margin-left:8px; }
.nav-login, .nav-account { padding:8px 0; color:var(--ink-2); white-space:nowrap; }
.nav-cta { display:inline-flex; align-items:center; padding:9px 14px; border-radius:999px; background:var(--lime); color:var(--ink); font-weight:800; white-space:nowrap; }
.nav-company-entry { display:grid; justify-items:stretch; gap:3px; min-width:128px; margin-left:2px; }
.nav-company-link { color:var(--ink-2); font-weight:800; text-align:center; white-space:nowrap; }
.nav-company-entry .nav-cta { justify-content:center; margin:0; padding:7px 12px; font-size:13px; }
.mobile-toggle { display: none; background: transparent; border: 0; font-size: 24px; color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(16,36,59,.12); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #1d3a59; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.55); color: var(--ink); }
.button-small { padding: 10px 16px; }

.hero { position: relative; padding: 80px 0 110px; }
.hero::after { content: ''; position: absolute; z-index: -1; width: 480px; height: 480px; right: -130px; top: 0; border-radius: 50%; background: var(--aqua); opacity: .65; filter: blur(2px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 75px; align-items: start; }
.hero-copy { max-width: 690px; padding-top: 42px; }
.commercial-hero .hero-copy { min-width: 0; }
.commercial-hero h1 { max-width: 100%; text-wrap: balance; font-size: 34px; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 18px; }
.hero-copy .lead { max-width: 610px; }
.hero-description { max-width: 620px; margin: 18px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.9; }
.trial-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 17px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-note strong { color: var(--ink); }

.dashboard { position: relative; padding: 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.66); box-shadow: var(--shadow); backdrop-filter: blur(9px); }
.dash-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 5px 15px; color: var(--muted); font-size: 12px; }
.dash-window { border-radius: 17px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.dash-header { display: flex; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.dash-header b { font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 500 11px 'Noto Sans TC', sans-serif; }
.pill-green { background: #e9f8cf; color: #4a6a15; }
.pill-wait { background: #fff1d1; color: #956d1b; }
.pill-red { background: #ffe3dd; color: #a84837; }
.dash-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.dash-row:last-child { border-bottom: 0; }
.dash-label { color: var(--muted); font-size: 12px; }
.dash-value { margin-top: 3px; font-weight: 600; font-size: 14px; }
.gate-list { display: grid; gap: 9px; padding: 18px 21px 21px; }
.gate { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 12px; background: #f5f8fa; font-size: 14px; }

.section { padding: 100px 0; }
.section-tint { background: var(--aqua); }
.section-dark { color: var(--white); background: var(--ink); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.benefit-card { min-height: 205px; }
.benefit-card p { color: var(--muted); font-size: 16px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.comparison-table thead th { color: var(--muted); background: #f5f8fa; font-size: 13px; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody th { width: 18%; color: var(--ink); font-size: 14px; white-space: nowrap; }
.comparison-table tbody td { width: 41%; color: var(--muted); font-size: 14px; }
.comparison-table tbody td:last-child { color: var(--ink-2); font-weight: 600; }
.comparison-note { margin: 20px 0 0; color: var(--ink-2); font-size: 16px; }
.scope-grid, .price-section, .about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scope-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.scope-list b { color: var(--blue); }
.scope-boundary .section-heading { margin-bottom: 28px; }
.excluded-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.excluded-grid span { padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #dbe7ed; background: rgba(255,255,255,.07); }
.price-section .lead { margin-top: 0; }
.price-section .muted { margin: 18px 0; }
.about-section .lead { margin-top: 0; }
.about-section .muted { max-width: 680px; }
.section-heading .eyebrow { color: var(--blue); }
.section-dark .section-heading .eyebrow { color: var(--lime); }
.section-dark .muted { color: #b9c8d2; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card-number { color: var(--blue); font: 500 12px 'Noto Sans TC', sans-serif; }
.card p { color: var(--muted); font-size: 17px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 13px; color: var(--ink); background: var(--lime); font: 700 14px 'Noto Sans TC', sans-serif; }
.feature-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 28px; color: var(--ink-2); }
.feature-list li::before { content: '↗'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.gate-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 35px; }
.gate-board .gate { display: block; min-height: 105px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.gate-board .gate b { display: block; margin: 13px 0 2px; color: var(--white); font-size: 14px; }
.gate-board .gate small { color: #afc1cc; font-size: 12px; }
.quote { padding: 28px 30px; border-left: 4px solid var(--lime); border-radius: 0 17px 17px 0; background: rgba(255,255,255,.08); color: #e9f0f2; font-size: 18px; }
.erp-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.erp-band .lead { font-size: 18px; }
.erp-list { display: flex; flex-wrap: wrap; gap: 10px; }
.erp-list span { padding: 10px 15px; border-radius: 999px; background: var(--white); color: var(--ink-2); font-weight: 700; font-size: 14px; }

.page-hero { padding: 75px 0 60px; background: var(--aqua); }
.page-hero .container { max-width: 960px; }
.page-hero h1 { max-width: 800px; font-size: 36px; }
.page-hero .lead { max-width: 680px; }
.page-hero .lead, .hero-lead { white-space: pre-line; }
.disclaimer { display: inline-block; margin-top: 18px; padding: 7px 12px; border-radius: 7px; background: rgba(255,255,255,.62); color: var(--muted); font-size: 13px; }
.case { overflow: hidden; }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.case-top h2 { margin: 8px 0 0; font-size: 24px; }
.case-meta { color: var(--muted); font-size: 14px; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; padding-top: 27px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.flow span { padding: 7px 10px; border-radius: 7px; background: #f2f6f7; }
.flow i { color: var(--blue); font-style: normal; }
.finding { margin-top: 17px; padding: 18px; border-radius: 13px; background: #fff5d9; color: #77580e; font-weight: 700; }
.gate-result { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px 18px; border-radius: 13px; background: #ffe8e2; color: #9b4435; }

.demo-shell { display: grid; grid-template-columns: 230px 1fr; gap: 35px; align-items: start; }
.demo-nav { position: sticky; top: 25px; display: grid; gap: 8px; }
.demo-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; }
.demo-step .step-num { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 500 11px 'Noto Sans TC', sans-serif; }
.demo-step.active { background: var(--ink); color: var(--white); }
.demo-step.done { color: #4a6a15; }
.demo-stage { min-height: 550px; padding: 32px; border: 1px solid var(--line); border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.demo-stage-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.demo-stage-header h2 { margin: 7px 0 0; font-size: 29px; }
.demo-stage-body { padding-top: 27px; }
.rfq-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rfq-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--aqua); color: var(--blue); font-weight: 800; }
.rfq-item small { display: block; color: var(--muted); }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.data-cell { padding: 14px; border-radius: 12px; background: #f4f7f8; }
.data-cell small { display: block; color: var(--muted); font-size: 11px; }
.data-cell b { font-size: 14px; }
.alert { margin: 23px 0; padding: 17px; border-radius: 13px; background: #fff5d9; color: #77580e; }
.gate-table { display: grid; gap: 9px; }
.gate-line { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-radius: 11px; background: #f4f7f8; }
.quote-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 22px; }
.quote-stat { padding: 18px; border-radius: 13px; background: var(--ink); color: var(--white); }
.quote-stat small { display: block; color: #afc1cc; font-size: 11px; }
.quote-stat b { display: block; margin-top: 5px; font-size: 23px; }
.demo-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.demo-finish { padding: 21px; border-radius: 15px; background: var(--aqua); text-align: center; }

.form-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }
.form-card { padding: 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfdfd; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,116,237,.11); }
.field textarea { min-height: 115px; resize: vertical; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-grid label { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.option-grid input { display: none; }
.option-grid label:has(input:checked) { background: var(--aqua); border-color: #8ed9cd; color: var(--ink); font-weight: 700; }
.form-note { color: var(--muted); font-size: 16px; }
.success { display: none; margin-top: 17px; padding: 14px; border-radius: 11px; background: #e9f8cf; color: #4a6a15; font-size: 14px; }
.success.show { display: block; }
.form-error { display: none; margin-top: 15px; padding: 13px 15px; border-radius: 11px; background: #ffe3dd; color: #9b4435; font-size: 14px; }
.form-error.show { display: block; }
.success-page { max-width: 700px; margin: 0 auto; text-align: center; }
.success-page .eyebrow { justify-content: center; }
.portal-card { max-width: 820px; margin: 0 auto; }
.portal-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.portal-header h2 { margin:8px 0 0; }
.portal-section { padding:24px 0; border-bottom:1px solid var(--line); }
.portal-section:last-child { border-bottom:0; }
.portal-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.portal-stat { padding:15px; border-radius:12px; background:#f4f7f8; }
.portal-stat small { display:block; color:var(--muted); font-size:12px; }
.portal-stat b { display:block; margin-top:3px; font-size:18px; }
.portal-amount { padding:22px; border-radius:15px; background:var(--ink); color:var(--white); }
.portal-amount small { color:#afc1cc; }
.portal-amount strong { display:block; margin-top:4px; font-size:32px; }
.portal-copy { white-space:pre-line; padding:20px; border-radius:12px; background:#f4f7f8; color:var(--ink-2); }
.contract-copy { max-height:520px; overflow:auto; line-height:1.9; }
.portal-check { display:flex !important; grid-template-columns:none !important; align-items:flex-start; gap:10px; }
.portal-check input { width:auto !important; margin-top:7px; }
.portal-form { display:grid; gap:14px; margin-top:20px; }
.portal-form label { display:grid; gap:7px; font-size:13px; font-weight:600; }
.portal-form input, .portal-form textarea { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px; }
.portal-bank { display:grid; gap:8px; padding:18px; border-radius:13px; background:var(--aqua); }
.portal-bank div { display:flex; justify-content:space-between; gap:15px; }
.portal-bank span { color:var(--muted); }
.portal-status { margin:22px 0; padding:14px 16px; border-radius:11px; background:#e9f8cf; color:#4a6a15; }
.portal-error { margin:16px 0; padding:14px 16px; border-radius:11px; background:#ffe3dd; color:#9b4435; }
.support-widget { position:fixed; z-index:30; right:24px; bottom:24px; }
.support-trigger { box-shadow:0 12px 28px rgba(16,36,59,.18); }
.support-panel { width:min(340px, calc(100vw - 34px)); margin-bottom:10px; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--white); box-shadow:var(--shadow); }
.support-panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; }
.support-panel-head h3 { margin:7px 0 0; font-size:20px; }
.support-close { border:0; background:transparent; color:var(--muted); font-size:24px; line-height:1; cursor:pointer; }
.support-item, .support-contact a { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); color:var(--ink-2); }
.support-item b, .support-contact b { color:var(--blue); font-size:13px; }
.support-contact { margin-top:42px; padding:22px; border-radius:16px; background:var(--aqua); }
.support-contact h3 { margin:7px 0 10px; }
.support-contact a:first-of-type { border-top:0; }
.faq-grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:70px; align-items:start; }
.faq-list { display:grid; gap:10px; }
.faq-list details { padding:17px 18px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
.faq-list summary { cursor:pointer; font-weight:700; }
.faq-list p { margin:12px 0 0; color:var(--muted); font-size:14px; }
@media(max-width:820px){.faq-grid{grid-template-columns:1fr;gap:28px}}
@media (max-width:520px) { .portal-header, .portal-bank div { display:grid; gap:5px; } .portal-grid { grid-template-columns:1fr; } .portal-amount strong { font-size:27px; } }

.legal { max-width: 820px; }
.legal h2 { margin-top: 35px; font-size: 26px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }

.cta { padding: 80px 0; background: var(--lime); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { margin-bottom: 0; max-width: 650px; }
.footer { padding: 50px 0 30px; color: #b9c8d2; background: var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 35px; padding-bottom: 45px; }
.footer .brand { color: var(--white); }
.footer-copy { max-width: 360px; margin-top: 15px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; justify-content: flex-end; font-size: 13px; }
.footer-links a:hover { color: var(--lime); }
.copyright { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #7f96a8; font-size: 12px; }

@media (max-width: 820px) {
  .container { width: min(100% - 34px, 660px); }
  .nav-links { position: absolute; display: none; top: 70px; left: 0; right: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; gap: 3px; }
  .nav-links a { padding: 9px 5px; }
  .nav-actions { display:grid; gap:3px; margin:7px 0 0; padding-top:7px; border-top:1px solid var(--line); }
  .nav-cta { margin:0; justify-content:center; text-align: center; }
  .mobile-toggle { display: block; }
  .hero { padding: 45px 0 75px; }
  .hero-grid, .erp-band, .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-top: 0; }
  .scope-grid, .price-section, .about-section { grid-template-columns: 1fr; gap: 30px; }
  .hero::after { width: 320px; height: 320px; right: -160px; top: 110px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .case-columns { grid-template-columns: 1fr; }
  .gate-board { grid-template-columns: repeat(2, 1fr); }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-nav { position: static; grid-template-columns: repeat(4, 1fr); }
  .demo-step { justify-content: center; padding: 9px 4px; }
  .demo-step span:last-child { display: none; }
  .demo-stage { padding: 22px; }
  .data-grid, .quote-preview { grid-template-columns: 1fr 1fr; }
  .cta-inner, .footer-top { display: grid; }
  .footer-links { justify-content: flex-start; }
  .excluded-grid { grid-template-columns: 1fr 1fr; }
  .copyright { display: grid; gap: 8px; }
}

@media (max-width: 490px) {
  .brand-logo { height: 40px; max-width: 170px; }
  h1, .page-hero h1 { font-size: 26px; line-height: 1.45; }
  .commercial-hero h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 18px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  .lead, .card p { font-size: 16px; }
  .hero-description { font-size: 16px; }
  .scope-list { grid-template-columns: 1fr; }
  .excluded-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .data-grid, .quote-preview { grid-template-columns: 1fr; }
  .rfq-item { grid-template-columns: 40px 1fr; }
  .rfq-item .button { grid-column: 2; justify-self: start; }
  .demo-actions { display: grid; }
  .support-widget { right: 16px; bottom: 16px; }
}


/* Vendor-ready homepage 2026-09-21 */
.mas-home-hero { padding:72px 0 54px; overflow:hidden; }
.mas-home-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.92fr); gap:54px; align-items:start; }
.mas-home-copy { padding-top:26px; }
.mas-home-copy h1 { max-width:760px; }
.mas-q-hero { position:relative; min-height:520px; display:grid; align-items:end; }
.mas-q-hero-stage { position:absolute; inset:0 0 86px; display:grid; place-items:center; border-radius:32px; background:linear-gradient(180deg,#f7fbff 0%,#eef4f8 100%); border:1px solid var(--line); overflow:hidden; }
.mas-q-hero-model { width:100%; height:100%; min-height:410px; }
.mas-q-work-card { position:relative; z-index:2; margin:0 24px; padding:20px 22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 18px 50px rgba(11,31,53,.12); }
.mas-q-work-card h2 { margin:8px 0; font-size:21px; line-height:1.35; }
.mas-q-work-card p { margin:0 0 12px; color:var(--muted); line-height:1.7; }
.mas-q-work-card a { font-weight:800; text-decoration:none; }
.mas-q-badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#eef6ff; font-size:12px; font-weight:800; letter-spacing:.04em; }
.mas-step-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.mas-capability-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:48px; align-items:start; }
.mas-case-showcase { grid-column:1/-1; margin-top:10px; padding-top:34px; border-top:1px solid rgba(16,36,59,.14); }
.mas-case-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; margin-bottom:22px; }
.mas-case-heading h3 { margin:9px 0 0; font-size:26px; }
.mas-case-heading p { max-width:540px; margin:0; line-height:1.75; }
.mas-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.mas-case-card { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--white); box-shadow:0 12px 32px rgba(16,36,59,.07); }
.mas-case-image-wrap { display:flex; align-items:center; justify-content:center; min-height:260px; padding:14px; background:#eef4f7; border-bottom:1px solid var(--line); }
.mas-case-image-wrap img { display:block; width:100%; height:310px; object-fit:contain; object-position:center; border-radius:10px; background:#fff; }
.mas-case-copy { padding:20px 22px 22px; }
.mas-case-copy h4 { margin:9px 0 7px; font-size:20px; }
.mas-case-copy p { margin:0; color:var(--muted); line-height:1.75; }
.visio-plus-section { background:var(--white); }
.visio-plus-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.visio-plus-card { padding:26px; }
.visio-plus-card h3 { margin:10px 0 18px; }
.visio-plus-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin:0; padding-left:20px; color:var(--ink-2); line-height:1.65; }
.visio-plus-list li::marker { color:var(--blue); }
.visio-plus-followup { margin-top:22px; padding:16px 18px; border-radius:12px; background:var(--aqua); color:var(--ink-2); line-height:1.7; }
.visio-plus-followup p { margin:6px 0 0; }
.visio-plus-boundary { margin-top:20px; padding:20px 24px; border:1px solid var(--line); border-radius:14px; background:#f8fafb; color:var(--ink-2); line-height:1.75; }
.visio-plus-boundary p { margin:9px 0 0; }
@media (max-width:980px) {
  .mas-home-grid { grid-template-columns:1fr; gap:30px; }
  .mas-home-copy { padding-top:0; }
  .mas-q-hero { min-height:460px; }
  .mas-step-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mas-capability-grid { grid-template-columns:1fr; gap:24px; }
  .mas-case-showcase { margin-top:4px; }
  .mas-case-grid { grid-template-columns:1fr; }
  .visio-plus-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .mas-home-hero { padding:42px 0 34px; }
  .mas-home-copy h1 { font-size:clamp(38px,12vw,58px); }
  .mas-q-hero { min-height:410px; }
  .mas-q-hero-stage { inset:0 0 112px; border-radius:24px; }
  .mas-q-hero-model { min-height:320px; }
  .mas-q-work-card { margin:0 10px; padding:16px; }
  .mas-step-grid { grid-template-columns:1fr; }
  .visio-plus-card { padding:20px; }
  .visio-plus-list { grid-template-columns:1fr; }
  .visio-plus-boundary { padding:17px 18px; }
  .mas-case-heading { display:block; }
  .mas-case-heading p { margin-top:10px; }
  .mas-case-image-wrap img { height:230px; }
  .mas-case-copy { padding:17px 18px 19px; }
}


/* Mobile acceptance fixes 2026-09-21
   Scope: consistent type scale, SmallQ hero unframed, right-aligned mobile nav. */
@media (max-width: 820px) {
  .nav-links {
    left: auto;
    right: 0;
    width: min(290px, calc(100vw - 34px));
  }
}

@media (max-width: 620px) {
  h1,
  .page-hero h1,
  .commercial-hero h1,
  .mas-home-copy h1 {
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -.035em;
  }

  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .mas-home-hero { padding: 36px 0 30px; }
  .mas-home-grid { gap: 22px; }

  .mas-q-hero {
    min-height: 390px;
    overflow: visible;
  }

  .mas-q-hero-stage {
    inset: 0 0 84px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .mas-q-hero-model {
    min-height: 310px;
  }

  .mas-q-work-card {
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mas-q-work-card h2 {
    margin: 6px 0;
    font-size: 20px;
  }

  .mas-q-work-card p {
    margin-bottom: 10px;
    font-size: 15px;
  }
}


/* Mobile acceptance final pass 2026-09-21 */
@media (max-width: 820px) {
  .nav-links {
    left: auto;
    right: 0;
    width: min(252px, calc(100vw - 32px));
    padding: 12px 14px;
  }
  .nav-links a { padding: 8px 4px; }
}

@media (max-width: 620px) {
  .brand-logo {
    height: 50px;
    max-width: 210px;
  }

  .mas-home-copy h1,
  h1,
  .page-hero h1,
  .commercial-hero h1 {
    font-size: 26px;
    line-height: 1.38;
    letter-spacing: -.03em;
  }

  .mas-home-hero { padding: 28px 0 24px; }
  .mas-home-grid { gap: 16px; }

  .mas-q-hero {
    min-height: 0;
    display: grid;
    gap: 10px;
    align-items: start;
    overflow: visible;
  }

  .mas-q-hero-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 285px;
    min-height: 285px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .mas-q-hero-model {
    display: block;
    width: 100%;
    height: 285px;
    min-height: 285px;
  }

  .mas-q-work-card {
    position: relative;
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .support-widget { display: none !important; }

  .q-widget {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Checkpoint B — Desktop 2D SmallQ hero */
.mas-home-hero {
  padding: 78px 0 66px;
  background: linear-gradient(135deg, #f7faf8 0%, #eef6f7 100%);
}
.mas-home-hero > .container { width: min(1240px, calc(100% - 48px)); }
.mas-home-grid {
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 56px;
  align-items: center;
}
.mas-home-copy { padding-top: 0; }
.mas-home-copy h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(48px, 4.1vw, 60px);
  line-height: 1.18;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.mas-home-copy .hero-lead { margin-bottom: 10px; font-size: 18px; }
.mas-home-copy .hero-description { max-width: 560px; line-height: 1.8; }
.mas-home-copy .hero-actions { margin-top: 27px; }
.mas-feature-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 610px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.mas-feature-highlights li {
  display: grid;
  gap: 5px;
  padding: 12px 10px 0 0;
  border-top: 1px solid rgba(16, 36, 59, .18);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.mas-feature-highlights b,
.mas-trust-strip b { color: var(--blue); font-size: 11px; letter-spacing: .08em; }
.mas-q-hero { min-height: 380px; display: grid; align-items: center; }
.mas-q-hero-stage {
  position: relative;
  inset: auto;
  min-height: 380px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.88) 0%, rgba(237,244,246,.62) 68%, rgba(228,238,242,.28) 100%);
  border: 1px solid rgba(16, 36, 59, .06);
  overflow: visible;
}
.mas-q-hero-model { display: none; }
.support-widget { display: none !important; }
.smallq-2d {
  --smallq-ink: #10243b;
  --smallq-steel: #a8bac8;
  --smallq-denim: #47749a;
  position: relative;
  width: 260px;
  height: 300px;
  display: grid;
  place-items: center;
  isolation: isolate;
  animation: none;
}
.smallq-2d::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 26px;
  bottom: 18px;
  border-radius: 50%;
  background: rgba(16, 36, 59, .16);
  filter: blur(8px);
}
.smallq-2d-body {
  position: absolute;
  width: 190px;
  height: 218px;
  border: 6px solid var(--smallq-steel);
  border-radius: 46% 46% 42% 42%;
  background: linear-gradient(145deg, #6d9cbc 0%, var(--smallq-denim) 56%, #315777 100%);
  box-shadow: inset 12px 12px 0 rgba(255,255,255,.15), inset -13px -15px 0 rgba(9,25,42,.18), 0 18px 28px rgba(16,36,59,.18);
}
.smallq-2d-body::before {
  content: '';
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(232, 241, 246, .48);
  border-radius: 41% 41% 38% 38%;
}
.smallq-2d-face { position: absolute; top: 76px; left: 50%; display: flex; align-items: center; gap: 40px; transform: translateX(-50%); }
.smallq-2d-eye { width: 15px; height: 21px; border-radius: 50%; background: #f7faf8; box-shadow: inset 0 -4px 0 #c6d7df; }
.smallq-2d-mouth { position: absolute; left: 50%; top: 34px; width: 24px; height: 12px; border-bottom: 3px solid #f7faf8; border-radius: 0 0 20px 20px; transform: translateX(-50%); }
.smallq-2d-rivet { position: absolute; width: 10px; height: 10px; border: 2px solid #d9e3e8; border-radius: 50%; background: #718b9c; }
.smallq-2d-rivet-a { top: 19px; left: 25px; }
.smallq-2d-rivet-b { top: 19px; right: 25px; }
.smallq-2d-bolt { position: absolute; right: 24px; bottom: 23px; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #d2a83e; border-radius: 50%; color: #ffe8a1; background: #846f32; font: 700 18px/1 'Noto Sans TC', sans-serif; box-shadow: 0 3px 0 rgba(16,36,59,.24); }
.smallq-2d-tail { position: absolute; right: 20px; bottom: 43px; width: 66px; height: 45px; border-right: 12px solid var(--smallq-steel); border-bottom: 12px solid var(--smallq-steel); border-radius: 0 0 30px 0; transform: rotate(-18deg); filter: drop-shadow(3px 3px 0 rgba(16,36,59,.18)); }
@keyframes smallq-2d-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.smallq-2d .smallq-2d-eye { transform-origin: center center; animation: smallq-blink-loop 6s ease-in-out infinite; }
.smallq-2d.is-blink .smallq-2d-eye { animation: smallq-blink-once .22s ease-in-out 1; }
.smallq-2d.is-wave .smallq-2d-tail { transform-origin: 0 100%; animation: smallq-wave .7s ease-in-out 2; }
.smallq-2d.is-thinking .smallq-2d-bolt { animation: smallq-thinking .8s ease-in-out infinite; }
.smallq-2d.is-working .smallq-2d-bolt { animation: smallq-working .9s linear infinite; }
.smallq-2d.is-done .smallq-2d-mouth { height: 15px; border-bottom-width: 4px; }
.smallq-2d.is-speaking .smallq-2d-mouth { height: 16px; border: 3px solid #f7faf8; border-radius: 50%; animation: smallq-mouth-open .28s ease-in-out infinite alternate; }
@keyframes smallq-blink-loop { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes smallq-blink-once { 0%, 100% { transform: scaleY(1); } 45%, 60% { transform: scaleY(.12); } }
@keyframes smallq-wave { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(4deg); } }
@keyframes smallq-thinking { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes smallq-working { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes smallq-mouth-open { from { transform: translateX(-50%) scale(.85); } to { transform: translateX(-50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .smallq-2d, .smallq-2d .smallq-2d-eye, .smallq-2d.is-wave .smallq-2d-tail, .smallq-2d.is-thinking .smallq-2d-bolt, .smallq-2d.is-working .smallq-2d-bolt, .smallq-2d.is-speaking .smallq-2d-mouth { animation: none; }
}

/* Checkpoint C — Mobile 375/390 layout */
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .mas-home-hero { padding: 20px 0 10px; }
  .mas-home-hero > .container { width: min(100% - 32px, 520px); }
  .mas-home-grid { grid-template-columns: 1fr; gap: 8px; }
  .mas-home-grid > * { min-width: 0; }
  .mas-home-copy h1 { max-width: 100%; font-size: 34px; line-height: 1.22; }
  .mas-home-copy .hero-description { font-size: 15px; line-height: 1.7; }
  .mas-home-copy .hero-actions { gap: 8px; margin-top: 20px; }
  .mas-home-copy .hero-actions .button { padding: 11px 14px; font-size: 13px; }
  .trial-note { margin-top: 15px; font-size: 12px; line-height: 1.65; }
  .mas-feature-highlights { gap: 7px; margin-top: 20px; }
  .mas-feature-highlights li { padding: 9px 4px 0 0; font-size: 12px; }
  .mas-q-hero { min-height: 0; gap: 0; }
  .mas-q-hero-stage { min-height: 128px; height: 128px; border-radius: 20px; }
  .mas-q-hero-stage .smallq-2d { width: 118px; height: 124px; transform: translateX(-34px); transform-origin: center center; animation: none; }
  .mas-q-hero-stage .smallq-2d::before { bottom: 14px; }
  .q-widget { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .q-trigger { min-height: 52px; height: 52px; padding: 8px 12px; gap: 7px; font-size: 13px; }
  .q-trigger-mark { width: 24px; height: 24px; font-size: 13px; }
}

/* Final approved 2D 小Q asset: the supplied flat left-column reference character. */
.smallq-2d {
  width: 260px;
  height: 300px;
  display: grid;
  place-items: center;
  isolation: isolate;
  animation: none;
}
.smallq-2d::before { display: none; }
.smallq-2d-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  filter: drop-shadow(0 14px 18px rgba(16,36,59,.16));
}
.smallq-2d.is-blink .smallq-2d-image { animation: smallq-image-blink .22s ease-in-out 1; }
.smallq-2d.is-wave .smallq-2d-image { animation: smallq-image-wave .7s ease-in-out 2; }
.smallq-2d.is-thinking .smallq-2d-image { animation: smallq-image-thinking .8s ease-in-out infinite; }
.smallq-2d.is-working .smallq-2d-image { animation: smallq-image-working .9s linear infinite; }
.smallq-2d.is-done .smallq-2d-image { animation: smallq-image-done .7s ease-out 1; }
.smallq-2d.is-speaking .smallq-2d-image { animation: smallq-image-speaking .28s ease-in-out infinite alternate; }
@keyframes smallq-image-blink {
  0%, 100% { filter: drop-shadow(0 14px 18px rgba(16,36,59,.16)); }
  45%, 60% { filter: drop-shadow(0 14px 18px rgba(16,36,59,.16)) brightness(.92); }
}
@keyframes smallq-image-wave { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes smallq-image-thinking { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }
@keyframes smallq-image-working { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes smallq-image-done { 0% { transform: scale(.97); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes smallq-image-speaking { from { transform: scale(.985); } to { transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) {
  .smallq-2d, .smallq-2d-image { animation: none !important; }
}
@media (max-width: 640px) {
  .mas-q-hero-stage { min-height: 128px; height: 128px; }
  .mas-q-hero-stage .smallq-2d { width: 118px; height: 124px; transform: translateX(-34px); animation: none; }
}

/* Desktop homepage presentation polish. Keep the approved mobile checkpoint unchanged. */
@media (min-width: 821px) {
  .mas-home-hero { padding: 60px 0 52px; }
  .mas-q-hero,
  .mas-q-hero-stage { min-height: 344px; }
  .mas-q-hero-stage {
    border-radius: 28px;
    background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.96) 0%, rgba(237,244,246,.7) 66%, rgba(228,238,242,.34) 100%);
    border-color: rgba(16, 36, 59, .08);
  }
  .mas-q-hero-stage .smallq-2d { transform: translateY(4px); }
  .mas-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 610px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(16, 36, 59, .14);
    list-style: none;
  }
  .mas-trust-strip li {
    display: grid;
    gap: 4px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.45;
  }
  .mas-trust-strip b { color: var(--blue); font-size: 11px; letter-spacing: .08em; }
}


@media (max-width: 820px) {
  .mas-trust-strip { display: none; }
}

/* Homepage editorial pass: client-facing header, title and RFQ sample board. */
@media (min-width: 821px) {
  .brand-logo { height: 84px; max-width: 344px; }
  .nav-links { gap: 20px; font-size: 14px; }
  .nav-links .nav-cta { margin-left: 0; padding: 10px 16px; }
  .mas-home-copy h1.mas-home-title {
    display: grid;
    gap: 8px;
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(34px, 2.85vw, 46px);
    line-height: 1.22;
    letter-spacing: -.055em;
  }
  .mas-home-title span { display: block; white-space: nowrap; }
  .mas-home-dashboard { min-height: 430px; display: flex; align-items: center; }
  .mas-home-dashboard .dashboard { width: 100%; padding: 16px; border-radius: 24px; }
}

.q-trigger-avatar { overflow: hidden; }
.q-trigger-avatar img { display: block; width: 124%; height: 124%; object-fit: contain; transform: translateY(4%); }
.q-panel .q-model-stage { display: none; }

@media (max-width: 820px) {
  .brand-logo { height: 68px; max-width: 300px; }
  .mas-home-dashboard { min-height: 0; }
  .mas-home-copy h1.mas-home-title { display: grid; gap: 4px; font-size: 32px; line-height: 1.25; max-width: 100%; }
  .mas-home-title span { display: block; }
}

@media (max-width: 620px) {
  .brand-logo { height: 68px; max-width: 280px; }
  .mas-home-copy h1.mas-home-title { font-size: 30px; line-height: 1.3; }
}

/* Keep the second aligned metric row visible on narrow home layouts. */
@media (max-width: 820px) {
  .mas-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-width: 610px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(16, 36, 59, .14);
    list-style: none;
  }
  .mas-trust-strip li {
    display: grid;
    gap: 4px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.45;
  }
  .mas-trust-strip b { color: var(--blue); font-size: 11px; letter-spacing: .08em; }
}

/* Keep the homepage Hero title aligned with the section headings. */
.mas-home-copy h1.mas-home-title { font-size: 34px; }
@media (max-width: 620px) {
  .mas-home-copy h1.mas-home-title { font-size: 24px; line-height: 1.35; }
}

/* Header and hero metrics alignment pass. */
@media (min-width: 821px) {
  .nav-company-entry { transform: translateY(23px); }
  .mas-feature-highlights li,
  .mas-trust-strip li { font-size: 16px; line-height: 1.5; }
  .mas-feature-highlights b,
  .mas-trust-strip b { font-size: 14px; }
}

/* Homepage inquiry-to-quote flow. */
.mas-flow-hero {
  padding: 58px 0 76px;
  background: linear-gradient(135deg, #f8fbfb 0%, #eef8f7 58%, #f7fbef 100%);
}
.mas-flow-layout {
  display: grid;
  grid-template-columns: minmax(260px, .74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.mas-flow-copy { min-width: 0; }
.mas-flow-copy h1 {
  max-width: 570px;
  margin: 16px 0 20px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.16;
  letter-spacing: -.06em;
}
.mas-flow-copy .lead { max-width: 570px; margin-bottom: 16px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.65; }
.mas-flow-note { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.mas-flow-actions { margin-top: 30px; }
.rfq-flow-board {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(123, 159, 177, .32);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(31, 61, 82, .13);
}
.rfq-flow-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.rfq-flow-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rfq-flow-status i { width: 8px; height: 8px; border-radius: 50%; background: #77b95d; box-shadow: 0 0 0 4px rgba(119,185,93,.14); }
.rfq-flow-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.rfq-flow-card { min-width: 0; padding: 17px; border: 1px solid rgba(125, 161, 180, .34); border-radius: 18px; background: #fff; }
.rfq-flow-card--inquiry { background: #f5f9ff; }
.rfq-flow-card--parse { background: #f2fbfa; }
.rfq-flow-card--quote { color: #fff; border-color: var(--ink); background: var(--ink); }
.rfq-flow-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 29px; }
.rfq-flow-step { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.rfq-flow-card--quote .rfq-flow-step { color: #b8ddff; }
.rfq-flow-badge { color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 1.3; text-align: right; }
.rfq-flow-card--quote .rfq-flow-badge { color: #d4e6f3; }
.rfq-flow-card h2 { margin: 16px 0 18px; color: inherit; font-size: 17px; line-height: 1.35; letter-spacing: -.03em; }
.rfq-flow-file { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.rfq-flow-file b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 10px; }
.rfq-flow-field { display: grid; gap: 3px; padding: 9px 0; border-top: 1px solid rgba(125, 161, 180, .2); font-size: 11px; }
.rfq-flow-field span, .rfq-flow-confidence span, .rfq-flow-quote-metrics span { color: var(--muted); }
.rfq-flow-field b { color: var(--ink); font-size: 12px; line-height: 1.35; }
.rfq-flow-card--quote .rfq-flow-field b, .rfq-flow-card--quote .rfq-flow-field span { color: #fff; }
.rfq-flow-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.rfq-flow-tags span { padding: 5px 7px; border-radius: 7px; color: #276c72; background: #dff2ef; font-size: 11px; }
.rfq-flow-confidence { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid rgba(125, 161, 180, .2); border-bottom: 1px solid rgba(125, 161, 180, .2); font-size: 11px; }
.rfq-flow-confidence b { color: var(--ink); font-size: 12px; }
.rfq-flow-confidence em { color: #5e9b58; font-size: 11px; font-style: normal; font-weight: 700; }
.rfq-flow-risk { margin-top: 13px; padding: 9px 10px; border-radius: 9px; color: #966d1d; background: #fff2cf; font-size: 11px; line-height: 1.45; }
.rfq-flow-card--parse p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.rfq-flow-quote-metrics { display: grid; gap: 9px; }
.rfq-flow-quote-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 11px; }
.rfq-flow-quote-metrics span { color: #bbd0de; }
.rfq-flow-quote-metrics b { color: #fff; font-size: 11px; }
.rfq-flow-review { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.2); color: #cce0ed; font-size: 11px; }
.rfq-flow-review span { color: #d6f46b; font-size: 15px; }
.rfq-flow-arrow { display: grid; place-items: center; color: var(--blue); font-size: 25px; font-weight: 700; }
.rfq-flow-board-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.rfq-flow-board-foot b { color: var(--blue); font-size: 14px; }

@media (max-width: 1100px) {
  .mas-flow-hero { padding: 42px 0 54px; }
  .mas-flow-layout { grid-template-columns: 1fr; gap: 32px; }
  .mas-flow-copy h1 { max-width: 680px; font-size: clamp(34px, 7vw, 48px); }
  .rfq-flow-board { padding: 16px; border-radius: 22px; }
  .rfq-flow-steps { grid-template-columns: 1fr; gap: 8px; }
  .rfq-flow-arrow { min-height: 18px; transform: rotate(90deg); }
  .rfq-flow-card { padding: 16px; }
}
@media (max-width: 520px) {
  .mas-flow-hero { padding-top: 28px; }
  .mas-flow-copy h1 { margin-top: 12px; font-size: 34px; }
  .mas-flow-copy .lead { font-size: 17px; }
  .mas-flow-actions { display: grid; grid-template-columns: 1fr; }
  .mas-flow-actions .button { width: 100%; justify-content: center; }
  .rfq-flow-board-head { align-items: flex-start; flex-direction: column; }
  .rfq-flow-board-foot { justify-content: flex-start; line-height: 1.5; }
}

/* MAS Match homepage: approved Radar Q artwork, light SVG/CSS animation. */
.nav { gap: 22px; }
.brand-logo { max-width: 230px; height: 56px; }
.nav-links { gap: clamp(12px, 1.45vw, 22px); font-size: 14px; }
.mas-match-hero { padding: 52px 0 48px; overflow: hidden; background: linear-gradient(135deg, #f7fbff 0%, #edf5fb 58%, #f7fafc 100%); }
.mas-match-hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(28px, 4vw, 58px); }
.mas-match-copy { min-width: 0; }
.mas-match-copy .eyebrow { color: #1474eb; font-weight: 800; letter-spacing: .08em; }
.mas-match-copy h1 { max-width: 620px; margin: 14px 0 18px; color: #10243b; font-size: clamp(40px, 4.1vw, 58px); line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
.mas-match-copy .lead { max-width: 590px; margin-bottom: 15px; color: #354e68; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.8; }
.mas-match-entry-note { max-width: 560px; margin: 0; color: #60748a; font-size: 14px; line-height: 1.7; }
.mas-match-actions { gap: 12px; margin-top: 26px; }
.mas-match-actions .button { min-height: 48px; padding-inline: 22px; }
.mas-match-actions .button-primary { background: #1267d9; color: #fff; }
.mas-match-actions .button-ghost { border-color: #9bbce2; color: #1458a8; background: rgba(255,255,255,.78); }
.mas-radar-board { min-width: 0; padding: 18px; border: 1px solid rgba(75, 127, 168, .22); border-radius: 25px; background: rgba(255,255,255,.92); box-shadow: 0 20px 54px rgba(29, 68, 102, .11); }
.mas-radar-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 14px; }
.mas-radar-kicker { color: #657c94; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.mas-radar-board-head h2 { margin: 5px 0 0; color: #10243b; font-size: 19px; line-height: 1.3; }
.mas-radar-demo-label { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: #2762a3; background: #edf5ff; font-size: 11px; font-weight: 800; }
.mas-radar-scene { position: relative; height: 320px; overflow: hidden; isolation: isolate; border: 1px solid rgba(119, 157, 184, .2); border-radius: 17px; background: radial-gradient(ellipse at 64% 50%, #f1f8ff 0%, #f8fbfd 66%, #fff 100%); }
.mas-radar-svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.mas-radar-rings circle { fill: none; stroke: rgba(55, 127, 193, .22); stroke-width: 1.2; }
.mas-radar-connections path { fill: none; stroke: url(#mas-radar-line); stroke-width: 1.5; stroke-dasharray: 5 6; }
.mas-radar-sweep { transform-box: view-box; transform-origin: 302px 156px; animation: mas-radar-scan 8s linear infinite; }
.mas-radar-nodes circle { fill: #1474eb; stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: mas-radar-node 18s ease-in-out infinite; }
.mas-radar-nodes circle:nth-child(2) { animation-delay: 3.6s; }
.mas-radar-nodes circle:nth-child(3) { animation-delay: 7.2s; }
.mas-radar-nodes circle:nth-child(4) { animation-delay: 10.8s; }
.mas-radar-origin { fill: #f6c945; stroke: #fff; stroke-width: 4; }
.mas-radar-upload, .mas-radar-supplier, .mas-radar-quote { position: absolute; z-index: 3; display: grid; gap: 3px; max-width: 182px; padding: 10px 12px; border: 1px solid rgba(79, 126, 163, .18); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(28, 69, 104, .1); }
.mas-radar-upload { top: 13px; left: 12px; }
.mas-radar-supplier { top: 13px; right: 12px; }
.mas-radar-quote { right: 12px; bottom: 12px; }
.mas-radar-upload span, .mas-radar-supplier span, .mas-radar-quote span { color: #3978b6; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.mas-radar-upload b, .mas-radar-supplier b, .mas-radar-quote b { color: #172f4a; font-size: 12px; line-height: 1.4; }
.mas-radar-upload small, .mas-radar-supplier small, .mas-radar-quote small { color: #6a7d90; font-size: 10px; line-height: 1.4; }
.mas-radar-q { position: absolute; z-index: 2; left: 8px; bottom: 7px; width: 38%; max-width: 230px; margin: 0; overflow: visible; border-radius: 0; background: transparent; }
.mas-radar-q img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.mas-radar-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 13px 0 0; padding: 0; list-style: none; }
.mas-radar-steps li { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 4px; border-radius: 9px; color: #50677e; font-size: 10px; line-height: 1.25; animation: mas-radar-step 18s ease-in-out infinite; animation-delay: calc(var(--radar-step) * 3.6s); }
.mas-radar-steps li span { flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #3f6f9a; background: #e9f2fb; font-size: 10px; font-weight: 800; }
.mas-radar-steps li b { font-weight: 700; }
.mas-radar-boundary { margin: 8px 2px 0; color: #77899a; font-size: 10px; line-height: 1.5; }
.mas-match-demo { scroll-margin-top: 24px; }
.mas-match-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mas-match-demo-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(16,36,59,.05); }
.mas-match-demo-role { color: #1a65bd; font-size: 12px; font-weight: 800; }
.mas-match-demo-card h3 { margin: 10px 0 8px; font-size: 19px; line-height: 1.4; }
.mas-match-demo-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.mas-match-demo-card a { color: #175fae; font-size: 13px; font-weight: 800; text-decoration: none; }
.mas-match-demo-card a:hover { text-decoration: underline; }
.mas-match-features { scroll-margin-top: 24px; }
.mas-match-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.mas-match-feature-grid article { min-width: 0; padding: 20px; border: 1px solid rgba(83, 125, 156, .2); border-radius: 15px; background: rgba(255,255,255,.88); }
.mas-match-feature-grid article > span { color: #1474eb; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.mas-match-feature-grid h3 { margin: 9px 0 7px; font-size: 17px; }
.mas-match-feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.mas-match-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mas-match-feature-actions .button-primary { background: #1267d9; color: #fff; }
@keyframes mas-radar-scan { to { transform: rotate(360deg); } }
@keyframes mas-radar-node { 0%, 8%, 100% { opacity: .5; transform: scale(.85); } 3%, 5% { opacity: 1; transform: scale(1.35); } }
@keyframes mas-radar-step { 0%, 15%, 100% { color: #50677e; background: transparent; } 3%, 10% { color: #1558a2; background: #edf5ff; } }
@media (min-width: 821px) and (max-width: 1100px) {
  .nav { gap: 12px; }
  .brand-logo { max-width: 190px; height: 48px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .mas-match-hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px; }
  .mas-radar-board { padding: 14px; }
}
@media (max-width: 820px) {
  .mas-match-hero { padding: 34px 0 32px; }
  .mas-match-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mas-match-copy h1 { max-width: 720px; font-size: clamp(36px, 7vw, 48px); }
  .mas-radar-board { width: 100%; max-width: 700px; margin-inline: auto; }
  .mas-match-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mas-match-demo-card:last-child { grid-column: 1 / -1; }
  .mas-match-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .nav { min-height: 66px; }
  .brand-logo { max-width: 185px; height: 50px; }
  .mobile-toggle { min-width: 42px; min-height: 42px; border-radius: 10px; background: #f2f7fd; }
  .nav-links { z-index: 20; grid-template-columns: 1fr; }
  .nav-links.open { display: grid; gap: 2px; }
  .nav-links a { min-height: 42px; display: flex; align-items: center; padding: 9px 8px; font-size: 14px; }
  .mas-match-hero { padding: 24px 0 25px; }
  .mas-match-hero-grid { gap: 18px; }
  .mas-match-copy h1 { margin: 9px 0 12px; font-size: clamp(32px, 9vw, 39px); line-height: 1.3; }
  .mas-match-copy .lead { font-size: 16px; line-height: 1.7; }
  .mas-match-entry-note { font-size: 13px; }
  .mas-match-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
  .mas-match-actions .button { min-width: 0; padding: 11px 8px; font-size: 13px; }
  .mas-radar-board { padding: 12px; border-radius: 19px; }
  .mas-radar-board-head { padding-bottom: 10px; }
  .mas-radar-board-head h2 { font-size: 17px; }
  .mas-radar-scene { height: 270px; }
  .mas-radar-upload, .mas-radar-supplier, .mas-radar-quote { max-width: 45%; padding: 8px 9px; }
  .mas-radar-upload { top: 9px; left: 8px; }
  .mas-radar-supplier { top: 9px; right: 8px; }
  .mas-radar-quote { right: 8px; bottom: 8px; }
  .mas-radar-upload b, .mas-radar-supplier b, .mas-radar-quote b { font-size: 10px; }
  .mas-radar-upload small, .mas-radar-supplier small, .mas-radar-quote small { font-size: 9px; }
  .mas-radar-q { left: 2px; bottom: 4px; width: 43%; max-width: 184px; }
  .mas-radar-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 9px; }
  .mas-radar-steps li { gap: 4px; padding: 5px 2px; font-size: 9px; }
  .mas-radar-steps li span { flex-basis: 18px; width: 18px; height: 18px; font-size: 9px; }
  .mas-radar-boundary { font-size: 9px; }
  .mas-match-demo-grid, .mas-match-feature-grid { grid-template-columns: 1fr; }
  .mas-match-demo-card:last-child { grid-column: auto; }
  .mas-match-demo-card { padding: 19px; }
  .mas-match-feature-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mas-match-feature-actions .button { min-width: 0; padding: 11px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .mas-radar-sweep, .mas-radar-nodes circle, .mas-radar-steps li { animation: none !important; }
  .mas-radar-sweep { opacity: .24; }
  .mas-radar-nodes circle { opacity: .85; }
  .mas-radar-steps li { color: #50677e; }
}
.q-trigger-avatar { overflow: visible; }
.q-trigger-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }
.mas-radar-loop { color: #1558a2; font-weight: 800; white-space: nowrap; }

.mas-match-value { background: #fff; }
.mas-match-workflow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mas-match-workflow li { min-width: 0; padding: 17px 15px; border: 1px solid rgba(83,125,156,.2); border-radius: 15px; background: #fbfdff; }
.mas-match-workflow li > span { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #1558a2; background: #eaf3ff; font-size: 11px; font-weight: 800; }
.mas-match-workflow h3 { margin: 11px 0 6px; font-size: 15px; line-height: 1.45; }
.mas-match-workflow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mas-vision-plus { background: linear-gradient(140deg, #eef5fd, #f7faff); }
.mas-vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mas-vision-card { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(83,125,156,.22); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(16,36,59,.05); }
.mas-vision-card h3 { margin: 10px 0; font-size: 21px; }
.mas-vision-card p, .mas-vision-card li { color: #526a82; font-size: 14px; line-height: 1.8; }
.mas-vision-card ul { margin: 12px 0 0; padding-left: 20px; }
.mas-vision-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mas-vision-tags span { padding: 6px 10px; border: 1px solid #d6e5f4; border-radius: 999px; color: #245f97; background: #f5f9ff; font-size: 12px; font-weight: 700; }
.mas-vision-boundary { margin: 17px 0 0; padding: 14px 17px; border-left: 3px solid #3978b6; border-radius: 0 10px 10px 0; color: #526a82; background: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.mas-collaboration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.mas-collaboration-grid article { min-width: 0; padding: 22px; border: 1px solid rgba(83,125,156,.2); border-radius: 16px; background: #fff; }
.mas-collaboration-step { color: #1767c2; font-size: 12px; font-weight: 800; }
.mas-collaboration-grid h3 { margin: 9px 0 7px; font-size: 18px; }
.mas-collaboration-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
@media (max-width: 1000px) {
  .mas-match-workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .mas-match-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mas-match-workflow li { padding: 14px 12px; }
  .mas-vision-grid, .mas-collaboration-grid { grid-template-columns: minmax(0, 1fr); }
  .mas-vision-card, .mas-collaboration-grid article { padding: 19px; }
}

/* Match the public header mark to the buyer/supplier portal brand dimensions. */
.nav .brand-logo { width: min(210px, 52vw); max-width: 210px; height: auto; }
.mas-match-copy h1 { font-size: clamp(38px, 3.5vw, 52px); }
.mas-match-copy h1 span { display: block; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(28px, 2.55vw, 34px); line-height: 1.3; letter-spacing: -.025em; }
@media (max-width: 820px) {
  .mas-match-copy h1 { font-size: clamp(34px, 6.2vw, 42px); }
}
@media (max-width: 620px) {
  .mas-match-copy h1 { font-size: clamp(29px, 8.4vw, 34px); }
}
