/* ============================================================
   ANCHORSAAS – MAIN STYLESHEET
   Modern SaaS Directory Design
============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1E293B;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #EFF6FF;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
  --pink: #EC4899;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 32px; height: 32px; }
.logo-text {
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-text strong { font-weight: 800; }

/* Nav */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,.78);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255,255,255,.1); }

.chevron { width: 14px; height: 14px; transition: transform .2s; }
.has-mega-menu.open .chevron { transform: rotate(180deg); }

.header-cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  padding: 8px 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MEGA MENU
============================================================ */
.mega-menu {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 999;
}
.has-mega-menu.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 2rem 24px;
}

.mega-col { padding: 0 1.5rem; border-right: 1px solid var(--border); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; padding-right: 0; }

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.mega-icon { font-size: 1.2rem; }
.mega-col-header h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mega-col ul { display: flex; flex-direction: column; gap: 2px; }
.mega-col ul li a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--slate);
  transition: all .15s;
}
.mega-col ul li a:hover { color: var(--blue); background: var(--blue-light); }

.mega-see-all {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.mega-see-all:hover { color: var(--blue-dark); }

/* ============================================================
   MOBILE NAV
============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 998;
  overflow-y: auto;
  padding: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav ul li a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-weight: 500;
  transition: all .15s;
}
.mobile-nav ul li a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E3A6E 60%, #1E40AF 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(59,130,246,.4);
  color: #93C5FD;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

/* Search */
.hero-search { margin-bottom: 1.5rem; position: relative; }
.search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  max-width: 520px;
}
.search-icon { width: 18px; height: 18px; flex-shrink: 0; margin-right: 8px; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.925rem;
  color: var(--navy);
  background: transparent;
  font-family: inherit;
}
.search-btn { padding: 10px 20px; font-size: 0.875rem; }

.search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}
.search-tags a {
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  transition: all .15s;
}
.search-tags a:hover { background: rgba(255,255,255,.2); color: #fff; }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 10;
  max-width: 520px;
  overflow: hidden;
}
.search-suggestions.visible { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
  font-size: 0.875rem;
  color: var(--navy-mid);
}
.suggestion-item:hover { background: var(--bg-light); }
.suggestion-icon { font-size: 1rem; }

.hero-cta { margin-top: 0.5rem; }

/* Hero Illustration */
.hero-illustration { display: flex; justify-content: center; align-items: center; }
.hero-svg { width: 100%; max-width: 540px; filter: drop-shadow(0 20px 60px rgba(0,0,0,.3)); }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 20px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.stat-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.stat-item span {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
}

/* ============================================================
   SECTIONS
============================================================ */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   CATEGORY LAYOUT
============================================================ */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.category-sidebar { position: sticky; top: 90px; }

.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}
.category-item:hover { background: var(--blue-light); }
.category-item.active {
  background: var(--blue-light);
  border-color: var(--blue);
}
.cat-icon { font-size: 1.3rem; flex-shrink: 0; }
.category-item div { flex: 1; }
.category-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.category-item small { font-size: 0.775rem; color: var(--slate); }
.cat-chevron { width: 14px; height: 14px; color: var(--slate-light); flex-shrink: 0; }
.category-item.active .cat-chevron { color: var(--blue); }

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

.tab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.tab-panel-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.see-all-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); }
.see-all-link:hover { color: var(--blue-dark); }

/* Software Grid */
.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.software-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s;
  cursor: pointer;
}
.software-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sw-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sw-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.sw-logo-lg { width: 48px; height: 48px; font-size: 1rem; border-radius: 12px; }
.sw-logo-xs { width: 24px; height: 24px; font-size: 0.6rem; border-radius: 6px; }

.sw-meta { flex: 1; }
.sw-meta h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.sw-category { font-size: 0.76rem; color: var(--slate); }

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-popular { background: #DCFCE7; color: #16A34A; }
.badge-value { background: #FEF3C7; color: #D97706; }
.badge-new { background: #EFF6FF; color: #2563EB; }

.sw-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 1px; }
.stars-sm { font-size: 0.75rem; }
.rating-val { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.rating-count { font-size: 0.775rem; color: var(--slate); }

.sw-desc { font-size: 0.82rem; color: var(--slate); line-height: 1.5; flex: 1; }
.sw-link { font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.software-card:hover .sw-link { color: var(--blue-dark); }

.see-all-btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.see-all-btn:hover { color: var(--blue-dark); }

/* ============================================================
   TRENDING
============================================================ */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: all .2s;
}
.trending-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trending-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-light);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-info { flex: 1; }
.trending-info h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.trending-info span { font-size: 0.76rem; color: var(--slate); }

.trending-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.trending-rating span { font-size: 0.75rem; font-weight: 700; color: var(--navy); }

.trending-arrow { width: 16px; height: 16px; color: var(--slate-light); flex-shrink: 0; }
.trending-card:hover .trending-arrow { color: var(--blue); }

/* ============================================================
   COMPARISONS
============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.comparison-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s;
}
.comparison-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.comp-vs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.vs-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--slate);
  background: var(--bg-light);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.comp-info { flex: 1; }
.comp-info h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.comp-info p { font-size: 0.8rem; color: var(--slate); line-height: 1.4; }
.comp-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 100px;
}
.comp-cta { font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.comparison-card:hover .comp-cta { color: var(--blue-dark); }

/* ============================================================
   ALTERNATIVES
============================================================ */
.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.alt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .2s;
}
.alt-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.alt-icon-wrap { flex-shrink: 0; }
.alt-info { flex: 1; }
.alt-info h4 { font-size: 0.925rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.alt-info p { font-size: 0.8rem; color: var(--slate); margin-bottom: 8px; }
.alt-logos {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--slate);
}
.alt-cta { font-size: 0.8rem; font-weight: 600; color: var(--blue); white-space: nowrap; flex-shrink: 0; }
.alt-card:hover .alt-cta { color: var(--blue-dark); }

/* ============================================================
   BLOG
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.blog-card--featured { grid-row: 1 / 3; }

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s;
}
.blog-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-img-sm { height: 140px; }
.blog-img-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.blog-img-icon { font-size: 3rem; }
.blog-img-text { color: rgba(255,255,255,.7); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-date, .blog-time { font-size: 0.76rem; color: var(--slate); }
.blog-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.blog-card--featured .blog-body h3 { font-size: 1.2rem; }
.blog-body p { font-size: 0.83rem; color: var(--slate); line-height: 1.6; flex: 1; }
.blog-cta { font-size: 0.82rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.blog-card:hover .blog-cta { color: var(--blue-dark); }

/* ============================================================
   TRUST SECTION
============================================================ */
.trust-section { background: var(--navy); }
.trust-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: background .2s;
}
.trust-card:hover { background: rgba(255,255,255,.08); }
.trust-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.trust-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.84rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--navy); padding: 60px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-col--brand .logo-text { color: #fff; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin: 1rem 0 1.25rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--blue); color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A6E 100%);
  padding: 48px 0;
}
.page-hero-inner { display: flex; flex-direction: column; gap: 12px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.3); }

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 600px;
}

/* ============================================================
   SOFTWARE REVIEW PAGE
============================================================ */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.5rem 0;
}

.review-main {}
.review-sidebar {}

.review-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.review-header-top {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.sw-logo-xl {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.review-title h1 { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.review-title p { font-size: 0.9rem; color: var(--slate); margin-bottom: 10px; }
.review-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.review-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0;
}
.score-big { font-size: 3rem; font-weight: 900; color: var(--navy); line-height: 1; }
.score-stars { color: var(--amber); font-size: 1.4rem; }
.score-details p { font-size: 0.8rem; color: var(--slate); }
.score-details strong { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

.review-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.review-tab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.review-tab.active { color: var(--blue); border-color: var(--blue); }
.review-tab:hover:not(.active) { color: var(--navy); }

.review-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.review-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.review-section p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; margin-bottom: 0.75rem; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pros, .cons { padding: 1rem; border-radius: var(--radius); }
.pros { background: #F0FDF4; border: 1px solid #BBF7D0; }
.cons { background: #FFF1F2; border: 1px solid #FECDD3; }
.pros h4 { color: #16A34A; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; }
.cons h4 { color: #DC2626; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; }
.pros ul, .cons ul { display: flex; flex-direction: column; gap: 6px; }
.pros ul li, .cons ul li { font-size: 0.83rem; color: var(--navy-mid); padding-left: 16px; position: relative; }
.pros ul li::before { content: '✓'; position: absolute; left: 0; color: #16A34A; font-weight: 700; }
.cons ul li::before { content: '✗'; position: absolute; left: 0; color: #DC2626; font-weight: 700; }

.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color .15s;
}
.pricing-card.featured {
  border-color: var(--blue);
  background: var(--blue-light);
}
.pricing-card .plan-name { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 6px; }
.pricing-card .price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.pricing-card .price span { font-size: 0.8rem; font-weight: 400; color: var(--slate); }
.pricing-card .plan-desc { font-size: 0.78rem; color: var(--slate); margin-top: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.feature-check { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.feature-item p { font-size: 0.83rem; color: var(--slate); }
.feature-item strong { display: block; font-size: 0.875rem; color: var(--navy); font-weight: 600; }

/* Sidebar */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a {
  font-size: 0.83rem;
  color: var(--blue);
  transition: color .15s;
}
.sidebar-links a:hover { color: var(--blue-dark); }

.quick-facts { display: flex; flex-direction: column; gap: 8px; }
.quick-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.quick-fact:last-child { border-bottom: none; }
.quick-fact span:first-child { color: var(--slate); }
.quick-fact span:last-child { font-weight: 600; color: var(--navy); }

/* ============================================================
   COMPARISON PAGE
============================================================ */
.comparison-hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.comp-hero-logo { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.5rem; }
.vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: rgba(255,255,255,.8);
}

.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.comparison-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
}
.comparison-table th:first-child { width: 200px; }
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--navy-mid);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-light); }
.comparison-table td:first-child { font-weight: 600; color: var(--slate); background: var(--bg-light); }
.winner-badge { display: inline-flex; align-items: center; gap: 4px; background: #DCFCE7; color: #16A34A; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: 6px; }
.check-yes { color: var(--green); font-weight: 700; }
.check-no { color: var(--red); font-weight: 700; }

.verdict-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A6E 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #fff;
  margin-top: 1.5rem;
}
.verdict-box h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.verdict-box p { font-size: 0.9rem; color: rgba(255,255,255,.75); line-height: 1.7; }

/* ============================================================
   ALTERNATIVES PAGE
============================================================ */
.alt-list { display: flex; flex-direction: column; gap: 1rem; }
.alt-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all .2s;
}
.alt-list-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.alt-list-body { flex: 1; }
.alt-list-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.alt-list-body p { font-size: 0.85rem; color: var(--slate); line-height: 1.6; margin-bottom: 10px; }
.alt-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alt-meta-item { font-size: 0.78rem; color: var(--slate); }
.alt-meta-item strong { color: var(--navy); }
.alt-list-card .btn { flex-shrink: 0; align-self: flex-start; }

/* ============================================================
   BLOG PAGES
============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
}
.blog-article { min-width: 0; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.article-cover {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.article-cover-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.article-cover-icon { font-size: 5rem; }
.article-cover-title { font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,.8); }

.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.toc h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.toc ol li { font-size: 0.85rem; }
.toc ol li a { color: var(--blue); }
.toc ol li a:hover { color: var(--blue-dark); }

.article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 2rem 0 1rem; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 1.5rem 0 0.75rem; }
.article-body p { font-size: 0.9rem; color: var(--slate); line-height: 1.8; margin-bottom: 1rem; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body ul li { font-size: 0.9rem; color: var(--slate); margin-bottom: 6px; }

.inline-sw-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0;
}
.inline-sw-card .sw-meta h4 { font-size: 1rem; }

.author-box {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-bio h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.author-bio span { font-size: 0.78rem; color: var(--blue); }
.author-bio p { font-size: 0.83rem; color: var(--slate); margin-top: 4px; }

/* Blog sidebar */
.blog-sidebar .sidebar-card { margin-bottom: 1.25rem; }
.sidebar-post { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post-num { font-size: 0.75rem; font-weight: 800; color: var(--blue); background: var(--blue-light); width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-post a { font-size: 0.82rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.sidebar-post a:hover { color: var(--blue); }

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

/* ============================================================
   SOFTWARE DIRECTORY PAGE
============================================================ */
.directory-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.directory-sidebar {}
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.filter-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  font-size: 0.85rem;
  color: var(--navy-mid);
}
.filter-item:hover { background: var(--bg-light); }
.filter-item.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.filter-count { font-size: 0.75rem; background: var(--bg-light); color: var(--slate); padding: 1px 6px; border-radius: 100px; }

.directory-main {}
.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.result-count { font-size: 0.875rem; color: var(--slate); }
.result-count strong { color: var(--navy); }
.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--navy-mid);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.directory-list { display: flex; flex-direction: column; gap: 1rem; }
.dir-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all .2s;
}
.dir-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.dir-card-body { flex: 1; min-width: 0; }
.dir-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.dir-card-body p { font-size: 0.85rem; color: var(--slate); line-height: 1.5; margin-bottom: 10px; }
.dir-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dir-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-layout { max-width: 800px; margin: 0 auto; padding: 3rem 0 5rem; }
.legal-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.legal-content p { font-size: 0.9rem; color: var(--slate); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { font-size: 0.9rem; color: var(--slate); margin-bottom: 4px; line-height: 1.6; }
.legal-date { font-size: 0.82rem; color: var(--slate); margin-bottom: 2rem; }

/* ============================================================
   ABOUT US
============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.team-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.5rem; margin: 0 auto 1rem; }
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.team-card span { font-size: 0.8rem; color: var(--blue); }
.team-card p { font-size: 0.83rem; color: var(--slate); margin-top: 8px; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .comparison-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-illustration { order: -1; }
  .hero-svg { max-width: 400px; }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .category-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .category-item { padding: 8px 12px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .review-layout { grid-template-columns: 1fr; }
  .directory-layout { grid-template-columns: 1fr; }
  .mega-menu-inner { grid-template-columns: repeat(3, 1fr); }
  .mega-col:nth-child(n+4) { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  
  .hero { padding: 48px 0 40px; }
  .hero-illustration { display: none; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 0 1rem; }
  .stat-divider { height: 24px; }
  
  .software-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .alternatives-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-row: auto; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 48px 0; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.75rem; }
  .stats-inner { flex-direction: column; gap: 0.75rem; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) { display: none; }
}

/* ============================================================
   UTILITY
============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-light);
  color: var(--slate);
  border: 1px solid var(--border);
}
.tag-blue { background: var(--blue-light); color: var(--blue); border-color: #BFDBFE; }
.tag-green { background: #F0FDF4; color: #16A34A; border-color: #BBF7D0; }
