:root {
  --color-bg: #F8F7F4;
  --color-surface: #FFFFFF;
  --color-text: #111111;
  --color-text-secondary: #4B4B4B;
  --color-border: #D8D6D1;
  --color-accent: #0A0A0A;
  --color-highlight: #EAEAE8;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
  --transition-base: 0.25s cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: var(--space-md); position: relative; padding-bottom: var(--space-xs); }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--color-text); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: var(--space-xs); }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
.section { padding: var(--space-xl) 0; }
.bg-surface { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-card); }

/* Layout */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.flex-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }

/* Header & Footer */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 247, 244, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: 1.125rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav { display: flex; gap: var(--space-sm); }
.nav a { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--color-highlight); color: var(--color-accent); }
.site-footer { background: var(--color-text); color: #CCC; padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-col h4 { color: #FFF; margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: #FFF; }
.footer-bottom { border-top: 1px solid #333; padding-top: var(--space-sm); text-align: center; font-size: 0.875rem; color: #888; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all var(--transition-base); border: none; }
.btn-primary { background: var(--color-accent); color: #FFF; }
.btn-primary:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-text); background: var(--color-highlight); }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); transition: transform var(--transition-base), box-shadow var(--transition-base); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.card-title { font-weight: 600; margin-bottom: 0.5rem; font-size: 1.1rem; }
.card-excerpt { flex-grow: 1; font-size: 0.95rem; line-height: 1.5; color: var(--color-text-secondary); margin-bottom: 1rem; }
.card-link { font-size: 0.9rem; font-weight: 500; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-highlight); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td a { color: var(--color-accent); text-decoration: underline; }

/* FAQ */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-xs); background: var(--color-surface); }
.faq-item summary { padding: 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; transition: transform var(--transition-base); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; margin: 0; }

/* Links */
.related-list { list-style: none; }
.related-list li { padding: 0.75rem 0; border-bottom: 1px dashed var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: flex; justify-content: space-between; align-items: baseline; }
.related-list span { font-size: 0.9rem; color: var(--color-text-secondary); max-width: 70%; }

/* SVG Icons */
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; vertical-align: middle; }
.feature-icon { width: 32px; height: 32px; margin-bottom: var(--space-sm); stroke-width: 1.8; }

/* SVG Animations */
.svg-anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.svg-anim-sweep { opacity: 0; animation: sweepHighlight 8s ease-in-out infinite; }
.svg-anim-pulse { animation: pulseOpacity 4s ease-in-out infinite; }

@keyframes drawLine {
  0% { stroke-dashoffset: 1; opacity: 0.2; }
  15% { stroke-dashoffset: 1; opacity: 1; }
  50% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 1; opacity: 0.2; }
}
@keyframes sweepHighlight {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  20% { opacity: 0.6; transform: translateX(0); }
  40% { opacity: 0.6; transform: translateX(100%); }
  60%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@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;
  }
  .svg-anim-draw, .svg-anim-sweep, .svg-anim-pulse { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .nav { display: none; } /* Simplified for static output */
}
