/*
  Updated landing page styling for "Online Class Helpers"
  (Based on TemplateMo 588 Ebook Landing structure, heavily customized)
*/

:root {
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  --bg: #ffffff;
  --bg-alt: #f6f9ff;
  --text: #0f172a;
  --muted: #5b6476;
  --border: rgba(15, 23, 42, 0.10);

  --primary: #1a73e8;
  --primary-2: #00b894;
  --primary-dark: #165ec0;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.14);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --nav-height: 78px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

main section {
  scroll-margin-top: calc(var(--nav-height) + 14px);
}

::selection {
  background: rgba(26, 115, 232, 0.22);
}

/* Utilities */
.section-padding {
  padding: 90px 0;
}

.section-alt {
  position: relative;
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(26, 115, 232, 0.10), transparent 60%),
    radial-gradient(900px 600px at 88% 22%, rgba(0, 184, 148, 0.08), transparent 58%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.section-alt::before {
  display: none;
}

/* Local background image overlay for specific "grey" sections */
.section-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 249, 255, 0.90) 0%, rgba(246, 249, 255, 0.90) 100%),
    url("../images/1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}

.section-alt::after {
  display: none;
}

.section-alt > .container {
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
  margin-bottom: 10px;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 60ch;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 9999;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Navbar */
.navbar-custom {
  padding: 10px 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.navbar-custom.scrolled .navbar-brand {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(26, 115, 232, 0.25);
}

.brand-mark--sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.brand-logo--default {
  display: block;
}

.brand-logo--scrolled {
  display: none;
}

.navbar-custom.scrolled .brand-logo--default {
  display: none;
}

.navbar-custom.scrolled .brand-logo--scrolled {
  display: block;
}

.brand-logo--sm {
  height: 60px;
  width: auto;
  max-width: 180px;
  margin-bottom: 20px;
}

.navbar-custom .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  border-radius: 12px;
}

.navbar-custom.scrolled .nav-link {
  color: rgba(15, 23, 42, 0.78);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link:focus {
  color: var(--text);
  background: rgba(26, 115, 232, 0.08);
}

.navbar-custom .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
}

.navbar-custom.scrolled .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.18);
}

/* Buttons */
.btn-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 0;
  color: #ffffff;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(26, 115, 232, 0.22);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(26, 115, 232, 0.28);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-radius: 14px;
  font-weight: 700;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 70px;
  background:
    radial-gradient(700px 500px at 85% 20%, rgba(0, 184, 148, 0.25), transparent 65%),
    radial-gradient(700px 500px at 15% 15%, rgba(26, 115, 232, 0.35), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
  color: #ffffff;
}

.hero-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.80);
  max-width: 60ch;
  font-size: 1.06rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.starting-price {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
}

.trust-badge i {
  color: rgba(255, 255, 255, 0.95);
}

.hero-trust {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.trust-item i {
  color: rgba(255, 255, 255, 0.95);
}

.hero-media {
  position: relative;
}

.hero-image {
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Videos should behave like images in layouts */
.hero-media video,
.media-frame video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.about-video {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  position: absolute;
  left: 18px;
  bottom: -18px;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  width: min(420px, calc(100% - 36px));
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-card .text-muted {
  color: rgba(15, 23, 42, 0.68) !important;
}

.hero-card:hover,
.hero-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  outline: none;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* Trust strip */
.trust-strip {
  margin-top: -30px;
  padding: 0 0 40px;
}

.trust-strip-inner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.trust-strip-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.90);
}

.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  align-items: center;
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
}

.trust-strip-item i {
  color: var(--primary);
}

/* Cards */
.feature-card,
.service-card,
.stat-card,
.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  height: 100%;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  position: relative;
  isolation: isolate;
}

.feature-card:hover,
.service-card:hover,
.stat-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.feature-icon,
.service-icon,
.stat-icon,
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 115, 232, 0.10);
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.2rem;
  transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
  position: relative;
}

.feature-icon i,
.service-icon i,
.stat-icon i,
.step-icon i {
  transition: transform 300ms ease;
  transform-origin: center;
  animation: iconPulse 7s ease-in-out infinite;
}

/* Stagger icon pulse subtly */
.feature-card:nth-child(3n + 1) .feature-icon i,
.service-card:nth-child(3n + 1) .service-icon i,
.stat-card:nth-child(3n + 1) .stat-icon i,
.step-card:nth-child(3n + 1) .step-icon i {
  animation-delay: 0.8s;
}

.feature-card:nth-child(3n + 2) .feature-icon i,
.service-card:nth-child(3n + 2) .service-icon i,
.stat-card:nth-child(3n + 2) .stat-icon i,
.step-card:nth-child(3n + 2) .step-icon i {
  animation-delay: 1.6s;
}

.feature-card:nth-child(3n + 3) .feature-icon i,
.service-card:nth-child(3n + 3) .service-icon i,
.stat-card:nth-child(3n + 3) .stat-icon i,
.step-card:nth-child(3n + 3) .step-icon i {
  animation-delay: 2.4s;
}

.feature-card:hover .feature-icon,
.service-card:hover .service-icon,
.stat-card:hover .stat-icon,
.step-card:hover .step-icon,
.feature-card.is-highlighted .feature-icon,
.service-card.is-highlighted .service-icon,
.stat-card.is-highlighted .stat-icon,
.step-card.is-highlighted .step-icon {
  box-shadow: 0 16px 40px rgba(26, 115, 232, 0.18);
  background: rgba(26, 115, 232, 0.13);
}

.feature-card:hover .feature-icon i,
.service-card:hover .service-icon i,
.stat-card:hover .stat-icon i,
.step-card:hover .step-icon i {
  transform: scale(1.1);
}

/* Premium animated gradient border (hover + auto-highlight) */
.feature-card::before,
.service-card::before,
.stat-card::before,
.step-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2), var(--primary));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: -1;
  filter: saturate(1.05);
  animation: borderFlow 10s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.feature-card:hover::before,
.service-card:hover::before,
.stat-card:hover::before,
.step-card:hover::before,
.feature-card.is-highlighted::before,
.service-card.is-highlighted::before,
.stat-card.is-highlighted::before,
.step-card.is-highlighted::before {
  opacity: 1;
}

.feature-card.is-highlighted,
.service-card.is-highlighted,
.stat-card.is-highlighted,
.step-card.is-highlighted {
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iconPulse {
  0%, 86%, 100% { transform: scale(1); }
  90% { transform: scale(1.06); }
  94% { transform: scale(1); }
}

.service-card--cta {
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.08), rgba(0, 184, 148, 0.08));
}

/* About */
.media-frame img {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: grid;
  gap: 10px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
}

.checklist i {
  color: var(--primary-2);
  margin-right: 10px;
}

/* Subjects */
.subjects-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Subjects (premium expertise cards) */
.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  position: relative;
  isolation: isolate;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.subject-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(120deg, rgba(26, 115, 232, 0.55), rgba(0, 184, 148, 0.45), rgba(26, 115, 232, 0.55));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: -1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.subject-card:hover,
.subject-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.subject-card:hover::before,
.subject-card:focus-visible::before {
  opacity: 1;
}

.subject-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 115, 232, 0.10);
  color: var(--primary);
  box-shadow: 0 16px 40px rgba(26, 115, 232, 0.10);
  margin-bottom: 12px;
  transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.subject-card:hover .subject-card-icon,
.subject-card:focus-visible .subject-card-icon {
  background: rgba(26, 115, 232, 0.13);
  box-shadow: 0 18px 48px rgba(26, 115, 232, 0.16);
  transform: scale(1.06);
}

.subject-card-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
  margin-bottom: 6px;
}

.subject-card-sub {
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 12px;
}

.subject-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--primary);
}

.subject-card-cta i {
  transition: transform 300ms ease;
}

.subject-card:hover .subject-card-cta i,
.subject-card:focus-visible .subject-card-cta i {
  transform: translateX(2px);
}

.subjects-more-text {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.subjects-actions .btn {
  min-width: 220px;
}

.subjects-modal {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.subjects-modal .modal-header {
  border-bottom: 1px solid var(--border);
}

.subjects-modal .modal-footer {
  border-top: 1px solid var(--border);
}

.subject-chip {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.80);
  font-weight: 750;
  text-align: center;
}

.subject-chip:hover {
  border-color: rgba(26, 115, 232, 0.28);
  background: rgba(26, 115, 232, 0.06);
}

/* Stats */
.stat-number {
  font-weight: 900;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

/* Steps */
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.step-number {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.18);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

/* Testimonials */
.carousel-fade .carousel-item {
  transition: opacity 0.4s ease;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  max-width: 780px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.stars {
  color: #ffc107;
  margin-bottom: 10px;
}

/* Testimonials (premium SaaS-style) */
.testimonials-premium {
  background:
    radial-gradient(700px 500px at 10% 20%, rgba(26, 115, 232, 0.08), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(0, 184, 148, 0.06), transparent 55%);
}

.trust-stat-bar {
  margin-top: 8px;
  margin-bottom: 18px;
}

.trust-stat-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(180%) blur(10px);
}

.trust-stat-stars {
  color: #ffc107;
  display: inline-flex;
  gap: 2px;
}

.trust-stat-text {
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
}

.featured-testimonial-wrap {
  margin-top: 8px;
  margin-bottom: 18px;
}

.featured-testimonial {
  position: relative;
  max-width: 980px;
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: saturate(180%) blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.featured-testimonial::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(120deg, rgba(26, 115, 232, 0.60), rgba(0, 184, 148, 0.55), rgba(26, 115, 232, 0.60));
  background-size: 240% 240%;
  opacity: 0.85;
  filter: blur(0.2px);
  z-index: -1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.featured-testimonial::after {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(26, 115, 232, 0.20), transparent 60%);
  filter: blur(0.4px);
  pointer-events: none;
  z-index: 0;
}

.featured-content-wrap {
  transition: opacity 0.4s ease;
}

.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.featured-badges {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-grade {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.featured-quote {
  position: relative;
  z-index: 2;
  margin: 16px 0 18px;
  font-size: 1.18rem;
  line-height: 1.65;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.86);
}

.featured-quote::before {
  content: "“";
  position: absolute;
  left: -10px;
  top: -38px;
  font-size: 140px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.06);
  font-weight: 900;
  pointer-events: none;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
  margin: 0;
}

.featured-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.featured-sub {
  font-weight: 700;
}

.uni-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.82);
  font-weight: 800;
  white-space: nowrap;
}

.uni-badge i {
  color: var(--primary);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-marquee {
  position: relative;
  border-radius: 22px;
  padding: 10px 0;
  overflow-x: hidden;
  overflow-y: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  scrollbar-width: none;
}

.review-marquee.is-paused .review-track {
  animation-play-state: paused;
}

.review-marquee::-webkit-scrollbar {
  display: none;
}

.review-track {
  display: flex;
  gap: 14px;
  padding: 6px 2px;
  will-change: transform;
}

.review-marquee[data-marquee-animated] .review-track {
  animation: marquee-scroll 35s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .review-marquee[data-marquee-animated] .review-track {
    animation: none;
  }
}

.review-card {
  flex: 0 0 340px;
  border-radius: 20px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  position: relative;
  isolation: isolate;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(120deg, rgba(26, 115, 232, 0.55), rgba(0, 184, 148, 0.45), rgba(26, 115, 232, 0.55));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: -1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.review-card:hover::before {
  opacity: 1;
}

.review-stars {
  color: #ffc107;
  display: inline-flex;
  gap: 2px;
  margin-bottom: 10px;
}

.review-text {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 700;
  line-height: 1.55;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.review-sub {
  font-weight: 700;
}

.social-proof-line {
  color: rgba(15, 23, 42, 0.68);
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 991px) {
  .featured-testimonial {
    padding: 18px;
  }

  .featured-quote {
    font-size: 1.05rem;
  }

  .review-marquee {
    overflow-x: hidden;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
    padding-bottom: 14px;
  }

  .review-marquee::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 86%;
  }
}

/* Contact */
.section-contact {
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(26, 115, 232, 0.55), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(0, 184, 148, 0.35), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
}

.quote-form {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: saturate(180%) blur(10px);
}

.quote-form .form-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.quote-form .form-control,
.quote-form .form-select {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.95);
}

.quote-form .form-text {
  color: rgba(255, 255, 255, 0.72);
}

.consent-check .form-check-input {
  border-color: rgba(255, 255, 255, 0.30);
}

.policy-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy-link:hover,
.policy-link:focus {
  color: #ffffff;
}

.micro-trust {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  margin-bottom: 6px;
}

.micro-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.micro-trust-item i {
  color: rgba(255, 255, 255, 0.95);
}

.contact-panel {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(10px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-ic,
.guarantee-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.contact-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  color: #ffffff;
  text-decoration: underline;
}

.divider-soft {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 18px 0;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
}

.chip-link:hover,
.chip-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

/* CTA band */
.cta-inline-inner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.cta-inline-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-inline-sub {
  font-weight: 600;
}

/* Accordion */
.accordion-premium .accordion-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.accordion-premium .accordion-item + .accordion-item {
  margin-top: 12px;
}

.accordion-premium .accordion-button {
  font-weight: 800;
  padding: 16px 18px;
}

.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--text);
  background: rgba(26, 115, 232, 0.08);
}

.accordion-premium .accordion-body {
  color: rgba(15, 23, 42, 0.78);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.78);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}

.social-btn:hover,
.social-btn:focus {
  color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.footer-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(15, 23, 42, 0.74);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 18px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border);
  z-index: 998;
}

/* Floating chat button */
.chat-fab {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 92px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #12b886);
  box-shadow: 0 18px 40px rgba(18, 184, 134, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 999;
  animation: chatFabBounce 1.9s ease-in-out infinite;
  will-change: transform;
}

.chat-fab:hover,
.chat-fab:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(18, 184, 134, 0.42);
  animation-play-state: paused;
}

@keyframes chatFabBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  55% { transform: translateY(0); }
  70% { transform: translateY(-4px); }
  85% { transform: translateY(0); }
}

.chat-fab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-accent:hover, .btn-accent:focus { transform: none; }
  .feature-card:hover, .service-card:hover, .stat-card:hover, .step-card:hover { transform: none; }
  .feature-card::before, .service-card::before, .stat-card::before, .step-card::before { animation: none; }
  .feature-icon i, .service-icon i, .stat-icon i, .step-icon i { animation: none; }
  .chat-fab { animation: none; }
  .chat-fab:hover, .chat-fab:focus { transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
  :root { --nav-height: 74px; }
  .section-padding { padding: 70px 0; }
  .hero { padding-bottom: 50px; }
  .hero-card { position: static; margin-top: 14px; width: 100%; }
  body { padding-bottom: 86px; }
  .back-to-top { bottom: 96px; }

  .navbar-custom {
    background: rgba(11, 18, 32, 0.94);
    backdrop-filter: saturate(180%) blur(10px);
  }

  .navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.95);
  }

  .navbar-custom .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .navbar-custom:not(.scrolled) .navbar-collapse {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .navbar-custom.scrolled .navbar-collapse {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border);
  }
}

@media (max-width: 575px) {
  .section-padding { padding: 60px 0; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1.0rem; }
  .testimonial-card { padding: 18px; }
  .cta-inline-inner { padding: 14px; }
}

/* Mobile: horizontal scroll + snap for card grids (no carousel) */
@media (max-width: 767.98px) {
  #services .row.g-3.g-lg-4,
  #results .row.g-3.g-lg-4,
  #how-it-works .row.g-3.g-lg-4 {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    margin-bottom: -6px;
    scrollbar-width: none;
  }

  #services .row.g-3.g-lg-4::-webkit-scrollbar,
  #results .row.g-3.g-lg-4::-webkit-scrollbar,
  #how-it-works .row.g-3.g-lg-4::-webkit-scrollbar {
    display: none;
  }

  #services .row.g-3.g-lg-4 > [class*="col-"],
  #results .row.g-3.g-lg-4 > [class*="col-"],
  #how-it-works .row.g-3.g-lg-4 > [class*="col-"] {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }
}

