/* HB Global Trade: layout concept = trade-ledger grid. Thin rules, teal field, one coral action colour. System fonts only (no remote font loading, GDPR). */
:root {
  --bg: #F1F5F4;
  --surface: #FFFFFF;
  --ink: #10292B;
  --muted: #4A6264;
  --line: #D3DFDD;
  --primary: #0E5A5C;
  --primary-ink: #FFFFFF;
  --tint: #E2EEEC;
  --accent: #C2410C;
  --accent-ink: #FFFFFF;
  --focus: #0E5A5C;
  --todo-bg: #FFF1B8;
  --todo-ink: #4A3600;
  --font: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1819; --surface: #112325; --ink: #E7F0EF; --muted: #9DB6B4; --line: #244040;
    --primary: #52B6B2; --primary-ink: #062020; --tint: #16302F; --accent: #FF8F63; --accent-ink: #2A0E03;
    --focus: #52B6B2; --todo-bg: #4A3C0B; --todo-ink: #FFE9A0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1819; --surface: #112325; --ink: #E7F0EF; --muted: #9DB6B4; --line: #244040;
  --primary: #52B6B2; --primary-ink: #062020; --tint: #16302F; --accent: #FF8F63; --accent-ink: #2A0E03;
  --focus: #52B6B2; --todo-bg: #4A3C0B; --todo-ink: #FFE9A0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw + 0.6rem, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 2vw + 0.9rem, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--muted); max-width: 58ch; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 750; letter-spacing: -0.01em; font-size: 1.12rem; white-space: nowrap; }
.brand img { width: 38px; height: 38px; display: block; }
.brand small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); white-space: nowrap; padding: 8px 10px; border-radius: 8px; font-size: 0.97rem; font-weight: 550; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--primary); }
.lang { display: flex; gap: 2px; margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a { padding: 4px 9px; font-size: 0.85rem; font-weight: 650; }
.lang a[aria-current="true"] { background: var(--primary); color: var(--primary-ink); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; display: grid; gap: 2px; }
.menu nav a { padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.menu nav a[aria-current="page"] { background: var(--tint); color: var(--primary); }
.menu .lang { margin: 8px 0 0; width: fit-content; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
  .bar { position: relative; }
}

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 650; padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .note { margin-top: 22px; font-size: 0.9rem; color: var(--muted); }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px 10px; }
.ledger h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 16px 0 10px; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 600; }
.ledger li span:last-child { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw + 0.6rem, 3rem); max-width: 22ch; }
.page-head .lead { margin-top: 18px; margin-bottom: 0; }

section.block { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
section.block > .wrap > h2 { margin-bottom: 26px; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--muted); margin: 0; font-size: 0.99rem; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 650; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.card-link:hover { border-color: var(--primary); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.steps li { counter-increment: s; border-top: 3px solid var(--primary); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 0.85rem; font-weight: 750; color: var(--primary); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.99rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.97rem; }
.group { margin-bottom: 22px; }
.group h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 650; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter button { font-family: inherit; font-size: 0.95rem; font-weight: 620; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.brand-card[hidden] { display: none; }
.brand-card h3 { font-size: 1.3rem; }
.disclaimer { font-size: 0.88rem; color: var(--muted); margin-top: 24px; max-width: 80ch; }

ul.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
ul.ticks strong { display: block; }
ul.ticks span { color: var(--muted); }

.cta-band { background: var(--primary); color: var(--primary-ink); padding-block: clamp(36px, 5vw, 60px); }
.cta-band h2 { max-width: 24ch; }
.cta-band p { margin-top: 12px; opacity: 0.92; }
.cta-band .btn-primary { background: var(--surface); color: var(--primary); }

/* tables */
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 38%; font-weight: 650; color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; }

/* form */
form.inquiry { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 30px); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
label, legend { font-weight: 640; font-size: 0.95rem; display: block; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; min-width: 0;
}
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: 0.98rem; margin: 0; }
.check input { margin-top: 5px; accent-color: var(--primary); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
#form-status { display: none; padding: 14px 16px; border-radius: 10px; background: var(--tint); font-weight: 560; }
#form-status.show { display: block; }

/* legal */
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.legal p, .legal li { max-width: 74ch; }
.legal ul { padding-left: 20px; }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

footer { padding-block: 40px 48px; font-size: 0.93rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
footer a { color: var(--ink); }
footer p { margin: 0 0 4px; }
.fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* brand logo tiles: always white so logos stay legible in dark mode */
.logo-tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; height: 120px; display: grid; place-items: center; padding: 14px; margin-bottom: 14px; }
.logo-tile { position: relative; overflow: hidden; }
.logo-tile img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.logo-tile .wordmark { color: #10292B; font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; text-align: center; }

/* trust strip, FAQ, two-path CTA */
.truststrip { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(32px, 4.5vw, 52px); }
.truststrip h2 { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: 0 0 14px; }
.truststrip dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0; }
.truststrip dl > div { padding: 12px 18px 12px 0; }
.truststrip dt { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.truststrip dd { margin: 0; font-weight: 650; font-size: 1.12rem; line-height: 1.4; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; font-size: 1.3rem; line-height: 1.2; color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.cta-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 24px; }
.cta-two > div { border: 1px solid rgba(255,255,255,0.35); border-radius: 14px; padding: 22px; }
.cta-two h3 { margin-bottom: 4px; }
.cta-two .actions { margin-top: 18px; }

/* home: featured partner logos, supply tiles */
.brandgrid { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 22px 22px; }
.brandgrid h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 14px 0 12px; margin: 0; }
.brandgrid .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brandgrid .logo-tile { height: 92px; margin: 0; }
.brandgrid .more-link { display: inline-block; margin-top: 18px; font-weight: 650; text-decoration: none; color: var(--primary); }
.brandgrid .more-link:hover { text-decoration: underline; }
.supply { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.supply li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.supply strong { font-size: 1rem; overflow-wrap: anywhere; hyphens: auto; }
.supply li { min-width: 0; }
.supply span { color: var(--primary); font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.partner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.partner-row .logo-tile { height: 112px; margin: 0; }

/* dark hero */
.hero-dark { position: relative; overflow: hidden; background: #0B4A4C; color: #FFFFFF; border-bottom: 0; padding-block: clamp(48px, 8vw, 104px); }
.hero-dark .hero-inner { position: relative; z-index: 1; }
.hero-dark h1 { color: #FFFFFF; max-width: 20ch; }
.hero-dark .eyebrow { color: #9ED9D4; }
.hero-dark .lead { color: rgba(255,255,255,0.86); }
.hero-dark .btn-primary { background: #C2410C; color: #FFFFFF; }
.hero-dark .btn-ghost { border-color: rgba(255,255,255,0.7); color: #FFFFFF; }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.hero-dark .note { color: rgba(255,255,255,0.7); }
.hero-dark :focus-visible { outline-color: #FFFFFF; }
.hero-mark { position: absolute; right: clamp(-120px, -4vw, -20px); top: 50%; width: clamp(280px, 38vw, 560px); height: auto; transform: translateY(-50%); stroke: #FFFFFF; opacity: 0.05; pointer-events: none; }
.hero-points { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.22); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px 24px; max-width: 1040px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 600; font-size: 0.97rem; color: rgba(255,255,255,0.92); }
.hero-points li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid #9ED9D4; border-bottom: 2px solid #9ED9D4; transform: rotate(-45deg); }
.hero-dark .actions { margin-top: 30px; }

/* Chinese: no hyphenation, slightly looser line height */
:lang(zh) { hyphens: none; line-height: 1.75; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { line-height: 1.3; letter-spacing: 0; }

/* Company at a glance: one row of six on wide screens */
@media (min-width: 1060px) { .truststrip dl { grid-template-columns: repeat(5, 1fr); } .truststrip dl > div { padding-right: 14px; } .truststrip dd { font-size: 1.08rem; } }
