:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --tag-bg: #e0e7ff;
  --tag-text: #3730a3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --max-w: 1160px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Focus styles */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  font-size: 0.75rem;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.25rem;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  background-color: var(--primary-hover);
}

/* Sections Common */
.section {
  padding: 4.5rem 1.25rem;
  scroll-margin-top: 80px;
}

.section-alt {
  background-color: var(--bg-alt);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 5rem 1.25rem 4rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tag-text);
  background-color: var(--tag-bg);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: #cbd5e1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  background-color: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

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

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature Cards (3 Cards) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Media & AI Support Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.media-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.media-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.media-badge-icon {
  font-size: 2rem;
}

.media-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  background-color: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Pricing Table */
.pricing-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: #ffffff;
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.pricing-table caption {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  caption-side: top;
  text-align: left;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.pricing-table th, .pricing-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pricing-table tbody tr:hover {
  background-color: #f8fafc;
}

.pricing-table .highlight-row {
  background-color: #f0fdf4;
}

.price-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
}

.table-btn:hover {
  background-color: var(--primary-hover);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.95rem;
  color: var(--text-main);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* FAQ Details (Default Open, Zero JS) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-summary::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

details[open] .faq-summary::after {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.faq-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Article & Pro Content */
.article-container {
  max-width: 860px;
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem 0;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem 0;
}

.article-body p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
}

.article-cta-box h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.3rem;
}

.article-cta-box p {
  max-width: 600px;
  margin: 0.5rem auto 1.25rem auto;
  font-size: 0.95rem;
}

/* Footer (Strictly 4 Links) */
.site-footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 3rem 1.25rem 2rem 1.25rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #60a5fa;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .grid-3, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
  .nav-menu {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }
  .grid-3, .grid-2, .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-nav {
    gap: 1.25rem;
    flex-direction: column;
  }
  .article-container {
    padding: 1.5rem 1.25rem;
    margin: 1rem auto;
  }
  .btn, .nav-cta, .table-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
