﻿/* ==========================================================================
   B2BStacker Design System - Light & Dark Mode (Linear / Vercel Aesthetic)
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --accent-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  /* Light Mode Defaults */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(226, 232, 240, 0.8);
  
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 1px 1px rgba(226, 232, 240, 0.8);
  --card-shadow-hover: 0 14px 30px -4px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(37, 99, 235, 0.25);
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Dark Theme Overrides (High-End Dark SaaS UI)
   ========================================================================== */
:root.dark-theme, html.dark-theme, body.dark-theme {
  --bg: #090d16;
  --surface: #111827;
  --surface-alt: #1a2234;
  --border: #1f293d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --header-bg: rgba(9, 13, 22, 0.85);
  --header-border: rgba(255, 255, 255, 0.08);
  
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.07);
  --card-shadow-hover: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(59, 130, 246, 0.4);
  
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-border: rgba(59, 130, 246, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Glassmorphism Navigation */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-logo span.accent {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.25);
  min-width: 240px;
  padding: 8px;
  display: none;
  z-index: 1001;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 18px;
}

.nav-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Prominent Dark/Light Theme Toggle */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, var(--bg) 75%);
  padding: 72px 0 54px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 18px;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Category Cards Strip */
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.cat-icon-svg {
  width: 52px;
  height: 52px;
  background: var(--surface-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cat-info h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 700;
}

.cat-info p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Software Listing Cards
   ========================================================================== */
.section-heading {
  margin: 54px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-top: 4px;
}

.software-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.software-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59, 130, 246, 0.45);
}

.card-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--secondary-light);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-badge.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.software-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 6px;
}

.software-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.software-logo-box {
  width: 60px;
  height: 60px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
}

.software-meta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.rating-score {
  font-weight: 700;
  color: var(--text-main);
  margin-left: 4px;
}

.software-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--text-muted);
}

.software-body {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.pros-list, .cons-list {
  list-style: none;
  font-size: 0.88rem;
}

.pros-list li {
  margin-bottom: 7px;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.pros-list li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.cons-list li {
  margin-bottom: 7px;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.cons-list li::before {
  content: "✕";
  color: var(--danger);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.pricing-box {
  background: var(--surface-alt);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-box .price-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-box .price-amount {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 4px 0;
}

.pricing-box .trial-info {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Comparison Matrix Table
   ========================================================================== */
.table-container {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--card-shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--surface-alt);
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
}

.comparison-table tr:hover td {
  background: var(--surface-alt);
}

.check-icon {
  color: var(--accent);
  font-weight: 900;
}

.cross-icon {
  color: var(--text-light);
  font-weight: 900;
}

/* ==========================================================================
   Trust Banner (E-E-A-T Framework)
   ========================================================================== */
.trust-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 54px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  box-shadow: var(--card-shadow);
}

.trust-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.trust-icon-svg {
  width: 48px;
  height: 48px;
  background: var(--surface-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.trust-item h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
  font-weight: 700;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 64px 0 28px;
  margin-top: 80px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 11px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 960px) {
  .software-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Interactive SaaS Pricing & ROI Calculator Styles
   ========================================================================== */

.calculator-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981);
}

.calc-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.calc-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.calc-header p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.calc-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  background: var(--surface-alt);
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

.calc-tier-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.calc-tier-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.calc-tier-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.calc-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.calc-tool-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), var(--card-shadow);
}

.calc-tool-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-tool-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.calc-tool-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 8px 0 4px;
}

.calc-tool-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.calc-savings-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.calc-savings-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calc-savings-icon {
  font-size: 1.8rem;
}

.calc-savings-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.calc-savings-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .calc-controls {
    grid-template-columns: 1fr;
  }
  .calculator-section {
    padding: 24px;
  }
}

