/* ==========================================================================
   Self-Hosted SaaS Platform & Bundle Marketing Landing Page Stylesheet
   Pure CSS • Zero Framework Dependencies • Mobile-First Responsive
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--slate-400);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-accent:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 10%, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-400);
  max-width: 740px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 50px;
}

.hero-showcase {
  text-align: center;
  margin-top: 20px;
}

.hero-showcase img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
}

/* ==========================================================================
   Trust & Metrics Strip
   ========================================================================== */
.metrics-strip {
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  color: #ffffff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-val {
  font-size: 32px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Core Features Grid
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-hdr {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--slate-600);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-border);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Vertical Modules Showcase (Lead Manager, Pharmacy, Salon, Repair)
   ========================================================================== */
.modules-section {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.module-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.module-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.module-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-lead { background: #fef3c7; color: #b45309; }
.badge-pharmacy { background: #e0f2fe; color: #0369a1; }
.badge-salon { background: #fce7f3; color: #be185d; }
.badge-repair { background: #f3e8ff; color: #7e22ce; }

.module-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.module-desc {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.module-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.module-bullets li {
  font-size: 13px;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.module-bullets li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.module-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
}

/* ==========================================================================
   Pricing & Bundle Selector Section
   ========================================================================== */
.pricing-section {
  background: #ffffff;
}

.pricing-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.pricing-switch {
  display: inline-flex;
  background: var(--slate-100);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
}

.switch-btn {
  padding: 10px 24px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: all 0.2s ease;
}

.switch-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pricing-hdr {
  margin-bottom: 24px;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.5;
  min-height: 40px;
}

.pricing-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--slate-800);
}

.pricing-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

.pricing-term {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 600;
}

.pricing-items {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 24px;
}

.pricing-items-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.pricing-items-list {
  list-style: none;
}

.pricing-items-list li {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-items-list li span.dot {
  color: var(--primary);
  font-weight: 900;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

/* ==========================================================================
   Interactive Custom Bundle Configurator
   ========================================================================== */
.custom-bundle-card {
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  margin-top: 30px;
}

.bundle-calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.calc-module-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-module-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

.calc-module-row.selected {
  background: rgba(79, 70, 229, 0.2);
  border-color: #6366f1;
}

.calc-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calc-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-mod-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.calc-mod-badge {
  font-size: 11px;
  color: var(--slate-400);
}

.calc-mod-price {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
}

.calc-summary-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 28px;
}

.calc-summary-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.calc-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.calc-total-amount {
  font-size: 38px;
  font-weight: 900;
  color: #10b981;
}

.calc-savings-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

/* ==========================================================================
   Checkout Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--slate-800);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.modal-summary-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0 20px;
}

.modal-field {
  margin-bottom: 16px;
  text-align: left;
}

.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modal-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.modal-field small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--slate-400);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--slate-400);
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .bundle-calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
