:root {
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --text-main: #0F172A;
  --text-sub: #475569;
  --text-inverse: #FFFFFF;
  --accent-primary: #0D6EFD;
  --accent-hover: #0B5ED7;
  --accent-neon: #00E676;
  --border-light: #E2E8F0;
  --border-focus: #0D6EFD;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
  --font-base: 'PingFang SC', 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
  --spacing-section: clamp(3rem, 6vw, 5rem);
  --spacing-container: clamp(1.2rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; color: var(--text-main); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: 0; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; color: var(--text-sub); }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-container); }
section { padding: var(--spacing-section) 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-wrap { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-main); }
.logo-wrap img { width: 32px; height: 32px; object-fit: contain; }
.logo-text { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.5px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav a { padding: 0.5rem 0; font-weight: 500; position: relative; }
nav a[aria-current="page"] { color: var(--accent-primary); }
nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent-primary); border-radius: 2px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease; }
.btn-primary { background: var(--accent-primary); color: var(--text-inverse); box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3); }
.btn-outline { background: transparent; color: var(--accent-primary); border-color: var(--accent-primary); }
.btn-outline:hover { background: rgba(13, 110, 253, 0.05); }

/* Cards & Components */
.card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.badge { display: inline-block; padding: 0.25rem 0.6rem; background: rgba(13, 110, 253, 0.1); color: var(--accent-primary); border-radius: 99px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1rem; stroke: var(--accent-primary); stroke-width: 1.8; fill: none; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--bg-surface); }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); }
th { background: var(--bg-elevated); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { margin: 0.75rem 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-surface); }
summary { padding: 1rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-left: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; position: absolute; left: 1rem; top: 1.1rem; color: var(--accent-primary); font-weight: 700; transition: transform 0.2s; }
details[open] summary::before { content: '-'; }
details p { padding: 0 1rem 1rem; margin: 0; font-size: 0.95rem; line-height: 1.7; }
details:focus-within { outline: 2px solid var(--accent-focus); outline-offset: -2px; }

/* Forms / Downloads */
.download-box { background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2rem; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; background: var(--accent-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }

/* Lists Custom */
.custom-list { list-style: none; padding: 0; }
.custom-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; color: var(--text-sub); }
.custom-list li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 6px; height: 6px; background: var(--accent-neon); border-radius: 50%; }

/* Footer */
.site-footer { background: var(--text-main); color: #94A3B8; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: white; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #94A3B8; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; }

/* SVG Animations */
.svg-grid-node { transition: fill 0.6s ease; }
@keyframes gridPulse { 0%, 100% { fill: #CBD5E1; } 50% { fill: var(--accent-neon); } }
.node-anim { animation: gridPulse 6s infinite alternate ease-in-out; }
@keyframes drawStroke { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 4s ease-in-out infinite alternate; }
svg[aria-hidden="true"] { display: block; }
svg { width: 100%; height: auto; max-width: 600px; }

/* Focus & Reduced Motion */
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
@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; }
}

/* Responsive */
@media (max-width: 768px) {
  nav ul { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  h1 { font-size: 2rem; }
  .bento-grid { grid-template-columns: 1fr; }
}
