:root {
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary: #0d1b2a;
  --color-primary-hover: #1b2d45;
  --color-accent: #e85d04;
  --color-accent-hover: #dc2f02;
  --color-border: #cbd5e1;
  --color-light-gray: #f1f5f9;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --container-max: 1120px;
  --spacing-unit: 1rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 12px rgba(13, 27, 42, 0.08);
  --shadow-hover: 0 8px 24px rgba(13, 27, 42, 0.12);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition-base); }
a:hover, a:focus-visible { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin-bottom: 0.6em; }
p { margin-bottom: 1em; }

/* Typography Scale */
h1 { font-size: clamp(2rem, 4.5vw + 0.8rem, 3.25rem); text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw + 0.4rem, 2.15rem); text-wrap: balance; color: var(--color-primary); }
h3 { font-size: clamp(1.125rem, 2.1vw + 0.2rem, 1.45rem); }
.text-mono { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: -0.01em; color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* Layout Utilities */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.grid-auto { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Header & Navigation */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-link img { height: 32px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.125rem; color: var(--color-primary); letter-spacing: -0.01em; }
nav ul { display: flex; gap: 1.75rem; }
nav a { text-decoration: none; font-weight: 500; color: var(--color-text-muted); padding: 0.5rem 0; position: relative; transition: color var(--transition-base); }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); }
nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-accent); border-radius: 2px; }
@media (max-width: 768px) {
  nav ul { gap: 1rem; font-size: 0.9rem; }
  .nav-links-desktop { display: none; }
}

/* Footer */
footer { background: var(--color-primary); color: #cbd5e1; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 0.6rem; font-size: 0.9rem; transition: color var(--transition-base); }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; font-size: 0.85rem; color: #64748b; }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem 1.8rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition-base); border: none; font-size: 1rem; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232, 93, 4, 0.35); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); background: rgba(13, 27, 42, 0.05); }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; transition: transform var(--transition-base), box-shadow var(--transition-base); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon { width: 44px; height: 44px; background: rgba(13, 27, 42, 0.06); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; color: var(--color-primary); }
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

.table-responsive { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-light-gray); font-weight: 600; color: var(--color-primary); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td small { display: block; color: var(--color-text-muted); margin-top: 0.3rem; font-size: 0.85rem; }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.85rem; overflow: hidden; transition: box-shadow var(--transition-base); }
details:hover { box-shadow: var(--shadow-card); }
summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-primary); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; transition: transform var(--transition-base); color: var(--color-accent); }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--color-border); background: #fafbfd; }
.faq-content { padding: 1rem 1.3rem 1.3rem; color: var(--color-text-muted); line-height: 1.65; }

/* News Cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.news-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); }
.news-tag { font-size: 0.75rem; background: rgba(232, 93, 4, 0.1); color: var(--color-accent); padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 500; }
.news-title { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.news-summary { flex-grow: 1; color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.news-link { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--color-accent); display: inline-block; }
.news-link:hover { text-decoration: underline; }

/* Related Links */
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.related-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: all var(--transition-base); }
.related-item:hover { border-color: var(--color-accent); transform: translateX(2px); }
.related-dot { width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; margin-top: 0.6rem; flex-shrink: 0; }
.related-content h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--color-primary); }
.related-content p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0; }

/* SVG Animations */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-anim-1 { animation: float-y 6.5s ease-in-out infinite; }
.float-anim-2 { animation: float-y 7.2s ease-in-out infinite 1.2s; }
.float-anim-3 { animation: float-y 5.8s ease-in-out infinite 0.4s; }

@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hover-draw:hover .draw-path { stroke-dashoffset: -1; animation: draw-stroke 0.7s ease forwards; }
.hover-draw:active .draw-path { stroke-dashoffset: 0; }

@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; }
  .float-anim-1, .float-anim-2, .float-anim-3 { animation: none; }
  .draw-path { animation: none; stroke-dashoffset: 0; }
}
