/* ================================
   Global reset & base
================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1b2238 0, transparent 55%),
    radial-gradient(circle at bottom right, #101827 0, transparent 55%),
    #02040a;
  color: #f9fafb;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Smooth fade on load (like a soft nvg8 feel) */
body {
  opacity: 1;
  transition: opacity 0.25s ease-in;
}

/* Basic link style */

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

a:hover {
  text-decoration: none;
}

/* Utility */

.page {
  max-width: 1120px;
  margin: 3.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .page {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 1.25rem;
  }
}

/* ================================
   Header / Nav
================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.92),
      rgba(2, 6, 23, 0.6),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-header > .logo,
.site-header > .nav-links {
  /* prevent weird inherited margins */
  margin: 0;
}

.site-header::before {
  /* faint top border glow */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top center,
    rgba(148, 163, 255, 0.25),
    transparent 60%
  );
  opacity: 0.35;
  mix-blend-mode: screen;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .site-header-inner {
    padding-inline: 1.25rem;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316, #a855f7);
  box-shadow:
    0 0 0 4px rgba(248, 250, 252, 0.03),
    0 0 16px rgba(244, 114, 182, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: #9ca3af;
}

.nav-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.15s ease-out,
    border-color 0.15s ease-out,
    background 0.15s ease-out,
    transform 0.08s ease-out;
}

.nav-links a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.36);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 255, 0.22),
    rgba(15, 23, 42, 0.7)
  );
  transform: translateY(-1px);
}

.nav-links a:last-child {
  background: linear-gradient(135deg, #a3e635, #f97316);
  color: #020617;
  font-weight: 600;
  border-color: transparent;
  box-shadow:
    0 12px 35px rgba(163, 230, 53, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.7);
}

.nav-links a:last-child:hover {
  box-shadow:
    0 16px 50px rgba(163, 230, 53, 0.5),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a:nth-child(2) {
    display: none; /* hide one link if too cramped */
  }

  .nav-links a {
    padding-inline: 0.65rem;
  }
}

/* ================================
   Hero / Intro text on index
================================== */

.page h1 {
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.page-intro {
  max-width: 640px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #9ca3af;
  margin-bottom: 1.8rem;
}

/* subtle highlight under main heading word “VS” if present */
.page h1 span.highlight {
  background: linear-gradient(120deg, #a3e635, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

/* ================================
   Cards / surfaces
================================== */

.card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 255, 0.15), transparent 55%),
    rgba(15, 23, 42, 0.95);
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.75),
    inset 0 0 0 1px rgba(15, 23, 42, 0.8);
  padding: 1.8rem 1.7rem 1.9rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(
    circle at top,
    rgba(163, 230, 53, 0.09),
    transparent 55%
  );
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: #e5e7eb;
}

/* ================================
   Compare form (Tool A vs Tool B)
================================== */

.compare-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.compare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.compare-row label {
  flex: 1 1 220px;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compare-row select {
  background: radial-gradient(circle at top left, #020617, #020617 55%);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.7rem 0.9rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  position: relative;
  transition:
    border-color 0.18s ease-out,
    background 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.06s ease-out;
}

/* Little dropdown chevron (pure CSS) */
.compare-row select {
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.compare-row select:focus {
  border-color: #a3e635;
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.6);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  background: linear-gradient(135deg, #a3e635, #f97316);
  color: #020617;
  cursor: pointer;
  box-shadow:
    0 14px 40px rgba(163, 230, 53, 0.5),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transition:
    transform 0.08s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 50px rgba(163, 230, 53, 0.7),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.form-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.form-error {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #fca5a5;
}

/* ================================
   Comparisons list on index
================================== */

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.comparison-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, #020617, #020617 55%);
  font-size: 0.86rem;
  color: #e5e7eb;
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.08s ease-out,
    box-shadow 0.15s ease-out;
}

.comparison-list li a::after {
  content: "→";
  font-size: 0.85rem;
  color: #9ca3af;
  transition: transform 0.12s ease-out, color 0.12s ease-out;
}

.comparison-list li a:hover {
  border-color: rgba(163, 230, 53, 0.8);
  background: radial-gradient(circle at top left, #0f172a, #020617 70%);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.comparison-list li a:hover::after {
  transform: translateX(3px);
  color: #a3e635;
}

/* ================================
   Comparison detail page (x-vs-y)
================================== */

.comparison-page {
  max-width: 1120px;
  margin: 3.2rem auto 4.5rem;
  padding: 0 1.5rem 0.5rem;
}

@media (max-width: 768px) {
  .comparison-page {
    margin-top: 2.4rem;
    padding-inline: 1.25rem;
  }
}

.comparison-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.comparison-hero-main {
  flex: 1 1 260px;
}

.comparison-hero-main h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.07em;
  margin-bottom: 0.75rem;
}

.comparison-hero-main p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #9ca3af;
}

.comparison-hero-meta {
  flex: 0 0 250px;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    linear-gradient(135deg, rgba(163, 230, 53, 0.18), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
}

.comparison-hero-meta h3 {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d1d5db;
  margin-bottom: 0.65rem;
}

.compare-pill-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.compare-pill {
  flex: 1;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.compare-pill span.name {
  font-weight: 600;
  color: #f9fafb;
}

.compare-pill span.badge {
  font-size: 0.7rem;
  color: #9ca3af;
}

.quick-verdict {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.86rem;
  color: #e5e7eb;
}

/* ===== Tool cards (left vs right) ===== */

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.3rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.1rem 1.2rem 1.2rem;
  position: relative;
}

.tool-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.2), transparent 60%),
    rgba(15, 23, 42, 0.98);
}

.tool-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tool-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tool-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.tool-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.92);
}

/* metrics row */

.tool-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.metric-chip {
  flex: 1 1 110px;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.metric-chip span.label {
  color: #9ca3af;
}

.metric-chip span.value {
  font-weight: 600;
  color: #e5e7eb;
}

/* pros/cons lists */

.pros-cons-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.9rem;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pros, .cons {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.85rem 0.9rem 0.95rem;
}

.pros h3,
.cons h3 {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.55rem;
}

.pros h3 {
  color: #a3e635;
}

.cons h3 {
  color: #f97316;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.pros li,
.cons li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.28rem;
}

.pros li::before,
.cons li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.85rem;
}

.pros li::before {
  color: #a3e635;
}

.cons li::before {
  color: #f97316;
}

/* “Who should choose what” section */

.who-should-choose {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.1rem 1.2rem;
  background:
    radial-gradient(circle at top, rgba(163, 230, 53, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 1.6rem;
}

/* Related comparisons */

.related-comparisons {
  font-size: 0.86rem;
  color: #9ca3af;
}

.related-comparisons h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.related-comparisons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-comparisons li + li {
  margin-top: 0.25rem;
}

.related-comparisons a {
  color: #e5e7eb;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease-out, border-color 0.12s ease-out;
}

.related-comparisons a:hover {
  color: #a3e635;
  border-color: rgba(163, 230, 53, 0.7);
}

/* ================================
   Footer
================================== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.3rem 1.5rem 1.8rem;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin-top: 2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

@media (max-width: 768px) {
  .site-footer {
    padding-inline: 1.25rem;
  }
}
/* --- HEADER CLEANUP OVERRIDES --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.12), transparent 55%)
              , radial-gradient(circle at 100% 0, rgba(147,51,234,0.18), transparent 55%)
              , #020617;
  border-bottom: 1px solid rgba(15,23,42,0.7);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header a {
  text-decoration: none;
}

/* Logo text */
.site-header .logo,
.site-header .site-logo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

/* Nav container */
.site-header nav,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Make ALL nav links look the same (no “privacy is always special”) */
.site-header nav a,
.nav-links a {
  position: relative;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  background: transparent;
  box-shadow: none;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* Nuke any old :last-child gradient / glow */
.site-header nav a:last-child,
.nav-links a:last-child {
  background: transparent !important;
  box-shadow: none !important;
}

/* Hover state */
.site-header nav a:hover,
.nav-links a:hover {
  color: #f9fafb;
  background: rgba(30,64,175,0.6);
}

/* Optional: if you later add an .active class via JS it will look nice */
.site-header nav a.active,
.nav-links a.active {
  color: #020617;
  background: linear-gradient(90deg, #facc15, #fb923c);
  box-shadow: 0 0 18px rgba(251,191,36,0.55);
}


/* --- SELECT DROPDOWN READABILITY --- */

/* Style the <select> itself */
select {
  background-color: #020617;
  color: #e5e7eb;
}

/* Style the dropdown options (fixes white-on-white list) */
select option {
  background-color: #020617;
  color: #e5e7eb;
}

/* Focus outline for keyboard users */
select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.7);
}
