* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0F1117;
  --color-surface: #171A23;
  --color-surface-raised: #1E222E;
  --color-text: #E8E9EB;
  --color-text-dim: #9CA3AF;
  --color-accent: #5B8CFF;
  --color-accent-hover: #4A7BEE;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --spacing: 16px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-accent);
}

.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  color: var(--color-text-dim);
  max-width: 700px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #252932;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  color: var(--color-text-dim);
  line-height: 1.7;
}

.feature-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface-raised);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 700;
}

.stat-card {
  text-align: center;
  padding: 32px;
  background: var(--color-surface-raised);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--color-text-dim);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-container {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  background: var(--color-surface-raised);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
  background: rgba(91, 140, 255, 0.05);
}

.breadcrumb {
  padding: 20px 0;
  color: var(--color-text-dim);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  color: var(--color-text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.content-wrapper h2 {
  font-size: 32px;
  margin: 48px 0 20px;
  color: var(--color-text);
}

.content-wrapper h3 {
  font-size: 24px;
  margin: 36px 0 16px;
  color: var(--color-text);
}

.content-wrapper p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--color-text-dim);
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 20px 0 20px 24px;
  color: var(--color-text-dim);
}

.content-wrapper li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.content-wrapper strong {
  color: var(--color-text);
  font-weight: 600;
}

.content-wrapper a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.content-wrapper a:hover {
  border-bottom-color: var(--color-accent);
}

footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h4 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-dim);
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-surface-raised);
  color: var(--color-accent);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  background: var(--color-surface-raised);
  border-left: 4px solid var(--color-accent);
}

.alert-warning {
  border-left-color: var(--color-warning);
}

.alert-error {
  border-left-color: var(--color-error);
}

.alert-success {
  border-left-color: var(--color-success);
}

@media (max-width: 768px) {
  nav ul {
    gap: 20px;
    font-size: 14px;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
