/*
  Tayvan.Net tasarım sistemi v3
  Mikro-estetik: HIGH-END MINIMALIST (kurumsal, aydınlık, görsel öncelikli)
  - Geri bildirim: siyah+turuncu yerine aydınlık zemin ve güven veren lacivert-mavi;
    hero'da fotoğraf; başlık/metin arasında güçlü ölçek farkı; daha geniş satır aralığı;
    "AI görünümlü" Geist yerine Red Hat Display + Red Hat Text.
  - Palet: 1 baskın (ticaret mavisi), 1 vurgu (mühür kırmızısı, yalnızca küçük işaretler), 3 yardımcı (zemin, ikincil metin, çizgi)
  - Köşe: 6px bileşen, 12px dış çerçeve. Tek tema (bilinçli olarak aydınlık).
*/

:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #ffffff;
  --ink: #142033;
  --muted: #4f5b6d;
  --line: #dfe4ea;
  --primary: #1d4f9c;
  --primary-ink: #ffffff;
  --primary-soft: #eaf1fb;
  --accent: #c8102e;

  --shadow-1: 0 1px 2px rgb(20 32 51 / 0.06);
  --shadow-2: 0 2px 4px rgb(20 32 51 / 0.04), 0 12px 32px -10px rgb(20 32 51 / 0.16);
  --shadow-3: 0 4px 8px rgb(20 32 51 / 0.06), 0 28px 60px -18px rgb(20 32 51 / 0.32);

  --font-display: "Red Hat Display", "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Red Hat Text", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cjk: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-seal: "Noto Serif TC", "Songti TC", "PMingLiU", serif;

  --r-sm: 4px;
  --radius: 6px;
  --r-shell: 12px;
  --wrap: 1240px;
  --gutter: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.zh { font-family: var(--font-cjk); font-weight: 500; }
.label { font-size: 0.875rem; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; }

/* ---------- Top bar + language switcher ---------- */
.topbar { background: var(--surface); color: var(--muted); font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.topbar .wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: inline-block; padding: 4px 12px; border-radius: var(--r-sm); text-decoration: none; color: inherit; white-space: nowrap; font-weight: 500; transition: color .3s var(--ease), background-color .3s var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { position: relative; }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.nav .brand { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; font-weight: 500; }
.nav-links a:not(.btn) { display: inline-block; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--muted); transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav-links li:last-child { margin-left: 8px; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 500; padding: 7px 12px; cursor: pointer; }
.nav-toggle .bars { position: relative; width: 14px; height: 10px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-toggle .bars::before { top: 1px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 8px 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn .arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: rgb(255 255 255 / 0.18); transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px -6px rgb(29 79 156 / 0.55); }
.btn-primary:hover { background: #173f7e; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; padding: 0 22px; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--primary-ink); }

/* ---------- Type scale: başlık büyük, ara başlık küçük, metin başlığın yaklaşık yarısı ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.3125rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.7; color: var(--muted); max-width: 46ch; }
.body { color: var(--muted); max-width: 60ch; font-size: 1.0625rem; }

section { padding: clamp(80px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head .label { display: block; margin-bottom: 14px; }
.section-head h2 + p { margin-top: 22px; }

/* ---------- Shell (light card) ---------- */
.shell { border-radius: var(--r-shell); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.shell > .core { height: 100%; border-radius: inherit; }

/* ---------- Hero with photo ---------- */
.hero { padding: 0; }
.hero .wrap { max-width: none; padding: 0; }
.hero-panel { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(12 26 48 / 0.88) 0%, rgb(12 26 48 / 0.72) 45%, rgb(12 26 48 / 0.35) 100%); }
.hero-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(48px, 6vw, 80px); }
.hero-kicker { display: inline-flex; gap: 10px; align-items: baseline; color: rgb(255 255 255 / 0.85); font-size: 1rem; font-weight: 500; margin-bottom: 24px; }
.hero-kicker .zh { color: #fff; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { margin-top: 24px; color: rgb(255 255 255 / 0.88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .btn-ghost { background: rgb(255 255 255 / 0.08); color: #fff; border-color: rgb(255 255 255 / 0.4); }
.hero .btn-ghost:hover { background: rgb(255 255 255 / 0.16); border-color: #fff; }
.hero .btn-primary { box-shadow: none; }
.hero-facts { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgb(255 255 255 / 0.22); }
.hero-facts .fact { padding: 28px 24px 36px 0; }
.hero-facts .fact + .fact { padding-left: 24px; border-left: 1px solid rgb(255 255 255 / 0.22); }
.fact-num { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.fact-txt { margin-top: 10px; color: rgb(255 255 255 / 0.8); font-size: 0.9375rem; line-height: 1.5; }

/* Desk card (all languages) */
.panel-shell { background: #fff; color: var(--ink); border-radius: var(--r-shell); box-shadow: var(--shadow-3); overflow: hidden; }
.panel-core { overflow: hidden; }
.desk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 0; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b4; }
.status[data-state="open"] { background: #e8f6ee; }
.status[data-state="open"] i { background: #1f9d55; }
.desk-clock { padding: 10px 24px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.desk-time { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.desk-sub { color: var(--muted); font-size: 0.9375rem; text-align: right; line-height: 1.6; }
.desk-sub strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.desk-list { list-style: none; margin: 0; padding: 6px 0; }
.desk-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; text-decoration: none; color: var(--ink); font-weight: 500; transition: background-color .3s var(--ease); }
.desk-list a:hover { background: var(--primary-soft); }
.desk-list a span:last-child { color: var(--primary); transition: transform .5s var(--ease); }
.desk-list a:hover span:last-child { transform: translateX(4px); }
.desk-fair { display: block; margin: 0 8px 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--primary-soft); text-decoration: none; transition: background-color .3s var(--ease); }
.desk-fair:hover { background: #dce8f8; }
.desk-fair .label { font-size: 0.8125rem; }
.desk-fair p { margin-top: 4px; color: var(--ink); font-weight: 700; }
.desk-fair p.fair-date { margin-top: 0; color: var(--muted); font-weight: 500; font-size: 0.9375rem; }

/* ---------- Why ---------- */
.why-statement { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.25; font-weight: 800; max-width: 22ch; }
.why-statement em { font-style: normal; color: var(--primary); }
.why-intro { margin-top: 24px; font-size: 1.125rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 72px); }
.why-item { border-top: 3px solid var(--primary); padding-top: 22px; }
.why-item p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* ---------- Bands ---------- */
.band { background: var(--surface); }

/* ---------- Services: 2x2 grid ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.services-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 56px); }
.services-head p { margin-top: 22px; }
.services-head .btn { margin-top: 28px; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service .core { padding: 32px; display: flex; flex-direction: column; transition: box-shadow .5s var(--ease); }
.service:hover { box-shadow: var(--shadow-2); }
.service h3 { font-size: 1.375rem; }
.service .core > p { margin-top: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 22px 0 0; list-style: none; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); font-size: 0.8125rem; font-weight: 500; color: var(--primary); }
.service-meta { display: none; }

/* ---------- Sectors / routes ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sector .core { position: relative; overflow: hidden; padding: 28px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.sector:hover { box-shadow: var(--shadow-2); }
.sector h3 { position: relative; }
.sector .tags { margin-top: 8px; color: var(--muted); font-size: 0.9875rem; line-height: 1.6; position: relative; }
.sector .fair { margin-top: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--primary); position: relative; }
.sector.wide { grid-column: auto; }
.sector.feature .core { background: var(--primary); color: #fff; }
.sector.feature h3 { color: #fff; }
.sector.feature .tags { color: rgb(255 255 255 / 0.85); }
.sector.feature .fair { color: #fff; }
.sector.tint .core { background: var(--primary-soft); }
.sector .glyph { position: absolute; right: 16px; top: 8px; font-family: var(--font-cjk); font-weight: 700; font-size: 4.5rem; line-height: 1; opacity: 0.12; pointer-events: none; user-select: none; }
.sector .glyph-latin { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; top: 16px; }

/* Photo cells (EN routes) */
.sector.photo-cell .core { color: #fff; min-height: 260px; isolation: isolate; }
.sector.photo-cell .cell-img { position: absolute; inset: 0; z-index: -2; }
.sector.photo-cell .cell-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.sector.photo-cell:hover .cell-img img { transform: scale(1.04); }
.sector.photo-cell .core::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 26 48 / 0.15) 0%, rgb(12 26 48 / 0.85) 100%); }
.sector.photo-cell h3 { color: #fff; }
.sector.photo-cell .tags, .sector.photo-cell .fair { color: rgb(255 255 255 / 0.9); }

/* Article figure */
.article-figure { margin: 40px 0 0; border-radius: var(--r-shell); overflow: hidden; aspect-ratio: 21 / 8; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .article-figure { aspect-ratio: 4 / 3; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; background: #fff; border-radius: var(--r-shell); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 800; margin-bottom: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.step .note { display: inline-block; margin-top: 14px; padding: 2px 10px; border-radius: 999px; background: #e8f6ee; font-size: 0.8125rem; font-weight: 600; color: #1f7a45; }

/* ---------- About (business card) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.card-stack { position: relative; height: 360px; max-width: 480px; }
.bcard { position: absolute; width: min(100%, 400px); aspect-ratio: 1.75; border-radius: 10px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-3); transition: transform .8s var(--ease); }
.bcard-back { top: 0; left: 0; transform: rotate(-4deg); background: var(--primary); color: #fff; }
.bcard-front { bottom: 0; right: 0; transform: rotate(2deg); background: #fff; color: var(--ink); border: 1px solid var(--line); }
.card-stack:hover .bcard-back { transform: rotate(-6deg) translate(-8px, -6px); }
.card-stack:hover .bcard-front { transform: rotate(3deg) translate(6px, 6px); }
.bcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bcard-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.bcard-role { margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.bcard-back .bcard-role { color: rgb(255 255 255 / 0.85); font-family: var(--font-cjk); letter-spacing: 0.06em; }
.bcard-back .bcard-name { font-family: var(--font-cjk); font-weight: 700; letter-spacing: 0.16em; font-size: 1.625rem; }
.bcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.bcard-back .bcard-foot { color: rgb(255 255 255 / 0.85); }
.bcard .brand { font-size: 1rem; }
.stamp { width: 58px; height: 58px; flex: none; border: 2px solid #fff; border-radius: 4px; color: #fff; display: grid; place-items: center; font-family: var(--font-seal); font-weight: 700; font-size: 1.25rem; line-height: 1.05; writing-mode: vertical-rl; letter-spacing: 0.06em; transform: rotate(-4deg); }
.about-text .prose { margin-top: 24px; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); max-width: 60ch; }
.prose strong { color: var(--ink); }

/* ---------- Photo band (unused when hero carries the photo) ---------- */
.photo { margin: clamp(48px, 6vw, 72px) 0 0; overflow: hidden; }
.photo .core { overflow: hidden; aspect-ratio: 21 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Writing ---------- */
.posts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.post { display: block; text-decoration: none; }
.post:hover { box-shadow: var(--shadow-2); }
.post .core { display: flex; flex-direction: column; padding: 30px; }
.post .meta { font-size: 0.8125rem; font-weight: 600; color: var(--primary); }
.post h3 { margin-top: 10px; font-size: 1.3125rem; }
.post p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.post .more { margin-top: auto; padding-top: 22px; font-size: 0.9375rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.post .more .arrow { transition: transform .5s var(--ease); }
.post:hover .more .arrow { transform: translateX(4px); }
.post.lead { grid-row: span 2; }
.post.lead .core { background: var(--primary); color: #fff; }
.post.lead .meta, .post.lead p, .post.lead .more { color: rgb(255 255 255 / 0.88); }
.post.lead h3 { color: #fff; font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.2; max-width: 18ch; margin-top: auto; padding-top: 56px; font-weight: 800; }
.post.lead p { font-size: 1.0625rem; }
.posts-foot { margin-top: 28px; font-weight: 600; }
.posts-foot a { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; font-weight: 600; transition: transform .5s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 52px 24px 0; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact .shell { background: var(--primary); border: 0; box-shadow: var(--shadow-3); color: #fff; }
.contact .core { padding: clamp(32px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact h2 { color: #fff; max-width: 14ch; }
.contact .lede { margin-top: 20px; color: rgb(255 255 255 / 0.85); }
.contact .btn { margin-top: 32px; background: #fff; color: var(--primary); box-shadow: none; }
.contact .btn .arrow { background: var(--primary-soft); }
.contact .btn:hover { background: var(--primary-soft); }
.contact-list { margin: 0; display: grid; border-top: 1px solid rgb(255 255 255 / 0.25); }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / 0.25); }
.contact-list dt { color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { margin-top: 12px; max-width: 34ch; line-height: 1.7; }
.footer h2 { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; }

/* ---------- Index pages ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); background: var(--surface); margin-bottom: clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 20px; }
.index-list { border-top: 1px solid var(--line); }
.index-item { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.index-item .label { color: var(--primary); }
.index-item h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.index-item p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.index-item .arrow { color: var(--primary); transition: transform .5s var(--ease); }
.index-item:hover .arrow { transform: translateX(4px); }
.index-item:hover h2 { color: var(--primary); }

/* ---------- Article ---------- */
.crumbs { padding-top: 36px; font-size: 0.875rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b6bfcb; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.article-head { padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); max-width: 20ch; margin-top: 12px; }
.article-head .lede { margin-top: 22px; max-width: 60ch; }
.byline { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.9375rem; color: var(--muted); }
.byline strong { color: var(--ink); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: 56px 0 104px; }
.article-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 0.9375rem; }
.toc p { margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.toc a { display: block; padding-left: 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.article { max-width: 70ch; font-size: 1.125rem; line-height: 1.85; }
.summary-box { margin-bottom: 52px; padding: 26px 28px; background: var(--primary-soft); border-radius: var(--r-shell); }
.article .summary-box h2 { font-size: 1rem; font-weight: 800; margin: 0 0 8px; color: var(--primary); }
.summary-box p { margin: 0; }
.summary-box ul { margin: 8px 0 0; padding-left: 20px; }
.summary-box li + li { margin-top: 6px; }
.article h2 { font-size: clamp(1.7rem, 2.8vw, 2.125rem); margin: 64px 0 20px; }
.article .summary-box + h2 { margin-top: 0; }
.article h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.article p { margin-top: 18px; }
.article h2 + p { margin-top: 0; }
.article ul, .article ol.list { margin: 18px 0 0; padding-left: 22px; }
.article li { margin-top: 10px; }
.article li::marker { color: var(--primary); font-weight: 700; }
.article blockquote { margin: 40px 0; padding: 24px 28px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.5; font-weight: 700; }
.article blockquote p { margin: 0; }
.article .note { margin-top: 28px; padding: 22px 24px; background: var(--surface); border-radius: var(--r-shell); }
.article .note strong { display: block; margin-bottom: 4px; }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-shell); background: #fff; }
.article table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; min-width: 520px; }
.article th, .article td { text-align: left; padding: 14px 18px; vertical-align: top; }
.article thead th { font-size: 0.8125rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.article tbody tr + tr td { border-top: 1px solid var(--line); }
.article td:first-child { font-weight: 700; white-space: nowrap; }
.table-note { font-size: 0.9375rem; color: var(--muted); }
.author-box { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.author-box .stamp { width: 56px; height: 56px; border-color: var(--accent); color: var(--accent); }
.author-box p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.author-box p strong { color: var(--ink); }
.article-cta { margin-top: 48px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--primary); color: #fff; border-radius: var(--r-shell); }
.article .article-cta h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.article .article-cta p { margin-top: 6px; color: rgb(255 255 255 / 0.85); font-size: 1rem; }
.article-cta .btn { background: #fff; color: var(--primary); box-shadow: none; }
.article-cta .btn .arrow { background: var(--primary-soft); }
.related { background: var(--surface); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- Traditional Chinese ---------- */
:lang(zh) body, body:lang(zh) { font-family: "Red Hat Text", var(--font-cjk); line-height: 1.9; letter-spacing: 0.02em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .why-statement { font-family: "Red Hat Display", var(--font-cjk); letter-spacing: 0.02em; line-height: 1.35; font-weight: 700; word-break: keep-all; }
:lang(zh) h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); max-width: 14em; font-weight: 900; }
:lang(zh) .hero h1 { max-width: 13em; }
:lang(zh) .lede, :lang(zh) .body, :lang(zh) .prose p { max-width: 36em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-anim > * { animation: rise 1s var(--ease) both; }
  .hero-anim > *:nth-child(2) { animation-delay: .08s; }
  .hero-anim > *:nth-child(3) { animation-delay: .16s; }
  .hero-anim > *:nth-child(4) { animation-delay: .24s; }
  .hero-side { animation: rise 1.1s .25s var(--ease) both; }
  .hero-bg img { animation: settle 2.4s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a:not(.btn) { padding: 8px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-links { display: none; position: absolute; top: calc(var(--nav-h) + 8px); left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-shell); padding: 10px; box-shadow: var(--shadow-3); }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px; font-size: 1rem; }
  .nav-links li:last-child { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; }
  .hero-grid, .about-grid, .faq-grid, .contact-grid, .posts, .related-grid, .footer-grid, .service-list { grid-template-columns: 1fr; }
  .hero-panel::after { background: linear-gradient(180deg, rgb(12 26 48 / 0.85), rgb(12 26 48 / 0.7)); }
  .post.lead { grid-row: auto; }
  .post.lead h3 { padding-top: 24px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts .fact:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 0.22); }
  .article-layout { grid-template-columns: 1fr; padding-top: 40px; }
  .toc { position: static; }
  .index-item { grid-template-columns: 1fr; gap: 8px; }
  .index-item .arrow { display: none; }
  .card-stack { height: 330px; margin: 0 auto; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js .nav-links.open li { animation: rise .6s var(--ease) both; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .topbar p { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .hero-grid { padding-top: 48px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts .fact { padding: 20px 12px 24px 0; }
  .hero-facts .fact + .fact { padding-left: 12px; }
  .why-grid, .steps, .sector-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .desk-clock { flex-direction: column; align-items: flex-start; }
  .desk-sub { text-align: left; }
  .card-stack { height: 290px; }
  .bcard { width: 88%; padding: 20px 22px; }
  .bcard-name { font-size: 1.125rem; }
  .bcard-back .bcard-name { font-size: 1.375rem; }
  .bcard-foot { font-size: 0.75rem; }
  .stamp { width: 46px; height: 46px; font-size: 1rem; }
  .service .core { padding: 24px; }
  .article { font-size: 1.0625rem; }
  .article-cta { padding: 24px; }
}

/* ---------- TradeAI (platform band) ---------- */
.tradeai { background: linear-gradient(160deg, #0d2550 0%, #143a78 55%, #1d4f9c 100%); color: #fff; position: relative; overflow: hidden; }
.tradeai::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.tradeai .wrap { position: relative; }
.tradeai h2, .tradeai h3 { color: #fff; }
.tai-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.tai-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.22); font-size: 0.875rem; font-weight: 600; }
.tai-badge i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; }
.tai-name { display: block; margin-top: 22px; font-family: var(--font-display); font-weight: 900; font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; }
.tai-name span { color: #8fb8ff; }
.tradeai h2 { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; max-width: 20ch; }
.tradeai .lede { margin-top: 20px; color: rgb(255 255 255 / 0.85); max-width: 52ch; }
.tai-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tradeai .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.tradeai .btn-primary .arrow { background: var(--primary-soft); }
.tradeai .btn-primary:hover { background: #eaf1fb; }
.tradeai .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.tradeai .btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
.tai-built { margin-top: 22px; font-size: 0.9375rem; color: rgb(255 255 255 / 0.7); }

.tai-report { margin: 0; background: #fff; color: var(--ink); border-radius: var(--r-shell); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45); overflow: hidden; }
.tai-report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tai-report-head strong { font-family: var(--font-display); font-size: 1.0625rem; }
.tai-report-head small { display: block; color: var(--muted); font-size: 0.8125rem; }
.tai-tag { padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.tai-rows { list-style: none; margin: 0; padding: 8px 0; }
.tai-rows li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 22px; font-size: 0.9375rem; line-height: 1.5; }
.tai-rows li b { font-weight: 700; }
.tai-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; margin-top: 1px; }
.tai-ok .tai-ico { background: #1f9d55; }
.tai-warn .tai-ico { background: #d97706; }
.tai-review .tai-ico { background: var(--primary); }
.tai-warn { background: #fff8eb; }
.tai-report-foot { padding: 12px 22px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }

.tai-modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
.tai-module { padding: 26px; border-radius: var(--r-shell); background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); }
.tai-module .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--primary); font-family: var(--font-display); font-weight: 900; margin-bottom: 16px; }
.tai-module p { margin-top: 10px; color: rgb(255 255 255 / 0.8); font-size: 1rem; line-height: 1.7; }

.tai-flow { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(255 255 255 / 0.2); }
.tai-flow li { padding: 22px 20px 0 0; position: relative; }
.tai-flow li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #8fb8ff; }
.tai-flow strong { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.tai-flow span { display: block; margin-top: 6px; color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; line-height: 1.6; }
.tai-note { margin-top: 40px; color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; max-width: 70ch; }

@media (max-width: 1080px) { .tai-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tai-top { grid-template-columns: 1fr; } .tai-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 560px) { .tai-modules, .tai-flow { grid-template-columns: 1fr; } .tai-cta .btn { flex: 1 1 auto; } }
:lang(zh) .tai-name { letter-spacing: -0.01em; }

.footer .footer-legal { margin-top: 12px; max-width: none; font-size: 0.8125rem; line-height: 1.7; color: var(--muted); }
