:root {
  --shb-primary: #7c3aed;
  --shb-primary-dark: #4f46e5;
  --shb-ink: #14121f;
  --shb-ink-soft: #4b4557;
  --shb-bg: #fbfaff;
  --shb-surface: #ffffff;
  --shb-border: #ece8f7;
  --shb-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --shb-gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --shb-gradient-3: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --shb-gradient-4: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --shb-gradient-5: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --shb-gradient-6: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --shb-shadow-soft: 0 8px 30px rgba(76, 29, 149, 0.08);
  --shb-shadow-hover: 0 20px 45px rgba(76, 29, 149, 0.16);
  --shb-radius-lg: 24px;
  --shb-radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--shb-ink);
  background: var(--shb-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: var(--shb-ink-soft); line-height: 1.7; }

.text-gradient {
  background: var(--shb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-gradient {
  background: var(--shb-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 10px 25px rgba(124, 58, 237, .35);
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(124, 58, 237, .45); }

.btn-outline-primary { border-color: var(--shb-primary); color: var(--shb-primary); border-radius: 12px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--shb-primary); border-color: var(--shb-primary); }

.btn-outline-light { border-radius: 12px; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shb-primary);
  margin-bottom: .5rem;
}

.letter-spacing-1 { letter-spacing: .1em; }

/* ============ NAVBAR ============ */
#mainNav {
  background: rgba(251, 250, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
  padding: .9rem 0;
}
#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--shb-border);
  box-shadow: 0 6px 24px rgba(20, 18, 31, .05);
  padding: .55rem 0;
}
.navbar-brand { color: var(--shb-ink) !important; font-size: 1.35rem; display: flex; align-items: center; gap: .55rem; }
.brand-logo { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(124, 58, 237, .35)); }
.brand-text { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.brand-text-light { font-weight: 500; opacity: .65; }
.brand-text-accent { background: var(--shb-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .brand-text-light { opacity: .55; }
.nav-link { color: var(--shb-ink-soft) !important; font-weight: 600; font-size: .95rem; padding: .5rem 1rem !important; }
.nav-link:hover, .nav-link.active { color: var(--shb-primary) !important; }

/* ============ LANGUAGE SWITCHER ============ */
.btn-lang {
  border: 1px solid var(--shb-border); background: var(--shb-surface); color: var(--shb-ink-soft);
  border-radius: 999px; font-weight: 600; font-size: .88rem; padding: .4rem .9rem;
  display: flex; align-items: center; gap: .4rem;
}
.btn-lang:hover { border-color: var(--shb-primary); color: var(--shb-primary); }
.lang-switcher .dropdown-menu { border-radius: 14px; border-color: var(--shb-border); box-shadow: var(--shb-shadow-hover); padding: .5rem; min-width: 160px; }
.lang-switcher .dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .8rem; }
.lang-switcher .dropdown-item:hover { background: #f1ecff; color: var(--shb-primary); }
.lang-switcher .dropdown-item.active-lang { background: var(--shb-gradient); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 0 6rem;
  background: radial-gradient(circle at 15% 20%, #f1ecff 0%, transparent 45%), var(--shb-bg);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  z-index: 0;
}
.hero-blob--1 { width: 420px; height: 420px; background: var(--shb-gradient); top: -140px; right: -120px; }
.hero-blob--2 { width: 320px; height: 320px; background: var(--shb-gradient-2); bottom: -120px; left: -100px; opacity: .25; }

.badge-soft {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #efe8ff; color: var(--shb-primary);
  font-weight: 600; font-size: .82rem;
  padding: .45rem .9rem; border-radius: 999px;
}

.hero-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.12; margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.08rem; max-width: 520px; }

.hero-trust { display: flex; }
.hero-trust strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--shb-ink); }
.hero-trust span { font-size: .82rem; color: var(--shb-ink-soft); }
.hero-trust > div > div { display: flex; align-items: baseline; gap: .3rem; }

/* ---- hero mockup ---- */
.hero-mock { position: relative; padding: 1rem 0; }
.hero-mock-card {
  background: var(--shb-surface);
  border-radius: var(--shb-radius-lg);
  box-shadow: var(--shb-shadow-hover);
  border: 1px solid var(--shb-border);
}
.hero-mock-card--main {
  padding: 1.4rem; transform: rotate(-1.2deg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--shb-surface), var(--shb-surface)) padding-box,
    linear-gradient(120deg, #7c3aed, #06b6d4, #4f46e5, #7c3aed) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: borderFlow 9s linear infinite;
}
.mock-topbar { display: flex; align-items: center; gap: .35rem; margin-bottom: 1.2rem; }
.mock-topbar span { width: 10px; height: 10px; border-radius: 50%; background: #e4dffb; }
.mock-topbar span:nth-child(1) { background: #f87171; }
.mock-topbar span:nth-child(2) { background: #fbbf24; }
.mock-topbar span:nth-child(3) { background: #34d399; }
.mock-title { margin-inline-start: .6rem; font-weight: 700; font-size: .85rem; color: var(--shb-ink-soft); }
.mock-stat-row { display: flex; gap: .7rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.mock-stat {
  flex: 1 1 30%;
  background: #faf9ff;
  border: 1px solid var(--shb-border);
  border-radius: 14px;
  padding: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.mock-stat i { font-size: 1.2rem; color: var(--shb-primary); }
.mock-stat strong { display: block; font-size: 1rem; }
.mock-stat span { font-size: .72rem; color: var(--shb-ink-soft); }
.mock-chart { display: flex; align-items: flex-end; gap: .5rem; height: 110px; }
.mock-chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: var(--shb-gradient);
  opacity: .85;
  animation: growBar 1.1s ease both;
}
@keyframes growBar { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.hero-mock-card--float {
  position: absolute;
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  animation: floatY 4s ease-in-out infinite;
}
.hero-mock-card--notif { top: -14px; right: 10px; }
.hero-mock-card--report { bottom: -18px; left: -10px; animation-delay: 1.2s; }
.hero-mock-card--float i { font-size: 1.3rem; color: var(--shb-primary); background: #efe8ff; padding: .5rem; border-radius: 10px; }
.hero-mock-card--float strong { display: block; font-size: .82rem; }
.hero-mock-card--float span { font-size: .72rem; color: var(--shb-ink-soft); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ LOGO STRIP ============ */
.logo-strip-items { color: var(--shb-ink-soft); font-weight: 600; }
.logo-strip-items span { display: inline-flex; align-items: center; gap: .5rem; opacity: .75; }
.logo-strip-items i { color: var(--shb-primary); }

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section-alt { background: #f6f3ff; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.section-heading { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ FEATURE CARDS ============ */
.feature-card {
  background: var(--shb-surface);
  border: 1px solid var(--shb-border);
  border-radius: var(--shb-radius-md);
  padding: 2rem 1.7rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shb-shadow-hover);
  border-color: transparent;
  background:
    linear-gradient(var(--shb-surface), var(--shb-surface)) padding-box,
    var(--shb-gradient) border-box;
  border: 1px solid transparent;
}
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem;
  transition: transform .3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.bg-grad-1 { background: var(--shb-gradient); }
.bg-grad-2 { background: var(--shb-gradient-2); }
.bg-grad-3 { background: var(--shb-gradient-3); }
.bg-grad-4 { background: var(--shb-gradient-4); }
.bg-grad-5 { background: var(--shb-gradient-5); }
.bg-grad-6 { background: var(--shb-gradient-6); }
.feature-card h5 { margin-bottom: .6rem; }
.feature-card p { font-size: .92rem; margin-bottom: 0; }

/* ============ ROLE TABS ============ */
.role-tabs .nav-link {
  border-radius: 999px; padding: .6rem 1.3rem; font-weight: 600;
  color: var(--shb-ink-soft); display: flex; align-items: center; gap: .5rem;
  background: var(--shb-surface); border: 1px solid var(--shb-border);
}
.role-tabs .nav-link.active { background: var(--shb-gradient); color: #fff; border-color: transparent; }
.role-tab-content { background: var(--shb-surface); border-radius: var(--shb-radius-lg); padding: 3rem; border: 1px solid var(--shb-border); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { position: relative; padding-inline-start: 2rem; margin-bottom: .9rem; color: var(--shb-ink-soft); font-weight: 500; }
.check-list li::before {
  content: "\F633"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: -1px;
  color: var(--shb-primary); font-size: 1.15rem;
}
.role-visual {
  aspect-ratio: 4/3; border-radius: var(--shb-radius-md);
  background: var(--shb-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; color: #fff; opacity: .92;
}
.role-visual--teacher { background: var(--shb-gradient-2); }
.role-visual--student { background: var(--shb-gradient-4); }
.role-visual--parent { background: var(--shb-gradient-5); }
.role-visual--owner { background: var(--shb-gradient-3); }

/* ============ PRICING ============ */
.price-card {
  background: var(--shb-surface); border: 1px solid var(--shb-border);
  border-radius: var(--shb-radius-lg); padding: 2.4rem 2rem; height: 100%;
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shb-shadow-soft); }
.price-card--featured {
  border: 2px solid transparent;
  border-radius: var(--shb-radius-lg);
  background:
    linear-gradient(var(--shb-surface), var(--shb-surface)) padding-box,
    linear-gradient(120deg, #7c3aed, #06b6d4, #4f46e5, #7c3aed) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: borderFlow 7s linear infinite;
  box-shadow: var(--shb-shadow-hover);
  transform: scale(1.03);
}
@keyframes borderFlow { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 100% 50%; } }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--shb-gradient); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .35rem 1rem; border-radius: 999px;
}
.price-card h5 { font-size: 1.1rem; color: var(--shb-ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.price { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 800; margin: .3rem 0 .6rem; }
.price span:first-child { font-size: 1.2rem; vertical-align: top; margin-right: 2px; }
.price span:last-child { font-size: 1rem; color: var(--shb-ink-soft); font-weight: 500; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  max-width: 680px; background: var(--shb-surface); border-radius: var(--shb-radius-lg);
  padding: 2.6rem; text-align: center; border: 1px solid var(--shb-border); box-shadow: var(--shb-shadow-soft);
}
.quote-icon { font-size: 2rem; color: var(--shb-primary); opacity: .5; }
.testimonial-card p { font-size: 1.15rem; color: var(--shb-ink); font-weight: 500; margin: 1rem 0 1.6rem; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.testimonial-author div:last-child { text-align: start; }
.testimonial-author strong { display: block; font-size: .92rem; }
.testimonial-author span { font-size: .8rem; color: var(--shb-ink-soft); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--shb-gradient);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--shb-border); padding: 0; cursor: pointer;
}
.carousel-dots button.active { background: var(--shb-primary); width: 22px; border-radius: 5px; transition: all .25s ease; }

/* ============ FAQ ============ */
.accordion-item { border: 1px solid var(--shb-border); border-radius: var(--shb-radius-md) !important; margin-bottom: 1rem; overflow: hidden; }
.accordion-button { font-weight: 700; background: var(--shb-surface); }
.accordion-button:not(.collapsed) { color: var(--shb-primary); background: #faf7ff; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--shb-border); }

/* ============ CTA BAND ============ */
.cta-band { background: var(--shb-gradient); color: #fff; padding: 5rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.cta-band .btn-light { font-weight: 700; border-radius: 12px; color: var(--shb-primary); }

/* ============ CONTACT ============ */
.contact-info { display: flex; flex-direction: column; gap: .9rem; }
.contact-info div { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--shb-ink-soft); }
.contact-info i { color: var(--shb-primary); font-size: 1.1rem; }
.contact-form { background: var(--shb-surface); border: 1px solid var(--shb-border); border-radius: var(--shb-radius-lg); padding: 2rem; box-shadow: var(--shb-shadow-soft); }
.contact-form .form-control { border-radius: 10px; border-color: var(--shb-border); padding: .65rem .9rem; }
.contact-form .form-control:focus { border-color: var(--shb-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.contact-form label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }

/* ============ FOOTER ============ */
.footer { background: #14121f; color: #cbc4dd; padding: 4.5rem 0 2rem; }
.footer .navbar-brand { color: #fff !important; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #a89fc4; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer hr { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; }
.footer input.form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer input.form-control::placeholder { color: #8378a0; }
.social-links { display: flex; gap: .8rem; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; color: #cbc4dd; text-decoration: none;
  transition: background .2s ease;
}
.social-links a:hover { background: var(--shb-gradient); color: #fff; }

/* ============ BACK TO TOP ============ */
#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--shb-gradient); color: #fff; font-size: 1.1rem;
  box-shadow: var(--shb-shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ SCROLL REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 4rem; }
  .role-tab-content { padding: 1.8rem; }
  #navMenu { background: var(--shb-surface); border-radius: 16px; padding: 1rem; margin-top: .8rem; box-shadow: var(--shb-shadow-soft); }
}

/* ============ WHATSAPP ============ */
.whatsapp-link {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .3rem;
  background: #25D366; color: #fff !important; font-weight: 700; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: 999px; width: fit-content;
  box-shadow: 0 10px 22px rgba(37, 211, 102, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-link:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 211, 102, .45); }
.whatsapp-link i { font-size: 1.2rem; }

#whatsappFab {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
  text-decoration: none;
}
#whatsappFab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .55;
  animation: pulseRing 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============ RTL SUPPORT ============ */
[dir="rtl"] .hero-blob--1 { right: auto; left: -120px; }
[dir="rtl"] .hero-blob--2 { left: auto; right: -100px; }
[dir="rtl"] .hero-mock-card--main { transform: rotate(1.2deg); }
[dir="rtl"] .hero-mock-card--notif { right: auto; left: 10px; }
[dir="rtl"] .hero-mock-card--report { left: auto; right: -10px; }
[dir="rtl"] .price span:first-child { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .dropdown-menu { text-align: right; }

/* ============ SCRIPT-SPECIFIC TYPOGRAPHY ============ */
html[data-lang="ar"] body,
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3,
html[data-lang="ar"] h4, html[data-lang="ar"] h5, html[data-lang="ar"] .brand-text,
html[data-lang="ar"] .btn, html[data-lang="ar"] .nav-link, html[data-lang="ar"] .eyebrow {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
  letter-spacing: normal;
}
html[data-lang="ur"] body,
html[data-lang="ur"] h1, html[data-lang="ur"] h2, html[data-lang="ur"] h3,
html[data-lang="ur"] h4, html[data-lang="ur"] h5, html[data-lang="ur"] .brand-text,
html[data-lang="ur"] .btn, html[data-lang="ur"] .nav-link, html[data-lang="ur"] .eyebrow {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
  letter-spacing: normal;
  line-height: 2;
}
html[data-lang="ur"] .hero-title, html[data-lang="ur"] .section-heading h2 { line-height: 2.1; }
html[data-lang="hi"] body,
html[data-lang="hi"] h1, html[data-lang="hi"] h2, html[data-lang="hi"] h3,
html[data-lang="hi"] h4, html[data-lang="hi"] h5, html[data-lang="hi"] .brand-text,
html[data-lang="hi"] .btn, html[data-lang="hi"] .nav-link, html[data-lang="hi"] .eyebrow {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  letter-spacing: normal;
}
html[data-lang="bn"] body,
html[data-lang="bn"] h1, html[data-lang="bn"] h2, html[data-lang="bn"] h3,
html[data-lang="bn"] h4, html[data-lang="bn"] h5, html[data-lang="bn"] .brand-text,
html[data-lang="bn"] .btn, html[data-lang="bn"] .nav-link, html[data-lang="bn"] .eyebrow {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  letter-spacing: normal;
}

@media (max-width: 575.98px) {
  #whatsappFab { width: 48px; height: 48px; font-size: 1.3rem; bottom: 18px; }
  #backToTop { width: 42px; height: 42px; bottom: 18px; }
}
