/* SaaSAtlas v3.0 */
:root {
  --bg: #0b1020;
  --bg-soft: #121936;
  --surface: rgba(16, 24, 48, 0.78);
  --surface-strong: rgba(18, 28, 58, 0.94);
  --surface-muted: rgba(255, 255, 255, 0.04);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(96, 165, 250, 0.3);
  --primary: #60a5fa;
  --primary-strong: #3b82f6;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --success: #34d399;
  --danger: #f87171;
  --shadow-sm: 0 10px 30px rgba(2, 6, 23, 0.18);
  --shadow-md: 0 24px 70px rgba(2, 6, 23, 0.3);
  --shadow-lg: 0 32px 90px rgba(2, 6, 23, 0.42);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 24%),
    radial-gradient(circle at bottom, rgba(167, 139, 250, 0.12), transparent 26%),
    linear-gradient(180deg, #09101f 0%, #0b1020 44%, #10172e 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease, transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
a:hover { color: #7dd3fc; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(9, 16, 31, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.7);
}

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

.nav-links a {
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 56px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.82)),
    linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,211,238,0.08), rgba(167,139,250,0.18));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 240px;
  height: 240px;
  right: -60px;
  top: -40px;
  background: rgba(34, 211, 238, 0.22);
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -70px;
  bottom: -130px;
  background: rgba(96, 165, 250, 0.18);
}

.hero-badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1,
h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero p,
.lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-image,
.feature-image {
  width: 100%;
  border-radius: 22px;
  margin-top: 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 280px;
  object-fit: cover;
}

.section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2,
h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-header p,
p {
  color: var(--text-soft);
}

.card,
.box,
.stat-card,
.related-links,
.info-panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(15, 23, 42, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.card,
.box,
.related-links,
.info-panel {
  padding: 26px;
}

.card:hover,
.box:hover,
.related-links:hover,
.info-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: var(--shadow-md);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0 0;
}

.grid > .card,
.grid > .box {
  grid-column: span 4;
}

.grid-2 > * { grid-column: span 6; }
.grid-3 > * { grid-column: span 4; }

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}

.list a::after {
  content: "↗";
  color: var(--text-muted);
  font-size: 0.95rem;
}

.list a:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.08);
}

.list a:hover::after { color: var(--accent); }

.category-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.category-card .img-placeholder,
.thumb {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(167, 139, 250, 0.08));
}

.category-card .img-placeholder img,
.thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card h2 a,
.card h3 a { color: #fff; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.cta {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 35px rgba(34, 211, 238, 0.15);
}

.cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(34, 211, 238, 0.22);
}

.button-secondary,
.back-link {
  color: var(--text-soft);
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.back-link:hover,
.button-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(96, 165, 250, 0.22);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px 20px;
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10,15,30,0.56);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 18px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe3ff;
  background: rgba(96, 165, 250, 0.08);
}

tr:hover td {
  background: rgba(255,255,255,0.02);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.2);
  font-size: 0.84rem;
  font-weight: 600;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0;
}

.pros,
.cons {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pros {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.9));
  border-color: rgba(52, 211, 153, 0.24);
}

.cons {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.32), rgba(15, 23, 42, 0.9));
  border-color: rgba(248, 113, 113, 0.22);
}

.pros ul,
.cons ul,
.box ul,
.card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.pros li,
.cons li,
.box li,
.card li {
  margin-bottom: 10px;
}

.price-highlight {
  color: var(--success);
  font-weight: 800;
}

.related-links {
  margin-top: 32px;
}

.related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  border: 1px solid rgba(255,255,255,0.06);
}

.related-links a:hover {
  color: #fff;
  border-color: rgba(96,165,250,0.2);
  background: rgba(96,165,250,0.08);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.compare-head img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.dual-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 38px 0 18px;
}

.foot {
  margin-top: 56px;
  padding: 28px 0 6px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .hero {
    padding: 56px 32px;
  }
  .grid > .card,
  .grid > .box,
  .grid-2 > *,
  .grid-3 > * {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .wrap { padding: 18px 14px 46px; }
  .top-nav {
    border-radius: 18px;
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links { width: 100%; }
  .hero {
    padding: 38px 22px;
    border-radius: 24px;
  }
  .hero h1,
  h1 { max-width: none; }
  .grid,
  .pros-cons,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .grid > .card,
  .grid > .box,
  .grid-2 > *,
  .grid-3 > * {
    grid-column: span 12;
  }
  .hero-actions,
  .dual-cta,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta,
  .button-secondary,
  .back-link {
    width: 100%;
  }
}
