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

:root {
  --primary-50: #f0fdfa; --primary-100: #ccfbf1; --primary-200: #99f6e4;
  --primary-300: #5eead4; --primary-400: #2dd4bf; --primary-500: #14b8a6;
  --primary-600: #0d9488; --primary-700: #0f766e; --primary-800: #115e59;
  --primary-900: #134e4a;
  --accent-50: #eff6ff; --accent-100: #dbeafe; --accent-200: #bfdbfe;
  --accent-300: #93c5fd; --accent-400: #60a5fa; --accent-500: #3b82f6;
  --accent-600: #2563eb; --accent-700: #1d4ed8; --accent-800: #1e40af;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-50: #fffbeb; --amber-100: #fef3c7; --amber-200: #fde68a;
  --amber-600: #d97706; --amber-700: #b45309; --amber-800: #92400e;
}

body {
  font-family: 'Inter', system-ui, -apple-serif, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--slate-900); }
.logo-accent { color: var(--primary-600); }
.logo-accent-light { color: var(--primary-400); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--slate-600); transition: all 0.2s; }
.nav-links a:hover { background: var(--slate-100); color: var(--slate-900); }
.nav-links a.active { background: var(--primary-50); color: var(--primary-700); }
.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-bar { width: 24px; height: 3px; background: var(--slate-600); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--slate-50), rgba(204,251,241,0.4), rgba(219,234,254,0.3)); }
.hero-bg { position: absolute; inset: 0; opacity: 0.3; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--primary-200); background: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; color: var(--primary-700); }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.1; color: var(--slate-900); margin-top: 24px; max-width: 700px; }
.hero-accent { color: var(--primary-600); }
.hero-desc { font-size: 18px; line-height: 1.7; color: var(--slate-600); margin-top: 24px; max-width: 600px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--primary-600); color: #fff; box-shadow: 0 4px 12px rgba(13,148,136,0.2); }
.btn-primary:hover { background: var(--primary-700); box-shadow: 0 6px 16px rgba(13,148,136,0.3); }
.btn-outline { background: rgba(255,255,255,0.8); border: 1px solid var(--slate-300); color: var(--slate-700); }
.btn-outline:hover { border-color: var(--primary-300); color: var(--primary-700); }
.btn-white { background: #fff; color: var(--primary-700); }
.btn-white:hover { background: var(--primary-50); }
.btn-ghost-white { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }

/* ===== Stats ===== */
.stats { border-bottom: 1px solid var(--slate-100); background: #fff; }
.stats-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; color: var(--slate-900); }
.stat-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-top: 4px; }

/* ===== Sections ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 20px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 30px; font-weight: 700; color: var(--slate-900); }
.section-subtitle { font-size: 16px; color: var(--slate-600); margin-top: 12px; }
.section-footer { text-align: center; margin-top: 40px; }

/* ===== Blog Grid ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.blog-card-img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--slate-100); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--slate-500); margin-bottom: 12px; }
.blog-card-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--primary-50); font-weight: 500; color: var(--primary-700); }
.blog-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--slate-900); margin-bottom: 8px; }
.blog-card:hover .blog-card-title { color: var(--primary-700); }
.blog-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--slate-600); flex: 1; margin-bottom: 16px; }
.blog-card-link { font-size: 14px; font-weight: 500; color: var(--primary-600); }
.blog-card:hover .blog-card-link { color: var(--primary-700); }

/* ===== CTA ===== */
.cta-section { max-width: 1200px; margin: 0 auto; padding: 0 20px 64px; }
.cta-box { background: linear-gradient(135deg, var(--primary-700), var(--accent-800)); border-radius: 24px; padding: 56px 32px; text-align: center; }
.cta-title { font-size: 30px; font-weight: 700; color: #fff; }
.cta-desc { max-width: 500px; margin: 16px auto 0; color: rgba(204,251,241,0.9); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ===== Footer ===== */
.footer { margin-top: 80px; border-top: 1px solid var(--slate-200); background: var(--slate-900); color: var(--slate-300); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 48px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo-text { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--slate-400); margin-top: 16px; }
.footer-heading { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-200); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--slate-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-400); }
.footer-bottom { margin-top: 40px; border-top: 1px solid var(--slate-800); padding-top: 24px; }
.footer-disclaimer { font-size: 12px; line-height: 1.7; color: var(--slate-500); }
.footer-copyright { font-size: 12px; color: var(--slate-500); margin-top: 16px; }

/* ===== Cookie Banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 16px 20px; display: none; }
.cookie-banner.show { display: block; animation: fadeInUp 0.5s ease-out; }
.cookie-content { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-text-wrap { display: flex; align-items: flex-start; gap: 12px; }
.cookie-icon { font-size: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-50); flex-shrink: 0; }
.cookie-title { font-size: 14px; font-weight: 600; color: var(--slate-800); }
.cookie-text { font-size: 12px; line-height: 1.5; color: var(--slate-500); margin-top: 4px; }
.cookie-text a { color: var(--primary-600); text-decoration: underline; }
.cookie-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-dismiss { background: none; border: none; padding: 8px; color: var(--slate-400); cursor: pointer; font-size: 16px; }
.cookie-dismiss:hover { color: var(--slate-600); }

/* ===== Page Header ===== */
.page-header { background: linear-gradient(135deg, var(--slate-50), rgba(204,251,241,0.4)); padding: 64px 20px; text-align: center; }
.page-header h1 { font-size: 36px; font-weight: 800; color: var(--slate-900); }
.page-header p { font-size: 18px; color: var(--slate-600); margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Prose Content ===== */
.prose { max-width: 768px; margin: 0 auto; padding: 56px 20px; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--slate-900); margin-top: 40px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 600; color: var(--slate-900); margin-top: 24px; margin-bottom: 12px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--slate-700); margin-bottom: 20px; }
.prose ul { margin-bottom: 20px; padding-left: 24px; }
.prose li { font-size: 16px; line-height: 1.8; color: var(--slate-700); margin-bottom: 8px; }
.prose strong { font-weight: 600; color: var(--slate-900); }

/* ===== Info Cards ===== */
.info-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px; }
.info-card-icon { font-size: 32px; margin-bottom: 16px; }
.info-card h3 { font-size: 18px; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.info-card p { font-size: 14px; line-height: 1.6; color: var(--slate-600); }

/* ===== FAQ ===== */
.faq-list { max-width: 768px; margin: 0 auto; padding: 56px 20px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-question { width: 100%; text-align: left; padding: 16px 20px; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--slate-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-arrow { font-size: 18px; color: var(--primary-500); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 20px; }
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--slate-600); }

/* ===== Resources ===== */
.resources-grid { max-width: 1000px; margin: 0 auto; padding: 56px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px; transition: transform 0.3s, box-shadow 0.3s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.resource-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.resource-card-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-50); font-size: 18px; }
.resource-card h3 { font-size: 16px; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.resource-card:hover h3 { color: var(--primary-700); }
.resource-card p { font-size: 14px; line-height: 1.6; color: var(--slate-600); flex: 1; }

/* ===== Contact ===== */
.contact-grid { max-width: 1000px; margin: 0 auto; padding: 56px 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.contact-info-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.contact-info-card h3 { font-size: 14px; font-weight: 700; color: var(--slate-900); margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; line-height: 1.6; color: var(--slate-600); }
.contact-info-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-50); font-size: 18px; margin-bottom: 12px; }
.contact-warning { background: var(--amber-50); border: 1px solid var(--amber-200); }
.contact-warning h3 { color: var(--amber-800); }
.contact-warning p { color: var(--amber-700); }
.contact-form { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--slate-700); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 16px; border: 1px solid var(--slate-300); border-radius: 8px; font-size: 14px; color: var(--slate-800); font-family: inherit; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }
.form-textarea { resize: none; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 700; color: var(--slate-900); }
.form-success p { font-size: 14px; color: var(--slate-600); margin-top: 8px; }

/* ===== Blog Post ===== */
.post-hero { position: relative; height: 40vh; min-height: 280px; overflow: hidden; background: var(--slate-900); }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--slate-900), rgba(15,23,42,0.5), transparent); }
.post-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 20px 32px; }
.post-hero-inner { max-width: 768px; margin: 0 auto; }
.post-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--primary-300); margin-bottom: 16px; }
.post-back:hover { color: var(--primary-200); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--slate-300); margin-bottom: 12px; }
.post-meta-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(45,212,191,0.2); color: var(--primary-300); font-weight: 500; }
.post-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; line-height: 1.2; color: #fff; }
.post-disclaimer-box { max-width: 768px; margin: 0 auto; padding: 0 20px; }
.post-disclaimer { background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 16px; padding: 20px; margin-top: 40px; }
.post-disclaimer p { font-size: 14px; line-height: 1.7; color: var(--amber-800); }

/* ===== Related ===== */
.related-section { border-top: 1px solid var(--slate-100); background: var(--slate-50); padding: 56px 20px; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-title { font-size: 24px; font-weight: 700; color: var(--slate-900); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.related-card-img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--slate-100); }
.related-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover .related-card-img { transform: scale(1.05); }
.related-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.related-card-tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-600); margin-bottom: 8px; }
.related-card-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--slate-900); }
.related-card:hover .related-card-title { color: var(--primary-700); }
.related-card-link { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--primary-600); padding-top: 16px; }

/* ===== Category Filter ===== */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.category-btn { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); cursor: pointer; transition: all 0.2s; }
.category-btn:hover { border-color: var(--primary-300); color: var(--primary-700); }
.category-btn.active { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }

/* ===== Warning Box ===== */
.warning-box { max-width: 768px; margin: 0 auto; padding: 0 20px; }
.warning-box-inner { background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 16px; padding: 20px; margin-top: 40px; }
.warning-box-inner p { font-size: 14px; line-height: 1.7; color: var(--amber-800); }
.last-updated { max-width: 768px; margin: 0 auto; padding: 32px 20px 0; font-size: 12px; color: var(--slate-400); }

/* ===== 404 ===== */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.not-found h1 { font-size: 72px; font-weight: 800; color: var(--primary-600); }
.not-found p.title { font-size: 20px; font-weight: 600; color: var(--slate-900); margin-top: 16px; }
.not-found p.desc { font-size: 14px; color: var(--slate-500); margin-top: 8px; max-width: 400px; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-top: 1px solid var(--slate-100); padding: 12px 20px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-toggle { display: flex; }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; justify-content: space-between; }
  .hero-content { padding: 48px 20px; }
}
