/* ==========================================================================
   INVENTORY & INVOICE BUSINESS — 2026 PREMIUM FINTECH & SAAS DESIGN SYSTEM
   Brand: THERABApps | App: Inventory & Invoice Business
   Theme Palette: Sky Blue (#58b0f7) & Soft Blush (#ffedf8)
   Full Dark + Light Theme Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. PRELOADER — Page Loading Animation (PlayFusion / Zoology Master Style)
   -------------------------------------------------------------------------- */

/* Block FOUC: hide body until preloader fires */
body.iib-loading {
  overflow: hidden;
}

.iib-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg-main, #080e18);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.iib-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animated brand icon */
.pl-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pl-icon-wrap {
  position: relative;
  width: 86px;
  height: 86px;
}

.pl-icon-bg {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: linear-gradient(135deg, #58b0f7 0%, #ff75c3 60%, #ffedf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #080e18;
  box-shadow: 0 0 0 0 rgba(88, 176, 247, 0.55);
  animation: plPulse 2s ease-in-out infinite;
}

@keyframes plPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 176, 247, 0.55);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(255, 117, 195, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(88, 176, 247, 0);
    transform: scale(1);
  }
}

/* Rotating glowing ring around icon */
.pl-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #58b0f7;
  border-right-color: #ff75c3;
  border-bottom-color: #ffedf8;
  animation: plSpin 1.4s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes plSpin {
  to {
    transform: rotate(360deg);
  }
}

.pl-app-name {
  font-family: 'Google Sans', 'Noto Sans Tamil', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary, #ffffff);
  text-align: center;
  line-height: 1.2;
}

.pl-by-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary, #58b0f7);
  margin-top: 4px;
}

/* Progress track */
.pl-progress-track {
  width: 250px;
  height: 4px;
  background: var(--border-subtle, rgba(88, 176, 247, 0.12));
  border-radius: 999px;
  overflow: hidden;
}

.pl-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #58b0f7 0%, #ff75c3 50%, #ffedf8 100%);
  border-radius: 999px;
  transition: width 0.14s ease-out;
}

.pl-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary, #bad0e8);
  letter-spacing: 0.08em;
  min-height: 18px;
}

/* Floating dots decoration */
.pl-dots {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58b0f7;
  opacity: 0.35;
  animation: plDotBounce 1.4s ease-in-out infinite;
}

.pl-dot:nth-child(1) {
  animation-delay: 0s;
}

.pl-dot:nth-child(2) {
  animation-delay: 0.2s;
  background: #ff75c3;
}

.pl-dot:nth-child(3) {
  animation-delay: 0.4s;
  background: #ffedf8;
}

@keyframes plDotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME TOKENS (#ffedf8 & #58b0f7)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Brand Core Colors */
  --brand-primary: #58b0f7;
  /* Sky Blue - Main Action, Growth, Flow */
  --brand-primary-hover: #3b9ee6;
  --brand-primary-light: #ffedf8;
  /* Soft Blush Highlight */
  --brand-primary-glow: rgba(88, 176, 247, 0.32);

  --brand-secondary: #ff75c3;
  /* Blush Rose - Accents, Invoicing, Cards */
  --brand-secondary-light: #ffedf8;
  --brand-secondary-glow: rgba(255, 117, 195, 0.28);

  --brand-pink: #ffedf8;
  /* Light Blush Tint / Highlight */
  --brand-pink-glow: rgba(255, 237, 248, 0.22);
  --bg-pink-tint: rgba(255, 237, 248, 0.12);
  --text-pink-highlight: #ffedf8;

  --brand-accent: #58b0f7;
  --brand-accent-glow: rgba(88, 176, 247, 0.25);

  --brand-gold: #f6ad55;
  /* Amber / Gold - Pro Badge & Low Stock */
  --brand-gold-glow: rgba(246, 173, 85, 0.28);

  --brand-danger: #ff6b81;
  /* Coral / Rose - Out of Stock */
  --brand-danger-glow: rgba(255, 107, 129, 0.28);

  /* Dark Theme (Default) */
  --bg-main: #080e18;
  --bg-surface: #0f192b;
  --bg-surface-elevated: #17243c;
  --bg-card: rgba(18, 29, 48, 0.72);
  --bg-card-hover: rgba(25, 41, 68, 0.88);
  --bg-glass: rgba(15, 25, 43, 0.72);
  --bg-glass-strong: rgba(15, 25, 43, 0.92);

  --border-subtle: rgba(88, 176, 247, 0.12);
  --border-medium: rgba(88, 176, 247, 0.22);
  --border-highlight: rgba(88, 176, 247, 0.48);
  --border-cyan: rgba(88, 176, 247, 0.38);
  --border-pink: rgba(255, 237, 248, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #bad0e8;
  --text-tertiary: #7693b2;
  --text-muted: #526c88;
  --text-on-accent: #080e18;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 42px rgba(88, 176, 247, 0.22);
  --shadow-glow-cyan: 0 0 42px rgba(88, 176, 247, 0.25);
  --shadow-glow-pink: 0 0 42px rgba(255, 117, 195, 0.22);
  --shadow-device: 0 25px 60px -12px rgba(0, 0, 0, 0.75);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #58b0f7 0%, #ff75c3 60%, #ffedf8 100%);
  --grad-primary-rev: linear-gradient(135deg, #ffedf8 0%, #ff75c3 40%, #58b0f7 100%);
  --grad-blue-pink: linear-gradient(135deg, #58b0f7 0%, #ff94d2 100%);
  --grad-pink-soft: linear-gradient(135deg, rgba(255, 237, 248, 0.15) 0%, rgba(88, 176, 247, 0.08) 100%);
  --grad-surface: linear-gradient(180deg, rgba(23, 36, 60, 0.65) 0%, rgba(15, 25, 43, 0.95) 100%);
  --grad-card: linear-gradient(145deg, rgba(88, 176, 247, 0.06) 0%, rgba(255, 237, 248, 0.02) 100%);
  --grad-gold: linear-gradient(135deg, #f6ad55 0%, #dd6b20 100%);
  --grad-hero-blob1: radial-gradient(circle, rgba(88, 176, 247, 0.22) 0%, transparent 70%);
  --grad-hero-blob2: radial-gradient(circle, rgba(255, 117, 195, 0.18) 0%, transparent 70%);
  --grad-hero-blob3: radial-gradient(circle, rgba(255, 237, 248, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-heading: 'Google Sans', 'Noto Sans Tamil', sans-serif;
  --font-body: 'Google Sans', 'Noto Sans Tamil', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;

  --brand-primary: #1789e6;
  /* High-contrast vibrant Sky Blue on light surfaces */
  --brand-primary-hover: #0b75ca;
  --brand-primary-light: #e8f4fe;
  --brand-primary-glow: rgba(23, 137, 230, 0.24);

  --brand-secondary: #d8378c;
  /* High-contrast vivid Rose Pink */
  --brand-secondary-light: #ffedf8;
  --brand-secondary-glow: rgba(216, 55, 140, 0.20);

  --brand-pink: #ffedf8;
  --brand-pink-glow: rgba(255, 237, 248, 0.45);
  --bg-pink-tint: #ffedf8;
  --text-pink-highlight: #8a1d59;

  --brand-accent: #1789e6;
  --brand-accent-glow: rgba(23, 137, 230, 0.20);

  --brand-gold: #d97706;
  --brand-gold-glow: rgba(217, 119, 6, 0.20);

  --brand-danger: #e11d48;
  --brand-danger-glow: rgba(225, 29, 72, 0.20);

  --bg-main: #f5f8fd;
  /* Soft sky slate background */
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fdf5fa;
  /* White with subtle #ffedf8 blush tint */
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);

  --border-subtle: rgba(88, 176, 247, 0.14);
  --border-medium: rgba(88, 176, 247, 0.26);
  --border-highlight: rgba(23, 137, 230, 0.45);
  --border-cyan: rgba(23, 137, 230, 0.35);
  --border-pink: rgba(216, 55, 140, 0.28);

  --text-primary: #0a1728;
  --text-secondary: #2d4766;
  --text-tertiary: #547192;
  --text-muted: #7e9cb9;
  --text-on-accent: #ffffff;

  --shadow-sm: 0 2px 8px rgba(10, 23, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 23, 40, 0.09);
  --shadow-lg: 0 16px 40px rgba(10, 23, 40, 0.13);
  --shadow-glow: 0 0 36px rgba(23, 137, 230, 0.18);
  --shadow-glow-cyan: 0 0 36px rgba(23, 137, 230, 0.18);
  --shadow-glow-pink: 0 0 36px rgba(216, 55, 140, 0.16);
  --shadow-device: 0 25px 60px -12px rgba(10, 23, 40, 0.22);

  --grad-primary: linear-gradient(135deg, #1789e6 0%, #d8378c 100%);
  --grad-primary-rev: linear-gradient(135deg, #d8378c 0%, #1789e6 100%);
  --grad-blue-pink: linear-gradient(135deg, #58b0f7 0%, #ffedf8 100%);
  --grad-pink-soft: linear-gradient(135deg, #ffedf8 0%, #e8f4fe 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #fff6fb 100%);
  --grad-hero-blob1: radial-gradient(circle, rgba(88, 176, 247, 0.16) 0%, transparent 70%);
  --grad-hero-blob2: radial-gradient(circle, rgba(255, 117, 195, 0.14) 0%, transparent 70%);
  --grad-hero-blob3: radial-gradient(circle, rgba(255, 237, 248, 0.40) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* --------------------------------------------------------------------------
   3. SHARED COMPONENTS & UTILITIES
   -------------------------------------------------------------------------- */
/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(88, 176, 247, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.eyebrow i {
  font-size: 0.75rem;
}

.eyebrow-cyan,
.eyebrow-pink {
  background: rgba(255, 117, 195, 0.12);
  border-color: var(--border-pink);
  color: var(--brand-secondary);
}

.eyebrow-gold {
  background: rgba(246, 173, 85, 0.12);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Gradient Text */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.glass-card-interactive:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-on-accent);
  box-shadow: 0 8px 24px var(--brand-primary-glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-primary-glow);
  color: var(--text-on-accent);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.08rem;
}

.btn-gold {
  background: var(--grad-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--brand-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(246, 173, 85, 0.4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-success {
  background: rgba(88, 176, 247, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(88, 176, 247, 0.35);
}

.badge-warning {
  background: rgba(246, 173, 85, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(246, 173, 85, 0.35);
}

.badge-danger {
  background: rgba(255, 107, 129, 0.15);
  color: var(--brand-danger);
  border: 1px solid rgba(255, 107, 129, 0.35);
}

.badge-info {
  background: rgba(255, 117, 195, 0.15);
  color: var(--brand-secondary);
  border: 1px solid rgba(255, 117, 195, 0.35);
}

.badge-pink {
  background: var(--bg-pink-tint);
  color: var(--text-pink-highlight);
  border: 1px solid var(--border-pink);
}

.badge-pro {
  background: linear-gradient(135deg, #f6ad55, #dd6b20);
  color: #000;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION & HEADER
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 18px 0;
}

.navbar.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #58b0f7 0%, #3b9ee6 50%, #ff75c3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080e18;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px var(--brand-primary-glow);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

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

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

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--brand-primary);
  border-color: var(--border-highlight);
  transform: rotate(15deg);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1100;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.drawer-link i {
  color: var(--brand-primary);
  width: 22px;
}

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

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 1200;
  width: 0;
  transition: width 0.05s ease-out;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  top: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--grad-hero-blob1);
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.blob-2 {
  top: 25%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: var(--grad-hero-blob2);
  animation: floatSlow 14s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  bottom: 0;
  left: 40%;
  width: 600px;
  height: 400px;
  background: var(--grad-hero-blob3);
}

@keyframes floatSlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -30px) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Hero Device Mockup Visual & Floating Cards */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 320px;
  background: #020617;
  border: 10px solid #1E293B;
  border-radius: 44px;
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.device-frame:hover {
  transform: scale(1.02);
}

.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #0B1120;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.notch-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1E293B;
}

.notch-sensor {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1E293B;
}

.device-screen {
  background: #090E1B;
  color: #F8FAFC;
  padding: 34px 16px 20px;
  font-size: 0.8rem;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-user-greeting {
  font-size: 0.72rem;
  color: #94A3B8;
}

.screen-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
}

.screen-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #080e18;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Device Mini Dashboard Widgets */
.screen-kpi-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.kpi-title {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-main-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #58b0f7;
  margin: 2px 0 0;
}

.kpi-growth-pill {
  font-size: 0.68rem;
  background: rgba(88, 176, 247, 0.2);
  color: #58b0f7;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.screen-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.screen-mini-stat {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
}

.mini-stat-label {
  font-size: 0.65rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-stat-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 4px;
  color: #F8FAFC;
}

/* Device Mini Chart */
.screen-chart-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
}

.screen-chart-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.sparkline-svg {
  width: 100%;
  height: 48px;
  overflow: visible;
}

/* Screen Recent Invoices list */
.screen-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-list-header {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
}

.screen-invoice-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
}

.inv-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #58b0f7;
}

.inv-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #FFF;
}

/* Floating Business Cards */
.floating-card {
  position: absolute;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  transition: transform var(--transition-normal);
  animation: floatCard 6s ease-in-out infinite alternate;
}

.floating-card:hover {
  transform: scale(1.08) !important;
  border-color: var(--brand-primary);
}

.fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fc-icon-emerald,
.fc-icon-primary {
  background: rgba(88, 176, 247, 0.18);
  color: #58b0f7;
}

.fc-icon-cyan,
.fc-icon-pink {
  background: rgba(255, 117, 195, 0.18);
  color: #ff75c3;
}

.fc-icon-amber {
  background: rgba(246, 173, 85, 0.18);
  color: #f6ad55;
}

.fc-icon-blue {
  background: rgba(88, 176, 247, 0.18);
  color: #58b0f7;
}

.fc-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.fc-text p {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Positions of floating cards */
.fc-inventory {
  top: 12%;
  left: -15%;
  animation-delay: 0s;
}

.fc-invoices {
  top: 4%;
  right: -12%;
  animation-delay: 1.5s;
}

.fc-sales {
  bottom: 28%;
  left: -18%;
  animation-delay: 2.2s;
}

.fc-lowstock {
  bottom: 12%;
  right: -14%;
  animation-delay: 3s;
}

.fc-customers {
  bottom: -4%;
  left: 10%;
  animation-delay: 0.8s;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-12px);
  }
}

/* --------------------------------------------------------------------------
   6. CORE VALUE PROPOSITION & BENTO GRIDS
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 100px 0;
  position: relative;
}

.core-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(88, 176, 247, 0.14);
  border: 1px solid var(--border-highlight);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.pillar-card:nth-child(2) .pillar-icon {
  background: rgba(255, 117, 195, 0.14);
  border-color: var(--border-pink);
  color: var(--brand-secondary);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: rgba(88, 176, 247, 0.14);
  border-color: var(--border-highlight);
  color: var(--brand-primary);
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   7. OFFLINE & PRIVACY TRUST SECTION
   -------------------------------------------------------------------------- */
.privacy-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 50%, var(--bg-main) 100%);
}

.privacy-grid {
  display: list-item;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.privacy-pipeline-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.pipeline-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

.pipeline-node:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
}

.pipeline-node-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(88, 176, 247, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pipeline-node-text h4 {
  font-size: 1rem;
  font-weight: 700;
}

.pipeline-node-text p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.pipeline-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  color: var(--brand-primary);
  font-size: 1.2rem;
  opacity: 0.7;
}

.pipeline-data-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0;
}

.data-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.data-chip i {
  display: block;
  font-size: 0.95rem;
  color: var(--brand-secondary);
  margin-bottom: 4px;
}

.privacy-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.privacy-feat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(88, 176, 247, 0.12);
  color: var(--brand-primary);
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pfi-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pfi-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. INVENTORY MANAGEMENT & PRODUCT PROFILE
   -------------------------------------------------------------------------- */
.inventory-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.inventory-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.inv-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  width: 240px;
}

.inv-search-input input {
  width: 100%;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.inv-tabs {
  display: flex;
  gap: 8px;
}

.inv-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.inv-tab-btn.active,
.inv-tab-btn:hover {
  background: var(--brand-primary);
  color: var(--text-on-accent);
  border-color: var(--brand-primary);
}

/* Inventory Interactive Table */
.inv-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.inv-table th {
  padding: 12px 14px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.inv-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.inv-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-img-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.product-name-txt {
  font-weight: 600;
  color: var(--text-primary);
}

.product-category-txt {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Product Detail Showcase Card */
.product-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 100px;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-title-group h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-sku-cat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.profile-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.price-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.stock-meter-wrap {
  margin-bottom: 22px;
}

.stock-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.stock-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-pill);
}

.profile-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Low Stock Alert Banner */
.low-stock-alert-box {
  margin-top: 40px;
  background: rgba(246, 173, 85, 0.08);
  border: 1px solid rgba(246, 173, 85, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.alert-info-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.alert-bell-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(246, 173, 85, 0.2);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 173, 85, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(246, 173, 85, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(246, 173, 85, 0);
  }
}

.alert-items-preview {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.alert-item-tag {
  background: var(--bg-surface-elevated);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   9. INVOICE CREATION & PDF SHOWCASE
   -------------------------------------------------------------------------- */
.invoicing-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}

.invoice-builder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* Live Interactive Invoice Creator */
.invoice-creator-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glow-cyan);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 6px;
}

.custom-select,
.custom-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.custom-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Item lines inside builder */
.builder-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.builder-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
}

.builder-item-row input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 100%;
}

.remove-item-btn {
  color: var(--brand-danger);
  padding: 4px;
  font-size: 0.9rem;
}

.add-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

/* Calculations Box */
.calc-summary-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.calc-row.total-row {
  border-top: 1px dashed var(--border-medium);
  padding-top: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-row.total-row span:last-child {
  color: var(--brand-primary);
  font-family: var(--font-mono);
}

/* Realistic PDF Invoice Mockup */
.pdf-invoice-mockup {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  position: relative;
  line-height: 1.5;
}

.pdf-stamp-paid {
  position: absolute;
  top: 30px;
  right: 32px;
  border: 3px solid #58b0f7;
  color: #58b0f7;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(12deg);
  opacity: 0.9;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.pdf-biz-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.pdf-meta-box {
  text-align: right;
}

.pdf-inv-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #1789e6;
}

.pdf-client-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pdf-label {
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.pdf-table th {
  background: #F1F5F9;
  padding: 8px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #475569;
  text-align: left;
}

.pdf-table td {
  padding: 10px;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
}

.pdf-totals-block {
  margin-left: auto;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-total-line {
  display: flex;
  justify-content: space-between;
}

.pdf-grand-total {
  border-top: 2px solid #0F172A;
  padding-top: 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0F172A;
}

/* Sharing Flow Cards */
.export-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.flow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-step-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.flow-step-card p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   10. CUSTOMER MANAGEMENT & PROFILES
   -------------------------------------------------------------------------- */
.customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.customer-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.customer-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customer-item-card:hover,
.customer-item-card.active {
  border-color: var(--brand-secondary);
  background: var(--bg-surface-elevated);
}

.cust-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cust-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 117, 195, 0.15);
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cust-stats-right {
  text-align: right;
}

.cust-purchases {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.cust-total-spent {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.95rem;
}

/* Detailed Customer Profile Screen */
.customer-profile-screen {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-glow-cyan);
}

.cust-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cust-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #080e18;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-profile-meta h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.cust-profile-meta p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.cust-ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ledger-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
}

.ledger-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.ledger-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 4px;
}

.ledger-val.outstanding {
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   11. SALES ANALYTICS & DYNAMIC CHARTS
   -------------------------------------------------------------------------- */
.sales-analytics-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.analytics-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.period-switcher {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.period-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.period-btn.active,
.period-btn:hover {
  background: var(--brand-primary);
  color: var(--text-on-accent);
}

/* KPI 4-Card Ribbon */
.sales-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-fast);
}

.kpi-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.kpi-period-tag {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
}

.kpi-stat-amount {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 4px;
}

.kpi-trend-pill {
  font-size: 0.75rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Interactive SVG Sales Chart Canvas Area */
.chart-container-area {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.chart-svg-main {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   12. REPORTS & FEATURE BENTO GRID
   -------------------------------------------------------------------------- */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-12 {
  grid-column: span 12;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

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

.bento-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(88, 176, 247, 0.14);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bento-card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

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

/* --------------------------------------------------------------------------
   13. BARCODE SCANNER & UNIVERSAL SEARCH INTERACTION
   -------------------------------------------------------------------------- */
.scanner-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

/* Barcode Scanner Box */
.barcode-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
}

.scanner-viewfinder {
  position: relative;
  width: 260px;
  height: 160px;
  margin: 0 auto 24px;
  border: 2px solid rgba(88, 176, 247, 0.6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.laser-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff6b81;
  box-shadow: 0 0 14px #ff6b81;
  animation: laserScan 2.4s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% {
    top: 10%;
  }

  100% {
    top: 90%;
  }
}

.simulated-barcode-bars {
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: #F8FAFC;
  opacity: 0.75;
  font-family: monospace;
}

.scanned-result-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

/* Live Instant Search Widget */
.search-demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.search-input-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.search-input-field input {
  width: 100%;
  color: var(--text-primary);
  font-size: 1rem;
}

.live-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.search-result-row:hover {
  border-color: var(--brand-primary);
  background: var(--bg-surface-elevated);
}

/* --------------------------------------------------------------------------
   14. BACKUP & RESTORE DATA SAFETY
   -------------------------------------------------------------------------- */
.backup-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
}

.backup-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.backup-flow-nodes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 36px 0;
}

.backup-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.backup-node-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(88, 176, 247, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.backup-arrow {
  color: var(--brand-primary);
  font-size: 1.6rem;
}

/* --------------------------------------------------------------------------
   15. PREMIUM SUBSCRIPTION COMPARISON (BUSINESS PRO)
   -------------------------------------------------------------------------- */
.pricing-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.pro-plan {
  background: linear-gradient(160deg, rgba(246, 173, 85, 0.08) 0%, rgba(15, 25, 43, 0.95) 100%);
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 45px var(--brand-gold-glow);
  position: relative;
}

.pro-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
}

.plan-header {
  margin-bottom: 28px;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.pro-plan .feature-check-item i {
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   16. BUSINESS TYPES & WORKFLOW
   -------------------------------------------------------------------------- */
.biz-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.biz-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

.biz-type-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

.biz-type-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.biz-type-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.biz-type-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 6-Step Workflow */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.wf-step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.wf-step-box:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
}

.wf-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.wf-step-box h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.wf-step-box p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   17. MULTI-DEVICE RESPONSIVE EXPERIENCE
   -------------------------------------------------------------------------- */
.devices-preview-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.device-switcher-tabs {
  display: inline-flex;
  background: var(--bg-surface-elevated);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 8px;
  margin-bottom: 36px;
}

.device-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.device-tab-btn.active,
.device-tab-btn:hover {
  background: var(--brand-primary);
  color: var(--text-on-accent);
}

.device-mockup-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.device-frame-tablet {
  width: 540px;
  background: #020617;
  border: 12px solid #1E293B;
  border-radius: 36px;
  padding: 24px;
  box-shadow: var(--shadow-device);
}

/* --------------------------------------------------------------------------
   18. EDITORIAL SCREENSHOT BENTO GALLERY
   -------------------------------------------------------------------------- */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-normal);
}

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

.gallery-screen-thumb {
  background: #090E1B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  height: 180px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.gallery-screen-thumb i {
  font-size: 2rem;
  color: var(--brand-primary);
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   19. WHY CHOOSE & TRUST SECTION
   -------------------------------------------------------------------------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

.why-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-pillar-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   20. FINAL CONVERSION SECTION & FOOTER
   -------------------------------------------------------------------------- */
.final-cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(88, 176, 247, 0.16) 0%, rgba(255, 117, 195, 0.12) 50%, rgba(15, 25, 43, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 70px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.cta-buttons-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: #04070D;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col p {
  margin: 16px 0 24px;
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 70px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-group,
  .hero-stats-row {
    justify-content: center;
  }

  .core-pillars-grid {
    grid-template-columns: 1fr;
  }

  .inventory-showcase-grid,
  .invoice-builder-grid,
  .privacy-grid,
  .customer-grid,
  .scanner-search-grid {
    grid-template-columns: 1fr;
  }

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

  .sales-kpi-ribbon,
  .why-choose-grid,
  .gallery-bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-comparison-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .sales-kpi-ribbon,
  .why-choose-grid,
  .trust-pillars-row,
  .export-flow-steps,
  .gallery-bento-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .floating-card {
    display: none;
    /* Hide floating cards on small screens for clarity */
  }

  .device-frame {
    width: 290px;
  }

  .device-frame-tablet {
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .privacy-features-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMPREHENSIVE LIGHT THEME OVERRIDES
   ========================================================================== */

/* Body transitions for smooth theme switching */
body {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Section background alternation in Light Mode --- */
[data-theme="light"] .privacy-section,
[data-theme="light"] .invoicing-section,
[data-theme="light"] .backup-section {
  background: linear-gradient(180deg, #f5f8fd 0%, #fef5fb 50%, #f5f8fd 100%);
}

[data-theme="light"] .section-padding {
  background-color: transparent;
}

/* --- Glass cards in light mode --- */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 8px 30px rgba(88, 176, 247, 0.15);
}

/* --- Typography in light mode --- */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--text-primary);
}

[data-theme="light"] p {
  color: var(--text-secondary);
}

/* --- Android Device Screen stays dark (it's a phone UI) --- */
[data-theme="light"] .device-frame {
  border-color: #334155;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* --- Navbar in light scrolled mode --- */
[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 248, 253, 0.94);
  border-bottom-color: rgba(88, 176, 247, 0.15);
  box-shadow: 0 2px 14px rgba(88, 176, 247, 0.08);
}

/* --- Inventory table card in light mode --- */
[data-theme="light"] .inventory-table-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .inv-table th {
  color: #547192;
}

[data-theme="light"] .inv-table td {
  color: #2d4766;
}

[data-theme="light"] .inv-table tr:hover td {
  background: rgba(88, 176, 247, 0.035);
}

/* --- Search inputs in light mode --- */
[data-theme="light"] .inv-search-input {
  background: #FFFFFF;
  border-color: rgba(88, 176, 247, 0.2);
}

[data-theme="light"] .inv-search-input input {
  color: #0a1728;
}

[data-theme="light"] .inv-search-input input::placeholder {
  color: #7e9cb9;
}

[data-theme="light"] .search-input-field {
  background: #FFFFFF;
  border-color: rgba(88, 176, 247, 0.2);
}

[data-theme="light"] .search-input-field input {
  color: #0a1728;
}

[data-theme="light"] .search-input-field input::placeholder {
  color: #7e9cb9;
}

[data-theme="light"] .custom-select,
[data-theme="light"] .custom-input {
  background: #FFFFFF;
  border-color: rgba(88, 176, 247, 0.2);
  color: #0a1728;
}

[data-theme="light"] .custom-select option {
  background: #FFFFFF;
  color: #0a1728;
}

/* --- Invoice creator in light mode --- */
[data-theme="light"] .invoice-creator-widget {
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(88, 176, 247, 0.12);
}

[data-theme="light"] .builder-item-row {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.12);
}

[data-theme="light"] .builder-item-row input {
  background: #FFFFFF;
  border-color: rgba(88, 176, 247, 0.16);
  color: #0a1728;
}

[data-theme="light"] .calc-summary-box {
  background: #fdf5fa;
}

[data-theme="light"] .calc-row {
  color: #2d4766;
}

[data-theme="light"] .calc-row.total-row {
  color: #0a1728;
}

/* --- Customer list cards in light mode --- */
[data-theme="light"] .customer-list-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .customer-item-card {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.12);
}

[data-theme="light"] .customer-item-card:hover,
[data-theme="light"] .customer-item-card.active {
  background: #FFFFFF;
  border-color: var(--brand-secondary);
}

[data-theme="light"] .customer-profile-screen {
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(88, 176, 247, 0.12);
}

[data-theme="light"] .ledger-box {
  background: #fdf5fa;
}

/* --- Sales Analytics container in light mode --- */
[data-theme="light"] .sales-analytics-container {
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(88, 176, 247, 0.1);
}

[data-theme="light"] .period-switcher {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.16);
}

[data-theme="light"] .period-btn {
  color: #547192;
}

[data-theme="light"] .kpi-stat-card {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.12);
}

[data-theme="light"] .chart-container-area {
  background: #fdf5fa;
}

/* --- Bento cards in light mode --- */
[data-theme="light"] .bento-card {
  background: #FFFFFF;
  box-shadow: 0 2px 14px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .bento-card:hover {
  box-shadow: 0 8px 28px rgba(88, 176, 247, 0.16);
}

/* --- Plan cards in light mode --- */
[data-theme="light"] .plan-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .plan-card.pro-plan {
  background: linear-gradient(160deg, rgba(246, 173, 85, 0.08) 0%, #FFFFFF 100%);
  box-shadow: 0 0 45px rgba(246, 173, 85, 0.18);
}

/* --- Why card, trust card in light mode --- */
[data-theme="light"] .why-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(88, 176, 247, 0.06);
}

[data-theme="light"] .trust-pillar-card {
  background: #fdf5fa;
}

/* --- Biz type card in light mode --- */
[data-theme="light"] .biz-type-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(88, 176, 247, 0.06);
}

/* --- Workflow steps in light mode --- */
[data-theme="light"] .wf-step-box {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(88, 176, 247, 0.06);
}

/* --- Device preview in light mode --- */
[data-theme="light"] .devices-preview-wrapper {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .device-switcher-tabs {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.16);
}

[data-theme="light"] .device-tab-btn {
  color: #547192;
}

/* --- Gallery cards in light mode --- */
[data-theme="light"] .gallery-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(88, 176, 247, 0.06);
}

/* --- Barcode scanner in light mode --- */
[data-theme="light"] .barcode-box {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .scanned-result-pill {
  background: #fdf5fa;
}

[data-theme="light"] .search-demo-box {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .search-result-row {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.1);
}

[data-theme="light"] .search-result-row:hover {
  background: #FFFFFF;
}

/* --- Backup section in light mode --- */
[data-theme="light"] .backup-diagram-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .backup-node {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.16);
}

/* --- Product profile card in light mode --- */
[data-theme="light"] .product-profile-card {
  background: #FFFFFF;
  box-shadow: 0 0 36px rgba(88, 176, 247, 0.18);
}

[data-theme="light"] .profile-price-row {
  background: #fdf5fa;
}

[data-theme="light"] .profile-price-row .price-label {
  color: #547192;
}

[data-theme="light"] .stock-progress-bar {
  background: rgba(88, 176, 247, 0.12);
}

/* --- Low stock alert box in light mode --- */
[data-theme="light"] .low-stock-alert-box {
  background: rgba(246, 173, 85, 0.07);
}

[data-theme="light"] .alert-item-tag {
  background: #FFFFFF;
  border-color: rgba(246, 173, 85, 0.2);
  color: #2d4766;
}

/* --- Privacy pipeline in light mode --- */
[data-theme="light"] .privacy-pipeline-visual {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .pipeline-node {
  background: #fdf5fa;
  border-color: rgba(88, 176, 247, 0.16);
}

[data-theme="light"] .data-chip {
  background: #FFFFFF;
  border-color: rgba(88, 176, 247, 0.12);
  color: #2d4766;
}

/* --- Privacy feature items in light mode --- */
[data-theme="light"] .privacy-feat-item.glass-card {
  background: rgba(255, 255, 255, 0.94);
}

/* --- Flow step cards in light mode --- */
[data-theme="light"] .flow-step-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(88, 176, 247, 0.06);
}

[data-theme="light"] .step-num {
  color: var(--brand-primary);
}

/* --- Footer in light mode --- */
[data-theme="light"] .site-footer {
  background: #edf3fa;
  border-top-color: rgba(88, 176, 247, 0.15);
}

[data-theme="light"] .footer-bottom-bar {
  border-top-color: rgba(88, 176, 247, 0.12);
}

/* --- CTA banner in light mode --- */
[data-theme="light"] .cta-banner-card {
  background: linear-gradient(135deg, rgba(88, 176, 247, 0.14) 0%, rgba(255, 237, 248, 0.65) 50%, #FFFFFF 100%);
  box-shadow: 0 0 60px rgba(88, 176, 247, 0.15);
}

/* --- Mobile drawer in light mode --- */
[data-theme="light"] .mobile-drawer {
  background: #FFFFFF;
}

[data-theme="light"] .drawer-close {
  background: #fdf5fa;
  color: #2d4766;
}

/* --- Floating cards in light mode --- */
[data-theme="light"] .floating-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(88, 176, 247, 0.16);
  box-shadow: 0 8px 30px rgba(88, 176, 247, 0.12);
}

/* --- Screen invoice rows in light mode --- */
[data-theme="light"] .screen-invoice-row {
  background: rgba(88, 176, 247, 0.04);
}

/* btn-secondary hover fix for light mode */
[data-theme="light"] .btn-secondary:hover {
  background: rgba(88, 176, 247, 0.08);
}

/* --- Scroll progress bar stays vivid on both themes --- */
.scroll-progress {
  background: linear-gradient(90deg, #58b0f7, #ff75c3, #ffedf8);
}

/* ==========================================================================
   SCROLL REVEAL & SECTION ANIMATION SYSTEM
   ========================================================================== */

/* ---- Base: elements start invisible ---- */
.anim-fade-up,
.anim-fade-down,
.anim-fade-left,
.anim-fade-right,
.anim-scale-in,
.anim-zoom-in {
  opacity: 0;
  will-change: transform, opacity;
}

.anim-fade-up {
  transform: translateY(48px);
}

.anim-fade-down {
  transform: translateY(-48px);
}

.anim-fade-left {
  transform: translateX(-56px);
}

.anim-fade-right {
  transform: translateX(56px);
}

.anim-scale-in {
  transform: scale(0.82);
}

.anim-zoom-in {
  transform: scale(0.92) translateY(24px);
}

/* ---- Transitions ---- */
.anim-fade-up,
.anim-fade-down {
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-left,
.anim-fade-right {
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scale-in {
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-zoom-in {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Visible trigger (added by JS IntersectionObserver / AOS) ---- */
.anim-fade-up.is-visible,
.anim-fade-down.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible,
.anim-scale-in.is-visible,
.anim-zoom-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Stagger children cascade ---- */
.anim-stagger>* {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-stagger.is-visible>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

.anim-stagger.is-visible>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 90ms;
}

.anim-stagger.is-visible>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 180ms;
}

.anim-stagger.is-visible>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 270ms;
}

.anim-stagger.is-visible>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 360ms;
}

.anim-stagger.is-visible>*:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 450ms;
}

.anim-stagger.is-visible>*:nth-child(7) {
  opacity: 1;
  transform: none;
  transition-delay: 540ms;
}

.anim-stagger.is-visible>*:nth-child(8) {
  opacity: 1;
  transform: none;
  transition-delay: 630ms;
}

.anim-stagger.is-visible>*:nth-child(n+9) {
  opacity: 1;
  transform: none;
  transition-delay: 720ms;
}

/* ---- Delay modifier classes ---- */
.delay-1 {
  transition-delay: 100ms !important;
}

.delay-2 {
  transition-delay: 200ms !important;
}

.delay-3 {
  transition-delay: 300ms !important;
}

.delay-4 {
  transition-delay: 400ms !important;
}

.delay-5 {
  transition-delay: 500ms !important;
}

.delay-6 {
  transition-delay: 600ms !important;
}

.delay-7 {
  transition-delay: 700ms !important;
}

.delay-8 {
  transition-delay: 800ms !important;
}

/* ---- Typewriter cursor ---- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--brand-primary);
  vertical-align: middle;
  margin-left: 5px;
  border-radius: 2px;
  animation: twBlink 0.85s step-end infinite;
}

@keyframes twBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---- Magnetic / 3D tilt card ---- */
.magnetic-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out !important;
}

/* ---- Shimmer hover sweep ---- */
.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 0%,
      rgba(88, 176, 247, 0.08) 38%,
      rgba(255, 117, 195, 0.12) 52%,
      transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.shimmer-card:hover::before {
  transform: translateX(120%);
}

.shimmer-card>* {
  position: relative;
  z-index: 1;
}

/* ---- Hero grid dot mesh background ---- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero-section::before {
  background-image:
    linear-gradient(rgba(88, 176, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 176, 247, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-section>* {
  position: relative;
  z-index: 1;
}

/* ---- Particle canvas ---- */
#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ---- Hero content entrance (staggered) ---- */
.hero-content>* {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.hero-loaded>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.hero-content.hero-loaded>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}

.hero-content.hero-loaded>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.40s;
}

.hero-content.hero-loaded>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.54s;
}

.hero-content.hero-loaded>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.70s;
}

.hero-content.hero-loaded>*:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.85s;
}

/* ---- Floating cards entrance → bob ---- */
.floating-card {
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-card.card-visible {
  opacity: 1;
  transform: none;
}

/* Re-enable floating bob only after entrance completes */
.floating-card.card-visible.fc-inventory {
  animation: floatBob 3.2s ease-in-out 0.65s infinite;
}

.floating-card.card-visible.fc-invoices {
  animation: floatBob 3.6s ease-in-out 0.90s infinite;
}

.floating-card.card-visible.fc-sales {
  animation: floatBob 4.0s ease-in-out 1.10s infinite;
}

.floating-card.card-visible.fc-lowstock {
  animation: floatBob 3.4s ease-in-out 0.75s infinite;
}

.floating-card.card-visible.fc-customers {
  animation: floatBob 3.8s ease-in-out 1.30s infinite;
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ---- Hero device frame entrance ---- */
#hero-device {
  opacity: 0;
  transform: translateY(50px) scale(0.93);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

#hero-device.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Privacy pipeline nodes sequential ---- */
.pipeline-node {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.pipeline-node.is-visible {
  opacity: 1;
  transform: none;
}

.pipeline-connector {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pipeline-connector.is-visible {
  opacity: 1;
}

.pipeline-data-chips {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.pipeline-data-chips.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Backup nodes sequential ---- */
.backup-node {
  opacity: 0;
  transform: translateX(-24px) scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.backup-node.is-visible {
  opacity: 1;
  transform: none;
}

.backup-arrow {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.backup-arrow.is-visible {
  opacity: 1;
}

/* ---- Workflow steps sequential ---- */
.wf-step-box {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
}

.wf-step-box.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- SVG chart path draw animation ---- */
.chart-path-animate {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-path-animate.is-visible {
  stroke-dashoffset: 0;
}

.chart-fill-animate {
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

.chart-fill-animate.is-visible {
  opacity: 1;
}

/* ---- Animated stock progress bar ---- */
.stock-bar-fill {
  width: 0% !important;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.stock-bar-fill.is-visible {
  width: 84% !important;
}

/* ---- Count-up animation highlight ---- */
@keyframes countPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    color: var(--brand-primary);
  }

  100% {
    transform: scale(1);
  }
}

.count-popping {
  animation: countPop 0.4s ease;
}

/* ---- Section glow aura backgrounds ---- */
#inventory {
  background: radial-gradient(ellipse 80% 60% at 8% 50%, rgba(88, 176, 247, 0.05) 0%, transparent 100%);
}

#invoices {
  background: radial-gradient(ellipse 80% 60% at 92% 50%, rgba(255, 117, 195, 0.05) 0%, transparent 100%);
}

#customers {
  background: radial-gradient(ellipse 70% 50% at 8% 40%, rgba(88, 176, 247, 0.05) 0%, transparent 100%);
}

#analytics {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(88, 176, 247, 0.06) 0%, transparent 100%);
}

#reports {
  background: radial-gradient(ellipse 80% 60% at 88% 70%, rgba(255, 117, 195, 0.05) 0%, transparent 100%);
}

#pro {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(246, 173, 85, 0.06) 0%, transparent 100%);
}

#privacy {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(88, 176, 247, 0.04) 0%, transparent 100%);
}

/* ---- Bento card inner glow on hover ---- */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(88, 176, 247, 0.04) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover::after {
  opacity: 1;
}

/* ---- Flow step card hover lift ---- */
.flow-step-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.flow-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

/* ---- Biz type card hover ---- */
.biz-type-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.biz-type-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(88, 176, 247, 0.15);
}

/* ---- Trust pillar card hover ---- */
.trust-pillar-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* ---- Gallery card hover ---- */
.gallery-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(88, 176, 247, 0.15);
}

/* ---- Custom Cursor ---- */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  box-shadow: 0 0 10px var(--brand-primary);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(88, 176, 247, 0.6);
  box-shadow: 0 0 14px rgba(88, 176, 247, 0.22);
  transition: width 0.2s ease-out, height 0.2s ease-out, border-color 0.2s ease-out, background-color 0.2s ease-out;
}

#cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 117, 195, 0.85);
  background-color: rgba(255, 117, 195, 0.1);
}

/* ---- Floating Back-to-Top Button ---- */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(88, 176, 247, 0.25);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--brand-primary);
  color: var(--text-on-accent);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(88, 176, 247, 0.45);
}

/* ---- Chart Floating Tooltip ---- */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 25, 43, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #F8FAFC;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 176, 247, 0.3);
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
  opacity: 0;
  white-space: nowrap;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-point-dot {
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}

.chart-point-dot:hover {
  r: 7;
  fill: #ff75c3;
}

/* ---- Preloader adapts to light mode ---- */
[data-theme="light"] .iib-preloader {
  background: #f5f8fd;
}

[data-theme="light"] .pl-app-name {
  color: #0a1728;
}

[data-theme="light"] .pl-progress-track {
  background: rgba(88, 176, 247, 0.15);
}

[data-theme="light"] .pl-status-text {
  color: #547192;
}

/* ---- Reduced motion: disable all animations gracefully ---- */
@media (prefers-reduced-motion: reduce) {

  .anim-fade-up,
  .anim-fade-down,
  .anim-fade-left,
  .anim-fade-right,
  .anim-scale-in,
  .anim-zoom-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .anim-stagger>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pipeline-node,
  .pipeline-connector,
  .pipeline-data-chips,
  .backup-node,
  .backup-arrow,
  .wf-step-box,
  .floating-card,
  #hero-device,
  .hero-content>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .stock-bar-fill {
    transition: none !important;
  }

  .chart-path-animate {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .chart-fill-animate {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   LIGHT MODE — COMPREHENSIVE TEXT & ELEMENT VISIBILITY FIXES
   Ensures every text element, label, badge and description is readable
   on the soft white/blush light surfaces.
   ========================================================================== */

/* ── Navbar ── */
[data-theme="light"] .navbar {
  background: rgba(245, 248, 253, 0.94);
  border-bottom-color: rgba(88, 176, 247, 0.15);
}

[data-theme="light"] .nav-logo-title {
  color: #0a1728;
}

[data-theme="light"] .nav-link {
  color: #2d4766;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0a1728;
}

[data-theme="light"] .nav-hamburger span {
  background: #0a1728;
}

[data-theme="light"] .theme-toggle-btn {
  color: #2d4766;
  background: rgba(88, 176, 247, 0.10);
  border-color: rgba(88, 176, 247, 0.22);
}

/* ── Mobile Drawer ── */
[data-theme="light"] .drawer-link {
  color: #2d4766;
}

[data-theme="light"] .drawer-link:hover,
[data-theme="light"] .drawer-link.active {
  color: #0a1728;
}

/* ── Hero Section ── */
[data-theme="light"] .hero-section {
  background: linear-gradient(160deg, #edf4fd 0%, #f5f8fd 50%, #fef5fb 100%);
}

[data-theme="light"] .hero-title {
  color: #0a1728;
}

[data-theme="light"] .hero-tagline {
  color: var(--brand-primary);
}

[data-theme="light"] .hero-desc {
  color: #2d4766;
}

[data-theme="light"] .stat-value {
  color: #0a1728;
}

[data-theme="light"] .stat-label {
  color: #547192;
}

[data-theme="light"] .stat-divider {
  background: rgba(88, 176, 247, 0.25);
}

/* ── Eyebrow badges ── */
[data-theme="light"] .eyebrow {
  background: rgba(88, 176, 247, 0.10);
  border-color: rgba(88, 176, 247, 0.32);
  color: #1789e6;
}

[data-theme="light"] .eyebrow-cyan,
[data-theme="light"] .eyebrow-pink {
  background: rgba(216, 55, 140, 0.08);
  border-color: rgba(216, 55, 140, 0.28);
  color: #d8378c;
}

[data-theme="light"] .eyebrow-gold {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.30);
  color: #d97706;
}

/* ── Section titles & descriptions ── */
[data-theme="light"] .section-title {
  color: #0a1728;
}

[data-theme="light"] .section-desc {
  color: #2d4766;
}

/* ── Core Pillar Cards ── */
[data-theme="light"] .pillar-card {
  background: #FFFFFF;
  box-shadow: 0 2px 14px rgba(88, 176, 247, 0.08);
}

[data-theme="light"] .pillar-title {
  color: #0a1728;
}

[data-theme="light"] .pillar-desc {
  color: #2d4766;
}

[data-theme="light"] .pillar-tagline {
  color: #547192;
}

/* ── Feature / Privacy list items ── */
[data-theme="light"] .pfi-title {
  color: #0a1728;
}

[data-theme="light"] .pfi-desc {
  color: #2d4766;
}

[data-theme="light"] .feature-list-item {
  color: #2d4766;
}

[data-theme="light"] .feature-check-item {
  color: #2d4766;
}

[data-theme="light"] .feature-check-item i {
  color: var(--brand-primary);
}

/* ── Bento Grid Labels ── */
[data-theme="light"] .bento-label,
[data-theme="light"] .bento-title,
[data-theme="light"] .bento-value,
[data-theme="light"] .bento-desc,
[data-theme="light"] .bento-subtitle {
  color: #0a1728;
}

[data-theme="light"] .bento-card p,
[data-theme="light"] .bento-card span:not(.gradient-text):not(.badge) {
  color: #2d4766;
}

/* ── Inventory section ── */
[data-theme="light"] .inv-table-header {
  color: #0a1728;
}

[data-theme="light"] .stock-label,
[data-theme="light"] .sku-code {
  color: #547192;
}

[data-theme="light"] .product-name-text {
  color: #0a1728;
}

[data-theme="light"] .profile-stat-label {
  color: #547192;
}

[data-theme="light"] .profile-stat-val {
  color: #0a1728;
}

/* ── Invoice builder ── */
[data-theme="light"] .invoice-section-title,
[data-theme="light"] .builder-label,
[data-theme="light"] .pdf-label {
  color: #547192;
}

[data-theme="light"] .invoice-number-display,
[data-theme="light"] .pdf-value {
  color: #0a1728;
}

[data-theme="light"] .pdf-company-name {
  color: #0a1728;
}

[data-theme="light"] .pdf-company-sub {
  color: #547192;
}

/* ── Customer section ── */
[data-theme="light"] .customer-name {
  color: #0a1728;
}

[data-theme="light"] .customer-phone,
[data-theme="light"] .customer-meta {
  color: #547192;
}

[data-theme="light"] .ledger-label {
  color: #547192;
}

[data-theme="light"] .ledger-value {
  color: #0a1728;
}

/* ── Analytics / KPI cards ── */
[data-theme="light"] .kpi-label {
  color: #547192;
}

[data-theme="light"] .kpi-value {
  color: #0a1728;
}

[data-theme="light"] .kpi-trend {
  color: #547192;
}

[data-theme="light"] .chart-axis-label,
[data-theme="light"] .chart-legend-text {
  color: #547192;
}

/* ── Reports Bento cards text ── */
[data-theme="light"] .report-type-label {
  color: #547192;
}

[data-theme="light"] .report-title-text {
  color: #0a1728;
}

/* ── Scanner section ── */
[data-theme="light"] .barcode-box {
  background: #FFFFFF;
}

[data-theme="light"] .simulated-barcode-bars {
  color: #0a1728;
}

[data-theme="light"] .scanned-result-name {
  color: #0a1728;
}

[data-theme="light"] .scanned-result-sku {
  color: #547192;
}

/* ── Gallery cards ── */
[data-theme="light"] .gallery-card-title {
  color: #0a1728;
}

[data-theme="light"] .gallery-card-desc {
  color: #2d4766;
}

/* ── Workflow steps ── */
[data-theme="light"] .wf-step-title {
  color: #0a1728;
}

[data-theme="light"] .wf-step-desc {
  color: #2d4766;
}

/* ── Business type cards ── */
[data-theme="light"] .biz-type-name {
  color: #0a1728;
}

[data-theme="light"] .biz-type-desc {
  color: #2d4766;
}

/* ── Why Choose cards ── */
[data-theme="light"] .why-card h3 {
  color: #0a1728;
}

[data-theme="light"] .why-card p {
  color: #2d4766;
}

/* ── Trust pillar cards ── */
[data-theme="light"] .trust-pillar-title {
  color: #0a1728;
}

[data-theme="light"] .trust-pillar-desc {
  color: #2d4766;
}

/* ── Plan / Pricing cards ── */
[data-theme="light"] .plan-name {
  color: #0a1728;
}

[data-theme="light"] .plan-tagline {
  color: #2d4766;
}

[data-theme="light"] .plan-price {
  color: #0a1728;
}

[data-theme="light"] .plan-price-note {
  color: #547192;
}

[data-theme="light"] .feature-list-divider {
  border-color: rgba(88, 176, 247, 0.14);
}

/* ── Backup nodes ── */
[data-theme="light"] .backup-node-title {
  color: #0a1728;
}

[data-theme="light"] .backup-node-sub {
  color: #547192;
}

[data-theme="light"] .backup-arrow {
  color: #7e9cb9;
}

/* ── Flow step cards ── */
[data-theme="light"] .flow-step-card h3 {
  color: #0a1728;
}

[data-theme="light"] .flow-step-card p {
  color: #2d4766;
}

/* ── CTA Banner ── */
[data-theme="light"] .cta-title {
  color: #0a1728;
}

[data-theme="light"] .cta-desc {
  color: #2d4766;
}

/* ── Footer ── */
[data-theme="light"] .footer-brand-name {
  color: #0a1728;
}

[data-theme="light"] .footer-brand-desc {
  color: #2d4766;
}

[data-theme="light"] .footer-col-title {
  color: #0a1728;
}

[data-theme="light"] .footer-link {
  color: #547192;
}

[data-theme="light"] .footer-link:hover {
  color: #1789e6;
}

[data-theme="light"] .footer-copyright {
  color: #547192;
}

/* ── Badges in light mode ── */
[data-theme="light"] .badge-success {
  background: rgba(23, 137, 230, 0.10);
  color: #1789e6;
  border-color: rgba(23, 137, 230, 0.28);
}

[data-theme="light"] .badge-warning {
  background: rgba(217, 119, 6, 0.10);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.28);
}

[data-theme="light"] .badge-danger {
  background: rgba(225, 29, 72, 0.10);
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.28);
}

[data-theme="light"] .badge-info {
  background: rgba(216, 55, 140, 0.10);
  color: #d8378c;
  border-color: rgba(216, 55, 140, 0.28);
}

[data-theme="light"] .badge-pink {
  background: rgba(255, 237, 248, 0.6);
  color: #8a1d59;
}

/* ── Device tabs ── */
[data-theme="light"] .device-tab-btn.active,
[data-theme="light"] .device-tab-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* ── inv-tab-btn ── */
[data-theme="light"] .inv-tab-btn {
  color: #547192;
}

[data-theme="light"] .inv-tab-btn.active,
[data-theme="light"] .inv-tab-btn:hover {
  color: #ffffff;
}

/* ── period-btn active ── */
[data-theme="light"] .period-btn.active,
[data-theme="light"] .period-btn:hover {
  color: #ffffff;
}

/* ── Floating card text in light ── */
[data-theme="light"] .fc-text h4 {
  color: #0a1728;
}

[data-theme="light"] .fc-text p {
  color: #547192;
}

/* ── Section glow auras reset for light (keep bg transparent) ── */
[data-theme="light"] #inventory,
[data-theme="light"] #invoices,
[data-theme="light"] #customers,
[data-theme="light"] #analytics,
[data-theme="light"] #reports,
[data-theme="light"] #privacy {
  background: transparent;
}

/* ── Pro section in light ── */
[data-theme="light"] #pro {
  background: linear-gradient(160deg, rgba(246, 173, 85, 0.05) 0%, transparent 60%);
}

/* ── Preloader light mode dot dots ── */
[data-theme="light"] .pl-dot {
  background: var(--brand-primary);
}

/* ── Scroll progress bar always vivid ── */
[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, #1789e6, #d8378c, #ffedf8);
}