/* ================================================================
   China Market Guide — Premium Design System v2 ("Western SaaS")
   Palette:  Navy #0b1224 · Primary #1a56db · Accent #f97316
   Fonts:    Sora (display) + Inter (body) via Google Fonts
   ================================================================ */

/* ==== Self-hosted fonts (woff2, latin subset) ==== */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/inter-400-latin.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/inter-500-latin.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/inter-600-latin.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/inter-700-latin.woff2") format("woff2");}
@font-face{font-family:"Sora";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/sora-600-latin.woff2") format("woff2");}
@font-face{font-family:"Sora";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/sora-700-latin.woff2") format("woff2");}
@font-face{font-family:"Sora";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/sora-800-latin.woff2") format("woff2");}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #0b1224;
  background: #f6f8fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a56db; text-decoration: none; transition: color .18s ease; }
a:hover { color: #f97316; }
ul, ol { padding-left: 1.35rem; margin: .8rem 0; }
h1, h2, h3, h4 { color: #0b1224; line-height: 1.18; font-weight: 700; font-family: "Sora", "Inter", -apple-system, Arial, sans-serif; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 1.1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 1.7rem 0 .65rem; color: #0b1224; }
h4 { font-size: 1.02rem; margin: 1rem 0 .55rem; }
p { margin-bottom: 1rem; color: #3f4c63; }
strong { color: #0b1224; }
section h2:not(.no-line)::after {
  content: ""; display: block; width: 58px; height: 4px; margin-top: .55rem;
  background: linear-gradient(90deg, #f97316, #1a56db); border-radius: 4px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }

/* ---------- Header / Nav (glass) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(11,18,36,.06);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(13,29,80,.08); border-bottom-color: transparent; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: .8rem 22px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: "Sora"; font-weight: 700; font-size: 1.06rem; color: #0b1224; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a56db 0%, #4f46e5 100%);
  color: #fff; font-size: 1rem; box-shadow: 0 4px 12px rgba(26,86,219,.35);
}
.brand-text strong { color: #1a56db; font-weight: 800; }
.site-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; align-items: center; }
.nav-menu a { color: #3f4c63; font-weight: 550; padding: .35rem .1rem; border-radius: 8px; position: relative; }
.nav-menu a:hover { color: #1a56db; text-decoration: none; }
.nav-menu a.active { color: #1a56db; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, #1a56db, #f97316);
}
.nav-cta {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important; padding: .55rem 1.15rem !important; border-radius: 999px;
  font-weight: 650 !important; box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.nav-cta:hover { box-shadow: 0 6px 20px rgba(249,115,22,.5); transform: translateY(-1px); }
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; width: 42px; height: 40px; flex-direction: column; justify-content: space-around; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2.6px; border-radius: 3px; background: #0b1224; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9.4px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5.2rem 0 4.2rem;
  background:
    radial-gradient(46rem 30rem at 8% -12%, rgba(26,86,219,.16), transparent 60%),
    radial-gradient(40rem 26rem at 96% 4%, rgba(249,115,22,.16), transparent 62%),
    radial-gradient(30rem 22rem at 55% 120%, rgba(79,70,229,.10), transparent 60%),
    #f6f8fc;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,.055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 72%);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.15rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.78); border: 1px solid rgba(13,29,80,.09);
  backdrop-filter: blur(10px);
  color: #29354d; font-size: .8rem; font-weight: 600;
  padding: .34rem .8rem; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(13,29,80,.05);
}
.hero-badge b { color: #1a56db; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); max-width: 820px; }
.hero h1 .grad {
  background: linear-gradient(92deg, #1a56db 0%, #6d28d9 55%, #ea580c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.28rem); color: #46536c; max-width: 690px; margin: 1.15rem 0 2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.15rem; font-size: .92rem; color: #46536c; font-weight: 550; }

/* ----- Hero stats band ----- */
.stat-band {
  margin-top: 3.2rem; background: rgba(255,255,255,.6); border: 1px solid rgba(13,29,80,.07);
  border-radius: 18px; padding: 1.4rem 1.6rem; backdrop-filter: blur(10px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  box-shadow: 0 12px 40px rgba(13,29,80,.07);
}
.stat { text-align: center; }
.stat b { display: block; font-family: "Sora"; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: #0b1224; font-variant-numeric: tabular-nums; }
.stat b em { color: #f97316; font-style: normal; }
.stat span { font-size: .82rem; color: #64748b; font-weight: 550; letter-spacing: .02em; }

/* ----- Keyword marquee ----- */
.ticker {
  overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(13,29,80,.06);
  border-bottom: 1px solid rgba(13,29,80,.06); background: #fff; padding: .8rem 0;
}
.ticker-track { display: inline-flex; gap: 2.6rem; animation: tick 38s linear infinite; padding-left: 1rem; }
.ticker-track span { color: #64748b; font-weight: 600; font-size: .86rem; letter-spacing: .04em; }
.ticker-track span::before { content: "◆  "; color: #f97316; font-size: .7rem; vertical-align: 2px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 650; border: 2px solid transparent; cursor: pointer;
  transition: all .2s ease; font-size: .99rem; line-height: 1.3;
  text-decoration: none !important;
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.06rem; }
.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(249,115,22,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,.5); color: #fff; }
.btn-secondary { background: rgba(255,255,255,.8); color: #1a56db; border-color: rgba(26,86,219,.35); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: #1a56db; color: #fff; border-color: #1a56db; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: #0b1224; border-color: rgba(11,18,36,.25); }
.btn-outline-dark:hover { background: #0b1224; color: #fff; border-color: #0b1224; }

/* ---------- Page hero (articles) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 4.2rem 0 3.1rem;
  background:
    radial-gradient(42rem 24rem at 90% -30%, rgba(249,115,22,.14), transparent 60%),
    radial-gradient(40rem 26rem at 4% -20%, rgba(26,86,219,.15), transparent 60%),
    #fff;
  border-bottom: 1px solid rgba(13,29,80,.06);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  text-transform: none; letter-spacing: .01em;
  color: #1a56db; font-weight: 700; font-size: .84rem;
  background: rgba(26,86,219,.08); border: 1px solid rgba(26,86,219,.18);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.page-hero h1 { max-width: 880px; }
.page-hero .lead { color: #46536c; font-size: 1.12rem; max-width: 860px; }
.toc-box {
  background: #fff; border: 1px solid rgba(13,29,80,.09); border-radius: 16px;
  padding: 1.4rem 1.6rem; margin-top: 2rem; max-width: 660px;
  box-shadow: 0 10px 34px rgba(13,29,80,.06);
  position: relative;
}
.toc-box::before { content: "📚"; position: absolute; top: -14px; left: 22px; font-size: 1.3rem; background: #fff; padding: 0 .4rem; }
.toc-box strong { display: block; margin-bottom: .55rem; color: #0b1224; font-family: "Sora"; }
.toc-box ul, .toc-box ol { margin: 0 0 0 1.1rem; }
.toc-box li { margin: .28rem 0; }
.toc-box a { font-weight: 600; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.4rem; align-items: start; }
.article-wrap article { max-width: 830px; margin: 0 auto; }

/* ---------- Feature cards ---------- */
.feature-card {
  position: relative;
  background: #fff; border: 1px solid rgba(13,29,80,.08);
  border-radius: 18px; padding: 1.7rem 1.6rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 2px 8px rgba(13,29,80,.04);
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #1a56db, #f97316);
  opacity: 0; transition: opacity .25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(13,29,80,.1); border-color: rgba(26,86,219,.25); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.55rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(26,86,219,.1), rgba(249,115,22,.1));
  border: 1px solid rgba(26,86,219,.12);
}
.feature-card h3 { margin-bottom: .45rem; }
.feature-card p { font-size: .95rem; color: #4d5a72; margin-bottom: 0; }

/* ---------- Guide cards (with real cover images) ---------- */
.guide-card {
  background: #fff; border: 1px solid rgba(13,29,80,.08); border-radius: 20px;
  overflow: hidden; color: inherit; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration: none; box-shadow: 0 2px 10px rgba(13,29,80,.05);
}
.guide-card:hover {
  text-decoration: none; transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(13,29,80,.14); border-color: rgba(26,86,219,.2);
}
.guide-cover { position: relative; height: 185px; overflow: hidden; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-card:hover .guide-cover img { transform: scale(1.06); }
.guide-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,36,0) 30%, rgba(11,18,36,.55) 100%);
}
.guide-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: #0b1224;
  padding: .28rem .7rem; font-size: .72rem; border-radius: 999px; font-weight: 750;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); letter-spacing: .02em;
}
.guide-title-overlay {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  color: #fff; font-family: "Sora"; font-weight: 700; font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.guide-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.guide-body h3 { margin: 0 0 .45rem; font-size: 1.12rem; }
.guide-body p { font-size: .93rem; color: #4d5a72; margin-bottom: .8rem; }
.guide-more { margin-top: auto; color: #1a56db; font-weight: 650; font-size: .9rem; }
.guide-card:hover .guide-more { color: #f97316; }

/* gradient covers (blog cards without image) */
.cover-grad-orange { background: linear-gradient(135deg, #f97316, #ea580c 55%, #dc2626); }
.cover-grad-blue   { background: linear-gradient(135deg, #1a56db, #4f46e5 60%, #7c3aed); }
.cover-grad-navy   { background: linear-gradient(135deg, #0b1224, #1e3a8a); }

/* ---------- Trust / quote ---------- */
.trust-list { list-style: none; padding: 0; }
.trust-list li { padding: .85rem 0 .85rem 2rem; border-bottom: 1px dashed #e2e8f0; position: relative; color: #3f4c63; }
.trust-list li::before {
  content: "✓"; position: absolute; left: .2rem; top: .85rem;
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, #16a34a, #4ade80); color: #fff;
  font-size: .78rem; font-weight: 800; box-shadow: 0 3px 8px rgba(22,163,74,.3);
}
.quote-card {
  background: linear-gradient(150deg, rgba(26,86,219,.07), rgba(249,115,22,.08) 85%);
  border: 1px solid rgba(26,86,219,.14); border-radius: 20px; padding: 2rem;
  box-shadow: 0 14px 40px rgba(13,29,80,.07);
}
.quote-text { font-size: 1.13rem; font-style: italic; color: #0b1224; line-height: 1.65; margin-bottom: 1rem; }
.quote-author { font-size: .9rem; color: #64748b; font-weight: 700; }
.blockquote {
  font-size: 1.2rem; font-style: italic; color: #0b1224;
  border-left: 4px solid #f97316; padding: .7rem 1.5rem; margin: 1.5rem 0;
  background: linear-gradient(90deg, rgba(249,115,22,.09), transparent 90%);
  border-radius: 0 12px 12px 0;
}

/* ---------- CTA sections ---------- */
.cta-section { padding: 4.5rem 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b1224 0%, #1e3a8a 55%, #1a56db 100%);
  color: #fff; padding: 3.4rem 2.6rem; border-radius: 26px;
  box-shadow: 0 30px 70px rgba(11,18,36,.35);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(40rem 20rem at 85% 20%, rgba(0,0,0,.7), transparent 70%);
}
.cta-box h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-box p { color: #c7d4f5; font-size: 1.05rem; max-width: 640px; margin: 0 auto 1.9rem; }
.short-form { max-width: 620px; margin: 0 auto 1rem; display: grid; grid-template-columns: 1.5fr 1.4fr auto; gap: .65rem; align-items: center; }
.short-form input {
  padding: .9rem 1.1rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; background: rgba(255,255,255,.1); color: #fff;
  font-size: .97rem; width: 100%; outline: none; transition: all .18s;
}
.short-form input:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.16); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.short-form input::placeholder { color: #93a4c8; }
.small-note { color: #9fb2dd; font-size: .85rem; }
.hp-field { display: none; }

.form-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: .95rem 1.2rem; margin-top: .95rem; font-size: .95rem; }
.form-error   { background:#fef2f2;  border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: .95rem 1.2rem; margin-top: .95rem; font-size: .95rem; }

/* ---------- Contact form ---------- */
.contact-form { background: #fff; border: 1px solid rgba(13,29,80,.08); border-radius: 20px; padding: 2rem; box-shadow: 0 12px 40px rgba(13,29,80,.06); }
.contact-form label { display: block; font-weight: 650; color: #0b1224; margin-bottom: .4rem; font-size: .93rem; }
.required { color: #dc2626; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #dbe2ee; border-radius: 12px;
  font-size: 1rem; color: #0b1224; background: #fbfcfe; transition: all .16s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #1a56db; background: #fff;
  box-shadow: 0 0 0 4px rgba(26,86,219,.1);
}
.checkbox-label { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400 !important; color: #4d5a72 !important; font-size: .89rem !important; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: .25rem; accent-color: #1a56db; }
.form-note { color: #64748b; margin-top: .6rem; }

.feature-stack h3 { margin-top: 0; border: none; }
.step-stack { display: flex; gap: 1.05rem; margin: 1.35rem 0; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #1a56db, #4f46e5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .98rem; box-shadow: 0 6px 14px rgba(26,86,219,.3);
}
.step-stack h4 { margin: 0 0 .25rem; font-size: .99rem; color: #0b1224; }
.step-stack p { font-size: .9rem; color: #4d5a72; margin: 0; }
.trust-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; padding: 1.4rem 1.5rem; margin-top: 1.5rem; }
.trust-box h4 { color: #15803d; margin-top: 0; }
.trust-box ul { padding-left: 1.3rem; margin: .3rem 0; font-size: .92rem; color: #065f46; }

.col-card { background: #fff; border: 1px solid rgba(13,29,80,.08); border-radius: 18px; padding: 1.9rem; box-shadow: 0 10px 30px rgba(13,29,80,.05); }
.col-card.good { border-top: 4px solid #16a34a; }
.col-card.bad  { border-top: 4px solid #dc2626; }
.col-card h3 { margin-top: 0; font-size: 1.15rem; }
.col-card.good h3 { color: #15803d; }
.col-card.bad h3 { color: #b91c1c; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; border-radius: 16px; border: 1px solid rgba(13,29,80,.09);
  margin: 1.2rem 0; box-shadow: 0 10px 30px rgba(13,29,80,.06); background: #fff;
}
.comparison-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.comparison-table thead { background: linear-gradient(135deg, #0b1224, #1e3a8a); color: #fff; }
.comparison-table th { padding: .85rem 1rem; text-align: left; font-family: "Sora"; font-weight: 650; font-size: .88rem; letter-spacing: .01em; white-space: nowrap; }
.comparison-table td { padding: .78rem 1rem; border-bottom: 1px solid #e8edf4; color: #33415c; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: #fafbfd; }
.comparison-table tbody tr:hover { background: rgba(26,86,219,.055); }
.comparison-table td strong { color: #0b1224; }

/* ---------- Tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag {
  background: #fff; color: #1a56db; padding: .4rem .95rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; border: 1px solid rgba(26,86,219,.22);
  transition: all .16s; cursor: default;
}
.tag:hover { background: #1a56db; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,.3); }

/* ---------- FAQ ---------- */
.faq-list { margin: 1.4rem 0; }
.faq-list details {
  background: #fff; border: 1px solid rgba(13,29,80,.08); border-radius: 14px;
  padding: 1rem 1.25rem; margin-bottom: .65rem; transition: all .2s;
}
.faq-list details[open] { border-color: rgba(26,86,219,.35); box-shadow: 0 8px 26px rgba(26,86,219,.08); }
.faq-list summary { font-weight: 650; color: #0b1224; cursor: pointer; list-style: none; padding-right: 1.6rem; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: .2rem; top: -.05em; color: #f97316; font-size: 1.35rem; font-weight: 500; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { padding-top: .55rem; color: #4d5a72; margin: 0; }

/* ---------- Inline CTA ---------- */
.inline-cta {
  background: #fff; border: 1px solid rgba(249,115,22,.3); border-radius: 20px;
  padding: 2rem 2.2rem; margin: 2.6rem 0;
  background-image: radial-gradient(28rem 12rem at 100% 0%, rgba(249,115,22,.1), transparent 60%);
  box-shadow: 0 14px 40px rgba(249,115,22,.09);
}
.inline-cta h3 { margin-top: 0; }
.inline-cta .btn { margin-top: .4rem; }

/* ---------- Related ---------- */
.related-card {
  background: #fff; border: 1px solid rgba(13,29,80,.09); padding: 1.15rem 1.3rem;
  border-radius: 14px; color: #0b1224; font-weight: 620; font-size: .94rem;
  text-decoration: none; display: flex; gap: .7rem; align-items: center;
  transition: all .18s;
}
.related-card:hover { background: #1a56db; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,86,219,.25); border-color: #1a56db; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0b1224, #0d1730); color: #aab7d3; margin-top: 4rem;
  position: relative;
}
.site-footer::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.6), rgba(26,86,219,.6), transparent);
}
.site-footer h3 { color: #fff; margin-bottom: .9rem; font-size: 1.1rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; opacity: .75; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.6rem; padding: 3.4rem 22px 2.6rem; }
.footer-brand p { color: #8ea0c2; font-size: .93rem; }
.footer-brand .disclaimer { font-size: .8rem; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); padding: .85rem; border-radius: 12px; margin-top: 1.1rem; color: #7e90b4; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .28rem 0; }
.footer-links a { color: #aab7d3; font-size: .92rem; }
.footer-links a:hover { color: #f97316; text-decoration: none; padding-left: 3px; transition: padding .15s; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.25rem 22px; font-size: .85rem; color: #7e90b4; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { color: #7e90b4; }
.footer-legal a:hover { color: #f97316; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.65,.3,1), transform .65s cubic-bezier(.2,.65,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---------- v3: reading progress bar ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #1a56db, #f97316);
  z-index: 200; transition: width .08s linear; border-radius: 0 3px 3px 0;
}

/* ---------- v3: cookie consent banner (GDPR) ---------- */
.cookie-banner {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 20px);
  width: min(680px, calc(100% - 2rem)); z-index: 300;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(13,29,80,.12); border-radius: 16px;
  padding: 1.1rem 1.3rem; display: flex; gap: 1rem; align-items: center;
  box-shadow: 0 16px 50px rgba(11,18,36,.18);
  opacity: 0; pointer-events: none; transition: all .35s cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie-banner p { margin: 0; font-size: .88rem; color: #3f4c63; flex: 1; }
.cookie-banner p a { font-weight: 650; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn {
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .85rem;
  font-weight: 650; cursor: pointer; border: 1.5px solid transparent; transition: all .16s;
}
.cookie-accept { background: #0b1224; color: #fff; }
.cookie-accept:hover { background: #1a56db; }
.cookie-accept { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; box-shadow: 0 3px 10px rgba(249,115,22,.3); }
.cookie-decline { background: transparent; color: #4d5a72; border-color: #cbd5e1; }
.cookie-decline:hover { border-color: #0b1224; color: #0b1224; }

/* ---------- v3: back-to-top button ---------- */
.to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: #0b1224; color: #fff; font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(11,18,36,.3);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: all .28s cubic-bezier(.2,.7,.3,1);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #f97316; transform: translateY(-3px); }

/* ---------- v3: breadcrumbs ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  font-size: .82rem; color: #64748b; margin-bottom: .9rem; font-weight: 500;
}
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #1a56db; }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current] { color: #0b1224; font-weight: 650; }

/* ---------- v3: reading-time label ---------- */
.read-time {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; color: #64748b; font-weight: 600;
}
.read-time::before { content: "⏱️"; font-size: .95rem; }

/* ---------- v3: floating article TOC (wide screens) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 830px) 240px; gap: 3rem; justify-content: center; }
  .toc-float {
    position: sticky; top: 100px; align-self: start;
    font-size: .84rem; max-height: calc(100vh - 140px); overflow-y: auto;
    padding: 1.1rem 1.2rem; background: #fff; border: 1px solid rgba(13,29,80,.08);
    border-radius: 14px; box-shadow: 0 6px 22px rgba(13,29,80,.05);
  }
  .toc-float strong { display: block; font-family: "Sora"; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .6rem; }
  .toc-float ul { list-style: none; padding: 0; margin: 0; }
  .toc-float li { margin: .38rem 0; }
  .toc-float a { color: #4d5a72; display: block; padding: .18rem 0; border-left: 2px solid transparent; padding-left: .6rem; margin-left: -.6rem; transition: all .15s; }
  .toc-float a:hover { color: #1a56db; border-left-color: #f97316; }
  .toc-float a.current { color: #1a56db; font-weight: 650; border-left-color: #1a56db; }
}
@media (max-width: 1179px) { .toc-float { display: none; } }

/* ---------- v3: focus-visible a11y highlight ---------- */
:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: #0b1224; color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
  font-weight: 650;
}
.skip-link:focus { left: 0; }

/* ---------- v3: 404 page ---------- */
.notfound-wrap { text-align: center; padding: 6rem 1.5rem 5rem; }
.notfound-code {
  font-family: "Sora"; font-weight: 800;
  font-size: clamp(5rem, 18vw, 10rem); line-height: 1;
  background: linear-gradient(92deg, #1a56db, #6d28d9 55%, #ea580c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .short-form { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1; }
}
@media (max-width: 720px) {
  .section { padding: 3.2rem 0; }
  .hero { padding: 3.6rem 0 3rem; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 62px; right: -100%;
    flex-direction: column; background: #fff; width: 86%; max-width: 340px;
    height: calc(100vh - 62px); padding: 2rem; gap: 1.1rem;
    box-shadow: -6px 0 30px rgba(11,18,36,.14); transition: right .28s ease; align-items: flex-start;
  }
  .nav-menu.open { right: 0; }
  .nav-cta { display: inline-block !important; padding: .6rem 1.2rem !important; }
  .hero-cta .btn { width: 100%; }
  .cta-box { padding: 2.4rem 1.5rem; }
  .contact-form { padding: 1.4rem; }
}
