:root {
  --color-bg: #0A192F;
  --color-surface: #112240;
  --color-surface-light: #1D3461;
  --color-text: #E6EDF3;
  --color-text-muted: #8892B0;
  --color-accent: #FF8C00;
  --color-accent-hover: #FFA500;
  --color-border: rgba(230, 237, 243, 0.12);
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Courier New", monospace;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.25);
  --transition-base: 0.2s 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-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: var(--space-md); color: #FFFFFF; }
h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); color: #FFFFFF; }
p { margin-bottom: var(--space-sm); color: var(--color-text-muted); max-width: 70ch; }
.mono { font-family: var(--font-mono); font-size: 0.9em; color: var(--color-accent); }

/* Layout Sections */
section { padding: var(--space-xl) 0; }
.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header p { margin: var(--space-sm) auto 0; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: var(--space-xs); }
.logo img { height: 32px; width: auto; }
.logo span { font-weight: 700; font-size: 1.1rem; color: #FFFFFF; }
nav ul { display: flex; list-style: none; gap: var(--space-md); }
nav a { color: var(--color-text-muted); font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: all var(--transition-base); }
nav a:hover, nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--color-accent); }
@media (max-width: 768px) { nav ul { display: none; } }

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); 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-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { color: #FFFFFF; margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-bottom { text-align: center; border-top: 1px solid var(--color-border); padding-top: var(--space-md); color: var(--color-text-muted); font-size: 0.85rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--transition-base); border: 1px solid transparent; text-wrap: nowrap; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background: var(--color-accent); color: #0A192F; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: rgba(255, 140, 0, 0.1); }

/* Cards & Grid */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.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); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-icon { width: 48px; height: 48px; color: var(--color-accent); margin-bottom: var(--space-sm); }
.card h3 { color: #FFFFFF; }
.card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-light); color: #FFFFFF; font-weight: 600; }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); transition: all var(--transition-base); }
details[open] { border-color: var(--color-accent); }
summary { padding: 1rem 1.5rem; cursor: pointer; font-weight: 600; color: #FFFFFF; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-accent); font-size: 1.2rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); margin: 0; line-height: 1.7; }
details:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* News & Related */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.news-card p { flex-grow: 1; }
.read-more { font-size: 0.9rem; font-weight: 600; margin-top: var(--space-sm); display: inline-block; }
.related-list { list-style: none; }
.related-list li { margin-bottom: var(--space-sm); padding-left: 1.2rem; position: relative; }
.related-list li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }
.related-list a { color: var(--color-text); font-weight: 500; }

/* SVG Animations */
.hero-svg { width: 100%; max-width: 600px; margin: 0 auto; height: auto; }
.float-1 { animation: floatCard 6s ease-in-out infinite; }
.float-2 { animation: floatCard 7s ease-in-out infinite 1s; }
.float-3 { animation: floatCard 8s ease-in-out infinite 2s; }
.draw-line { animation: drawDash 8s ease-in-out infinite; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes drawDash {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 1; }
}
@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; }
}
