
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dark: #0d9488;
  --accent-bg: #ccfbf1;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.dark {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: #334155;
  --border-strong: #475569;
  --accent: #2dd4bf;
  --accent-light: #5eead4;
  --accent-dark: #14b8a6;
  --accent-bg: #134e4a;
  --success: #34d399;
  --success-bg: #064e3b;
  --danger: #f87171;
  --danger-bg: #450a0a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background 0.2s, color 0.2s; }
a { color: var(--accent-dark); text-decoration: none; }
.dark a { color: var(--accent); }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.logo:hover { text-decoration: none; }
.logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 0.875rem; }
.nav-links { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }
.dark .theme-toggle .sun { display: none; }
html:not(.dark) .theme-toggle .moon { display: none; }
.mobile-menu-btn { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }

.hero { padding: 3rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .hero { padding: 4rem 0; } }
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero h1 { font-size: 2.5rem; } }
.hero p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin-bottom: 1.5rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-text { color: var(--text-muted); font-size: 0.875rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 3.5rem 0; } }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-teal { background: var(--accent-bg); color: var(--accent-dark); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.dark .badge-blue { background: #1e3a5f; color: #93c5fd; }
.badge-gray { background: var(--surface-2); color: var(--text-muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:hover td { background: var(--surface); }

.provider-card { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--surface); }
.provider-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-weight: 700; font-size: 1.125rem; flex-shrink: 0; }
.provider-info { flex: 1; }
.provider-name { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.provider-meta { font-size: 0.75rem; color: var(--text-muted); }

.breadcrumbs { padding: 0.75rem 0; font-size: 0.875rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { color: var(--text-subtle); }

.ad-container { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-subtle); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ad-leaderboard { width: 100%; height: 90px; margin: 1.5rem 0; }
.ad-sidebar { width: 300px; height: 600px; position: sticky; top: 80px; }
.ad-inline { width: 100%; height: 250px; margin: 1.5rem 0; }
@media (max-width: 767px) { .ad-leaderboard { height: 100px; } .ad-sidebar { display: none; } }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-desc { font-size: 0.875rem; color: var(--text-muted); max-width: 300px; }
.footer-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.footer-links a { display: block; font-size: 0.875rem; color: var(--text-muted); padding: 0.25rem 0; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--text-subtle); text-align: center; }

.content-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .content-layout { grid-template-columns: 1fr 300px; } }

.article-content { max-width: 768px; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1rem; color: var(--text-muted); }
.article-content ul { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.article-content li { margin-bottom: 0.5rem; }

.data-freshness { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-subtle); margin-top: 1rem; }

.search-box { position: relative; max-width: 600px; }
.search-box input { width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); font-size: 1rem; box-shadow: var(--shadow-sm); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search-box svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-subtle); width: 20px; height: 20px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
