:root {
  --brand: #4f46e5;
  --accent: #10b981;
  --dark: #0f172a;
}

* {
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(180deg, #0b1023 0%, #111827 20%, #f8fafc 20%, #f8fafc 100%);
  min-height: 100vh;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.glass-nav {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 3rem 0 2rem;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}

.feature-card {
  border: none;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.course-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.course-card img {
  height: 220px;
  object-fit: cover;
}

.plan-card {
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
}

footer {
  background: #0b1023;
}

[data-bs-theme="dark"] body {
  background: #020617;
}

/* ——— Add-on: enterprise layout, CRUD, accessibility, full responsiveness ——— */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.section-title-responsive {
  font-size: clamp(1.35rem, 4vw + 0.5rem, 2.25rem);
  line-height: 1.2;
}

.section-enterprise {
  scroll-margin-top: 5rem;
}

.enterprise-stats .counter {
  font-variant-numeric: tabular-nums;
}

.crud-form-card .card-body {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.crud-table-wrap {
  max-height: min(70vh, 520px);
  -webkit-overflow-scrolling: touch;
}

.crud-table-wrap table {
  min-width: 520px;
}

@media (max-width: 575.98px) {
  .crud-table-wrap table {
    font-size: 0.875rem;
  }

  .enterprise-fab {
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.chart-canvas-wrap {
  min-height: 220px;
  max-height: 360px;
}

.chart-canvas-wrap canvas {
  max-height: 100%;
}

.integration-logos .integration-icon {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.integration-logos .integration-icon:hover {
  opacity: 1;
  transform: scale(1.06);
}

.integration-icon--stripe {
  color: #635bff;
}

.enterprise-checklist li {
  padding-left: 0.25rem;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--brand);
}

.glass-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

[data-bs-theme="dark"] .glass-nav {
  background: rgba(15, 23, 42, 0.85);
}

[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .plan-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.65);
}

.hero .display-5 {
  font-size: clamp(1.75rem, 5vw + 0.75rem, 3rem);
}

.hero .lead {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
}

.container,
.container-fluid {
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.btn,
.form-control,
.form-select {
  min-height: 44px;
}

@media (min-width: 576px) {
  .btn {
    min-height: auto;
  }
}

#crudEmptyState.is-hidden {
  display: none !important;
}

/* ——— Mega expansion: partners, compare, roadmap, insights, newsletter, footer ——— */
.letter-space {
  letter-spacing: 0.12em;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--bs-body-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  white-space: nowrap;
}

[data-bs-theme="dark"] .partner-pill {
  border-color: rgba(255, 255, 255, 0.12);
}

.course-swiper {
  position: relative;
  padding-bottom: 3rem;
}

.course-swiper .swiper-button-next,
.course-swiper .swiper-button-prev {
  color: var(--brand);
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0;
  top: auto;
  bottom: 0;
}

.course-swiper .swiper-button-next::after,
.course-swiper .swiper-button-prev::after {
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .course-swiper .swiper-button-next,
  .course-swiper .swiper-button-prev {
    display: none;
  }
}

.compare-table-wrap {
  border-radius: 1rem;
}

.compare-table thead th {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.compare-table td {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.roadmap-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12) !important;
}

.video-embed-wrap iframe {
  border: 0;
}

.api-code-pre {
  margin: 0;
  padding: 1.25rem !important;
  background: #1e1e1e !important;
  max-height: min(70vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.insights-section {
  background: linear-gradient(180deg, var(--bs-body-bg) 0%, rgba(79, 70, 229, 0.04) 100%);
}

.insight-img {
  height: min(42vw, 200px);
  object-fit: cover;
}

.insight-card {
  transition: transform 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-6px);
}

.newsletter-section {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 45%, #0f172a 100%);
}

.newsletter-form .form-control {
  border: none;
}

.footer-enterprise {
  background: #070b18;
}

.footer-enterprise .footer-links a {
  transition: opacity 0.15s ease;
}

.footer-enterprise .footer-links a:hover {
  opacity: 0.85;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(79, 70, 229, 0.08);
  color: inherit;
}

.security-tile {
  transition: transform 0.2s ease;
}

.security-tile:hover {
  transform: translateY(-3px);
}

.partner-marquee-swiper {
  overflow: hidden;
  padding: 0.5rem 0;
}
