/* Custom SaaS Enhancements & Responsive Polish for GeraDocs */

:root {
  /* GeraDocs Premium SaaS Palette - Sophisticated Royal Blue CTAs */
  --primary-color: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary-color: #334155;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Primary CTA & Brand Styling - Appealing & Distinct */
.bg-primary {
  background-color: #1d4ed8 !important;
}

.bg-primary-soft {
  background-color: #eff6ff !important;
}

.text-primary {
  color: #1d4ed8 !important;
}

.text-secondary, .text-muted {
  color: #475569 !important;
}

/* Button Systems & High Contrast Overrides */
.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary, .btn-primary * {
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #059669 !important;
  border: 1.5px solid #059669 !important;
  background-color: transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-2px);
}

.btn-outline-primary:hover * {
  color: #ffffff !important;
}

/* Override main.css default .btn background and text colors */
.btn-outline-light {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}

.btn-outline-light, .btn-outline-light * {
  color: #ffffff !important;
}

.btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
}

.btn-outline-light:hover * {
  color: #0f172a !important;
}

.btn-light {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-light, .btn-light * {
  color: #0f172a !important;
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-light:hover * {
  color: #0f172a !important;
}

/* Premium Shadows & Glassmorphism Utilities */
.shadow-premium {
  box-shadow: 0 16px 38px -28px rgba(15, 35, 58, 0.25), 0 4px 14px rgba(15, 35, 58, 0.05) !important;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Footer High Contrast Polish */
footer {
  background-color: #0f172a !important;
}

footer .text-white-50 {
  color: #cbd5e1 !important;
}

footer a.text-white-50:hover {
  color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Header & Topbar Customizations */
.header-top {
  background-color: #0B132B;
  color: #94A3B8;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top p {
  margin: 0;
  color: #CBD5E1;
}

.header-top-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-top-auth .auth-link {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.header-top-auth .auth-link:hover {
  color: #6366F1;
}

.header-top-auth .auth-btn-top {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-top-auth .auth-btn-top:hover {
  opacity: 0.9;
  color: #FFFFFF;
}

/* Main Navbar Navigation */
.header-area {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.main-menu-ex ul li a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #1E293B !important;
  font-size: 15px;
  padding: 24px 10px;
  transition: color 0.2s;
}

.main-menu-ex ul li a:hover,
.main-menu-ex ul li a.active {
  color: var(--primary-color) !important;
}

/* Feature Tabs High Contrast Styling */
.feature-tabs .nav-link {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.feature-tabs .nav-link h5 {
  color: #0f172a !important;
}

.feature-tabs .nav-link p {
  color: #475569 !important;
}

.feature-tabs .nav-link.active {
  background-color: #0f172a !important;
  border-color: #0f172a !important;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2) !important;
}

.feature-tabs .nav-link.active h5,
.feature-tabs .nav-link.active .icon-box {
  color: #ffffff !important;
}

.feature-tabs .nav-link.active p {
  color: #e2e8f0 !important;
}

/* Hero Section & Card Pulsing */
.dictation-card {
  background: #0F172A;
  border-radius: 24px;
  color: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mic-pulse {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  animation: pulse-wave 2s infinite;
}

.mic-pulse i {
  color: #ffffff !important;
}

@keyframes pulse-wave {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.feature-icon-gradient {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 24px;
  box-shadow: 0 8px 20px -4px rgba(29, 78, 216, 0.4);
}

.icon-box-primary {
  width: 54px;
  height: 54px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem !important;
  line-height: 1.65 !important;
}

/* Pricing Cards & Hover Effects */
.hover-top {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-top:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15) !important;
}

/* Premium Typography Utility */
.text-premium {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Responsive Custom Spacings */
@media (max-width: 991px) {
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
@media (min-width: 992px) {
  .py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
  .header-top {
    text-align: center;
    padding: 10px 0;
  }
  .header-top p {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .header-top-auth {
    justify-content: center;
    gap: 12px;
  }
  .hero-section {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 2.2rem !important;
  }
  .hero-section .d-flex {
    justify-content: center;
  }
  .dictation-card {
    margin-top: 20px;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 11px 20px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .demo-doc-btn {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
  }
  .display-5 {
    font-size: 2.1rem !important;
  }
  .display-6 {
    font-size: 1.65rem !important;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.85rem !important;
  }
}

/* Hero Header Offset para descolar da Navbar Fixa */
.page-hero-header {
  padding-top: 135px !important;
  padding-bottom: 60px !important;
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767.98px) {
  .page-hero-header {
    padding-top: 110px !important;
    padding-bottom: 45px !important;
  }
  .hero-section {
    padding-top: 110px !important;
    padding-bottom: 50px !important;
  }
}
