:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-brand: #25d366;
  --color-brand-dark: #128c7e;
  --color-accent-light: #dcfce7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 3px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-hover: 0 4px 8px rgba(15,23,42,0.08), 0 8px 20px rgba(15,23,42,0.06);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  --line-height-base: 1.75;
  --max-width: 1180px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height-base);
  font-size: clamp(14px, 0.2rem + 1vw, 16px);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.35; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 16px; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 48px 0 20px; padding-left: 14px; border-left: 4px solid var(--color-brand); }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; margin: 24px 0 12px; }
p { margin-bottom: 14px; color: var(--color-muted); }
p strong { color: var(--color-text); font-weight: 600; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
section { padding: clamp(48px, 6vw, 80px) 0; }

/* Header / Nav */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); height: var(--nav-height); display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 15px; font-weight: 500; padding: 8px 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 500; cursor: pointer; border: none; transition: all .2s ease; }
.btn-primary { background: var(--color-brand); color: #fff; box-shadow: 0 2px 6px rgba(37,211,102,0.25); }
.btn-primary:hover { background: var(--color-brand-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,211,102,0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); background: var(--color-accent-light); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-sm); }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--color-accent-light); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; stroke: var(--color-brand-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--color-muted); line-height: 1.7; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f8fafc; font-weight: 600; color: var(--color-text); }
td { color: var(--color-muted); font-size: 14px; }
tr:last-child td { border-bottom: none; }

/* FAQ Details */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s ease; }
details[open] { box-shadow: var(--shadow-sm); }
summary { padding: 16px 20px; cursor: pointer; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ""; }
summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--color-muted); transition: transform .2s; }
details[open] > summary::after { transform: rotate(45deg); }
.summary-content { padding: 0 20px 16px; font-size: 14px; color: var(--color-muted); line-height: 1.75; border-top: 1px dashed var(--color-border); }

/* News & Related */
.news-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; transition: transform .2s ease; }
.news-card:hover { transform: translateY(-2px); }
.news-date { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; font-weight: 500; }
.news-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-excerpt { font-size: 13px; color: var(--color-muted); line-height: 1.65; flex-grow: 1; }
.related-list { list-style: none; }
.related-list li { margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.related-list a { color: var(--color-text); font-size: 15px; font-weight: 500; }
.related-list a:hover { color: var(--color-brand); }
.related-list span { font-size: 13px; color: var(--color-muted); line-height: 1.5; }

/* Footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: #f1f5f9; margin-bottom: 16px; font-size: 15px; }
.footer p, .footer a { font-size: 13px; line-height: 1.6; color: #94a3b8; }
.footer a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 24px; margin-top: 32px; border-top: 1px solid #1e293b; font-size: 12px; color: #64748b; }

/* Accessibility Focus */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 10px 16px; background: var(--color-brand); color: #fff; z-index: 200; border-radius: var(--radius-sm); }

/* SVG Animation System */
.svg-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float-node {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -3px); }
}
.animate-draw { animation: draw-line 3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-float { animation: float-node 4s ease-in-out infinite; }
svg path, svg circle, svg rect { transition: opacity .3s ease, stroke .3s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .animate-draw, .animate-float { animation: none !important; }
}
