:root {
  --bg-dark: #0f172a;
  --primary: #1DB954; /* DealEngineAI green from logo */
  --accent: #1DB954;  /* Matching green */
  --patent-gold: #d4af37;
  --alert-red: #dc2626;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar Styling */
.navbar {
  padding: 15px 0;
  background-color: rgba(15, 23, 42, 0.95) !important; /* Transparent navy */
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.navbar-brand {
  color: var(--text-light) !important;
  font-weight: 700;
}

.navbar-toggler {
  border: none;
  padding: 12px 24px;
  transition: all 0.3s;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--patent-gold) !important;
}

/* Button Styling */
.btn-primary {
  background-color: #2b8a3e !important; /* Forest green */
  border: none;
  padding: 12px 24px;
  transition: all 0.3s;
  padding: 12px 24px;
  transition: all 0.3s;
  color: white;
}

.btn-primary:hover {
  background-color: #1e6b2e !important; /* Darker green */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: transparent;
}

.btn-outline-primary {
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  transition: all 0.3s;
}

.btn-outline-primary:hover {
  background-color: #2b8a3e !important; /* Forest green */
  color: white;
}

/* Patent Badge */
.patent-badge {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--patent-gold);
  color: var(--patent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); /* Dark gradient */
  padding: 4rem 0;
  position: relative;
  text-align: center;
}

.hero-title {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

/* Cards */
.card {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.card-header {
  background-color: rgba(74, 144, 226, 0.1);
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
  font-weight: 600;
}

/* Pricing Cards */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.highlight {
  border: 2px solid var(--patent-gold);
}

.pricing-title {
  color: var(--patent-gold);
  font-weight: 700;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  color: white;
}

.pricing-period {
  color: white;
  font-size: 0.9rem;
}

.pricing-features li {
  color: white;
}

/* Feature Lists */
.feature-list {
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-light);
}

.feature-list li:before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background-color: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  padding: 2rem 0;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--patent-gold);
}

/* Dashboard specific styling */
.dashboard-card {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(74, 144, 226, 0.2);
  margin-bottom: 1.5rem;
}

.dashboard-card-header {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--text-light);
  font-weight: 600;
}

.api-key {
  background-color: rgba(54, 215, 183, 0.1);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.5rem;
  font-family: monospace;
  color: var(--accent);
}

/* Alert styling */
.alert-success {
  background-color: rgba(74, 144, 226, 0.1);
  border: none;
  padding: 12px 24px;
  transition: all 0.3s;
  color: var(--text-light);
}

.alert-danger {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: var(--alert-red);
  color: var(--text-light);
}

/* Data visualization */
.chart-container {
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  padding: 1rem;
}

/* Demo CRE page */
.dropzone {
  border: 2px dashed var(--accent);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: rgba(54, 215, 183, 0.05);
  transition: background-color 0.3s ease;
}

.dropzone:hover {
  background-color: rgba(54, 215, 183, 0.1);
}

/* Testimonial cards */
.testimonial-card {
  background-color: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--patent-gold);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  color: var(--text-muted);
  font-weight: 600;
}

/* Security badges */
.security-badge {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 8px;
  color: white;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-5px);
  border-color: var(--patent-gold);
}

/* Vertical Sliding Tab for Free Analysis */
.vertical-sliding-tab {
  position: fixed;
  right: 60px;
  top: 65%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-handle {
  background: linear-gradient(135deg, #2b8a3e, #1e6b2e);
  color: white;
  padding: 20px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 140px;
  width: 140px;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tab-handle:hover {
  background: linear-gradient(135deg, #1e6b2e, #155724);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.tab-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tab-content {
  position: absolute;
  right: 140px;
  top: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  width: 300px;
  height: 120px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border: 1px solid #e5e7eb;
}

.vertical-sliding-tab.expanded .tab-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.tab-inner {
  padding: 24px;
  color: #1f2937;
}

.tab-inner h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.tab-inner p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.tab-inner .btn {
  width: 100%;
  margin-bottom: 16px;
  font-size: 14px;
  padding: 10px 16px;
}

.tab-features {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.feature-item {
  font-size: 13px;
  color: #059669;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.feature-item:last-child {
  margin-bottom: 0;
}

/* Competitor comparison table */
.comparison-table th {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--text-light);
}


.comparison-table .feature-yes {
  color: #36d7b7;
  font-weight: bold;
  color: var(--primary);
}

.comparison-table .feature-no {
  color: var(--alert-red);
}

/* Risk reversal guarantee */
.guarantee-badge {
  background-color: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--patent-gold);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.guarantee-badge:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--patent-gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230f172a' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 0 0 0 16A8 8 0 0 0 8 0zm2.3 12.7-3.2-3.2c-.4-.4-.7-1.1-.7-1.5V4.5C6.4 4 6.9 3.5 7.5 3.5S8.6 4 8.6 4.5v3.5l3.1 3.1c.2.2.2.5 0 .7-.2.3-.6.3-.8-.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Security badges */
  padding: 8px;
  color: white;
.security-badge {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-5px);
  border-color: var(--patent-gold);
}

/* Trust badges */
.trust-badges-container {
  margin-top: 1.5rem;
}

.trust-badge {
  transition: all 0.3s ease;
  display: inline-block;
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* CRE CTA section */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.card-body {
  color: var(--text-light);
}

.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6, .card-body p {
  color: var(--text-light);
}

.card-body a.btn-light {
  background-color: #ffffff;
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  transition: all 0.3s;
}

.card-body a.btn-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.card-body a.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Footer styles */
footer h5 {
  margin-bottom: 20px;
  font-weight: 600;
}

footer h5 img {
  margin-bottom: 10px;
  display: block;
}

/* Lease term tooltips */
.lease-term-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.has-tooltip {
  border-bottom: 1px dotted var(--patent-gold);
  padding-bottom: 1px;
}

.lease-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 0;
  min-width: 250px;
  max-width: 300px;
  background-color: rgba(15, 23, 42, 0.95);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  z-index: 100;
  transition: opacity 0.3s, visibility 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lease-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Containers */
.container, section {
  width: 100% !important;
  padding: 0 16px !important;
}

/* Form styling */
.form-label {
  color: var(--text-light);
}

.form-text {
  color: var(--text-muted);
}

/* Mobile menu and responsive fixes */
@media (max-width: 991px) {
  .hero { padding: 2rem 0 !important; }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  h3 { font-size: 1.5rem !important; }
  /* Fix button overflow */
  .cta-button, .btn-lg { width: 100% !important; margin-bottom: 0.5rem; }
  .d-flex.gap-3 { flex-direction: column; }
  
  /* Pricing cards */
  .pricing-card {
    width: 100% !important;
    margin-bottom: 24px;
  }
  .btn-primary {
    display: block;
    margin: 0 auto;
    width: 90% !important;
  }
  
  /* Improve navbar spacing */
  .navbar-nav { margin-top: 1rem; }
  .nav-item { padding: 0.5rem 0; }
  
  /* Fix padding for mobile */
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  /* Improve touch targets */
  .nav-link, .btn, a { 
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix footer columns */
  footer .col-md-2, footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Small mobile specific fixes */
@media (max-width: 576px) {
  h1 { font-size: 1.8rem !important; }
  .hero-subtitle { font-size: 1rem !important; }
  
  /* Hero text fix for small screens */
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    padding: 0 10px;
  }
  .hero p {
    font-size: 1rem !important;
  }
  
  /* Adjust tooltips for mobile */
  .lease-tooltip {
    min-width: 200px;
    max-width: 250px;
    font-size: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .lease-tooltip::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Better touch handling for tooltips */
  .lease-term-tooltip.touched .lease-tooltip {
    visibility: visible;
    opacity: 1;
  }
  
  /* Fix button text wrapping */
  .btn { white-space: normal; }
  
  /* Fix table scrolling */
  .table-responsive {
    border: 0;
    margin-bottom: 0;
  }
  
  /* Touch-Friendly CTAs */
  .btn-primary {
    min-height: 48px; /* Apple recommended */
    padding: 12px 0 !important;
  }
  
  /* Fix mobile navigation */
  .nav-menu { 
    flex-direction: column; 
  }
  
  /* Fix form inputs */
  input { 
    width: 100% !important; 
  }
  
  /* Fix testimonial cards */
  .testimonial { 
    margin: 16px 0 !important; 
  }
}

/* Pricing Page Specific */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #E2E8F0;
  color: var(--text-light);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-header {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Annual billing toggle */
.annual-toggle-container {
  background-color: #f8fff8 !important;
  border: 2px solid #1DB954 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin-bottom: 20px;
}

.annual-toggle-text {
  color: #1DB954 !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}
