/* ==========================================================================
   TaxSync FBR - FBR Compliant Invoicing & POS Landing Page Design System
   Color Palette: Deep Navy Blue, Crisp Slate, Emerald Green Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Setup
   -------------------------------------------------------------------------- */
:root {
  /* Color Tokens */
  --primary-navy: #0b192c;
  --navy-dark: #060d18;
  --navy-light: #1e3e62;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-emerald-light: rgba(16, 185, 129, 0.12);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.12);
  --warning-gold: #f59e0b;
  --error-red: #e40e0e;
  
  /* Grays & Backgrounds */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(11, 25, 44, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(11, 25, 44, 0.08), 0 8px 10px -6px rgba(11, 25, 44, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(11, 25, 44, 0.12), 0 10px 15px -5px rgba(11, 25, 44, 0.06);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-navy-glow: 0 12px 30px rgba(11, 25, 44, 0.2);

  /* Fonts & Transitions */
  --font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Global Typography & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Badges
   -------------------------------------------------------------------------- */
.text-emerald {
  color: var(--accent-emerald) !important;
}

.bg-emerald-light {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
}

.text-navy {
  color: var(--primary-navy) !important;
}

.bg-navy {
  background-color: var(--primary-navy) !important;
}

.badge-fbr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-emerald {
  background-color: var(--accent-emerald);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition-fast);
}
.btn-emerald:hover {
  background-color: var(--accent-emerald-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline-navy {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-md);
  background: transparent;
  transition: var(--transition-fast);
}
.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-emerald-dark);
  background: var(--accent-emerald-light);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-taxsync {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.9rem 0;
  transition: var(--transition-fast);
  z-index: 1050;
}

.navbar-taxsync.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(11, 25, 44, 0.2);
}

.nav-link {
  font-weight: 500;
  color: #334155 !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-emerald-dark) !important;
  background-color: rgba(16, 185, 129, 0.06);
}

.sandbox-toggle-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.sandbox-toggle-pill.active-live {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  border-color: rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   5. Hero Section & Custom Slider Carousel
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-slider-container {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: translateY(10px);
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
}

.hero-title span.highlight-green {
  color: var(--accent-emerald-dark);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.6;
}

/* Custom Slider Nav Bar */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  transform: scale(1.05);
}

.slider-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator-dot {
  width: 32px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  width: 50px;
  background: var(--accent-emerald);
}

.slide-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Hero Visual Mock Card */
.hero-mockup-card {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-navy-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.red { background: #ef4444; }
.mac-dot.yellow { background: #f59e0b; }
.mac-dot.green { background: #10b981; }

.fbr-live-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Receipt Preview inside Mockup */
.mockup-receipt {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-emerald);
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.receipt-fbr-id {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary-navy);
  background: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0.25rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.receipt-total {
  border-top: 2px solid var(--primary-navy);
  padding-top: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-navy);
}

/* --------------------------------------------------------------------------
   6. FBR Compliance Metrics / Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 2.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   7. Live Interactive FBR Invoice Builder Simulator
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 5rem 0;
}

.bg-subtle-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sim-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sim-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-light) 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-body {
  padding: 2rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-navy);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-light);
}

.sim-output-card {
  background: #ffffff;
  border: 2px dashed var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.fbr-qr-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.qr-code-svg {
  width: 110px;
  height: 110px;
  margin: 0 auto;
}

.fbr-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* --------------------------------------------------------------------------
   8. Features Grid Section
   -------------------------------------------------------------------------- */
.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-emerald);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-emerald);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--primary-navy);
}

.feature-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. ROI & Savings Calculator Section
   -------------------------------------------------------------------------- */
.roi-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-navy-glow);
}

.roi-slider-input {
  width: 100%;
  accent-color: var(--accent-emerald);
  height: 8px;
  border-radius: 4px;
}

.roi-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.roi-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   10. Pricing Cards Section
   -------------------------------------------------------------------------- */
.pricing-switch-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.pricing-switch-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.pricing-card.popular {
  border: 2px solid var(--accent-emerald);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.plan-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #334155;
  margin-bottom: 0.85rem;
}

.plan-features li i {
  color: var(--accent-emerald);
  font-size: 1rem;
}
.plan-features li.not-included i {
  color: var(--error-red);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion
   -------------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  padding: 1.25rem 1.5rem;
  background: #ffffff;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-emerald);
}

.accordion-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Footer Section
   -------------------------------------------------------------------------- */
.footer-section {
  background: var(--navy-dark);
  color: #ffffff;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-emerald);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-slider-container {
    min-height: auto;
    margin-bottom: 2.5rem;
  }
  .hero-wrapper {
    padding-top: 5.5rem;
  }
  .pricing-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .plan-price {
    font-size: 2.25rem;
  }
}
