/* ==========================================================================
   PocketBahi Landing Page Stylesheet
   Design System: Material 3 Inspired + Modern SaaS Aesthetics
   Palette: Primary #507DBC | Accent #A1C6EA | Soft #BBD1EA | Dark #04080F
   ========================================================================== */

/* ---------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   --------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #507DBC;
  --primary-light: #A1C6EA;
  --primary-dark: #2F5F9F;
  --primary-glow: rgba(80, 125, 188, 0.25);
  --primary-gradient: linear-gradient(135deg, #507DBC 0%, #2F5F9F 100%);
  --accent-gradient: linear-gradient(135deg, #A1C6EA 0%, #507DBC 100%);

  /* Secondary & Neutral Palette */
  --secondary: #04080F;
  --secondary-light: #253047;
  --secondary-dark: #02050A;
  --soft-blue: #BBD1EA;
  --pale-blue: #DAE3E5;

  /* Semantic Feedback */
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.12);

  /* Light Theme Defaults */
  --bg-page: #F6FAFD;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F6FC;
  --bg-input: #FFFFFF;
  --bg-badge: #EBF3FA;

  --text-primary: #04080F;
  --text-secondary: #32445F;
  --text-muted: #697C95;
  --text-inverse: #FFFFFF;

  --border-light: #DAE3E5;
  --border-subtle: #E3ECF2;
  --border-focus: #507DBC;

  --shadow-sm: 0 2px 8px rgba(4, 8, 15, 0.04);
  --shadow-md: 0 8px 24px rgba(4, 8, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(4, 8, 15, 0.12);
  --shadow-primary: 0 8px 25px rgba(80, 125, 188, 0.35);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);

  /* Layout & Sizing */
  --header-height: 77px;
  --container-max: 1240px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transition speeds */
  --tr-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-page: #04080F;
  --bg-surface: #0B1320;
  --bg-surface-elevated: #101826;
  --bg-card: #121C2C;
  --bg-card-hover: #172438;
  --bg-input: #101826;
  --bg-badge: #1A283E;

  --text-primary: #F8FBFF;
  --text-secondary: #D8E7F5;
  --text-muted: #8E9EAF;

  --border-light: #1D2A3C;
  --border-subtle: #172333;
  --border-focus: #A1C6EA;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 8px 30px rgba(80, 125, 188, 0.45);

  --glass-bg: rgba(11, 19, 32, 0.85);
  --glass-border: rgba(187, 209, 234, 0.12);
}

/* ---------------------------------------------------------
   2. Reset & Global Styles
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--tr-normal), color var(--tr-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding-top: var(--header-height);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------------------------------------------------------
   3. Typography & Section Headers
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #2F5F9F 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--bg-badge);
  color: var(--primary);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-glow {
  background: var(--primary-glow);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}
[data-theme="dark"] .badge-glow {
  color: var(--primary-light);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   4. Buttons & Interactive Controls
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.975rem;
  transition: all var(--tr-fast);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(80, 125, 188, 0.48);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--bg-badge);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.075rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--tr-fast);
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(8deg);
}

/* ---------------------------------------------------------
   5. Header & Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--tr-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-logo .logo-icon img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

.brand-logo .logo-text span {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--tr-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--tr-fast);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-login-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  text-decoration: none;
}

.nav-login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.nav-register-btn {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-primary);
  font-weight: 600;
  text-decoration: none;
}

.nav-register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(80, 125, 188, 0.45);
  filter: brightness(1.05);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--tr-fast);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 999;
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.25rem 0;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-login-hint {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-top: -1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-login-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--tr-fast);
}

.hero-login-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   6. Hero Section
   --------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 125, 188, 0.18) 0%, rgba(161, 198, 234, 0.05) 70%, transparent 100%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-blob-left {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 209, 234, 0.2) 0%, transparent 70%);
  bottom: 50px;
  left: -150px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: -0.035em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-badge-item svg {
  color: var(--success);
  width: 18px;
  height: 18px;
}

/* Interactive Device Mockup in Hero */
.hero-mockup-wrapper {
  position: relative;
}

.mockup-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--tr-normal);
}

.mockup-header {
  background: var(--bg-card);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

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

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #FF5F56; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27C93F; }

.mockup-tabs {
  display: flex;
  gap: 0.5rem;
}

.mockup-tab-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-badge);
  color: var(--text-secondary);
  transition: all var(--tr-fast);
}

.mockup-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.mockup-body {
  padding: 1.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.mockup-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mockup-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating UI Badges */
.floating-stat-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-stat-card.top-right {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-stat-card.bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

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

/* ---------------------------------------------------------
   7. Social Proof & Statistics Bar
   --------------------------------------------------------- */
.stats-bar-section {
  padding: 2rem 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------
   8. Feature Bento Grid & Detail Sections
   --------------------------------------------------------- */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

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

.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-badge);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.bento-feature-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Feature Showcase Interactive Tabs */
.interactive-showcase {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-top: 4rem;
}

.showcase-nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.pill-tab-btn {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.showcase-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  animation: fadeIn 0.35s ease;
}

.showcase-panel-text h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.showcase-panel-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.showcase-panel-preview {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   9. Interactive GST & Billing Engine Calculator
   --------------------------------------------------------- */
.calculator-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-badge) 100%);
}

.calc-container {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-weight: 500;
  outline: none;
  transition: border-color var(--tr-fast);
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.calc-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.calc-radio-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  background: var(--bg-input);
  transition: all var(--tr-fast);
}

.calc-radio-card.active {
  border-color: var(--primary);
  background: var(--bg-badge);
}

.calc-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.calc-breakdown-row.total {
  border-bottom: none;
  border-top: 2px solid var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   10. Solutions & Persona Workflows
   --------------------------------------------------------- */
.solutions-section {
  padding: 6rem 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-normal);
  text-align: center;
}

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

.solution-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  background: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
}

.solution-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.solution-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------------------------------------------------------
   11. Comparison Table
   --------------------------------------------------------- */
.comparison-section {
  padding: 5rem 0;
  background: var(--bg-surface-elevated);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background: var(--bg-badge);
  font-weight: 600;
}

.comparison-table th.highlight-col {
  color: var(--primary);
  font-size: 1.05rem;
}

.check-icon {
  color: var(--success);
  font-weight: bold;
}

.cross-icon {
  color: var(--error);
  font-weight: bold;
}

/* ---------------------------------------------------------
   12. Pricing Section
   --------------------------------------------------------- */
.pricing-section {
  padding: 6rem 0;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pricing-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.pricing-switch {
  position: relative;
  width: 54px;
  height: 28px;
  background: var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--tr-fast);
}

.pricing-switch.yearly {
  background: var(--primary);
}

.pricing-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform var(--tr-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pricing-switch.yearly::after {
  transform: translateX(26px);
}

.discount-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--tr-normal);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.pricing-card-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 40px;
}

.plan-price-wrap {
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.plan-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.75rem 0 2rem;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.885rem;
  color: var(--text-secondary);
}

.plan-features-list li svg {
  color: var(--success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------------------------------------------------------
   13. Testimonials & Social Proof
   --------------------------------------------------------- */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-page);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--tr-normal);
}

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

.rating-stars {
  color: #F59E0B;
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   14. FAQ Section (Accordion)
   --------------------------------------------------------- */
.faq-section {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--tr-fast);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), padding 0.35s ease;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   15. Call to Action (CTA) Banner
   --------------------------------------------------------- */
.cta-banner-section {
  padding: 4rem 0 6rem;
}

.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3.5rem;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-white {
  background: #FFFFFF;
  color: var(--secondary-dark) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #F6FAFD;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #FFFFFF !important;
  font-weight: 600;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

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

.footer-links a,
.footer-links span {
  color: var(--text-secondary);
  font-size: 0.885rem;
  line-height: 1.4;
  transition: color var(--tr-fast);
}

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

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

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ---------------------------------------------------------
   17. Responsive Breakpoints
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   10.5 Invoice Themes & Templates Section (Special Feature)
   --------------------------------------------------------- */
.templates-section {
  padding: 6.5rem 0;
  background: var(--bg-surface-elevated);
  position: relative;
  overflow: hidden;
}

.templates-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2rem;
}

.template-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.template-picker-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.template-picker-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.template-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.template-chip .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.template-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.template-chip.active {
  border-color: var(--primary);
  background: var(--bg-badge);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.template-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.template-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-fast);
}

.template-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.template-feat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.template-feat-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.template-feat-card p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Realistic Live PDF Invoice Sheet */
.invoice-preview-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.invoice-preview-sheet {
  background: #FFFFFF;
  color: #04080F;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid #DAE3E5;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  transition: all 0.35s ease;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.inv-sheet-header {
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.inv-sheet-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.inv-sheet-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #E3ECF2;
  transition: all 0.3s ease;
}

.inv-party-card {
  transition: all 0.3s ease;
}

.inv-party-title {
  font-weight: 700;
  color: #697C95;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.inv-sheet-table {
  width: 100%;
  border-collapse: collapse;
  transition: all 0.3s ease;
}

.inv-sheet-table th {
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  background: #F6FAFD;
  border-bottom: 2px solid #DAE3E5;
  transition: all 0.3s ease;
}

.inv-sheet-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #E3ECF2;
  font-size: 0.72rem;
  transition: all 0.3s ease;
}

.inv-sheet-totals {
  display: flex;
  justify-content: flex-end;
}

.inv-totals-box {
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.3s ease;
}

.inv-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #32445F;
}

.inv-total-row.grand {
  border-top: 1.5px solid #04080F;
  padding-top: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #04080F;
}

.inv-sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.75rem;
  border-top: 1px dashed #DAE3E5;
  transition: all 0.3s ease;
}

.inv-bank-block {
  font-size: 0.68rem;
  color: #697C95;
  line-height: 1.4;
}

.inv-signature-block {
  text-align: right;
}

.inv-sig-stamp {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.1rem;
  color: #2F5F9F;
  margin-bottom: -4px;
}

/* =========================================================
   Layout Variants (Matching App's 12-Template Engine)
   ========================================================= */

/* 1. Corporate: Full-width navy banner, boxed party cards, bordered table */
.invoice-preview-sheet.layout-corporate .inv-party-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}
.invoice-preview-sheet.layout-corporate .inv-sheet-table {
  border: 1px solid #CBD5E1;
}
.invoice-preview-sheet.layout-corporate .inv-sheet-table th {
  background: #1E3A8A;
  color: #FFFFFF;
}
.invoice-preview-sheet.layout-corporate .inv-totals-box {
  background: #F8FAFC;
  border: 1.5px solid #1E3A8A;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

/* 2. Modern: Top accent stripe, striped table rows, boxed totals */
.invoice-preview-sheet.layout-modern .inv-sheet-table tr:nth-child(even) td {
  background: #F8FAFC;
}
.invoice-preview-sheet.layout-modern .inv-sheet-table th {
  background: #1D4ED8;
  color: #FFFFFF;
}
.invoice-preview-sheet.layout-modern .inv-totals-box {
  background: #F0F6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

/* 3. Classic: Standard grey, hairline rules, traditional layout */
.invoice-preview-sheet.layout-classic .inv-sheet-header {
  background: #212121 !important;
  color: #FFFFFF;
}
.invoice-preview-sheet.layout-classic .inv-sheet-table th {
  background: #EEEEEE;
  color: #212121;
}
.invoice-preview-sheet.layout-classic .inv-total-row.grand {
  border-top: 2px solid #212121;
}

/* 4. Detailed GST: Top-right boxed meta card, emerald tax table, HSN grid */
.invoice-preview-sheet.layout-detailed .inv-sheet-header {
  background: #065F46 !important;
}
.invoice-preview-sheet.layout-detailed .inv-sheet-table th {
  background: #065F46;
  color: #FFFFFF;
}
.invoice-preview-sheet.layout-detailed .inv-party-card {
  background: #F0FDF4;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}
.invoice-preview-sheet.layout-detailed .inv-totals-box {
  background: #F0FDF4;
  border: 1.5px solid #065F46;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

/* 5. Thermal POS Receipt: 300px narrow roll, centered header, dashed dividers, barcode */
.invoice-preview-sheet.layout-receipt {
  max-width: 320px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem;
  border: 2px dashed #9CA3AF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.invoice-preview-sheet.layout-receipt .inv-sheet-header {
  background: #111827 !important;
  text-align: center;
  display: block;
  padding: 0.9rem;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-header > div:first-child {
  margin-bottom: 0.25rem;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-parties {
  grid-template-columns: 1fr;
  border-bottom: 1px dashed #6B7280;
  gap: 0.5rem;
  text-align: center;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-parties > div:last-child {
  text-align: center !important;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-table th {
  background: transparent;
  border-bottom: 1px dashed #111827;
  padding: 0.35rem 0.2rem;
  font-size: 0.65rem;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-table td {
  padding: 0.35rem 0.2rem;
  border-bottom: 1px dotted #E5E7EB;
  font-size: 0.65rem;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-totals {
  justify-content: stretch;
}
.invoice-preview-sheet.layout-receipt .inv-totals-box {
  width: 100%;
}
.invoice-preview-sheet.layout-receipt .inv-sheet-footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  border-top: 1px dashed #111827;
}
.invoice-preview-sheet.layout-receipt .inv-signature-block {
  text-align: center;
}

/* 6. Professional: Left vertical accent stripe */
.invoice-preview-sheet.layout-professional {
  border-left: 8px solid #0F766E !important;
}
.invoice-preview-sheet.layout-professional .inv-sheet-header {
  background: #0F766E !important;
}
.invoice-preview-sheet.layout-professional .inv-sheet-table th {
  background: #E6FFFA;
  color: #0F766E;
  border-bottom: 2px solid #0F766E;
}

.trial-banner-top {
  background: linear-gradient(135deg, rgba(80, 125, 188, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.trial-banner-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.trial-banner-content p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* ---------------------------------------------------------
   17. Responsive Breakpoints
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .templates-showcase-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card.col-8, .bento-card.col-4, .bento-card.col-6 {
    grid-column: span 12;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .showcase-panel.active, .showcase-content-grid {
    grid-template-columns: 1fr;
  }
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 1140px) {
  .nav-desktop {
    gap: 1.15rem;
  }
  .nav-link {
    font-size: 0.885rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .cta-banner {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 540px) {
  :root {
    --header-height: 69px;
  }
  .header-container {
    height: 68px;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }
  .brand-logo .logo-icon {
    width: 34px;
    height: 34px;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .header-actions .btn-icon {
    width: 36px;
    height: 36px;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    padding: 7px;
  }
}

@media (max-width: 400px) {
  .header-actions .btn-sm svg {
    display: none;
  }
  .header-actions .btn-sm {
    padding: 0.42rem 0.65rem;
    font-size: 0.775rem;
  }
}

/* ==========================================================================
   18. Advanced Scroll Animation Engine, Bounce Reveals & Micro-Interactions
   ========================================================================== */

/* --- Scroll Progress Bar (Positioned at bottom of header) --- */
.scroll-progress-bar {
  position: fixed;
  top: calc(var(--header-height) - 3px);
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, #60A5FA 100%);
  z-index: 10000;
  box-shadow: 0 1px 8px rgba(80, 125, 188, 0.6);
  transition: width 0.1s cubic-bezier(0.1, 0.5, 0.5, 1);
  pointer-events: none;
}

.site-header .scroll-progress-bar {
  position: absolute;
  top: auto;
  bottom: -1px;
  left: 0;
  z-index: 10000;
}

/* --- Scroll Reveal Base States & Transitions --- */
.reveal-item,
.reveal-bounce,
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-scale,
.reveal-flip,
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Base Reveal Animation Variants */
.reveal-up,
.reveal-item,
[data-reveal="up"],
[data-reveal=""] {
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-down,
[data-reveal="down"] {
  transform: translateY(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-bounce,
[data-reveal="bounce"] {
  transform: translateY(40px) scale(0.94);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.reveal-left,
[data-reveal="left"] {
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right,
[data-reveal="right"] {
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom,
.reveal-scale,
[data-reveal="zoom"],
[data-reveal="scale"] {
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-flip,
[data-reveal="flip"] {
  transform: perspective(1000px) rotateX(15deg) translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed Active State: smoothly restores opacity & natural transform */
.reveal-item.is-revealed,
.reveal-bounce.is-revealed,
.reveal-up.is-revealed,
.reveal-down.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-zoom.is-revealed,
.reveal-scale.is-revealed,
.reveal-flip.is-revealed,
[data-reveal].is-revealed,
.animated-in {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) rotate(0deg) !important;
}

/* Stagger Sequence Delays */
.stagger-1 { transition-delay: 0.06s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.18s !important; }
.stagger-4 { transition-delay: 0.24s !important; }
.stagger-5 { transition-delay: 0.30s !important; }
.stagger-6 { transition-delay: 0.36s !important; }
.stagger-7 { transition-delay: 0.42s !important; }
.stagger-8 { transition-delay: 0.48s !important; }

/* Grid and List Cascade Animations */
.stats-grid > .stat-item,
.bento-grid > .bento-card,
.solutions-grid > .solution-card,
.pricing-grid > .pricing-card,
.testimonials-grid > .testimonial-card,
.faq-list > .faq-item,
.template-chips-grid > .template-chip,
.template-features-grid > .template-feat-card {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow var(--tr-normal),
              border-color var(--tr-normal);
}

.stats-grid > .stat-item.is-revealed,
.bento-grid > .bento-card.is-revealed,
.solutions-grid > .solution-card.is-revealed,
.pricing-grid > .pricing-card.is-revealed,
.testimonials-grid > .testimonial-card.is-revealed,
.faq-list > .faq-item.is-revealed,
.template-chips-grid > .template-chip.is-revealed,
.template-features-grid > .template-feat-card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Card Transitions & Interactive Hover State (Keeps fade animation intact) */
.bento-card,
.solution-card,
.testimonial-card,
.calc-card,
.template-feat-card {
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.bento-card.is-revealed:hover,
.solution-card.is-revealed:hover,
.testimonial-card.is-revealed:hover,
.template-feat-card.is-revealed:hover {
  transform: translateY(-8px) scale(1.012) !important;
  box-shadow: 0 20px 40px rgba(4, 8, 15, 0.12), 0 0 20px rgba(80, 125, 188, 0.18) !important;
  border-color: var(--primary-light) !important;
}

[data-theme="dark"] .bento-card.is-revealed:hover,
[data-theme="dark"] .solution-card.is-revealed:hover,
[data-theme="dark"] .testimonial-card.is-revealed:hover,
[data-theme="dark"] .template-feat-card.is-revealed:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(80, 125, 188, 0.3) !important;
}

.pricing-card {
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.3s ease;
}

.pricing-card.is-revealed:hover {
  transform: translateY(-10px) scale(1.025) !important;
  box-shadow: 0 24px 50px rgba(80, 125, 188, 0.22) !important;
}

.pricing-card.featured.is-revealed:hover {
  transform: translateY(-14px) scale(1.045) !important;
}

/* Button & Badge Bounce & Sheen */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              background var(--tr-fast),
              color var(--tr-fast);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Primary Button Light Sweep Animation */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnSheenSweep 5s infinite;
  pointer-events: none;
}

@keyframes btnSheenSweep {
  0%, 75% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

/* Badge Glow Pulse Animation */
.badge-glow {
  position: relative;
  animation: badgePulse 3.5s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(80, 125, 188, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 20px rgba(80, 125, 188, 0.45);
    transform: translateY(-2px);
  }
}

/* Floating Ambient Blobs */
.hero-glow-blob {
  animation: blobFloat 9s ease-in-out infinite alternate;
}

.hero-glow-blob-left {
  animation: blobFloatLeft 11s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
  100% { transform: translate(20px, -25px) scale(0.95); }
}

@keyframes blobFloatLeft {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 25px) scale(0.92); }
}

/* Stat Counter Pulse */
.stat-number.counted {
  animation: counterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counterPop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Floating Stat Badges Enhanced Float */
.floating-stat-card {
  animation: floatSlow 5s ease-in-out infinite !important;
}

.floating-stat-card.bottom-left {
  animation: floatSlow 6s ease-in-out infinite 2.5s !important;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}

/* Template Chip Interactive Micro-Bounce */
.template-chip {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background var(--tr-fast),
              border-color var(--tr-fast),
              box-shadow var(--tr-fast);
}

.template-chip:hover {
  transform: translateY(-3px) scale(1.03);
}

.template-chip.active {
  transform: translateY(-2px) scale(1.04);
}

/* FAQ Accordion Smooth Expansion */
.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              padding 0.35s ease;
}

.faq-item .faq-arrow {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg) scale(1.1);
}

/* Pricing Toggle Switch Bouncy Motion */
.pricing-switch-knob {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--tr-fast) !important;
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-bounce,
  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .reveal-scale,
  .reveal-flip,
  [data-reveal],
  .stats-grid > .stat-item,
  .bento-grid > .bento-card,
  .solutions-grid > .solution-card,
  .pricing-grid > .pricing-card,
  .testimonials-grid > .testimonial-card,
  .faq-list > .faq-item,
  .template-chips-grid > .template-chip,
  .template-features-grid > .template-feat-card,
  .template-picker-box,
  .invoice-preview-wrap,
  .calc-form,
  .calc-results {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-glow-blob,
  .hero-glow-blob-left,
  .badge-glow,
  .floating-stat-card,
  .btn-primary::after {
    animation: none !important;
  }
}

/* =========================================================
   Flutter Web Integration Bridge
   ========================================================= */

/* Hide landing page when running in app mode */
html.app-mode #landing-page-root,
body.app-mode #landing-page-root {
  display: none !important;
}

/* While on landing page, ensure flutter-view doesn't overlay or steal interaction */
body:not(.app-mode) flutter-view,
body:not(.app-mode) flt-glass-pane {
  display: none !important;
  pointer-events: none !important;
}

/* When in app mode, flutter-view occupies full screen */
body.app-mode flutter-view {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
}

