/* ===== SNA Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary-50: #EFF9FF;
  --primary-100: #D9F0FF;
  --primary-200: #B2E2FF;
  --primary-500: #0095F1;
  --primary-900: #0A1E46;
  --secondary-orange: #F36C3F;
  --tertiary-green: #16B364;
  --neutral-50: #F2F5FD;
  --neutral-100: #E4ECFB;
  --neutral-200: #BCCFF5;
  --neutral-500: #0E2A61;
  --white: #FFFFFF;
  --warning-yellow: #F59E0B;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1200px;
  --header-height: 95px;
  --radius: 0.75rem;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--neutral-500);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-500); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--primary-200); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-900);
  line-height: 1.2;
}

p, li, td { max-width: 72ch; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-100);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo img {
  height: 140px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-900);
  text-decoration: none;
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: var(--primary-500);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  background: var(--primary-500);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-200);
  border-color: var(--primary-200);
  color: #000;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-900);
  background: var(--white);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary-200);
  border-color: var(--primary-200);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger svg { width: 28px; height: 28px; stroke: var(--primary-900); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--primary-900);
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-100);
}
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-nav-close svg { width: 24px; height: 24px; stroke: var(--primary-900); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.mobile-overlay.open { display: block; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--neutral-500);
}

.breadcrumb a {
  color: var(--neutral-500);
  display: flex;
  align-items: center;
}

.breadcrumb a:hover { color: var(--primary-500); }

.breadcrumb .separator {
  display: flex;
  align-items: center;
  color: var(--neutral-200);
}

.breadcrumb .separator svg {
  width: 14px;
  height: 14px;
}

.breadcrumb .current {
  color: var(--neutral-500);
  font-weight: 500;
}

/* ===== ARTICLE HERO ===== */
.article-hero {
  padding: 48px 0 40px;
  text-align: center;
}

.article-hero h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 500;
  color: var(--primary-900);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero .subtitle {
  font-size: 1.0625rem;
  color: var(--neutral-500);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CONTENT SECTIONS ===== */
.section-white { background: var(--white); }
.section-neutral { background: var(--neutral-50); }
.section-dark { background: var(--primary-900); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark a { color: var(--primary-200); }
.section-dark .comparison-table th { background: rgba(255,255,255,0.1); color: var(--white); }

.content-section {
  padding: 48px 0;
}

.content-card {
  background: var(--neutral-50);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin: 0 auto;
  max-width: 900px;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.375rem);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-100);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content h4 {
  font-size: 1.1875rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content li::marker {
  color: var(--primary-500);
}

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

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: var(--primary-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
}

.toc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--primary-900);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.toc a {
  color: var(--primary-500);
}

/* ===== COMPARISON TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-100);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--primary-900);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tbody tr:nth-child(even) {
  background: var(--neutral-50);
}

.comparison-table .check { color: var(--tertiary-green); font-weight: 600; }
.comparison-table .cross { color: #D94444; font-weight: 600; }
.comparison-table .highlight-col { background: var(--primary-50); }

/* ===== FAQ ACCORDION ===== */
.faq-section {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--neutral-100);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-900);
  text-align: left;
  gap: 16px;
}

.faq-question:hover { color: var(--primary-500); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

.faq-answer p {
  line-height: 1.7;
  color: var(--neutral-500);
}

/* ===== COURSE OVERVIEW BOX ===== */
.course-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
}

.course-box h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary-900);
}

.course-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.course-box dt {
  font-weight: 600;
  color: var(--primary-900);
  white-space: nowrap;
}

.course-box dd {
  margin: 0;
  color: var(--neutral-500);
}

/* ===== ROI / STAT BOXES ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.stat-card .stat-detail {
  font-size: 0.8125rem;
  color: var(--neutral-500);
  margin-top: 8px;
  opacity: 0.7;
}

/* ===== CHECKLIST ===== */
.checklist {
  margin: 24px 0;
}

.checklist-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.checklist-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--tertiary-green);
  margin-top: 2px;
}

.checklist-item h4 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.checklist-item p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-900) 0%, #0D2F5E 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  font-size: 1.0625rem;
  padding: 0.85rem 2rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--neutral-100);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  transition: all 0.18s ease;
}

.footer-social a:hover {
  background: var(--primary-500);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-nav h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--neutral-500);
  font-weight: 400;
}

.footer-nav a:hover { color: var(--primary-500); }

.footer-subscribe h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.footer-subscribe p {
  font-size: 0.875rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
}

.footer-subscribe-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--neutral-100);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
}

.footer-subscribe-form input:focus {
  border-color: var(--primary-500);
}

.footer-subscribe-form button {
  padding: 10px 20px;
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.18s ease;
}

.footer-subscribe-form button:hover {
  background: var(--primary-200);
  color: #000;
}

.footer-bottom {
  border-top: 1px solid var(--neutral-100);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--neutral-500);
  opacity: 0.7;
}

/* ===== NAVIGATION INDEX PAGE ===== */
.page-index {
  padding: 64px 0;
}

.page-index h1 {
  text-align: center;
  margin-bottom: 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(10, 30, 70, 0.08);
  transform: translateY(-2px);
}

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

.article-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-500);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-card h3 a {
  color: var(--primary-900);
}

.article-card h3 a:hover {
  color: var(--primary-500);
}

.article-card p {
  font-size: 0.9375rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card .read-more {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== TIER CARDS ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius);
  padding: 28px;
}

.tier-card h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--primary-900);
}

.tier-card .tier-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-500);
  margin-bottom: 8px;
}

/* ===== KEY POINT BOX ===== */
.key-point {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.key-point p {
  margin: 0;
  font-weight: 500;
  color: var(--primary-900);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: flex; }
  :root { --header-height: 71px; }
  .header-logo img { height: 100px; }
}

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

  .content-card {
    padding: 28px 20px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }
}

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

  .footer-subscribe-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .article-hero h1 {
    font-size: 1.625rem;
  }
}