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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Layout ========== */
.container-blog {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-blog { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container-blog { padding: 0 2rem; }
}

/* ========== Header ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link:hover .logo-icon { color: #1d4ed8; }

.logo-icon {
  width: 28px;
  height: 28px;
  color: #2563eb;
  transition: color 0.2s;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
}

.logo-text span { color: #2563eb; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: #4b5563;
}

.nav-link:hover { color: #111827; background: #f9fafb; }
.nav-link.active { color: #1d4ed8; background: #eff6ff; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #4b5563;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-toggle:hover { color: #111827; background: #f9fafb; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.nav-mobile {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.nav-mobile.open { display: block; }

.nav-mobile .nav-link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

/* ========== Footer ========== */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon { color: #60a5fa; }
.footer-logo .logo-text { color: #fff; font-size: 1.125rem; }
.footer-logo .logo-text span { color: #60a5fa; }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #9ca3af;
  max-width: 320px;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li { margin-bottom: 0.5rem; }

.footer-nav-list a {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: #1d4ed8; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid #2563eb;
  color: #2563eb;
  font-weight: 500;
  border-radius: 0.5rem;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover { background: #eff6ff; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 500;
  border-radius: 0.5rem;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #1e3a8a 100%);
  color: #fff;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-family: 'Merriweather', Georgia, serif;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-title .highlight { color: #60a5fa; }

.hero-desc {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 672px;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Disclaimer Banner ========== */
.disclaimer-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 1rem 0;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.disclaimer-inner svg {
  width: 20px;
  height: 20px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-inner p {
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.625;
}

/* ========== Features ========== */
.features {
  background: #fff;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .features { padding: 5rem 0; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-icon.primary { background: #eff6ff; color: #2563eb; }
.feature-icon.accent { background: #f0fdf4; color: #16a34a; }
.feature-icon.amber { background: #fffbeb; color: #d97706; }

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  font-family: 'Merriweather', Georgia, serif;
}

.feature-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
}

/* ========== Section ========== */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  font-family: 'Merriweather', Georgia, serif;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #4b5563;
  max-width: 672px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ========== Cards ========== */
.articles-section {
  background: #f9fafb;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .articles-section { padding: 5rem 0; }
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .articles-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.07); }

.card-image {
  aspect-ratio: 16/9;
  background: #e5e7eb;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-image img { transform: scale(1.05); }

.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.card-tag svg { width: 14px; height: 14px; }

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  font-family: 'Merriweather', Georgia, serif;
  transition: color 0.2s;
}

.card:hover .card-title { color: #1d4ed8; }

.card-excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Articles list page ========== */
.articles-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .articles-list-grid { grid-template-columns: 1fr 1fr; }
}

.card-horizontal {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .card-horizontal { flex-direction: row; }
}

.card-horizontal .card-image {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .card-horizontal .card-image {
    width: 256px;
    height: auto;
    aspect-ratio: auto;
  }
}

.card-horizontal .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Page Header ========== */
.page-header {
  background: #111827;
  color: #fff;
  padding: 4rem 0;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.page-back:hover { color: #93c5fd; }
.page-back svg { width: 16px; height: 16px; }

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Merriweather', Georgia, serif;
}

@media (min-width: 768px) {
  .page-title { font-size: 2.5rem; }
}

.page-subtitle {
  margin-top: 1rem;
  color: #9ca3af;
  max-width: 672px;
  font-size: 1.125rem;
}

/* ========== Article Detail ========== */
.article-content { padding: 3rem 0; }

@media (min-width: 768px) {
  .article-content { padding: 4rem 0; }
}

.article-inner {
  max-width: 768px;
  margin: 0 auto;
}

.article-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.article-disclaimer svg {
  width: 20px;
  height: 20px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-disclaimer p {
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.625;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: 'Merriweather', Georgia, serif;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Merriweather', Georgia, serif;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.625;
  color: #374151;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  color: #374151;
  line-height: 1.625;
  margin-bottom: 0.5rem;
}

.prose strong { font-weight: 600; }

.article-bottom-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.article-bottom-note svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-bottom-note p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.625;
}

/* ========== Info Section ========== */
.info-section {
  background: #fff;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .info-section { padding: 5rem 0; }
}

.info-inner {
  max-width: 768px;
  margin: 0 auto;
}

.info-inner p {
  color: #374151;
  line-height: 1.625;
  margin-bottom: 1rem;
}

/* ========== FAQ ========== */
.faq-section {
  background: #f9fafb;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .faq-section { padding: 5rem 0; }
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.faq-question:hover { background: #f9fafb; }

.faq-question svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-question.open svg { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.5rem 1rem;
  display: none;
}

.faq-answer.open { display: block; }

.faq-answer p {
  color: #4b5563;
  line-height: 1.625;
}

/* ========== Bottom Disclaimer ========== */
.bottom-disclaimer {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid #f3f4f6;
}

.bottom-disclaimer-inner {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.bottom-disclaimer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bottom-disclaimer-label svg { width: 20px; height: 20px; color: #9ca3af; }

.bottom-disclaimer-inner p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.625;
}

/* ========== About Page ========== */
.about-features {
  background: #f9fafb;
  padding: 4rem 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .about-features-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.about-feature-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.about-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.about-feature-icon svg { width: 28px; height: 28px; }
.about-feature-icon.primary { background: #eff6ff; color: #2563eb; }
.about-feature-icon.accent { background: #f0fdf4; color: #16a34a; }
.about-feature-icon.amber { background: #fffbeb; color: #d97706; }

.about-feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  font-family: 'Merriweather', Georgia, serif;
}

.about-feature-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
}

.about-entity {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid #f3f4f6;
}

.about-entity-inner {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-entity-inner svg {
  width: 24px;
  height: 24px;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 4px;
}

.about-entity-inner p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.625;
}

.about-entity-inner a {
  color: #2563eb;
  text-decoration: underline;
}

.about-entity-inner a:hover { color: #1d4ed8; }

/* ========== Privacy Page ========== */
.privacy-summary {
  background: #f9fafb;
  padding: 3rem 0;
}

.privacy-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 896px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .privacy-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .privacy-summary-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.privacy-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.privacy-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
}

.privacy-card svg.primary { color: #2563eb; }
.privacy-card svg.accent { color: #16a34a; }
.privacy-card svg.amber { color: #d97706; }
.privacy-card svg.blue { color: #3b82f6; }

.privacy-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.privacy-card-desc {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ========== Utility ========== */
.mt-10 { margin-top: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
