:root {
  --primary: #6c3ce1;
  --primary-light: #8b5cf6;
  --accent: #ff6b4a;
  --dark: #0f0a1e;
  --dark-2: #1a1230;
  --text: #1e293b;
  --text-light: #64748b;
  --line: #e9e4f5;
  --light-bg: #f8f6ff;
  --white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #2d1b69 40%, #0f0a1e 100%);
  --gradient-primary: linear-gradient(135deg, #6c3ce1, #8b5cf6);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

main { display: block; }

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

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

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

ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero,
.page-hero {
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.page-hero {
  padding: 128px 0 56px;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.25), transparent 70%);
}

.hero::before,
.page-hero::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.hero::after,
.page-hero::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.page-hero-content {
  max-width: 860px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero h1,
.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub,
.page-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.85;
}

.hero-sub {
  margin-bottom: 36px;
}

.page-sub {
  max-width: 820px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note,
.page-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.hero-note {
  margin-top: 18px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb a:hover { color: #fff; }

.floating-notes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.note {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  color: #fff;
  animation: floatNote 6s ease-in-out infinite;
}

.n1 { top: 15%; left: 10%; animation-delay: 0s; }
.n2 { top: 30%; right: 12%; animation-delay: 1.5s; }
.n3 { bottom: 20%; left: 20%; animation-delay: 3s; }
.n4 { bottom: 30%; right: 18%; animation-delay: 4.5s; }

@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ===== STATS ===== */
.stats {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.stat-item { text-align: center; padding: 12px 0; }

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}

/* ===== HOME SECTIONS ===== */
.features,
.how-it-works,
.use-cases,
.resource-hub,
.testimonials,
.faq {
  padding: 96px 0;
}

.features,
.use-cases,
.faq {
  background: var(--light-bg);
}

.how-it-works,
.resource-hub,
.testimonials {
  background: var(--white);
}

.features-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card,
.resource-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  transition: transform 0.25s, box-shadow 0.25s;
}

.resource-card {
  background: linear-gradient(180deg, #ffffff, #faf7ff);
  border-color: var(--line);
}

.feature-card:hover,
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(108, 60, 225, 0.1);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.feature-card h3,
.resource-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p,
.resource-card p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.8;
}

.resource-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 700;
}

.resource-link::after {
  content: "→";
  transition: transform 0.2s;
}

.resource-link:hover::after {
  transform: translateX(4px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), #ddd);
}

.step:last-child .step-connector { display: none; }

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.94rem;
  color: var(--text-light);
  line-height: 1.8;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-showcase {
  padding: 96px 0;
}

.tutorials-section {
  background: var(--light-bg);
}

.works-section {
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(108, 60, 225, 0.12);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0f0a1e;
}

.video-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 10, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.video-card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.video-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 2px;
}

.video-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text-light);
  font-size: 0.8rem;
}

.video-card .resource-link {
  margin-top: auto;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  transition: transform 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.case-body {
  padding: 28px;
}

.case-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.case-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.case-card p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--light-bg);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid #ede8f5;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(108, 60, 225, 0.08);
}

.quote-mark {
  font-size: 2.2rem;
  color: var(--primary-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 800;
}

.quote-text {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-title {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-toggle {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] .faq-toggle { transform: rotate(45deg); }

.faq-answer { padding: 0 24px 20px; }

.faq-answer p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* ===== CONTENT PAGES ===== */
.content-page {
  padding: 52px 0 96px;
  background: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-main h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px;
}

.article-main h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}

.article-main p,
.article-main li {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.9;
}

.article-main p { margin-bottom: 18px; }

.article-main ul,
.article-main ol {
  margin: 0 0 18px 22px;
}

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

.article-main blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(108, 60, 225, 0.06), rgba(139, 92, 246, 0.04));
  border-radius: 0 14px 14px 0;
  color: var(--text);
}

.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.article-main th,
.article-main td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: var(--text-light);
  line-height: 1.8;
}

.article-main th {
  background: #f8fafc;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.article-main tr:last-child td { border-bottom: none; }

.article-main a {
  color: var(--primary);
  font-weight: 600;
}

.article-main a:hover { text-decoration: underline; }

.article-figure {
  margin: 34px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  background: #0f172a;
}

.article-figure figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  background: #fbfaff;
  border-top: 1px solid var(--line);
}

.article-figure figcaption a {
  font-weight: 600;
}

.callout-box,
.checklist-box,
.mini-grid,
.related-guides {
  margin: 30px 0;
}

.callout-box h3:first-child,
.mini-card h3:first-child,
.panel-card h3:first-child {
  margin-top: 0;
}

.callout-box,
.checklist-box {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.callout-box {
  background: linear-gradient(135deg, rgba(248, 246, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.checklist-box {
  background: #0f172a;
}

.checklist-box h3,
.checklist-box p,
.checklist-box li {
  color: #dbe4f0;
}

.checklist-box h3 {
  margin-top: 0;
  color: #fff;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mini-card {
  padding: 20px;
  border-radius: 14px;
  background: #fbfaff;
  border: 1px solid var(--line);
}

.mini-card h3 {
  margin-top: 0;
}

.toc-card {
  position: sticky;
  top: 92px;
  background: #fbfaff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.toc-card h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 14px;
}

.toc-card a {
  display: block;
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.toc-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.related-guides h2 {
  margin-top: 0;
}

.related-guides .resource-grid {
  margin-top: 18px;
}

.section-cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.plan-card {
  padding: 30px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #faf7ff);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.featured-plan {
  border-color: rgba(108, 60, 225, 0.32);
  box-shadow: 0 18px 42px rgba(108, 60, 225, 0.14);
  transform: translateY(-6px);
}

.plan-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-card h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  color: var(--dark);
}

.price-line {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.price-value {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--dark);
}

.price-note,
.plan-subnote {
  color: var(--text-light);
  font-size: 0.92rem;
}

.plan-subnote {
  margin-bottom: 16px;
}

.plan-list {
  margin: 0 0 22px;
  padding-left: 18px;
}

.plan-list li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.plan-btn-light {
  color: var(--primary);
  border-color: rgba(108, 60, 225, 0.24);
  background: rgba(108, 60, 225, 0.06);
}

.plan-btn-light:hover {
  background: rgba(108, 60, 225, 0.12);
  border-color: rgba(108, 60, 225, 0.4);
}

.note-strip {
  margin-bottom: 34px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.note-strip p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.8;
}

.pricing-layout {
  gap: 42px;
}

.blog-grid {
  margin-bottom: 34px;
}

.blog-post-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.post-meta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--text-light);
  font-size: 0.84rem;
}

.pricing-table-wrap {
  margin-top: 12px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  color: var(--text-light);
}

.compare-table th {
  background: #f8fafc;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.page-link-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-link-btn {
  min-width: 160px;
  text-align: center;
}

.faq-shell {
  max-width: 860px;
}

.compact-footer {
  grid-template-columns: 1fr 1fr 1fr;
}

.compact-footer .footer-section p {
  margin-bottom: 0;
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #faf7ff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.panel-card h3 {
  margin-top: 0;
}

.panel-card p:last-child {
  margin-bottom: 0;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.kpi-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.kpi-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.05rem;
}

.kpi-card p:last-child {
  margin-bottom: 0;
}

.cta-band {
  margin: 40px 0 0;
  padding: 34px;
  border-radius: 24px;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 10, 30, 0.22);
}

.cta-band h2 {
  margin: 0 0 12px;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .btn-primary {
  margin-top: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #fff;
  padding: 64px 0 0;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-section p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e2e8f0;
}

.footer-section a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-note {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #7b8aa1;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid,
  .resource-grid,
  .video-grid,
  .testimonials-grid,
  .kpi-strip,
  .pricing-grid,
  .blog-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero,
  .page-hero {
    padding-top: 118px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .page-hero {
    padding-bottom: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-sub,
  .page-sub {
    font-size: 1rem;
  }

  .stats { margin-top: -32px; }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 20px;
  }

  .features-grid,
  .steps-grid,
  .cases-grid,
  .resource-grid,
  .video-grid,
  .testimonials-grid,
  .footer-grid,
  .mini-grid,
  .section-cluster,
  .kpi-strip,
  .pricing-grid,
  .blog-post-grid,
  .compact-footer {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .article-main h2 {
    font-size: 1.55rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 18px;
  }

  .faq-answer {
    padding: 0 18px 16px;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .page-hero h1 {
    font-size: 1.65rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .feature-card,
  .resource-card,
  .testimonial-card,
  .case-body,
  .callout-box,
  .checklist-box,
  .panel-card,
  .kpi-card,
  .cta-band,
  .plan-card,
  .note-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-page {
    padding-top: 42px;
  }
}
