:root {
  /* Colors - Modern Tech Palette */
  --primary: #6366f1; /* Indigo 500 */
  --primary-dark: #4f46e5;
  --secondary: #ec4899; /* Pink 500 */
  --bg-page: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --border: #e2e8f0;
  
  /* Accents */
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --highlight: #f1f5f9;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --spacing-unit: 1rem;
  --container-width: 800px; /* Blog style width */
}

/* Reset & Base */
* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-title:hover { text-decoration: none; }
.nav-links a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, #f0f9ff 0%, #fff 40%),
              radial-gradient(circle at bottom left, #fdf2f8 0%, #fff 40%);
  padding: 6rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.hero-badge a { color: var(--text-muted); }
.hero-badge a.active { color: var(--primary); font-weight: 600; }
.hero-badge .divider { margin: 0 0.5rem; color: var(--border); }

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text-main) 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--text-main);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background: #000;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  margin-left: 1rem;
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Main Content Typography (Blog Style) */
.page-content {
  padding-bottom: 4rem;
}

.page-content h1, 
.page-content h2, 
.page-content h3 {
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.page-content h1 { font-size: 2.25rem; font-weight: 800; }
.page-content h2 { font-size: 1.75rem; font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.page-content h3 { font-size: 1.35rem; font-weight: 600; }

.page-content p {
  margin-bottom: 1.5rem;
  color: #334155; /* Slate 700 */
  font-size: 1.05rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
}
.page-content li { margin-bottom: 0.5rem; }

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
th {
  background: #f8fafc;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

/* Code */
code {
  font-family: var(--font-mono);
  background: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.85em;
  color: #0f172a;
}
pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}

/* Feature Grid (using CSS Grid on standard Markdown elements if possible, or just clean styling) */
/* We will expect users to use standard headers and lists, but we can style 'hr' nicely */
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.copyright {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 640px) {
  .hero-title { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; gap: 1rem; }
  .btn-secondary { margin-left: 0; }
  .container { padding: 0 1rem; }
}