/* ==========================================================================
   PRINTERXSOLUTIONS - AWARD-WINNING SAAS DESIGN SYSTEM & MODAL SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Branding Color Palette */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent: #3B82F6;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-border: rgba(226, 232, 240, 0.8);
  --dark: #0F172A;
  --text: #334155;
  --text-muted: #64748B;

  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.08);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --card-shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.18);

  /* Radius & Transitions */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0B0F19;
  --card-bg: #151D2A;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --glass-bg: rgba(21, 29, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Mouse Parallax Backdrop */
.mouse-parallax {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  opacity: 0.55;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 7rem 0;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Header Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  text-decoration: none;
}

[data-theme="dark"] .logo-brand {
  color: #FFFFFF;
}

.logo-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px -4px var(--primary-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn, .search-trigger-btn {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid var(--card-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle-btn:hover, .search-trigger-btn:hover {
  background: var(--primary);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px -5px rgba(37, 99, 235, 0.55);
  color: white;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--card-border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Hero Section (Streamlined & Clean with Single Primary CTA)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.hero-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.hero-feature-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* Single Primary Hero Action */
.hero-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-wrapper img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-hover);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.floating-glass-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.card-pos-1 {
  top: -20px;
  left: -20px;
}

.card-pos-2 {
  bottom: -20px;
  right: -10px;
}

/* --------------------------------------------------------------------------
   Section 2: Essential Setup Solutions (2x3 Grid)
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card-saas {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.solution-card-saas:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.solution-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon-box img, .solution-icon-box svg {
  width: 34px;
  height: 34px;
}

.solution-card-saas h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.solution-card-saas p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-action-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   Section 3: Timeline (LEFT Timeline | RIGHT Visual)
   -------------------------------------------------------------------------- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.timeline-left {
  position: relative;
}

.timeline-left::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 28px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
}

.timeline-item-saas {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item-saas:last-child {
  margin-bottom: 0;
}

.timeline-number-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 4px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  z-index: 2;
}

.timeline-card-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  flex: 1;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.timeline-item-saas:hover .timeline-card-content {
  transform: translateX(10px);
  border-color: var(--primary);
}

.timeline-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.timeline-card-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Section 4: 6 Large Alternating 50/50 Information Sections
   -------------------------------------------------------------------------- */
.alternating-section {
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--card-border);
}

.alternating-section:last-child {
  border-bottom: none;
}

.grid-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.alternating-img-box img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-hover);
  transition: var(--transition);
}

.alternating-img-box img:hover {
  transform: scale(1.02);
}

.alternating-content h2 {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.alternating-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.info-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.info-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.info-bullet-item i {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Section 5: Split FAQ Section
   -------------------------------------------------------------------------- */
.faq-split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: flex-start;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-card-saas {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-card-saas.active {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.faq-question-btn {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-icon-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-card-saas.active .faq-icon-toggle {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.faq-answer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-card-saas.active .faq-answer-body {
  max-height: 300px;
  padding: 0 2rem 2rem 2rem;
}

/* --------------------------------------------------------------------------
   Section 6: CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-saas {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-content p {
  color: #94A3B8;
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   Footer & Legal Disclaimer
   -------------------------------------------------------------------------- */
.footer-saas {
  background: var(--dark);
  color: #94A3B8;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-col h3 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand-col p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.social-links-saas {
  display: flex;
  gap: 0.85rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: white;
  padding-left: 4px;
}

.footer-newsletter-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  max-width: 480px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.legal-disclaimer-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #64748B;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-bottom-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   13. Glassmorphic Modal Component System
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close-btn {
  background: rgba(37, 99, 235, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: white;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
