/* ============================================
   HEIMDALL - Compare Page Styles
   ============================================ */

/* --- Nav active link --- */
.nav-link-active {
  color: var(--gold) !important;
}

/* --- Compare Hero --- */
.compare-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}

.compare-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(10, 10, 15, 1) 0%, transparent 60%);
  z-index: 2;
}

.compare-hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.compare-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.compare-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Tabs Nav --- */
.compare-tabs-section {
  padding-top: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-icon {
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.tab-btn.active .tab-icon {
  opacity: 1;
}

/* --- Tab Panels --- */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --- Comparison Card --- */
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  overflow: hidden;
}

.comp-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comp-tools {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* --- Three-Column Layout --- */
.comp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comp-col {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid transparent;
}

.comp-them {
  border-color: rgba(255, 255, 255, 0.06);
}

.comp-problem {
  border-color: rgba(201, 64, 64, 0.15);
  background: rgba(201, 64, 64, 0.03);
}

.comp-heimdall {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.03);
}

.comp-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.comp-problem .comp-col-title {
  color: var(--red-threat);
}

.comp-heimdall .comp-col-title {
  color: var(--gold);
}

.comp-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.comp-col code {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.82em;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* --- Comparison Table --- */
.comp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comp-table th,
.comp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.comp-table th.heimdall-col {
  color: var(--gold);
}

.comp-table td {
  color: var(--text-secondary);
}

.comp-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 220px;
}

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

.comp-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comp-table td.heimdall-col,
.comp-table th.heimdall-col {
  background: rgba(212, 175, 55, 0.04);
  border-left: 1px solid rgba(212, 175, 55, 0.12);
}

/* --- Mark icons --- */
.mark-check {
  color: var(--green-safe);
  font-style: normal;
  margin-right: 0.3rem;
}

.mark-x {
  color: var(--red-threat);
  font-style: normal;
  margin-right: 0.3rem;
}

.mark-warn {
  color: var(--amber-warn);
  font-style: normal;
  margin-right: 0.3rem;
}

/* --- Note below table --- */
.comp-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comp-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

/* --- Summary Matrix Section --- */
.matrix-section {
  background: var(--bg-section);
}

.matrix-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 700px;
}

.matrix-table th,
.matrix-table td {
  padding: 1rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: var(--bg-card);
}

.matrix-table th.matrix-heimdall {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.matrix-table th.matrix-capability,
.matrix-table td.matrix-capability {
  text-align: left;
  min-width: 260px;
  color: var(--text-primary);
  font-weight: 500;
}

.matrix-table td {
  color: var(--text-secondary);
}

.matrix-table td.matrix-heimdall {
  background: rgba(212, 175, 55, 0.04);
  border-left: 1px solid rgba(212, 175, 55, 0.12);
}

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

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.matrix-table tr:hover td.matrix-heimdall {
  background: rgba(212, 175, 55, 0.06);
}

.matrix-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 2rem;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.03);
  position: relative;
}

.cta-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
}

.cta-quote strong {
  color: var(--gold);
  font-style: normal;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .comp-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .compare-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .comp-card {
    padding: 1.5rem;
  }

  .tabs-nav {
    gap: 0;
  }

  .tab-btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.65rem 0.6rem;
  }

  .tab-btn span:not(.tab-icon) {
    display: none;
  }

  .tab-icon {
    opacity: 1;
  }

  .cta-quote {
    padding: 1.5rem;
  }
}
