/* ═══════════════════════════════════════════════════════════
   MDMCompare — Premium Light Theme CSS
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --accent-light: #f0f9ff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #faf5ff 100%);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-link: #2563eb;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.logo-icon {
  font-size: 1.5rem;
}

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

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

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

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--bg-hero);
  padding: 100px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}

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

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

.stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── OS FILTER TABS ─────────────────────────────────────── */
.os-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ─── MDM CARDS GRID ─────────────────────────────────────── */
.mdm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.mdm-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.mdm-card.hidden {
  display: none;
}

.mdm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mdm-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.mdm-tagline-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.mdm-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.mdm-card:hover .mdm-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.mdm-card-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mdm-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.meta-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.mdm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.free-trial-badge {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.visit-btn {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary);
  transition: all var(--transition);
}

.visit-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── DEVICE BADGES ──────────────────────────────────────── */
.device-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.device-badge-sm {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  margin: 2px;
}

/* Color-coded device badges */
.device-windows {
  background: #dbeafe;
  color: #1d4ed8;
}

.device-android {
  background: #dcfce7;
  color: #15803d;
}

.device-ios {
  background: #f3e8ff;
  color: #7c3aed;
}

.device-macos {
  background: #fff7ed;
  color: #c2410c;
}

.device-linux {
  background: #fef9c3;
  color: #a16207;
}

.device-chromeos {
  background: #f0fdf4;
  color: #166534;
}

.device-tvos {
  background: #ffe4e6;
  color: #be123c;
}

.device-fireos {
  background: #fff3e0;
  color: #e65100;
}

/* ─── POPULAR COMPARISONS ────────────────────────────────── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.popular-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: var(--text-primary);
}

.popular-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: var(--primary);
}

.popular-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.popular-card-label {
  font-size: 0.92rem;
  font-weight: 600;
  flex: 1;
}

.popular-card-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.popular-card:hover .popular-card-arrow {
  color: var(--primary);
}

/* ─── COMPARE TOOL ───────────────────────────────────────── */
.compare-tool-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto 32px;
}

.compare-selectors {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.selector-group {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.selector-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select-wrapper {
  position: relative;
}

.custom-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  transition: all var(--transition);
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.vs-badge {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-compare {
  font-size: 1rem;
  padding: 14px 36px;
}

.btn-compare:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.compare-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

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

.legend-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legend-badge {
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── EXPLORE ACCORDION ──────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.explore-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.explore-card:hover {
  border-color: var(--primary);
}

.explore-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.explore-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-icon {
  font-size: 1.3rem;
}

.explore-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.explore-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
  line-height: 1;
}

.explore-toggle.open {
  transform: rotate(45deg);
  color: var(--primary);
}

.explore-card-body {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}

.explore-list {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explore-item {}

.explore-link {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.explore-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: var(--bg-white);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── COMPARE PAGE ───────────────────────────────────────── */
.compare-hero {
  background: var(--bg-hero);
  padding: 60px 24px 48px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breadcrumb-link {
  color: var(--text-muted);
}

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

.breadcrumb-sep {
  color: var(--text-muted);
}

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

.compare-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vs-separator {
  background: var(--primary);
  color: white;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.compare-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ─── SUMMARY CARDS ──────────────────────────────────────── */
.compare-summary-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.summary-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-card--left {
  border-top: 4px solid var(--primary);
}

.summary-card--right {
  border-top: 4px solid var(--accent);
}

.summary-card-header {}

.summary-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.summary-tagline {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.summary-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.summary-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.summary-meta-row strong {
  color: var(--text-primary);
}

.summary-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.vs-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ─── COMPARISON TABLE ───────────────────────────────────── */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.comparison-table thead th {
  padding: 18px 20px;
  text-align: left;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.col-feature {
  width: 22%;
}

.col-mdm {
  width: 39%;
}

.table-row {
  border-bottom: 1px solid var(--border);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:nth-child(even) {
  background: var(--bg-alt);
}

.table-row:hover {
  background: var(--primary-light);
}

.feature-name {
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  vertical-align: top;
}

.feature-val {
  padding: 16px 20px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  vertical-align: top;
  border-left: 1px solid var(--border);
}

.price-cell {
  font-weight: 700;
  color: var(--primary);
}

.inline-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.check-yes {
  color: var(--success);
  font-weight: 700;
}

.check-no {
  color: var(--danger);
  font-weight: 700;
}

/* ─── OTHER COMPARISONS ──────────────────────────────────── */
.other-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.other-compare-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-compare-link {
  display: block;
  padding: 12px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.other-compare-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 24px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text-primary);
  color: #94a3b8;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand .logo-text strong {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 8px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #64748b;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 48px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .compare-summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-vs-divider {
    padding: 8px 0;
  }

  .compare-selectors {
    flex-direction: column;
  }

  .vs-badge {
    transform: rotate(90deg);
  }

  .compare-hero-title {
    font-size: 1.6rem;
  }

  .header-nav {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

  .compare-tool-box {
    padding: 24px 20px;
  }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mdm-card {
  animation: fadeInUp 0.4s ease both;
}

.mdm-card:nth-child(1) {
  animation-delay: 0.05s;
}

.mdm-card:nth-child(2) {
  animation-delay: 0.10s;
}

.mdm-card:nth-child(3) {
  animation-delay: 0.15s;
}

.mdm-card:nth-child(4) {
  animation-delay: 0.20s;
}

.mdm-card:nth-child(5) {
  animation-delay: 0.25s;
}

.mdm-card:nth-child(6) {
  animation-delay: 0.30s;
}

.mdm-card:nth-child(7) {
  animation-delay: 0.35s;
}

.mdm-card:nth-child(8) {
  animation-delay: 0.40s;
}

/* ─── QUICK COMPARE TOOL ──────────────────────────────────── */
.qc-tool-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: 0 auto 32px;
}

.qc-selectors {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qc-selector-group {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  text-align: left;
}

.qc-vs {
  margin-bottom: 0;
  flex-shrink: 0;
}

.optional-badge {
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ─── QUICK COMPARE RESULT TABLE ─────────────────────────── */
.qc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 12px;
  animation: fadeInUp 0.35s ease both;
}

.qc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.qc-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.qc-table thead th {
  padding: 16px 20px;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.qc-th-feature {
  width: 22%;
  min-width: 140px;
}

.qc-th-mdm {
  min-width: 180px;
}

.qc-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.qc-row:last-child {
  border-bottom: none;
}

.qc-row:nth-child(even) {
  background: var(--bg-alt);
}

.qc-row:hover {
  background: var(--primary-light);
}

.qc-td-feature {
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  vertical-align: top;
  white-space: nowrap;
}

.qc-td-val {
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  border-left: 1px solid var(--border);
  vertical-align: top;
}

@media (max-width: 768px) {
  .qc-selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .qc-selector-group {
    max-width: 100%;
  }

  .qc-vs {
    align-self: center;
  }

  .qc-tool-box {
    padding: 24px 16px;
  }
}