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

:root {
  --bg: hsl(40, 33%, 98%);
  --fg: hsl(220, 20%, 14%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(250, 65%, 55%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(165, 50%, 45%);
  --muted: hsl(220, 14%, 94%);
  --muted-fg: hsl(220, 10%, 46%);
  --accent: hsl(35, 95%, 55%);
  --border: hsl(220, 14%, 90%);
  --radius: 0.75rem;
  --shadow: 0 4px 24px -4px hsla(220, 20%, 14%, 0.08);
  --shadow-hover: 0 8px 32px -4px hsla(220, 20%, 14%, 0.14);
  --hero-gradient: linear-gradient(135deg, hsl(250, 65%, 55%), hsl(280, 60%, 50%), hsl(310, 55%, 50%));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Header */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: hsla(0, 0%, 100%, 0.8); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.logo .text-gradient { background: var(--hero-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { display: flex; gap: 2rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; padding: 1rem 2rem; border-top: 1px solid var(--border); background: var(--card); }
.mobile-nav.open { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); padding: 0.5rem 0; }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
}

/* Hero */
.hero { background: var(--hero-gradient); padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 700; color: var(--primary-fg); margin-bottom: 1rem; animation: fadeIn 0.5s ease-out; }
.hero p { font-size: 1.125rem; color: hsla(0, 0%, 100%, 0.8); max-width: 640px; margin: 0 auto 2rem; animation: fadeIn 0.5s ease-out 0.1s both; }
.hero .btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--card); color: var(--fg); font-family: 'Space Grotesk', sans-serif; font-weight: 600; padding: 0.75rem 1.5rem; border-radius: var(--radius); transition: opacity 0.2s; animation: fadeIn 0.5s ease-out 0.2s both; }
.hero .btn:hover { opacity: 0.9; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Categories */
.categories { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; padding: 3rem 0; }
.cat-tag { padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--card); font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: all 0.2s; }
.cat-tag:hover { color: var(--primary); border-color: var(--primary); }

/* Cards Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Blog Card */
.blog-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-card .thumb { aspect-ratio: 16/9; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.blog-card .body { padding: 1.25rem; }
.blog-card .meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.badge { font-size: 0.75rem; font-weight: 500; background: hsla(250, 65%, 55%, 0.1); color: var(--primary); padding: 0.25rem 0.625rem; border-radius: 9999px; }
.blog-card .meta span { font-size: 0.75rem; color: var(--muted-fg); }
.blog-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; transition: color 0.2s; }
.blog-card:hover h3 { color: var(--primary); }
.blog-card .excerpt { font-size: 0.875rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.75rem; }

/* Featured */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s; }
.featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.featured .thumb { display: flex; align-items: center; justify-content: center; font-size: 6rem; background: var(--muted); min-height: 300px; }
.featured .body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; transition: color 0.2s; }
.featured:hover h3 { color: var(--primary); }
.featured .excerpt { color: var(--muted-fg); margin-bottom: 1rem; }
@media (max-width: 768px) { .featured { grid-template-columns: 1fr; } .featured .thumb { min-height: 200px; } }

/* Section */
.section { padding: 0 0 2rem; }
.section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Page content */
.page-content { max-width: 768px; margin: 0 auto; padding: 3rem 2rem; }
.page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-content .subtitle { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 2rem; }
.page-content h2 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-content h3 { font-size: 1rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.375rem; }
.page-content p, .page-content li { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; margin-bottom: 1rem; }
.page-content ul { list-style: disc inside; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.25rem; }
.page-content a { color: var(--primary); }
.page-content a:hover { text-decoration: underline; }
.page-content strong { color: var(--fg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: hsla(250, 65%, 55%, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.125rem; }
.contact-item h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { font-size: 0.875rem; color: var(--muted-fg); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.375rem; border: 1px solid var(--border); background: var(--card); font-size: 0.875rem; font-family: inherit; color: var(--fg); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px hsla(250, 65%, 55%, 0.2); }
.form-group textarea { resize: none; }
.btn-primary { width: 100%; padding: 0.625rem; border-radius: 0.375rem; background: var(--primary); color: var(--primary-fg); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }

/* Article */
.article-back { display: inline-block; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1.5rem; transition: color 0.2s; }
.article-back:hover { color: var(--primary); }
.article-hero { aspect-ratio: 16/9; background: var(--muted); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 6rem; margin-bottom: 2rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 4rem; }
.footer-inner { padding: 3rem 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer .logo { margin-bottom: 0.75rem; }
.footer p { font-size: 0.875rem; color: var(--muted-fg); max-width: 400px; }
.footer h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer li a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
.footer li a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted-fg); }
