
:root {
  --bg: #0b1220;
  --bg2: #101931;
  --card: #121b33;
  --muted: #8ea0c6;
  --brand: #6ea8fe;
  --success: #6dd3a0;
  --warning: #ffd08a;
  --danger: #ff8e8e;
  --ad-bg: #0e1529;
  --ad-border: #203055;
}

html,
body {
  background: radial-gradient(1200px 800px at 80% -10%, #1c2a52 0%, var(--bg) 35%, var(--bg2) 100%) fixed;
  color: #e6ecff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  scroll-behavior: smooth;
}

.nav-blur {
  backdrop-filter: saturate(130%) blur(8px);
  background: rgba(11, 18, 32, 0.6);
  border-bottom: 1px solid #1d2947;
}

.hero {
  padding-top: 88px;
  padding-bottom: 48px;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.subtle {
  color: var(--muted);
}

.shadow-soft {
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.card-gradient {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.00) 100%), var(--card);
  border: 1px solid #233258;
  border-radius: 16px;
}

.kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed #27406d;
  border-radius: 14px;
}


.step {
  display: none
}

.step.active {
  display: block
}

.step-title {
  font-weight: 700
}

.progress-mini {
  height: 8px;
  background: #1a2340;
  border-radius: 6px;
  overflow: hidden;
}

.progress-mini .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #8bc6ff);
  width: 0%;
  transition: width 0.3s ease;
}

.badge-soft {
  background: rgba(110, 168, 254, 0.15);
  color: #cfe2ff;
  border: 1px solid rgba(110, 168, 254, 0.35)
}

.report-preview {
  background: rgba(15, 25, 50, .6);
  border: 1px solid #20355f;
  border-radius: 14px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 168, 254, .15);
}

.footer {
  border-top: 1px solid #1d2947;
  color: #93a7d8
}

.link-muted {
  color: #94a8d8
}

.link-muted:hover {
  color: #cfe2ff
}

.form-control,
.form-select {
  background: #0c1327;
  color: #e6ecff;
  border-color: #263a65;
  font-size: 16px;
}

.form-control::placeholder {
  color: #7891c9
}

.form-control:focus,
.form-select:focus {
  background: #0c1327;
  color: #e6ecff;
  border-color: #4dabf7;
  box-shadow: 0 0 0 0.25rem rgba(110, 168, 254, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.25rem rgba(255, 142, 142, 0.25);
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-check-input {
  background: #0c1327;
  border-color: #2a4171;
  width: 1.25em;
  height: 1.25em;
}

.form-check-input:checked {
  background: #6ea8fe;
  border-color: #6ea8fe
}

.form-check-input:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 0.25rem rgba(110, 168, 254, 0.25);
}

.btn-primary {
  background: linear-gradient(90deg, #5b9dff, #77b3ff);
  border: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #4d8cff, #6ba2ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 168, 254, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.btn-outline-light {
  border-color: #375489;
  color: #dbe6ff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #162447;
  border-color: #4dabf7;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e6ecff;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.divider {
  border-top: 1px dashed #2a4171
}

.loading-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner-border {
  width: 2rem;
  height: 2rem;
}

.analysis-result {
  display: none;
}

.chat-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(15, 25, 50, .3);
  border-radius: 12px;
  margin-bottom: 15px;
  scroll-behavior: smooth;
}

.chat-message {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-user {
  background: rgba(110, 168, 254, 0.2);
  margin-left: auto;
  text-align: right;
}

.chat-ai {
  background: rgba(255, 255, 255, 0.05);
}

.result-card {
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.1) 0%, rgba(110, 168, 254, 0.05) 100%);
  border: 1px solid rgba(110, 168, 254, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.highlight {
  color: var(--brand);
  font-weight: 600;
}

.savings-item {
  background: rgba(109, 211, 160, 0.1);
  border: 1px solid rgba(109, 211, 160, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.error-message {
  background: rgba(255, 142, 142, 0.1);
  border: 1px solid rgba(255, 142, 142, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  color: var(--danger);
}

.success-message {
  background: rgba(109, 211, 160, 0.1);
  border: 1px solid rgba(109, 211, 160, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  color: var(--success);
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
  .hero {
    padding-top: 96px;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero .col-lg-5 {
    order: -1;
    margin-bottom: 2rem;
  }

  .card-gradient {
    padding: 1.5rem !important;
  }

  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .chat-message {
    max-width: 90%;
  }

  .form-control,
  .form-select {
    padding: 0.75rem;
  }

  .step-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 96px;
  }

  .report-preview {
    margin-top: 2rem;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid #6ea8fe;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card-gradient {
    border-width: 2px;
  }

  .btn-outline-light {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {

  .navbar,
  .ad-slot,
  .btn,
  .chat-container {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card-gradient,
  .result-card {
    border: 2px solid #000 !important;
    background: white !important;
    color: black !important;
  }
}
