/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary: #e8372a;
  --primary-dark: #c42d22;
  --primary-light: #ff5547;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;
  --text: #1a1a2e;
  --text-secondary: #4b5263;
  --text-muted: #6b7280;
  --border: #e8eaed;
  --border-light: #f0f1f3;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(232, 55, 42, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 68px;
  --transition: 0.2s ease;
}
[data-theme="dark"] {
  --bg: #0f0f17;
  --bg-secondary: #16161f;
  --bg-card: #1c1c28;
  --bg-card-hover: #22223a;
  --text: #f0f0f8;
  --text-secondary: #9ba3b8;
  --text-muted: #8e9aaf;
  --border: #2a2a3e;
  --border-light: #22223a;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(232, 55, 42, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background-color var(--transition),
    color var(--transition);
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Sora", sans-serif;
  line-height: 1.25;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  padding-left: 1.5rem;
}

/* ─── Tools Page Header & Navbar ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.site-header nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.theme-toggle:hover {
  background: rgba(232, 55, 42, 0.08);
  border-color: rgba(232, 55, 42, 0.2);
  color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all 0.2s ease;
  color: var(--text);
}

.hamburger-btn:hover {
  background: rgba(232, 55, 42, 0.08);
  border-color: rgba(232, 55, 42, 0.2);
  transform: scale(1.05);
}

.hamburger-btn .h-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Side Menu (Tool Drawer) ───────────────────────────── */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 1200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.side-menu-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(232, 55, 42, 0.08);
  color: var(--primary);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(232, 55, 42, 0.08);
  color: var(--primary);
}

.side-nav .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

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


/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 2rem;
}
.breadcrumb {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb-sep {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.breadcrumb span:last-child {
  color: var(--primary);
  font-weight: 500;
}

/* ─── Article Layout ────────────────────────────────────── */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 55, 42, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  font-family: "Sora", sans-serif;
}
.article-badge::before {
  display: none;
}
.article-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.article-title .highlight {
  color: var(--primary);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.article-meta-item svg {
  opacity: 0.6;
}

/* ─── Table of Contents ─────────────────────────────────── */
.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toc-list li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.toc-list li a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.toc-list li a:hover {
  color: var(--primary);
}
.toc-list li a:hover::before {
  opacity: 1;
}

/* ─── Article Content ───────────────────────────────────── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  margin: 2.75rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  letter-spacing: -0.01em;
}
.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.article-body p strong {
  color: var(--text);
  font-weight: 700;
}
.article-body ul,
.article-body ol {
  margin: 1rem 0 1.25rem;
  color: var(--text-secondary);
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid rgba(232, 55, 42, 0.3);
}
.article-body a:hover {
  border-color: var(--primary);
}

/* Lead paragraph */
.lead-para {
  font-size: 1.15rem !important;
  color: var(--text) !important;
  font-weight: 400;
  line-height: 1.8;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem !important;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.comparison-table thead {
  background: var(--primary);
  color: #fff;
}
.comparison-table th {
  padding: 0.9rem 1.25rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.comparison-table th:first-child {
  border-radius: var(--radius) 0 0 0;
}
.comparison-table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}
.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}
.comparison-table tbody tr:hover {
  background: rgba(232, 55, 42, 0.04);
}
.badge-yes {
  color: #16a34a;
  font-weight: 700;
}
.badge-no {
  color: #dc2626;
  font-weight: 700;
}
.badge-warn {
  color: #d97706;
  font-weight: 700;
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.callout-content {
  flex: 1;
}
.callout-content strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}
.callout-content p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}
.callout.info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.callout.success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.callout.warning {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.callout.danger {
  background: rgba(232, 55, 42, 0.08);
  border: 1px solid rgba(232, 55, 42, 0.25);
}

/* Speed Test Result Cards */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.result-card .result-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.result-card .result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  font-family: "Sora", sans-serif;
}
.result-card .result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: "Sora", sans-serif;
}
.result-card .result-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Use-case cards */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.usecase-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", sans-serif;
}
.usecase-card.online h4 {
  color: #2563eb;
}
.usecase-card.offline h4 {
  color: #16a34a;
}
.usecase-card ul {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.usecase-card li {
  margin-bottom: 0.4rem;
}

/* CTA Block */
.cta-block {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-block::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-block h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
  color: white;
}
.cta-block p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  position: relative;
  color: white;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  transition: all var(--transition);
  position: relative;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #fff;
  color: var(--primary-dark);
}

/* FAQ Section */
.faq-list {
  margin: 1.5rem 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-card);
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "Sora", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  transition: background var(--transition);
}
.faq-question:hover {
  background: var(--bg-card-hover);
}
.faq-question.active {
  color: var(--primary);
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}
.faq-question.active .faq-chevron {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.3s ease;
}
.faq-answer.open {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* Related Tools */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.related-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.related-tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.related-tool-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 55, 42, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.related-tool-info {
  flex: 1;
  min-width: 0;
}
.related-tool-info strong {
  display: block;
  font-size: 0.9rem;
  font-family: "Sora", sans-serif;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.related-tool-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tag pills */
.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.tag-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.tag-pill:hover {
  background: rgba(232, 55, 42, 0.08);
  border-color: rgba(232, 55, 42, 0.3);
  color: var(--primary);
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2.5rem 0;
}

/* Pro tip box */
.pro-tip {
  background: linear-gradient(
    135deg,
    rgba(232, 55, 42, 0.06) 0%,
    rgba(232, 55, 42, 0.02) 100%
  );
  border: 1px solid rgba(232, 55, 42, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.pro-tip-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-family: "Sora", sans-serif;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pro-tip p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* Author box */
.author-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.author-avatar {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.footer-brand .footer-logo span {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.footer-brand .footer-logo span em {
  color: var(--primary);
  font-style: normal;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.fsocials {
  display: flex;
  gap: 12px;
}
.fsoc {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.fsoc:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
}
.footer-bottom a:hover {
  color: var(--primary);
}

/* ─── Back to Top ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(232, 55, 42, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 55, 42, 0.5);
}

/* ─── Scroll Reveal (Disabled) ─────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.comparison-table-wrap,
.result-grid,
.cta-block,
.faq-list,
.related-tools-grid,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 300px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }
  .navbar__links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .article-wrap {
    padding: 2rem 1.25rem 4rem;
  }
  .breadcrumb-bar {
    padding: 0.75rem 1.25rem;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    padding: 2.5rem 1.25rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
@media (max-width: 480px) {
  .article-title {
    font-size: 1.55rem;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .author-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}
