:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #f6f8fa;
  --border-color: #eee;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, monospace;
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 50px;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.8;
  color: #333;
  background: var(--bg-primary);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

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

.nav-links a:hover {
  color: #333;
}

/* Article */
.article-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

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

.article-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 24px;
  color: var(--text-primary);
}

.article-content p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #444;
}

.article-content ul,
.article-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.article-content li {
  font-size: 18px;
  margin-bottom: 12px;
  color: #444;
}

.article-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

.article-content blockquote {
  background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
  border-left: 4px solid #667eea;
  padding: 24px;
  margin: 32px 0;
  border-radius: var(--radius-md);
}

.article-content blockquote p {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 19px;
}

/* Code blocks */
.article-content pre {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 24px 0;
  overflow-x: auto;
}

.article-content code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* Hero Image */
.hero-image-container {
  position: relative;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.divider {
  margin: 48px 0;
  border: 0;
  height: 1px;
  background: var(--border-color);
}

/* CTA */
.article-cta {
  background: var(--primary-gradient);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 64px;
}

.article-cta h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.article-cta p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared button styles */
.cta-button,
.cta-button-secondary {
  display: inline-block;
  padding: 16px 32px;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-xl);
  transition: transform 0.2s;
}

.cta-button {
  background: white;
  color: #667eea;
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button:hover,
.cta-button-secondary:hover {
  transform: translateY(-2px);
}

.cta-button-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
  margin-top: 120px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* More articles section */
.more-articles {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.more-articles h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-content {
  padding: 24px;
}

.article-card-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .article-container {
    padding-top: 100px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button,
  .cta-button-secondary {
    width: 100%;
    text-align: center;
  }
}