@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

/* ==================== General Styles ==================== */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

html, body {
  height: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #2c3e50;
}

.display-4, .display-5 {
  font-weight: 700;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
}

/* ==================== Navbar Styles ==================== */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1030;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

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

/* ==================== Hero Section ==================== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5rem 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ensure text is always readable over gradients */
.bg-gradient, .bg-gradient-primary {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* improve readability on light backgrounds */
.bg-light, .bg-white {
  color: #333 !important;
}

.text-muted {
  color: #666 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
}

.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ==================== Cards ==================== */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* ==================== Buttons ==================== */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* ==================== Badges ==================== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* board-specific badges (info with dark text) */
.badge.bg-info.text-dark {
  background-color: #e2f0ff;
  color: #0a0a0a;
}

/* ==================== Forms ==================== */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.7rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Feature tile images */
.feature-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}


/* ==================== Alerts ==================== */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
}

.alert-info {
  background-color: #e7f3ff;
  color: #004085;
  border-left: 4px solid var(--info-color);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid var(--warning-color);
}

/* ==================== Footer ==================== */
footer {
  background-color: #2c3e50;
  color: white;
  margin-top: auto;
}

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

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==================== Tables ==================== */
.table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: #f9f9f9;
}

/* ==================== Pagination ==================== */
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-link {
  color: var(--primary-color);
  border-color: #ddd;
  border-radius: 6px;
  margin: 0 2px;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ==================== Accordion ==================== */
.accordion-button:not(.collapsed) {
  background-color: #f0f6ff;
  color: var(--primary-color);
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ==================== Navbar Dropdown ==================== */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
  background-color: #f0f6ff;
  color: var(--primary-color);
}

/* ==================== Utility Classes ==================== */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.rounded-3 {
  border-radius: 15px;
}

.border-top {
  border-top: 1px solid #dee2e6;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .card-img-top {
    height: 150px;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ==================== Loading States ==================== */
.spinner-border {
  color: var(--primary-color);
}

/* ==================== Rating Stars ==================== */
.bi-star-fill {
  color: #ffc107;
  font-size: 1.2rem;
}

/* ==================== Courses Page ==================== */
.courses-page {
  --edu-navy: #0f2942;
  --edu-sky: #d6ebff;
  --edu-teal: #167d7f;
  --edu-gold: #f1b24a;
  --edu-card: #ffffff;
  --edu-stroke: #d5e1ec;
  font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== Q&A Assistant ==================== */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qa-panel {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(18, 38, 63, 0.06);
}

.qa-form {
  display: grid;
  gap: 0.6rem;
}

.qa-thread-list {
  display: grid;
  gap: 0.6rem;
  max-height: 320px;
  overflow: auto;
}

.qa-thread-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: #1f2d3d;
  background: #f8fbff;
}

.qa-thread-item strong {
  display: block;
}

.qa-thread-item span {
  font-size: 0.85rem;
  color: #5f6f84;
}

.qa-thread-item.active {
  border-color: #0d6efd;
  background: #eaf2ff;
}

.qa-convo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.qa-messages {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.qa-msg {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e1e6ef;
}

.qa-msg header {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.qa-msg p {
  margin: 0;
}

.qa-msg small {
  display: block;
  margin-top: 0.35rem;
  color: #6b7b8f;
}

.qa-ai {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
  border-left: 3px solid #667eea;
}

.qa-ai header {
  color: #4a5fa8;
}

.qa-student {
  background: #eef5ff;
}

.qa-tutor {
  background: #eefcf4;
  border-left: 3px solid #198754;
}

.qa-tutor header {
  color: #155a38;
}

.qa-bot {
  background: #fff8e8;
}

.qa-system {
  background: #f4f6f8;
}

.qa-inline-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #c8d7eb;
  background: #f2f7ff;
  font-size: 0.8rem;
  color: #2d4f78;
}

@media (max-width: 991px) {
  .qa-grid {
    grid-template-columns: 1fr;
  }
}

.courses-page h1,
.courses-page h2,
.courses-page h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--edu-navy);
}

.courses-hero {
  border: 1px solid #cfe2f2;
  border-radius: 24px;
  padding: 2rem;
  background:
    radial-gradient(circle at 85% 10%, #f7deb1 0, #f7deb100 40%),
    radial-gradient(circle at 20% 20%, #cae6ff 0, #cae6ff00 45%),
    linear-gradient(140deg, #f5fbff 0%, #e8f5ff 52%, #f9fcff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.courses-kicker {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: #d8ecff;
  color: #0b4f89;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.courses-hero-content p {
  max-width: 720px;
  color: #35506a;
}

.courses-hero-image {
  width: 190px;
  max-width: 32vw;
  filter: drop-shadow(0 8px 15px rgba(6, 46, 80, 0.15));
}

.course-search-panel {
  background: #ffffff;
  border: 1px solid var(--edu-stroke);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(16, 50, 87, 0.06);
}

.course-search-form .input-group-text {
  background-color: #eef5fd;
  border-color: #ceddea;
}

.course-search-form .btn-primary {
  background: linear-gradient(120deg, #1769aa 0%, #0f8c92 100%);
}

.board-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--edu-stroke);
  background-color: var(--edu-card);
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(16, 50, 87, 0.12);
  border-color: #8bc3df;
}

.board-card.active {
  border-color: #15778f;
  box-shadow: 0 0 0 3px rgba(21, 119, 143, 0.15);
  background: linear-gradient(135deg, #f2fbfe 0%, #e6f5ff 100%);
}

.board-card-image {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: #eaf2f9;
  padding: 0.35rem;
  flex-shrink: 0;
}

.board-title {
  display: inline-block;
  font-weight: 700;
  color: var(--edu-navy);
  margin-bottom: 0.35rem;
}

.board-subject-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.board-subject-chip,
.subject-filter-chip {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.board-subject-chip {
  padding: 0.18rem 0.55rem;
  background-color: var(--edu-sky);
  color: #154c78;
}

.board-subject-chip.muted {
  background-color: #eef3f8;
  color: #6b7d8c;
}

.subject-selector {
  border: 1px solid #cce0ef;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, #fbfeff 0%, #f0f7fc 100%);
}

.course-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.syllabus-navigator {
  border: 1px solid #cfdfee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  padding: 1rem;
}

.official-syllabus-hub {
  border: 1px solid #d1deea;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  padding: 1rem;
}

.hub-note {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0e5e82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.official-board-card {
  height: 100%;
  border: 1px solid #c8d9e9;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 0.85rem;
}

.official-board-card p {
  line-height: 1.4;
}

.syllabus-current {
  border: 1px solid #b9dfc0;
  border-radius: 14px;
  background: linear-gradient(130deg, #f3fff3 0%, #f8fff8 75%);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.syllabus-current p {
  color: #3e5e52;
}

.syllabus-code {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.syllabus-detail-panel {
  border: 1px solid #c9ddf0;
  border-radius: 16px;
  background: linear-gradient(120deg, #f6fbff 0%, #ffffff 100%);
  padding: 1rem;
}

.syllabus-outcome-list {
  list-style: none;
  padding-left: 0;
}

.syllabus-outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: #2f4c64;
}

.syllabus-outcome-list li i {
  color: #148057;
  margin-top: 0.1rem;
}

.syllabus-detail-meta {
  border: 1px solid #d6e3ee;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 0.8rem;
}

.syllabus-detail-meta p {
  margin-bottom: 0.45rem;
  color: #3e5b74;
  font-size: 0.9rem;
}

.benefit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid #c9dcec;
  background-color: #f4faff;
  color: #1e4b6d;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.subject-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border: 1px solid #bfd5e4;
  background-color: #ffffff;
  color: #12486b;
  transition: all 0.2s ease;
}

.subject-filter-chip:hover {
  background-color: #e8f4ff;
  border-color: #77a9c8;
}

.subject-filter-chip.active {
  background: linear-gradient(120deg, #127d84 0%, #166f9d 100%);
  color: #ffffff;
  border-color: transparent;
}

.course-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.course-card-meta span {
  font-size: 0.8rem;
  color: #50677d;
}

.course-demo-cta {
  border: 1px solid #cadeee;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(130deg, #f8fcff 0%, #f2f7fc 55%, #fff7ed 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.course-demo-cta h3 {
  color: #153f5e;
}

.course-demo-cta p {
  color: #4f6477;
}

@media (max-width: 991px) {
  .courses-hero {
    padding: 1.35rem;
  }

  .courses-hero-image {
    width: 130px;
  }
}

@media (max-width: 767px) {
  .courses-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .courses-hero-image {
    width: 120px;
  }

  .course-search-panel,
  .subject-selector {
    padding: 0.9rem;
  }

  .course-demo-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .syllabus-current {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== Home Page - Academy Style ==================== */
.home-academy-hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 210, 143, 0.35), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(133, 194, 242, 0.4), transparent 45%),
    linear-gradient(145deg, #f2f9ff 0%, #eaf4fb 45%, #fdf7ea 100%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #cfe0ee;
  background-color: #ffffffcc;
  color: #1a5177;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 690px;
  color: #415a73;
  font-size: 1.1rem;
}

.hero-illustration {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #d8e5f0;
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(18, 58, 92, 0.12);
}

/* Section illustrations – shared style for all new SVG visuals */
.section-illustration {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  filter: drop-shadow(0 12px 28px rgba(79, 70, 229, 0.12));
}

/* Demo CTA illustration sizing */
.demo-cta-img {
  width: 100%;
  max-width: 340px;
}

.subject-ticker-wrap {
  overflow: hidden;
  background: #0f2942;
  border-top: 1px solid #113252;
  border-bottom: 1px solid #113252;
  white-space: nowrap;
}

.subject-ticker {
  display: inline-flex;
  gap: 2.2rem;
  padding: 0.75rem 0;
  min-width: 100%;
  color: #f2f8ff;
  animation: tickerMove 26s linear infinite;
}

.subject-ticker span {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subject-ticker span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f1b24a;
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f6a85;
  font-weight: 700;
}

.home-why {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.value-card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid #d5e4f0;
  background-color: #ffffff;
  padding: 1.2rem;
  box-shadow: 0 10px 18px rgba(11, 53, 83, 0.06);
}

.value-card h5 {
  margin: 0.9rem 0 0.6rem;
}

.value-card p {
  margin: 0;
  color: #4d6378;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #e8f3ff;
  color: #0f5f9c;
  font-size: 1.2rem;
}

.curriculum-band {
  background-color: #f6f8fb;
}

.curriculum-card {
  height: 100%;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d7e2eb;
  padding: 1rem;
}

.curriculum-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 0.75rem;
}

.curriculum-card h6 {
  margin-bottom: 0.5rem;
}

.curriculum-card p {
  margin-bottom: 0;
  color: #4f6478;
  font-size: 0.92rem;
}

.home-testimonials {
  background: linear-gradient(140deg, #0f2942 0%, #1d4469 100%);
}

.home-testimonials h2 {
  color: #ffffff;
}

.testimonial-panel {
  max-width: 820px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px solid #d8e2eb;
  box-shadow: 0 16px 30px rgba(9, 31, 48, 0.25);
}

.testimonial-panel .bi-star-fill {
  color: #f3b13d;
}

.testimonial-panel p {
  color: #3f566c;
}

.testimonial-panel small {
  color: #61778d;
}

.home-testimonials .carousel-control-prev,
.home-testimonials .carousel-control-next {
  width: 6%;
}

.success-metrics {
  background: linear-gradient(180deg, #eef7ff 0%, #fdf9f1 100%);
}

.metric-card {
  height: 100%;
  border-radius: 14px;
  border: 1px solid #d2e1ee;
  background: #ffffff;
  padding: 1.1rem;
}

.metric-card i {
  font-size: 1.35rem;
  color: #0e6f8e;
}

.metric-card h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.75rem;
  color: #133854;
}

.metric-card p {
  margin: 0;
  color: #5a7083;
  font-size: 0.9rem;
}

.home-demo-cta {
  background: #ffffff;
}

.demo-shell {
  border-radius: 20px;
  border: 1px solid #d8e5f1;
  background:
    radial-gradient(circle at 10% 10%, rgba(140, 201, 255, 0.25), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(245, 201, 124, 0.3), transparent 38%),
    #ffffff;
  padding: 2rem 1.2rem;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .home-testimonials .carousel-control-prev,
  .home-testimonials .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .subject-ticker {
    gap: 1.5rem;
  }

  .demo-shell {
    padding: 1.5rem 0.9rem;
  }

  .section-illustration {
    max-width: 280px;
    margin-bottom: 1rem;
  }
}

/* ==================== Mobile Hardening (No Desktop Impact) ==================== */
@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    gap: 0.15rem;
    padding-top: 0.5rem;
  }

  .navbar .navbar-nav .nav-link.btn {
    display: block;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
  }

  .navbar .dropdown-menu {
    position: static;
    float: none;
    border: 1px solid #e9ecef;
    box-shadow: none;
    margin-top: 0.35rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .card-body {
    padding: 0.9rem;
  }

  .table-responsive {
    font-size: 0.92rem;
  }

  .pagination {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .course-demo-cta .btn {
    width: 100%;
  }
}

/* ====================================================================
   MOTION SYSTEM & GLOBAL ENHANCEMENTS
   ==================================================================== */

/* Page entry fade-in */
main {
  animation: pageEntry 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEntry {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: none;
}

.scroll-reveal[data-delay="1"] { transition-delay: 0.08s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.16s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.24s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.32s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.40s; }
.scroll-reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ── Navbar shrink on scroll ───────────────────────────────── */
.navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.11) !important;
}

/* ── Nav link animated underline ───────────────────────────── */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 4px;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active-link::after {
  width: 100%;
}

/* ── Button shimmer on hover ───────────────────────────────── */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.26) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-16deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 140%;
}

/* ── Ripple circle ─────────────────────────────────────────── */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(5); opacity: 0; }
}

/* ── CTA pulse ─────────────────────────────────────────────── */
.btn-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 5px 15px rgba(102, 126, 234, 0.38); }
  50%       { box-shadow: 0 5px 24px rgba(102, 126, 234, 0.65),
                          0 0 0 8px rgba(102, 126, 234, 0.07); }
}

/* ── Card enhanced hover ───────────────────────────────────── */
.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 44px rgba(102, 126, 234, 0.14) !important;
}

/* ── Value / feature card hover ────────────────────────────── */
.value-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.value-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(102, 126, 234, 0.13) !important;
  border-color: #b3c8f0 !important;
}

/* ── Curriculum card hover ─────────────────────────────────── */
.curriculum-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.curriculum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(11, 53, 83, 0.12) !important;
  border-color: #a8c4e0 !important;
}

/* ── Metric card hover ─────────────────────────────────────── */
.metric-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(14, 111, 142, 0.14) !important;
}

/* ── Accordion enhanced ────────────────────────────────────── */
.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.6rem !important;
  border: 1px solid #e0eaf4 !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(120deg, #eef4ff 0%, #f3efff 100%);
  color: #4a3fca;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

/* ── Floating illustration ─────────────────────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25%       { transform: translateY(-8px) translateX(4px); }
  50%       { transform: translateY(-15px) translateX(0px); }
  75%       { transform: translateY(-8px) translateX(-4px); }
}

.float-anim {
  animation: floatY 4.5s ease-in-out infinite;
}

/* ── 3D Card Effects ──────────────────────────────────────── */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(-5deg) translateZ(20px);
  box-shadow: 0 30px 60px rgba(0, 102, 255, 0.25);
}

.card-3d-inner {
  transform-style: preserve-3d;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
}

/* ── 3D Flip Animation ────────────────────────────────────── */
@keyframes flip3d {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.flip-card {
  perspective: 1000px;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.flip-card-front {
  background: linear-gradient(135deg, #0066FF, #00D9FF);
  color: white;
}

.flip-card-back {
  background: linear-gradient(135deg, #00D9FF, #0066FF);
  color: white;
  transform: rotateY(180deg);
}

/* ── 3D Depth Layers ──────────────────────────────────────– */
@keyframes depthShift {
  0%, 100% { transform: translateZ(0) rotateX(0deg); }
  50% { transform: translateZ(20px) rotateX(2deg); }
}

.depth-layer {
  animation: depthShift 4s ease-in-out infinite;
  transform-style: preserve-3d;
}

.depth-shadow {
  position: relative;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.1),
    0 15px 35px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── 3D Rotation Effects ──────────────────────────────────– */
@keyframes rotate3d {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.rotate-3d {
  animation: rotate3d 8s linear infinite;
  transform-style: preserve-3d;
}

.rotate-3d-slow {
  animation: rotate3d 15s linear infinite;
  transform-style: preserve-3d;
}

/* ── 3D Parallax ──────────────────────────────────────────– */
.parallax-layer {
  position: relative;
  transform-style: preserve-3d;
}

.parallax-layer-deep {
  transform: translateZ(-100px);
}

.parallax-layer-mid {
  transform: translateZ(0px);
}

.parallax-layer-front {
  transform: translateZ(100px);
}

/* ── Glow Effects with Depth ──────────────────────────────– */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5),
                0 0 40px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.8),
                0 0 60px rgba(0, 217, 255, 0.5);
  }
}

.glow-effect {
  animation: glow-pulse 3s ease-in-out infinite;
  border-radius: 12px;
}

/* ── 3D Section Backgrounds ──────────────────────────────– */
.section-3d-bg {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.section-3d-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
  transform: perspective(1500px) rotateX(5deg);
  z-index: 0;
  pointer-events: none;
}

.section-3d-bg > * {
  position: relative;
  z-index: 1;
}

/* ── Stagger Animations ──────────────────────────────────– */
@keyframes staggerIn {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.stagger-item {
  animation: staggerIn 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ── 3D Morphing Shapes ──────────────────────────────────– */
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.morph-shape {
  animation: morph 8s ease-in-out infinite;
  position: absolute;
  mix-blend-mode: multiply;
}

/* ── 3D Button Effects ────────────────────────────────────– */
.btn-3d {
  perspective: 1000px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(0);
}

.btn-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  transform: translateZ(10px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-3d:hover {
  transform: translateZ(20px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

.btn-3d:hover::before {
  opacity: 1;
}

/* ── 3D Gradient Cards ────────────────────────────────────– */
.gradient-card-3d {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid rgba(0, 102, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.gradient-card-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gradient-card-3d:hover {
  transform: translateY(-8px) translateZ(10px);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
}

.gradient-card-3d:hover::before {
  opacity: 1;
}

@keyframes attentionFlash {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.16);
    border-color: rgba(13, 110, 253, 0.18);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 26px 60px rgba(13, 110, 253, 0.42);
    border-color: rgba(13, 110, 253, 0.48);
  }
}

.attention-flash {
  animation: attentionFlash 2.4s ease-in-out infinite;
}

.attention-flash:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .attention-flash {
    animation: none;
  }
}

@keyframes markerBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.attention-marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: #0d4fd6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attention-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.16);
  animation: markerBlink 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .attention-marker-dot {
    animation: none;
  }
}

/* ── 3D Form Controls ────────────────────────────────────– */
.form-control, .form-select, .form-check-input {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(0);
  border-color: rgba(0, 102, 255, 0.2);
}

.form-control:focus, .form-select:focus {
  transform: translateZ(5px) translateY(-2px);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25),
              0 10px 25px rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.5);
}

.form-control::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
}

/* ── 3D Label Effects ────────────────────────────────────– */
.form-label {
  transition: all 0.3s ease;
  font-weight: 500;
  color: #555;
}

.form-label:active {
  transform: translateY(-2px);
  color: #0066FF;
}

/* ── Decorative 3D Elements ─────────────────────────────– */
.decoration-3d {
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.decoration-3d::before {
  content: '';
  position: absolute;
  width: 300%;
  height: 300%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
  animation: rotate3d 20s linear infinite;
  top: -100%;
  left: -100%;
}

/* ── 3D Icon Effects ────────────────────────────────────– */
.icon-3d {
  display: inline-block;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-3d:hover {
  transform: rotateY(360deg) rotateX(360deg);
}

/* ── Animated Gradient Background ─────────────────────– */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background: linear-gradient(
    270deg,
    rgba(0, 102, 255, 0.05),
    rgba(0, 217, 255, 0.05),
    rgba(0, 102, 255, 0.05)
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* ── Footer deep gradient ──────────────────────────────────── */
footer.bg-dark {
  background: linear-gradient(150deg, #0f1923 0%, #18243a 80%, #1a2230 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  display: inline-block;
  transition: color 0.22s ease, transform 0.22s ease;
}

footer a:hover {
  color: #93b3ff !important;
  transform: translateX(4px);
}

/* ── Gradient text ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(120deg, #667eea 0%, #764ba2 70%, #f1b24a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section accent bar ────────────────────────────────────── */
.section-accent {
  display: inline-block;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin-bottom: 0.7rem;
}

/* ── Board card hover override ─────────────────────────────── */
.board-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(16, 50, 87, 0.16) !important;
}

/* ── Reduced-motion / print safety ────────────────────────── */
@media print, (prefers-reduced-motion: reduce) {
  main,
  .scroll-reveal,
  .float-anim,
  .btn-pulse {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====================================================================
   SAAS PRODUCT DESIGN SYSTEM
   ==================================================================== */

/* ── Announcement Bar ─────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #5046e5 0%, #7c3aed 50%, #5046e5 100%);
  background-size: 200% auto;
  animation: annBarShift 5s linear infinite;
  color: white;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.announcement-bar a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.announcement-bar a:hover {
  opacity: 0.85;
  transform: none !important;
}

@keyframes annBarShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Glassmorphism Navbar ─────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: #0f172a !important;
  letter-spacing: -0.03em;
}

.brand-tagline {
  margin-left: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: #4f46e5;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-shell::before {
  content: none;
}

.navbar-brand-wrap:hover {
  color: #5046e5 !important;
}

.logo-icon {
  border-radius: 10px;
}

@keyframes logoPulse3d {
  0%, 100% {
    transform: translateZ(0) scale(1);
    filter: drop-shadow(0 8px 16px rgba(80, 70, 229, 0.22));
  }
  50% {
    transform: translateZ(12px) scale(1.05);
    filter: drop-shadow(0 14px 24px rgba(80, 70, 229, 0.34));
  }
}

.navbar-brand-wrap:hover .logo-icon {
}

@keyframes logoRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (min-width: 992px) {
  .logo-shell::before {
  }
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.navbar-cta-btn {
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.4rem 1.1rem !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: filter 0.2s ease, transform 0.2s ease !important;
}

.navbar-cta-btn:hover {
  filter: brightness(1.1) !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

/* ── SaaS Hero ────────────────────────────────────────────── */
.saas-hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 8% 25%, rgba(80, 70, 229, 0.09), transparent 50%),
    radial-gradient(circle at 92% 80%, rgba(245, 158, 11, 0.07), transparent 50%),
    radial-gradient(circle at 65% 10%, rgba(14, 165, 233, 0.07), transparent 40%),
    #f8fafc;
  position: relative;
  overflow: hidden;
}

.saas-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235046e5' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(80, 70, 229, 0.08);
  border: 1px solid rgba(80, 70, 229, 0.2);
  color: #5046e5;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 1.3rem;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5046e5;
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero-headline {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.3rem;
}

.headline-gradient {
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.08rem;
  color: #475569;
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-primary-hero {
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(80, 70, 229, 0.35);
  color: white;
}

.btn-outline-hero {
  background: transparent;
  color: #334155;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.btn-outline-hero:hover {
  border-color: #5046e5;
  color: #5046e5;
  background: rgba(80, 70, 229, 0.04);
  transform: translateY(-1px);
}

.hero-trust-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-note i {
  color: #10b981;
}

/* Inline hero stats */
.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.hstat {
  display: flex;
  flex-direction: column;
  min-width: 60px;
}

.hstat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.hstat span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.22rem;
}

.hstat-divider {
  width: 1px;
  height: 34px;
  background: #e2e8f0;
}

/* Hero visual */
.hero-visual-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}

.hero-glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 32px 72px rgba(80, 70, 229, 0.14),
    0 4px 20px rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  padding: 1.5rem;
  overflow: hidden;
}

.hero-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-learning-tile {
  position: relative;
  border-radius: 16px;
  padding: 1rem;
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: tileBob 4s ease-in-out infinite;
}

@keyframes tileBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.hero-learning-tile:nth-child(2) { animation-delay: 0.35s; }
.hero-learning-tile:nth-child(3) { animation-delay: 0.7s; }
.hero-learning-tile:nth-child(4) { animation-delay: 1.05s; }

.hero-learning-tile::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -35%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(1px);
}

.hero-learning-tile i {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-learning-tile h6 {
  margin-bottom: 0.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-learning-tile p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.tile-live {
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.9), rgba(191, 219, 254, 0.72));
}

.tile-board {
  background: linear-gradient(145deg, rgba(224, 231, 255, 0.92), rgba(199, 210, 254, 0.72));
}

.tile-progress {
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.92), rgba(167, 243, 208, 0.7));
}

.tile-support {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.92), rgba(253, 230, 138, 0.72));
}

.hero-learning-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(80, 70, 229, 0.16);
}

.why-visual-stack {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.why-visual-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(80, 70, 229, 0.14);
  border-radius: 18px;
  padding: 1rem 1.05rem;
}

.why-visual-card.card-main {
  text-align: left;
}

.wvc-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.8rem;
}

.wvc-head i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.wvc-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.wvc-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.45);
  animation: progressGlow 2.8s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.25); }
}

.why-visual-card.card-main p {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
}

.why-visual-card.card-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.why-visual-card.card-side i {
  color: #4f46e5;
  font-size: 1.1rem;
}

.why-visual-card.card-side strong {
  display: block;
  color: #0f172a;
}

.why-visual-card.card-side small {
  color: #64748b;
}

.hero-float-badge {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #f1f5f9;
  z-index: 10;
  white-space: nowrap;
}

.hero-float-badge.badge-bottom {
  bottom: -18px;
  left: -20px;
}

.hero-float-badge.badge-top {
  top: -18px;
  right: -18px;
  background: linear-gradient(135deg, #5046e5, #764ba2);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(80, 70, 229, 0.3);
}

.badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

/* ── Board Trust Strip ────────────────────────────────────── */
.trust-strip {
  padding: 1.6rem 0;
  background: white;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.trust-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

.board-chips-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.28rem 0.7rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.18s ease;
}

.board-chip:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4338ca;
  transform: translateY(-1px);
}

.board-chip i {
  color: #5046e5;
  font-size: 0.82rem;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.step-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(80, 70, 229, 0.1) !important;
  border-color: #c7d2fe;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 22px rgba(80, 70, 229, 0.28);
}

.step-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.step-card p {
  color: #64748b;
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.7;
}

.step-card-arrow {
  position: absolute;
  top: 2.6rem;
  right: -18px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5046e5;
  font-size: 0.9rem;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Section Header Utility ───────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5046e5;
  margin-bottom: 0.75rem;
  padding: 0.22rem 0.85rem;
  background: rgba(80, 70, 229, 0.08);
  border-radius: 999px;
}

.section-h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── Enhanced Value Icon Colors ───────────────────────────── */
.vi-purple { background: rgba(80, 70, 229, 0.1); color: #5046e5; }
.vi-blue   { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.vi-green  { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.vi-amber  { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.vi-red    { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.vi-teal   { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.3rem;
}

/* ── Testimonial Cards SaaS ───────────────────────────────── */
.testimonial-card-saas {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.7rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.testimonial-card-saas::before {
  content: '\201C';
  position: absolute;
  top: 0.9rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: #f1f5f9;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card-saas:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(80, 70, 229, 0.1);
  border-color: #c7d2fe;
}

.tc-stars {
  display: flex;
  gap: 0.18rem;
  margin-bottom: 0.85rem;
}

.tc-stars i { color: #f59e0b; font-size: 0.88rem; }

.tc-text {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 1.3rem;
  position: relative;
  z-index: 1;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  flex-shrink: 0;
}

.tc-avatar.av1 { background: linear-gradient(135deg, #5046e5, #764ba2); }
.tc-avatar.av2 { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.tc-avatar.av3 { background: linear-gradient(135deg, #10b981, #059669); }

.tc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.2;
}

.tc-role {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pricing-col {
  position: relative;
}

.pricing-col.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #5046e5 0%, #764ba2 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 5;
  white-space: nowrap;
}

.price-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card.featured {
  border-color: #5046e5;
  box-shadow: 0 0 0 4px rgba(80, 70, 229, 0.08);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(80, 70, 229, 0.11);
}

.price-plan {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5046e5;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.price-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.price-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.price-feature-list li i {
  color: #10b981;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.price-feature-list li.muted {
  color: #94a3b8;
  text-decoration: line-through;
}

.price-feature-list li.muted i {
  color: #cbd5e1;
}

/* ── Big Dark CTA Banner ──────────────────────────────────── */
.dark-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #12172a 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.dark-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(80, 70, 229, 0.2), transparent 55%),
    radial-gradient(circle at 82% 50%, rgba(118, 75, 162, 0.18), transparent 55%);
}

.dark-cta .container { position: relative; z-index: 1; }

.dark-cta-title {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  color: white;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.dark-cta-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0a00 !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.38);
  color: #1a0a00 !important;
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white !important;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  transform: translateY(-1px);
}

.dark-cta-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.dark-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

.dark-cta-trust-item i { color: #10b981; }

/* ── SaaS Footer ──────────────────────────────────────────── */
.footer-saas {
  background: linear-gradient(150deg, #0d1117 0%, #161d2e 70%, #1a2030 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #5046e5, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.fsocial {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8 !important;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.fsocial:hover {
  background: rgba(80, 70, 229, 0.28) !important;
  border-color: rgba(80, 70, 229, 0.5) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e2e8f0;
  margin-bottom: 1.1rem;
}

.flink {
  display: block;
  color: #64748b;
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 0.55rem;
  transition: color 0.2s ease;
}

.flink:hover {
  color: #a5b4fc !important;
  transform: none !important;
}

.fcontact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.87rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.fcontact-item i {
  color: #5046e5;
  font-size: 0.9rem;
  width: 16px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-hr {
  border-color: rgba(255, 255, 255, 0.06) !important;
  margin: 1.5rem 0 1.25rem;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}

.footer-bottom-bar a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-bar a:hover {
  color: #94a3b8 !important;
  transform: none !important;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

/* ── Responsive Adjustments ───────────────────────────────── */
@media (max-width: 1199px) {
  .hero-headline { font-size: 2.8rem; }
  .hero-learning-grid { grid-template-columns: 1fr; gap: 0.7rem; }
}

@media (max-width: 991px) {
  .saas-hero { padding: 3.5rem 0 2.5rem; }
  .hero-float-badge { display: none; }
  .step-card-arrow { display: none; }
  .hero-stats-strip { gap: 1rem; }
  .hero-headline { font-size: 2.4rem; }
  .hero-learning-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero-headline { font-size: 2.1rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary-hero, .btn-outline-hero { width: 100%; justify-content: center; }
  .trust-strip .d-flex { flex-direction: column; align-items: flex-start !important; gap: 0.75rem !important; }
  .dark-cta { padding: 3rem 0; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
  .hero-learning-grid { grid-template-columns: 1fr; }
  .logo-icon { animation-duration: 3.6s; }

  /* Mobile optimizations for lengthy homepage */
  .saas-hero { padding: 2.5rem 0 2rem; }
  .hero-headline { font-size: 1.8rem; line-height: 1.2; margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
  .hero-stats-strip { margin-top: 1.5rem; padding-top: 1.25rem; gap: 0.75rem; }
  .hero-learning-tile { min-height: 100px; padding: 0.8rem; }
  .hero-learning-tile h6 { font-size: 0.9rem; }
  .hero-learning-tile p { font-size: 0.78rem; }
  .hero-learning-tile i { width: 30px; height: 30px; font-size: 1rem; }

  /* Reduce section padding on mobile */
  .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  section.py-4, section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  /* Compact testimonials */
  .testimonial-card-saas { padding: 1rem; }
  .tc-text { font-size: 0.9rem; }
  .tc-name { font-size: 0.95rem; }
  .tc-role { font-size: 0.8rem; }

  /* Smaller footer on mobile */
  .footer-saas { padding: 2rem 0 1rem; }
  .footer-col-title { font-size: 1rem; margin-bottom: 0.75rem; }
  .flink { font-size: 0.9rem; }
  .fcontact-item { font-size: 0.85rem; }

  /* Hide some decorative elements on mobile to reduce length */
  .hero-headline::after { display: none; }
  .subject-ticker-wrap { display: none; }

  /* Mobile navbar optimizations */
  .navbar-brand-wrap { font-size: 1.1rem; gap: 0.3rem; }
  .brand-tagline { display: none; }
  .logo-icon { height: 40px !important; width: auto; }

  /* Mobile hero visual optimizations */
  .hero-visual-frame { margin-top: 1rem; }
  .hero-glass-panel { padding: 1rem; border-radius: 16px; }

  /* Mobile USP highlights optimization */
  .gradient-card-3d.attention-flash { padding: 1.5rem !important; }
  .gradient-card-3d.attention-flash h3 { font-size: 1.1rem; }
  .gradient-card-3d.attention-flash p { font-size: 0.9rem; }

  /* Mobile dark CTA optimization */
  .dark-cta-title { font-size: 1.5rem; }
  .dark-cta-sub { font-size: 1rem; }
}

@media (max-width: 575px) {
  /* Extra small screens */
  .hero-headline { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }
  .btn-primary-hero, .btn-outline-hero { font-size: 0.9rem; padding: 0.7rem 1.5rem; }
  .hero-stats-strip { flex-direction: column; align-items: center; gap: 0.5rem; }
  .hstat { min-width: auto; }
  .hero-learning-tile { min-height: 80px; padding: 0.6rem; }
  .hero-learning-tile h6 { font-size: 0.85rem; }
  .hero-learning-tile p { font-size: 0.75rem; }
  .testimonial-card-saas { padding: 0.8rem; }
  .tc-text { font-size: 0.85rem; }

  /* Prevent horizontal scroll */
  body { overflow-x: hidden; }
  .container { padding-left: 15px; padding-right: 15px; }
}
}
}
}
}

/* ====================================================================
   PREMIUM MOTION BOOST (POP + HIGHLIGHT + FLASH)
   ==================================================================== */

/* Headline marker effect for stronger first impression */
.hero-headline {
  position: relative;
}

.hero-headline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 180px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.26), rgba(80, 70, 229, 0.2));
  filter: blur(0.1px);
}

/* More premium pop for primary blocks */
.hero-glass-panel,
.step-card,
.value-card,
.metric-card,
.testimonial-card-saas {
  position: relative;
  overflow: hidden;
}

.hero-glass-panel::before,
.step-card::before,
.value-card::before,
.metric-card::before,
.testimonial-card-saas::after {
  content: '';
  position: absolute;
  top: -110%;
  left: -120%;
  width: 120%;
  height: 280%;
  background: linear-gradient(110deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.38) 45%,
    rgba(255, 255, 255, 0) 75%);
  transform: rotate(16deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.hero-glass-panel:hover::before,
.step-card:hover::before,
.value-card:hover::before,
.metric-card:hover::before,
.testimonial-card-saas:hover::after {
  left: 145%;
}

/* Popping interactions */
.step-card:hover,
.value-card:hover,
.metric-card:hover,
.testimonial-card-saas:hover {
  transform: translateY(-8px) scale(1.01);
}

.hero-float-badge {
  animation: popFloat 4.2s ease-in-out infinite;
}

.hero-float-badge.badge-top {
  animation-delay: 0.9s;
}

@keyframes popFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.02); }
}

/* Highlighters and flash accents */
.section-eyebrow,
.hero-eyebrow {
  position: relative;
  box-shadow: 0 0 0 1px rgba(80, 70, 229, 0.1), 0 8px 26px rgba(80, 70, 229, 0.12);
}

.section-eyebrow::after,
.hero-eyebrow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0) 100%);
  transform: translateX(-130%);
  animation: eyebrowFlash 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes eyebrowFlash {
  0%, 65% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* CTA buttons: stronger glow and click presence */
.btn-primary-hero,
.btn-amber {
  box-shadow: 0 12px 30px rgba(80, 70, 229, 0.3);
}

.btn-primary-hero:active,
.btn-amber:active,
.btn-outline-hero:active,
.btn-ghost-white:active {
  transform: translateY(0) scale(0.98);
}

/* Subtle animated highlight around dark CTA */
.dark-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 95%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0));
  transform: skewX(-18deg);
  animation: ctaSweep 6.5s linear infinite;
  pointer-events: none;
}

@keyframes ctaSweep {
  0% { left: -130%; }
  100% { left: 160%; }
}

/* Trust chips pop a little more */
.board-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.board-chip:hover {
  box-shadow: 0 8px 20px rgba(80, 70, 229, 0.16);
}

/* Respect reduced motion users */
@media print, (prefers-reduced-motion: reduce) {
  .hero-float-badge,
  .hero-glass-panel::before,
  .step-card::before,
  .value-card::before,
  .metric-card::before,
  .testimonial-card-saas::after,
  .section-eyebrow::after,
  .hero-eyebrow::after,
  .dark-cta::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-learning-tile,
  .hero-learning-tile::after,
  .wvc-progress span,
  .logo-icon,
  .logo-shell::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Dashboard and courses 3D refinements */
.dashboard-shell .table-responsive {
  border-radius: 12px;
}

.dashboard-shell .card,
.courses-page .card,
.courses-page .syllabus-detail-panel {
  will-change: transform;
}

/* Keep interactions smooth and battery-friendly on small screens */
@media (max-width: 991.98px) {
  .card-3d,
  .gradient-card-3d,
  .depth-layer,
  .rotate-3d,
  .rotate-3d-slow,
  .stagger-item {
    animation-duration: 0.35s !important;
  }

  .card-3d:hover,
  .gradient-card-3d:hover,
  .hover-card:hover,
  .btn-3d:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.16) !important;
  }
}

@media (max-width: 575.98px) {
  .section-3d-bg::before {
    transform: none;
  }

  .card-3d,
  .gradient-card-3d,
  .depth-shadow {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  }
}

@media print, (prefers-reduced-motion: reduce) {
  .card-3d,
  .gradient-card-3d,
  .depth-layer,
  .rotate-3d,
  .rotate-3d-slow,
  .stagger-item,
  .glow-effect,
  .morph-shape,
  .float-anim,
  .icon-3d,
  .section-3d-bg::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}