/* ==========================================================================
   Literom Tech Solutions - Custom Stylesheet (Official Flame Brand Theme)
   ========================================================================== */

/* --- Custom Variables & Theme Tokens (Flame Red & Warm Orange Palette) --- */
:root {
  --primary-rgb: 239, 68, 68;
  --primary-color: #ef4444; /* Flame Crimson Red */
  --primary-hover: #dc2626;
  --primary-light: rgba(239, 68, 68, 0.12);
  --secondary-color: #f97316; /* Warm Flame Orange */
  --secondary-hover: #ea580c;
  --accent-color: #ff9800; /* Bright Flame Gold */
  --dark-accent: #1e1b18;
  
  /* Light Theme Default */
  --bg-body: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: #e4e4e7;
  --border-hover: #d4d4d8;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(239, 68, 68, 0.15);
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.25);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08) 0%, rgba(239, 68, 68, 0.05) 50%, transparent 100%);
  --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
}

/* --- Dark Theme Variables (Rich Charcoal & Flame Glow) --- */
[data-bs-theme="dark"] {
  --bg-body: #0d0e12;
  --bg-surface: #13151b;
  --bg-surface-elevated: #1a1d26;
  --bg-glass: rgba(19, 21, 27, 0.88);
  --border-color: #232733;
  --border-hover: #33394a;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-inverse: #0d0e12;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(249, 115, 22, 0.3);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18) 0%, rgba(239, 68, 68, 0.12) 60%, transparent 100%);
  --card-gradient: linear-gradient(135deg, rgba(26, 29, 38, 0.8) 0%, rgba(19, 21, 27, 0.9) 100%);
}

/* --- Global Reset & Typography --- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

.text-muted-custom {
  color: var(--text-muted) !important;
}

/* --- Gradient Text Utility (Flame Orange to Crimson Red) --- */
.text-gradient-primary {
  background: linear-gradient(135deg, #ff9800 0%, #ef4444 60%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons with Flame Gradient --- */
.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  border: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* --- Glassmorphism Effect --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.glass-nav {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* --- Header & Topbar --- */
header.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.top-announcement-bar {
  background: linear-gradient(90deg, #ff9800 0%, #ef4444 50%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top-bar-trust-tag {
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.top-bar-demo-btn {
  background: #ffffff;
  color: #dc2626 !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.top-bar-demo-btn:hover {
  background: #fff1f2;
  color: #b91c1c !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.top-bar-phone-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.top-bar-phone-link:hover {
  color: #fef08a;
  text-decoration: none;
}

.top-bar-whatsapp-btn {
  background-color: #25D366 !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 3px 12px !important;
  line-height: 1.3 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.top-bar-whatsapp-btn:hover {
  background-color: #20ba59 !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  .top-bar-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
  }
  .top-bar-left {
    display: none !important;
  }
  .top-bar-center {
    width: 100%;
    text-align: center;
  }
  .top-bar-right {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
}

.brand-logo-img {
  height: 52px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Logo Theme Switch Rules */
[data-bs-theme="dark"] .logo-light-mode {
  display: none !important;
}
[data-bs-theme="dark"] .logo-dark-mode {
  display: inline-block !important;
}

[data-bs-theme="light"] .logo-light-mode {
  display: inline-block !important;
}
[data-bs-theme="light"] .logo-dark-mode {
  display: none !important;
}

@media (max-width: 767.98px) {
  .brand-logo-img {
    height: 44px;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 0.35rem 0.55rem !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

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

.navbar-btn-demo {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

/* Theme Switcher Toggle */
.theme-switch-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  padding: 5rem 0 4rem 0;
  background: var(--hero-bg-gradient);
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

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

/* --- Dashboard Mockup Graphic --- */
.dashboard-preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
}

.dashboard-preview-window:hover {
  transform: translateY(-5px) scale(1.01);
}

.window-header-bar {
  background: var(--bg-surface-elevated);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f97316; }
.dot-green { background-color: #10b981; }

.window-body {
  padding: 1.5rem;
}

/* --- Metric Counter Cards --- */
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.metric-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

/* --- Section Styling --- */
.section-padding {
  padding: 5rem 0;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.85rem;
  }
}

/* --- Product Feature Tabs --- */
.product-tabs .nav-pills {
  background: var(--bg-surface-elevated);
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
}

.product-tabs .nav-link {
  border-radius: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.2s ease;
}

.product-tabs .nav-link.active {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* --- Service Cards --- */
.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.glass-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  transform: scale(1.1) rotate(-5deg);
}

/* --- Simulator Interactive Box --- */
.simulator-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
}

.simulator-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

.sim-btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* --- ROI Calculator Card --- */
.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-range::-webkit-slider-thumb {
  background: var(--primary-color);
}

.result-badge {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* --- Testimonials & Team Avatars --- */
.team-avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
  transition: all 0.3s ease;
  background: var(--bg-surface-elevated);
}

.glass-card:hover .team-avatar-wrapper {
  transform: scale(1.06) rotate(2deg);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  height: 100%;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

/* --- Custom Floating WhatsApp CTA (Bottom Right) --- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
  color: #ffffff !important;
}

/* --- Custom Floating CTA --- */
.floating-contact-btn {
  position: fixed;
  bottom: 95px;
  right: 25px;
  z-index: 999;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  border: none;
  border-radius: 50rem;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

/* --- Footer --- */
.footer-wrapper {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* --- Hero Showcase Wrapper & Real Mockup Glow --- */
.hero-showcase-wrapper img {
  box-shadow: 0 25px 60px -15px rgba(249, 115, 22, 0.22), 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-bs-theme="dark"] .hero-showcase-wrapper img {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 60px -15px rgba(249, 115, 22, 0.35), 0 0 40px rgba(0, 0, 0, 0.6);
}

.hero-showcase-wrapper:hover img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px -15px rgba(249, 115, 22, 0.32), 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.5); }
  100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
}

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* --- ERP Models & Stakeholder Segment Styles --- */
.erp-model-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color) !important;
}

.erp-model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stakeholder-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

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

.stakeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-mgmt { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.icon-teacher { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.icon-parent { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-it { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

/* Micro-UI Graphics for Stakeholder Cards */
.fs-2xs { font-size: 0.72rem !important; }
.fs-3xs { font-size: 0.65rem !important; }

.stakeholder-mini-graphic {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stakeholder-card:hover .stakeholder-mini-graphic {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.mini-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}

.mini-bar {
  flex: 1;
  background: linear-gradient(180deg, #f97316 0%, #ef4444 100%);
  border-radius: 3px 3px 1px 1px;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.mini-bar.active {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  opacity: 1;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.route-progress-line {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.route-progress-fill {
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 2px;
}

/* --- Transformation & Before-After Table --- */
.transformation-card {
  background: var(--bg-surface);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.comparison-badge-before {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.comparison-badge-after {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Ecosystem Secondary Product Cards --- */
.ecosystem-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

/* --- Dedicated 3 Mobile Apps Showcase Section --- */
.mobile-apps-stage {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.08) 0%, rgba(239, 68, 68, 0.04) 50%, transparent 80%);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

[data-bs-theme="dark"] .mobile-apps-stage {
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.16) 0%, rgba(239, 68, 68, 0.08) 60%, transparent 80%);
}

.mobile-apps-graphic {
  max-width: 960px;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  transition: transform 0.4s ease;
}

.mobile-apps-graphic:hover {
  transform: translateY(-4px);
}

.app-role-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.app-role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #ef4444);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.app-role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--card-accent, #ef4444);
}

.app-role-card:hover::before {
  height: 6px;
}

.app-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.app-icon-principal {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.app-icon-teacher {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.app-icon-parent {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.floating-feature-pill {
  position: absolute;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.app-store-badge:hover {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* --- Mobile & Tablet Media Query Polish --- */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  .calculator-card {
    padding: 1.5rem 1.25rem;
  }
  .floating-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .floating-contact-btn {
    bottom: 74px;
    right: 16px;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
  }
  .product-tabs .nav-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 0.3rem;
  }
  .product-tabs .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem;
  }
}

