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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f5f3;
  --fg: #111827;
  --card: #ffffff;
  --primary: #0066cc;
  --primary-fg: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --secondary-bg: #f0f1f3;
  --accent: #059669;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 768px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--fg); display: flex; align-items: center; gap: 0.5rem; }
.logo:hover { text-decoration: none; }
.logo svg { color: var(--primary); }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--primary); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #0066cc, #06b6d4, #059669); padding: 5rem 0; text-align: center; color: white; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; display: block; color: inherit; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 1.5rem; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 500; color: var(--primary); background: rgba(0,102,204,0.1); padding: 0.25rem 0.5rem; border-radius: 6px; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg); }
.card .excerpt { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 0.75rem; color: var(--muted); }

/* Article hero image */
.article-hero { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

/* Content page */
.content { padding: 3rem 0; }
.content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.content h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content p { color: var(--muted); margin-bottom: 0.75rem; }
.content ul { list-style: disc; margin-left: 1.5rem; color: var(--muted); }
.content li { margin-bottom: 0.25rem; }
.content .date { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.back-link { display: inline-block; font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 4rem; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer h4 { font-weight: 600; margin-bottom: 0.75rem; }
.footer p, .footer li { font-size: 0.875rem; color: var(--muted); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.875rem; background: var(--card); color: var(--fg); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
.btn-primary { display: inline-block; width: 100%; padding: 0.75rem; background: var(--primary); color: var(--primary-fg); border: none; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; }
.btn-primary:hover { opacity: 0.9; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 1.75rem; } .grid { grid-template-columns: 1fr; } .nav { display: none; } }
