:root {
  --bg: #060f18;
  --surface: #0f1f33;
  --border: rgba(255,255,255,0.08);
  --text: #f5f6fa;
  --text-muted: #93a1b5;
  --violet: #fb9806;
  --cyan: #fcb751;
  --navy-glow: #2c6ca0;
  --gradient: linear-gradient(135deg, var(--violet), var(--cyan));
  --font-display: 'Hind Siliguri', sans-serif;
  --font-body: 'Hind Siliguri', 'Inter', sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
body:not(.is-hero-page) .site-header {
  position: sticky;
  top: 0;
  background: rgba(5,6,10,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.custom-logo {
  height: 44px; width: auto; display: block; flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(251,152,6,0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.site-logo:hover .custom-logo { transform: scale(1.06); filter: drop-shadow(0 6px 18px rgba(251,152,6,0.55)); }
.site-logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #05060a; font-weight: 700;
}
.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; }
.nav-menu a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  position: relative; overflow: hidden;
  background: var(--gradient); color: #05060a;
  box-shadow: 0 8px 30px -8px rgba(251,152,6,0.6), 0 0 0 1px rgba(251,152,6,0.15);
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -6px rgba(251,152,6,0.75), 0 0 0 1px rgba(251,152,6,0.25); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.03); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.btn--ghost:hover { background: rgba(251,152,6,0.08); border-color: rgba(251,152,6,0.35); transform: translateY(-2px); }

/* Hero - zero scroll, exactly one viewport */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 2rem;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: bm-float 16s ease-in-out infinite; }
.hero__blob--1 { width: 38vw; height: 38vw; background: var(--violet); top: -10%; left: -8%; }
.hero__blob--2 { width: 34vw; height: 34vw; background: var(--navy-glow); bottom: -14%; right: -6%; opacity: 0.6; animation-delay: -8s; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 72%);
}
@keyframes bm-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.08); }
}

.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem;
}
.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  text-align: left;
  animation: bm-hero-in 0.8s ease both;
}
.hero__stage {
  position: relative; z-index: 1; height: 420px;
  display: flex; align-items: center; justify-content: center;
  animation: bm-hero-in 1s ease both;
  animation-delay: 0.15s;
}
.hero__orb {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(251,152,6,0.4), rgba(44,108,160,0.32) 55%, transparent 75%);
  filter: blur(28px);
  animation: bm-orb-pulse 6s ease-in-out infinite;
}
@keyframes bm-orb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.hero__stage-logo {
  position: relative; z-index: 2; width: 190px; height: 190px; object-fit: contain;
  filter: drop-shadow(0 22px 45px rgba(0,0,0,0.55)) drop-shadow(0 0 40px rgba(251,152,6,0.22));
  animation: bm-logo-float 5s ease-in-out infinite;
}
@keyframes bm-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero__float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: 14px;
  background: rgba(15,31,51,0.7); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.6);
  animation: bm-card-float 6s ease-in-out infinite;
}
.hero__float span:first-child { font-size: 1.05rem; line-height: 1; }
.hero__float--1 { top: 4%; left: 2%; animation-delay: 0s; }
.hero__float--2 { bottom: 10%; right: 0%; animation-delay: -2s; }
.hero__float--3 { top: 56%; left: -6%; animation-delay: -4s; }
@keyframes bm-card-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes bm-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(251,152,6,0.28); background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem; color: var(--text-muted);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.hero__eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(251,152,6,0.22), 0 0 10px rgba(251,152,6,0.7);
  animation: bm-pulse 2.2s ease-in-out infinite;
}
@keyframes bm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.16; letter-spacing: -0.01em;
}
.hero__accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(251,152,6,0.35));
}
.hero__subhead { max-width: 620px; color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); }
.hero__badges span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.025); transition: border-color 0.2s ease, background 0.2s ease;
}
.hero__badges span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--cyan);
}
.hero__badges span:hover { border-color: rgba(251,152,6,0.35); background: rgba(255,255,255,0.05); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; margin-top: 0.5rem; }
.hero__foot { position: absolute; bottom: 1.25rem; left: 0; right: 0; z-index: 1; text-align: center; font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { display: none; }
  .hero__content { align-items: center; text-align: center; }
  .hero__badges, .hero__cta { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding: 5.5rem 1.25rem 1.5rem; }
  .hero__content { gap: 0.85rem; }
  .hero__foot { display: none; }
  .site-header__inner { padding: 1rem 1.25rem; }
  .nav-menu { gap: 1rem; }
  .custom-logo { height: 36px; }
  .site-logo { font-size: 1rem; gap: 0.5rem; }
}
@media (max-width: 380px) {
  .site-logo__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob, .hero__content { animation: none !important; }
}

/* Course archive */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 7.5rem 2rem 5rem; }
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.page-header p { color: var(--text-muted); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.75rem; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); border-color: rgba(251,152,6,0.4); }
.course-card__thumb { aspect-ratio: 16/9; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: rgba(5,6,10,0.7); font-size: 1.4rem; }
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.course-card__body h2 { font-family: var(--font-display); font-size: 1.15rem; }
.course-card__body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.course-card__link { font-weight: 600; font-size: 0.9rem; color: var(--cyan); }
.empty-state { text-align: center; color: var(--text-muted); padding: 4rem 1rem; }

/* Generic page/index */
.content-wrap { max-width: 800px; margin: 0 auto; padding: 7.5rem 2rem 5rem; }
.content-wrap h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.content-wrap article + article { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }

/* Student dashboard */
.dashboard-wrap { padding-top: 7.5rem; }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.dashboard-header h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
.dashboard-header p { color: var(--text-muted); }
.dashboard-header__stats { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dashboard-points {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid rgba(251,152,6,0.3); border-radius: 999px;
  padding: 0.6rem 1.1rem;
}
.dashboard-points__icon { font-size: 1.1rem; }
.dashboard-points__value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--violet); }
.dashboard-points__label { font-size: 0.82rem; color: var(--text-muted); }
.dashboard-leaderboard-link { white-space: nowrap; }

/* Leaderboard */
.leaderboard-table { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.leaderboard-row {
  display: grid; grid-template-columns: 50px 1fr 120px 90px; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.leaderboard-row--head { background: transparent; border: none; color: var(--text-muted); font-size: 0.82rem; padding: 0 1.25rem; }
.leaderboard-row--me { border-color: rgba(251,152,6,0.5); background: rgba(251,152,6,0.06); }
.leaderboard-rank { font-weight: 700; font-size: 1.05rem; text-align: center; }
.leaderboard-name { font-weight: 600; }
.leaderboard-you { color: var(--violet); font-weight: 600; font-size: 0.85rem; }
.leaderboard-watch { color: var(--text-muted); font-size: 0.9rem; }
.leaderboard-points { font-family: var(--font-display); font-weight: 700; color: var(--violet); text-align: right; }
.leaderboard-back { margin-top: 1.5rem; }
.leaderboard-back a { color: var(--text-muted); }
.leaderboard-back a:hover { color: var(--text); }

@media (max-width: 640px) {
  .dashboard-header { flex-direction: column; }
  .leaderboard-row, .leaderboard-row--head { grid-template-columns: 36px 1fr 70px; }
  .leaderboard-watch { display: none; }
}

.dashboard-courses { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.dashboard-course {
  display: flex; gap: 1.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: border-color 0.2s;
}
.dashboard-course:hover { border-color: rgba(251,152,6,0.35); }
.dashboard-course__thumb {
  width: 140px; height: 90px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: rgba(5,6,10,0.7);
}
.dashboard-course__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-course__body { flex: 1; min-width: 0; }
.dashboard-course__body h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.6rem; }
.dashboard-progress { margin-bottom: 1rem; }
.dashboard-progress__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 0.4rem; }
.dashboard-progress__bar span { display: block; height: 100%; background: var(--gradient); border-radius: 3px; }
.dashboard-progress__label { font-size: 0.82rem; color: var(--text-muted); }

.dashboard-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 3rem; }
.dashboard-empty p { margin-bottom: 1.25rem; }

.dashboard-more h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .dashboard-course { flex-direction: column; align-items: stretch; }
  .dashboard-course__thumb { width: 100%; height: 140px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Academy LMS single-course page (plugin-owned markup, theme-styled) */
.lms-course-page { max-width: 900px; margin: 0 auto; padding: 7.5rem 2rem 5rem; }
.lms-course-hero { text-align: center; margin-bottom: 3rem; }
.lms-course-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.lms-course-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.lms-course-description { color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.7; }
.lms-btn { display: inline-flex; align-items: center; padding: 0.85rem 1.75rem; border-radius: 999px; font-weight: 600; }
.lms-btn-start { background: var(--gradient); color: #05060a; }
.lms-course-curriculum { display: flex; flex-direction: column; gap: 1.25rem; }
.lms-module { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lms-module-header { padding: 1rem 1.5rem; font-weight: 600; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.lms-lesson-item { display: flex; justify-content: space-between; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--border); color: var(--text-muted); transition: background 0.2s, color 0.2s; }
.lms-lesson-item:last-child { border-bottom: none; }
.lms-lesson-item:hover, .lms-lesson-item.current { background: rgba(251,152,6,0.08); color: var(--text); }
/* Auth (signup/login) */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 7.5rem 1.5rem 4rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.5rem; text-align: center; }
.auth-sub { color: var(--text-muted); font-size: 0.92rem; text-align: center; margin-bottom: 1.75rem; }
.auth-error { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); color: #ffb3b3; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.88rem; margin-bottom: 1.25rem; }
.auth-success { background: rgba(56,193,114,0.12); border: 1px solid rgba(56,193,114,0.4); color: #8fe6ae; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.88rem; margin-bottom: 1.25rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-top: -0.35rem; flex-wrap: wrap; gap: 0.5rem; }
.auth-row a { color: var(--cyan); }
.auth-checkbox { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.auth-checkbox input { width: auto; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--text-muted); }
.auth-form input { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; }
.auth-form input:focus { outline: none; border-color: var(--violet); }
.auth-submit { margin-top: 0.5rem; width: 100%; justify-content: center; border: none; cursor: pointer; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch a { color: var(--cyan); font-weight: 600; }
