@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: 40px; letter-spacing: -.045em; line-height: 1.35; margin-bottom: 26px; font-weight: 700; }
h2 { font-size: 40px; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 23px; 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: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.04em; font-size: 21px; }
.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; }
.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: center; }
.hero-copy { max-width: 690px; }
.hero-copy .lead { max-width: 610px; }
.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: 13px; }

.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; }
.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: 40px; }
.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; }
@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-cta { margin: 7px 0 0; 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::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; }
  .copyright { display: grid; gap: 8px; }
}

@media (max-width: 490px) {
  h1, .page-hero h1 { font-size: 30px; line-height: 1.45; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
  .lead, .card p { font-size: 16px; }
  .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; }
}
