/* Karate Agent — Premium Bootstrap 5 Theme */

/* ===== Light Theme ===== */
:root {
  --bs-body-bg: #ffffff;
  --bs-body-color: #111827;
  --hero-bg: #f0f4ff;
  --section-alt-bg: #f9fafb;
  --footer-bg: #f9fafb;
  --card-border: #e5e7eb;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --stat-color: #1d4ed8;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0f172a;
  --bs-body-color: #e2e8f0;
  --hero-bg: #1e293b;
  --section-alt-bg: #1e293b;
  --footer-bg: #0c1220;
  --card-border: #334155;
  --accent: #60a5fa;
  --accent-light: #1e3a5f;
  --stat-color: #93c5fd;
}

/* ===== Typography ===== */
body {
  font-size: 1.125rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Navbar ===== */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.25rem;
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 6rem 0 5rem;
  background-color: var(--hero-bg);
}

.hero-section h1 {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: var(--bs-body-color);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--section-alt-bg);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  opacity: 0.75;
  margin-bottom: 3rem;
}

/* ===== Feature Cards ===== */
.feature-card {
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  height: 100%;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ===== Stats / Speed comparison ===== */
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--stat-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.speed-comparison {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.speed-bar {
  height: 3rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-weight: 600;
}

.speed-bar-slow {
  background-color: #fecaca;
  color: #991b1b;
}

.speed-bar-fast {
  background-color: #bbf7d0;
  color: #166534;
}

[data-bs-theme="dark"] .speed-bar-slow {
  background-color: #7f1d1d;
  color: #fecaca;
}

[data-bs-theme="dark"] .speed-bar-fast {
  background-color: #14532d;
  color: #bbf7d0;
}

/* ===== Adoption Steps ===== */
.adoption-step {
  text-align: center;
  position: relative;
}

.adoption-step .step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.adoption-step .step-cost {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== Video Placeholder ===== */
.video-placeholder {
  border-style: dashed !important;
  border-color: var(--card-border) !important;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background-color: var(--hero-bg);
}

/* ===== Comparison Table ===== */
.comparison-table th,
.comparison-table td {
  vertical-align: middle;
  text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.check-yes {
  color: #16a34a;
}

.check-no {
  color: #dc2626;
}

.check-partial {
  color: #d97706;
}

/* ===== Pricing Cards ===== */
.pricing-card {
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

/* ===== Buttons ===== */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ===== Screenshot images ===== */
.screenshot {
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .screenshot {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ===== Case Study ===== */
.case-study-card {
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: var(--section-alt-bg);
}

/* ===== Misc ===== */
.text-accent {
  color: var(--accent);
}

.bg-accent-light {
  background-color: var(--accent-light);
}

img.img-fluid.screenshot {
  max-width: 100%;
  height: auto;
}
