:root {
  --brand: #07106f;
  --brand-2: #111f91;
  --brand-3: #eef2ff;
  --blue-950: #04094f;
  --blue-900: #07106f;
  --blue-800: #0b1988;
  --blue-700: #1329a8;
  --blue-600: #1e3dcc;
  --blue-500: #3157e8;
  --blue-300: #9eb3ff;
  --blue-150: #dfe6ff;
  --blue-75: #f4f7ff;
  --ink: #07106f;
  --muted: #657099;
  --line: #dce2f3;
  --paper: #f4f7ff;
  --white: #ffffff;
  --gold: #f0b429;
  --shadow: 0 24px 60px rgba(7, 16, 111, 0.12);
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.night-mode {
  --ink: #f5f7ff;
  --muted: #b9c4ef;
  --line: rgba(158, 179, 255, 0.22);
  --paper: #070b2d;
  --white: #0b123c;
  --brand-3: #111b58;
  --surface: #0b123c;
  --surface-soft: #101a52;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(49, 87, 232, 0.24), transparent 28%),
    linear-gradient(180deg, #05082b 0, #081039 52%, #070b2d 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(7, 16, 111, 0.05), transparent 34%, rgba(49, 87, 232, 0.08)),
    linear-gradient(180deg, #ffffff 0, var(--paper) 46%, #ffffff 100%);
  background-size: 140% 140%, 100% 100%;
  animation: pageBlueDrift 18s ease-in-out infinite;
}

main {
  min-height: calc(100vh - 76px);
  animation: siteEnter 0.42s ease both;
}

body.page-leaving main,
body.page-leaving .floating-chatbot,
body.page-leaving .chat-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  filter: blur(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(7, 16, 111, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(7, 16, 111, 0.06);
}

body.night-mode .site-header {
  background: rgba(7, 11, 45, 0.82);
  border-bottom-color: rgba(158, 179, 255, 0.18);
}

body.night-mode .site-brand img {
  filter: brightness(1.18);
}

body.night-mode .site-nav {
  color: #dbe4ff;
}

body.night-mode .site-nav a.active {
  color: var(--blue-300);
}

.site-brand img {
  width: 220px;
  max-width: 40vw;
  height: 48px;
  object-fit: contain;
  display: block;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #2b347f;
  font-weight: 800;
}

.site-nav a {
  min-height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-nav a:hover {
  color: var(--blue-600);
  transform: translateY(-1px);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--blue-500);
}

.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.primary-link,
.secondary-link,
.lesson-card a,
.contact-form button {
  min-height: 44px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  font-weight: 900;
}

.theme-toggle,
.card-action,
.chat-form button,
.quick-prompts button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  font-weight: 900;
}

.theme-toggle {
  border: 1px solid var(--line);
  color: var(--brand);
  background: var(--brand-3);
}

body.night-mode .theme-toggle,
body.night-mode .secondary-link,
body.night-mode .lesson-card a,
body.night-mode .card-action {
  color: #f5f7ff;
}

body.night-mode .nav-cta,
body.night-mode .primary-link,
body.night-mode .contact-form button,
body.night-mode .chat-form button {
  color: #ffffff;
}

.nav-cta,
.primary-link,
.contact-form button {
  color: var(--white);
  background: var(--brand);
  border: 0;
  box-shadow: 0 12px 22px rgba(7, 16, 111, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.secondary-link,
.lesson-card a {
  color: var(--brand);
  background: var(--brand-3);
  transition: transform 0.22s ease, background 0.22s ease;
}

.nav-cta::before,
.primary-link::before,
.contact-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-120%);
  animation: buttonSheen 4.6s ease-in-out infinite;
}

.nav-cta:hover,
.primary-link:hover,
.contact-form button:hover,
.secondary-link:hover,
.lesson-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(7, 16, 111, 0.2);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(7, 16, 111, 0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(49, 87, 232, 0.05) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #ffffff 0, #eef2ff 48%, #d7e0ff 100%);
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: grid;
  animation: pageEnter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section.page-view.is-active {
  display: block;
}

.feature-strip.page-view.is-active,
.service-grid,
.package-grid,
.developer-row {
  display: grid;
}

.feature-strip.page-view:not(.is-active) {
  display: none;
}

body.night-mode .hero {
  background:
    repeating-linear-gradient(90deg, rgba(158, 179, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(49, 87, 232, 0.08) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #060a2f 0, #0b1550 54%, #111f91 100%);
}

body.night-mode .eyebrow {
  color: var(--blue-300);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 44%;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(49, 87, 232, 0.13) 22% 32%, transparent 32% 100%),
    linear-gradient(75deg, transparent 0 40%, rgba(7, 16, 111, 0.09) 40% 52%, transparent 52% 100%);
  animation: blueSweep 16s linear infinite;
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-blueprint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-blueprint span {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(7, 16, 111, 0.35), transparent);
  animation: blueprintLine 6s linear infinite;
}

.hero-blueprint span:nth-child(1) {
  top: 22%;
  left: -25%;
  width: 48%;
}

.hero-blueprint span:nth-child(2) {
  top: 42%;
  right: -30%;
  width: 58%;
  animation-delay: 1.2s;
}

.hero-blueprint span:nth-child(3) {
  top: 68%;
  left: -35%;
  width: 64%;
  animation-delay: 2.4s;
}

.hero-blueprint span:nth-child(4) {
  top: 82%;
  right: -20%;
  width: 42%;
  animation-delay: 3.2s;
}

.hero h1,
.section-title h2,
.split-section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  color: transparent;
  background: linear-gradient(100deg, var(--blue-950), var(--blue-700) 48%, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.night-mode .hero h1 {
  background: linear-gradient(100deg, #ffffff, var(--blue-300) 48%, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p,
.split-section p,
.contact-section p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.15s ease-out;
}

.motion-console {
  position: absolute;
  inset: 28px 12px 34px 12px;
  border: 1px solid rgba(7, 16, 111, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.68)),
    repeating-linear-gradient(90deg, rgba(7, 16, 111, 0.07) 0 1px, transparent 1px 38px);
  box-shadow: var(--shadow);
  animation: consoleFloat 4.8s ease-in-out infinite;
}

.console-bar {
  position: absolute;
  left: 24px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
  animation: barPulse 3.4s ease-in-out infinite;
}

.console-bar.one {
  top: 34px;
  width: 48%;
}

.console-bar.two {
  top: 58px;
  width: 68%;
  animation-delay: 0.6s;
}

.console-bar.three {
  top: 82px;
  width: 38%;
  animation-delay: 1.1s;
}

.console-pill {
  position: relative;
  top: 138px;
  margin-left: 18px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 16, 111, 0.1);
  animation: pillLift 3.8s ease-in-out infinite;
}

.console-pill:nth-of-type(5) {
  animation-delay: 0.5s;
}

.console-pill:nth-of-type(6) {
  animation-delay: 1s;
}

.hero-chat {
  position: absolute;
  right: 0;
  bottom: 46px;
  max-width: 300px;
  padding: 16px;
  border: 1px solid rgba(7, 16, 111, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  animation: chatPulse 4s ease-in-out infinite;
}

body.night-mode .hero-chat,
body.night-mode .motion-console,
body.night-mode .feature-strip,
body.night-mode .brand-studio,
body.night-mode .talent-console,
body.night-mode .contact-cards article,
body.night-mode .course-access,
body.night-mode .course-sidebar,
body.night-mode .lesson-workspace,
body.night-mode .live-panel,
body.night-mode .service-grid article,
body.night-mode .package-grid article,
body.night-mode .developer-row article,
body.night-mode .lesson-card,
body.night-mode .contact-form,
body.night-mode .floating-chatbot,
body.night-mode .chat-panel {
  background: rgba(11, 18, 60, 0.92);
  border-color: rgba(158, 179, 255, 0.2);
}

body.night-mode .course-access {
  background:
    linear-gradient(120deg, rgba(11, 18, 60, 0.96), rgba(16, 26, 82, 0.9)),
    var(--surface);
}

body.night-mode .access-benefits span {
  color: #dbe4ff;
}

body.night-mode .service-command,
body.night-mode .learning-hero {
  background:
    linear-gradient(135deg, #04094f, #0b1988 58%, #1e3dcc);
  border-color: rgba(158, 179, 255, 0.2);
}

.hero-chat strong,
.hero-chat span {
  display: block;
}

.hero-chat span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-strip {
  margin: -42px auto 0;
  width: min(1120px, calc(100% - 36px));
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-strip article {
  min-height: 132px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-strip article::before,
.service-grid article::before,
.package-grid article::before,
.developer-row article::before,
.lesson-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-950), var(--blue-500), var(--blue-150));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.feature-strip article:hover {
  transform: translateY(-5px);
  background: #f8faff;
}

.feature-strip article:hover::before,
.service-grid article:hover::before,
.package-grid article:hover::before,
.developer-row article:hover::before,
.lesson-card:hover::before {
  transform: scaleX(1);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip span,
.service-grid p,
.package-grid p,
.developer-row span,
.contact-form input,
.contact-form select,
.contact-form textarea {
  color: var(--muted);
}

.section,
.split-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 96px) 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2,
.split-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.service-grid,
.package-grid,
.developer-row {
  display: grid;
  gap: 18px;
}

.service-command {
  min-height: 240px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(158, 179, 255, 0.38), transparent 28%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800) 52%, var(--blue-600));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-command .eyebrow,
.service-command p {
  color: rgba(255, 255, 255, 0.78);
}

.service-command h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1;
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-steps span {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  animation: stepWave 3.2s ease-in-out infinite;
}

.service-steps span:nth-child(2) {
  animation-delay: 0.2s;
}

.service-steps span:nth-child(3) {
  animation-delay: 0.4s;
}

.service-steps span:nth-child(4) {
  animation-delay: 0.6s;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article,
.package-grid article,
.developer-row article,
.lesson-card,
.contact-form {
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-grid article::after,
.package-grid article::after,
.developer-row article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49, 87, 232, 0.08), transparent 46%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.service-grid article:hover,
.package-grid article:hover,
.developer-row article:hover,
.lesson-card:hover,
.contact-form:hover {
  transform: translateY(-8px);
  border-color: rgba(49, 87, 232, 0.24);
  box-shadow: 0 30px 70px rgba(7, 16, 111, 0.17);
}

.service-grid article:hover::after,
.package-grid article:hover::after,
.developer-row article:hover::after {
  opacity: 1;
}

.service-grid article {
  min-height: 260px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.service-grid h3,
.package-grid h3,
.lesson-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.service-grid p,
.package-grid p,
.lesson-card p {
  margin: 0;
  line-height: 1.6;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(7, 16, 111, 0.18);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: center;
}

.learning-board {
  display: grid;
  gap: 14px;
}

.learning-page {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 clamp(70px, 7vw, 96px);
}

.learning-hero {
  min-height: 360px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: center;
  gap: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(158, 179, 255, 0.32), transparent 30%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800) 58%, var(--blue-600));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.learning-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: blueSweep 12s linear infinite;
}

.learning-hero > * {
  position: relative;
  z-index: 1;
}

.learning-hero .eyebrow,
.learning-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.learning-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 5.8vw, 5.5rem);
  line-height: 1;
}

.learning-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  line-height: 1.72;
}

.learning-radar {
  min-height: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 28%, transparent 29% 100%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 48px);
  animation: consoleFloat 5s ease-in-out infinite;
}

.learning-radar strong {
  font-size: 2.8rem;
}

.learning-radar span {
  position: absolute;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

body.night-mode .learning-radar span {
  color: #f5f7ff;
  background: rgba(158, 179, 255, 0.18);
}

.learning-radar span:nth-child(1) {
  top: 18px;
}

.learning-radar span:nth-child(2) {
  right: 4px;
  top: 42%;
}

.learning-radar span:nth-child(3) {
  bottom: 22px;
}

.learning-radar span:nth-child(4) {
  left: 4px;
  top: 42%;
}

.learning-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

body:not(.course-unlocked) .learning-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
}

body:not(.course-unlocked) .lesson-workspace {
  display: none;
}

.course-access {
  margin-top: 22px;
  min-height: 270px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(223, 230, 255, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
}

body.course-unlocked .course-access {
  display: none;
}

.access-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.05;
}

.access-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.access-benefits {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-benefits span {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: var(--brand-3);
  font-weight: 900;
}

.checkout-card {
  min-height: 230px;
  padding: 20px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  box-shadow: 0 24px 54px rgba(7, 16, 111, 0.2);
}

.checkout-card .eyebrow,
.checkout-card p,
.checkout-card small {
  color: rgba(255, 255, 255, 0.76);
}

.checkout-card strong {
  font-size: 2.6rem;
  line-height: 1;
}

.checkout-card .primary-link {
  width: 100%;
  background: #ffffff;
  color: var(--brand);
}

.course-sidebar,
.lesson-workspace,
.live-panel {
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.course-sidebar,
.live-panel {
  padding: 18px;
  position: sticky;
  top: 94px;
}

.course-title h2,
.live-panel h2 {
  margin: 0;
  line-height: 1.08;
}

.payment-state {
  width: fit-content;
  min-height: 30px;
  margin: 12px 0 0;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #8f2222;
  background: #ffe6e2;
  font-size: 0.78rem;
  font-weight: 900;
}

body.course-unlocked .payment-state {
  color: #0a5f5f;
  background: #dff5f5;
}

.module-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.module-item {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 4px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.module-item span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.module-item small {
  color: var(--muted);
}

.module-item.active,
.module-item:hover {
  transform: translateX(6px);
  border-color: rgba(49, 87, 232, 0.32);
  background: var(--brand-3);
}

.module-item.locked {
  opacity: 0.9;
  cursor: not-allowed;
}

.module-item.locked strong::after {
  content: "  LOCKED";
  color: #8f2222;
  font-size: 0.72rem;
}

.module-item.locked span {
  background: #657099;
}

body.night-mode .module-item.locked strong::after {
  color: #ffd6d0;
}

body.course-unlocked .module-item.locked {
  opacity: 1;
  cursor: pointer;
}

body.course-unlocked .module-item.locked strong::after {
  content: "";
}

.lesson-workspace {
  padding: 18px;
  position: relative;
}

.lesson-workspace.locked-content {
  min-height: 680px;
}

.payment-overlay {
  position: absolute;
  inset: 18px;
  z-index: 5;
  border: 1px solid rgba(7, 16, 111, 0.12);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(49, 87, 232, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.payment-overlay h2,
.payment-overlay p {
  margin: 0;
}

.payment-overlay p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.lock-icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600));
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(7, 16, 111, 0.22);
}

body.course-unlocked .payment-overlay {
  display: none;
}

.locked-content .video-player,
.locked-content .lesson-tabs,
.locked-content .lesson-panel {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

body.course-unlocked .locked-content .video-player,
body.course-unlocked .locked-content .lesson-tabs,
body.course-unlocked .locked-content .lesson-panel {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.video-player {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.video-topline,
.video-caption {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-caption {
  align-items: flex-start;
  display: grid;
}

.video-caption h2 {
  margin: 0;
}

.video-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.live-pill {
  background: #fff2bf;
}

body.night-mode .pill,
body.night-mode .live-pill {
  color: #f5f7ff;
  background: rgba(158, 179, 255, 0.16);
}

.video-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(7, 16, 111, 0.94), rgba(49, 87, 232, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 42px);
  position: relative;
  overflow: hidden;
}

.video-bars {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.video-bars span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  animation: barPulse 3s ease-in-out infinite;
}

.video-bars span:nth-child(2) {
  width: 72%;
  animation-delay: 0.4s;
}

.video-bars span:nth-child(3) {
  width: 48%;
  animation-delay: 0.8s;
}

.lesson-tabs {
  margin-top: 14px;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--brand-3);
}

.lesson-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: var(--brand);
  background: transparent;
  font-weight: 900;
}

.lesson-tabs button.active {
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(7, 16, 111, 0.1);
}

.lesson-panel {
  display: none;
  margin-top: 14px;
  animation: pageEnter 0.32s ease both;
}

.lesson-panel.active {
  display: block;
}

.learning-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.learning-metrics article,
.notes-card,
.assignment-card,
.doubt-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: var(--surface-soft);
}

.learning-metrics strong {
  font-size: 1.8rem;
}

.learning-metrics span,
.notes-card p,
.assignment-card p,
.doubt-reply,
.task-status {
  color: var(--muted);
}

.big-progress {
  margin-top: 12px;
}

.assignment-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.assignment-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.doubt-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}

.live-panel {
  display: grid;
  gap: 14px;
}

.payment-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: var(--brand-3);
}

.payment-card span {
  font-size: 2rem;
  font-weight: 900;
}

.payment-card small {
  color: var(--muted);
  font-weight: 800;
}

.reset-payment {
  border: 0;
}

body:not(.course-unlocked) .reset-payment {
  display: none;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.countdown-grid span {
  min-height: 76px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-3);
  font-weight: 900;
}

.countdown-grid strong {
  display: block;
  font-size: 1.8rem;
}

.class-screen {
  min-height: 260px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(7, 16, 111, 0.92), rgba(49, 87, 232, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 36px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.class-screen::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.play-dot {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  animation: playPulse 2.2s ease-in-out infinite;
}

.learning-board .lesson-card {
  min-height: auto;
}

.course-progress {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.course-progress span {
  height: 100%;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: #ffffff;
  font-weight: 900;
  background:
    linear-gradient(90deg, var(--blue-950), var(--blue-600)) 0 / var(--value) 100% no-repeat,
    var(--brand-3);
}

.stat-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-row span {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-3);
  transition: transform 0.22s ease, background 0.22s ease;
}

.stat-row span:hover {
  transform: translateY(-4px);
  background: #dfe6ff;
}

.lesson-card {
  padding: 28px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(7, 16, 111, 0.1), transparent 58%),
    var(--white);
}

.pill {
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: #fff2bf;
  font-size: 0.78rem;
  font-weight: 900;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  background:
    repeating-linear-gradient(100deg, rgba(7, 16, 111, 0.06) 0 1px, transparent 1px 78px),
    linear-gradient(180deg, #eef2ff, #ffffff);
}

body.night-mode .tinted {
  background:
    repeating-linear-gradient(100deg, rgba(158, 179, 255, 0.08) 0 1px, transparent 1px 78px),
    linear-gradient(180deg, #081039, #070b2d);
}

.brand-studio {
  margin-bottom: 22px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(223, 230, 255, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
}

.brand-preview {
  min-height: 150px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-preview img {
  width: min(420px, 92%);
  max-height: 120px;
  object-fit: contain;
}

.brand-studio h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.brand-studio p {
  color: var(--muted);
  line-height: 1.65;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid article {
  min-height: 220px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.package-grid strong {
  font-size: 2rem;
}

.package-grid .featured {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800) 58%, var(--blue-600));
  animation: featuredGlow 5s ease-in-out infinite;
}

.package-grid .featured p {
  color: rgba(255, 255, 255, 0.78);
}

.developer-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.talent-console {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.talent-console button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--brand);
  background: var(--brand-3);
  font-weight: 900;
}

.talent-console button.active {
  color: #ffffff;
  background: var(--brand);
}

.talent-console span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 900;
}

.developer-row article {
  min-height: 130px;
  padding: 22px;
  display: grid;
  gap: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-cards {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.contact-cards article {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(7, 16, 111, 0.08);
}

.contact-cards span {
  color: var(--muted);
}

.contact-form {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--surface-soft);
  outline: none;
}

body.night-mode .contact-form input,
body.night-mode .contact-form select,
body.night-mode .contact-form textarea,
body.night-mode .doubt-card textarea {
  color: var(--ink);
}

body.night-mode .contact-form input::placeholder,
body.night-mode .contact-form textarea::placeholder {
  color: #8fa2ee;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(49, 87, 232, 0.11);
}

.card-action {
  width: fit-content;
  border: 0;
  color: var(--brand);
  background: var(--brand-3);
}

.card-action.light {
  color: var(--brand);
  background: #ffffff;
}

body.night-mode .package-grid .featured {
  color: #ffffff;
  background: linear-gradient(135deg, #04094f, #1329a8 58%, #3157e8);
}

body.night-mode .card-action.light {
  color: var(--brand);
  background: #ffffff;
}

body.night-mode .feature-strip article:hover {
  background: #101a52;
}

body.night-mode .brand-preview {
  background: #ffffff;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--brand);
  font-weight: 900;
}

body.night-mode .countdown-grid span,
body.night-mode .lesson-tabs button,
body.night-mode .talent-console button,
body.night-mode .quick-prompts button,
body.night-mode .chat-copy small,
body.night-mode .sleep-z {
  color: #dbe4ff;
}

body.night-mode .lesson-tabs button.active,
body.night-mode .talent-console button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

body.night-mode .course-progress,
body.night-mode .learning-metrics article,
body.night-mode .notes-card,
body.night-mode .assignment-card,
body.night-mode .doubt-card,
body.night-mode .payment-card {
  background: var(--surface-soft);
  border-color: rgba(158, 179, 255, 0.2);
}

body.night-mode .payment-overlay {
  background:
    radial-gradient(circle at 50% 20%, rgba(49, 87, 232, 0.28), transparent 32%),
    rgba(7, 11, 45, 0.88);
  border-color: rgba(158, 179, 255, 0.22);
}

body.night-mode .payment-state {
  color: #ffd6d0;
  background: rgba(216, 75, 75, 0.18);
}

body.night-mode.course-unlocked .payment-state {
  color: #cdf8f8;
  background: rgba(22, 155, 155, 0.18);
}

body.night-mode .form-status {
  color: var(--blue-300);
}

.panda {
  --panda-size: 92px;
  position: relative;
  display: block;
  width: var(--panda-size);
  height: calc(var(--panda-size) * 1.12);
  flex: 0 0 auto;
  transform-origin: 50% 100%;
  animation: pandaBob 2.4s ease-in-out infinite;
}

.panda-large {
  --panda-size: 170px;
  filter: drop-shadow(0 24px 32px rgba(7, 16, 111, 0.22));
}

.panda-float {
  --panda-size: 56px;
  animation: pandaSleepFloat 3s ease-in-out infinite;
}

.panda span,
.panda i {
  position: absolute;
  display: block;
}

.panda-ear {
  top: 4%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #493b34;
  z-index: 1;
}

.panda-ear.left {
  left: 13%;
}

.panda-ear.right {
  right: 13%;
}

.panda-head {
  top: 5%;
  left: 13%;
  width: 74%;
  height: 58%;
  border: 2px solid rgba(73, 59, 52, 0.1);
  border-radius: 48% 48% 44% 44%;
  background: #fff0d8;
  z-index: 3;
}

.panda-body {
  left: 20%;
  bottom: 6%;
  width: 60%;
  height: 50%;
  border-radius: 48% 48% 42% 42%;
  background: #fff0d8;
  z-index: 0;
}

.eye-patch {
  top: 28%;
  width: 25%;
  height: 28%;
  border-radius: 55% 45% 58% 42%;
  background: #493b34;
  transform: rotate(14deg);
}

.eye-patch.left {
  left: 19%;
}

.eye-patch.right {
  right: 19%;
  transform: rotate(-14deg);
}

.eye-patch i {
  left: 44%;
  top: 42%;
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: #111820;
  animation: pandaBlink 4.5s ease-in-out infinite;
}

.panda-nose {
  left: 45%;
  top: 52%;
  width: 10%;
  height: 8%;
  border-radius: 50% 50% 58% 58%;
  background: #111820;
}

.panda-mouth {
  left: 43%;
  top: 62%;
  width: 14%;
  height: 9%;
  border-bottom: 2px solid #493b34;
  border-radius: 0 0 999px 999px;
}

.panda-arm {
  top: 51%;
  width: 18%;
  height: 36%;
  border-radius: 999px;
  background: #493b34;
  z-index: 2;
}

.panda-arm.left {
  left: 11%;
  transform: rotate(28deg);
}

.panda-arm.right {
  right: 9%;
  transform-origin: 50% 12%;
  animation: pandaWave 1.6s ease-in-out infinite;
}

.panda-foot {
  bottom: 0;
  width: 25%;
  height: 17%;
  border-radius: 999px;
  background: #493b34;
  z-index: 2;
}

.panda-foot.left {
  left: 18%;
}

.panda-foot.right {
  right: 18%;
}

.floating-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 74px;
  border: 1px solid rgba(7, 16, 111, 0.12);
  border-radius: 18px;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.96));
  box-shadow: 0 18px 40px rgba(7, 16, 111, 0.18);
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.floating-chatbot:not(:hover) .eye-patch i {
  left: 32%;
  top: 48%;
  width: 38%;
  height: 3px;
  border-radius: 999px;
  background: #111820;
  animation: none;
}

.floating-chatbot:not(:hover) .panda-arm.right {
  animation: none;
  transform: rotate(34deg);
}

.floating-chatbot:hover,
.floating-chatbot:focus-visible {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(7, 16, 111, 0.24);
  box-shadow: 0 24px 56px rgba(7, 16, 111, 0.26);
}

.floating-chatbot:hover .panda-float,
.floating-chatbot:focus-visible .panda-float {
  animation: pandaBob 1.6s ease-in-out infinite;
}

.floating-chatbot:hover .panda-arm.right,
.floating-chatbot:focus-visible .panda-arm.right {
  animation: pandaWave 1s ease-in-out infinite;
}

.sleep-z {
  position: absolute;
  left: 20px;
  top: -22px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0.72;
  animation: sleepZ 2.2s ease-in-out infinite;
}

.floating-chatbot:hover .sleep-z,
.floating-chatbot:focus-visible .sleep-z {
  opacity: 0;
  transform: translateY(-8px);
}

.chat-copy {
  min-width: 145px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.chat-copy strong,
.chat-copy small {
  display: block;
}

.chat-copy small {
  color: var(--muted);
  font-weight: 800;
}

.floating-chatbot:hover .chat-copy strong,
.floating-chatbot:focus-visible .chat-copy strong {
  font-size: 0;
}

.floating-chatbot:hover .chat-copy strong::after,
.floating-chatbot:focus-visible .chat-copy strong::after {
  content: "Ithra is awake";
  font-size: 0.95rem;
}

.floating-chatbot:hover .chat-copy small,
.floating-chatbot:focus-visible .chat-copy small {
  font-size: 0;
}

.floating-chatbot:hover .chat-copy small::after,
.floating-chatbot:focus-visible .chat-copy small::after {
  content: "Ask your query";
  color: var(--brand);
  font-size: 0.82rem;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 116px;
  z-index: 31;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid rgba(7, 16, 111, 0.12);
  border-radius: 18px;
  display: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(7, 16, 111, 0.24);
  transform-origin: right bottom;
}

.chat-panel.is-open {
  display: block;
  animation: chatOpen 0.28s ease both;
}

.chat-header {
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.chat-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.chat-messages {
  max-height: 260px;
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
}

.bot-message,
.user-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.bot-message {
  color: var(--ink);
  background: var(--brand-3);
}

body.night-mode .bot-message {
  color: #f5f7ff;
  background: rgba(158, 179, 255, 0.16);
}

.user-message {
  justify-self: end;
  color: #ffffff;
  background: var(--brand);
}

.quick-prompts {
  padding: 0 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  min-height: 34px;
  border: 0;
  color: var(--brand);
  background: var(--brand-3);
}

body.night-mode .quick-prompts button {
  color: #f5f7ff;
}

.chat-form {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
}

.chat-form button {
  border: 0;
  color: #ffffff;
  background: var(--brand);
}

[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid article:nth-child(2),
.package-grid article:nth-child(2),
.developer-row article:nth-child(2),
.feature-strip article:nth-child(2) {
  transition-delay: 0.08s;
}

.service-grid article:nth-child(3),
.package-grid article:nth-child(3),
.developer-row article:nth-child(3),
.feature-strip article:nth-child(3) {
  transition-delay: 0.16s;
}

.service-grid article:nth-child(4),
.feature-strip article:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes pandaBob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes pandaWave {
  0%,
  100% {
    transform: rotate(-22deg);
  }
  50% {
    transform: rotate(-58deg);
  }
}

@keyframes pandaBlink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes pandaSleepFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(2px) rotate(-9deg);
  }
}

@keyframes sleepZ {
  0%,
  100% {
    transform: translateY(3px) scale(0.94);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-5px) scale(1.04);
    opacity: 0.9;
  }
}

@keyframes pageBlueDrift {
  0%,
  100% {
    background-position: 0% 0%, 0 0;
  }
  50% {
    background-position: 100% 45%, 0 0;
  }
}

@keyframes blueSweep {
  0% {
    transform: translateX(-16%);
  }
  100% {
    transform: translateX(16%);
  }
}

@keyframes blueprintLine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12%,
  74% {
    opacity: 1;
  }
  100% {
    transform: translateX(180%);
    opacity: 0;
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes barPulse {
  0%,
  100% {
    transform: scaleX(0.8);
    opacity: 0.56;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

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

@keyframes chatPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(7, 16, 111, 0.18);
  }
}

@keyframes buttonSheen {
  0%,
  62% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes featuredGlow {
  0%,
  100% {
    box-shadow: 0 24px 60px rgba(7, 16, 111, 0.18);
  }
  50% {
    box-shadow: 0 32px 80px rgba(49, 87, 232, 0.28);
  }
}

@keyframes stepWave {
  0%,
  100% {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.12);
  }
  50% {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.22);
  }
}

@keyframes playPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 26px 70px rgba(255, 255, 255, 0.28);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes siteEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .contact-section,
  .learning-hero,
  .learning-shell,
  .service-command,
  .brand-studio {
    grid-template-columns: 1fr;
  }

  .course-sidebar,
  .live-panel {
    position: static;
  }

  .feature-strip,
  .service-grid,
  .package-grid,
  .developer-row,
  .learning-metrics,
  .service-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-brand img {
    width: 180px;
    max-width: 58vw;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-strip,
  .service-grid,
  .package-grid,
  .developer-row,
  .learning-metrics,
  .countdown-grid,
  .service-steps {
    grid-template-columns: 1fr;
  }

  .learning-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .learning-radar {
    min-height: 230px;
    width: min(100%, 280px);
    justify-self: center;
  }

  .video-stage {
    min-height: 260px;
  }

  .talent-console span {
    width: 100%;
    margin-left: 0;
  }

  .feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-chat {
    right: 0;
    left: 0;
    bottom: 0;
  }

  .floating-chatbot {
    right: 14px;
    bottom: 14px;
    padding-right: 12px;
  }

  .chat-copy {
    min-width: 116px;
  }
}

.service-proof,
.brochure-services {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brochure-services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-proof article,
.brochure-services article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(7, 16, 111, 0.09);
  position: relative;
  overflow: hidden;
}

.service-proof article::before,
.brochure-services article::before,
.package-ladder article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-950), var(--blue-500), var(--gold));
}

.service-proof span,
.brochure-services span,
.package-ladder span {
  color: var(--muted);
  line-height: 1.5;
}

.package-ladder {
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid rgba(7, 16, 111, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(180px, 0.7fr));
  gap: 14px;
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(223, 230, 255, 0.76)),
    var(--surface);
  box-shadow: var(--shadow);
}

.package-ladder h3,
.package-ladder p {
  margin: 0;
}

.package-ladder h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.package-ladder p {
  color: var(--muted);
  line-height: 1.65;
}

.package-ladder article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  animation: packageLift 5.5s ease-in-out infinite;
}

.package-ladder article:nth-of-type(2) {
  animation-delay: 0.35s;
}

.package-ladder article:nth-of-type(3) {
  animation-delay: 0.7s;
}

.package-ladder strong {
  color: var(--brand);
  font-size: 1.9rem;
}

body.night-mode .service-proof article,
body.night-mode .brochure-services article,
body.night-mode .package-ladder,
body.night-mode .package-ladder article {
  background: rgba(11, 18, 60, 0.92);
  border-color: rgba(158, 179, 255, 0.2);
}

body.night-mode .package-ladder {
  background:
    linear-gradient(120deg, rgba(11, 18, 60, 0.96), rgba(16, 26, 82, 0.9)),
    var(--surface);
}

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

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: initial;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    min-width: max-content;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .site-nav a::after {
    display: none;
  }

  .service-proof,
  .brochure-services,
  .package-ladder {
    grid-template-columns: 1fr 1fr;
  }

  .package-ladder > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    animation: none;
  }

  .site-header {
    min-height: auto;
    padding: 10px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-brand img {
    width: 150px;
    max-width: 52vw;
    height: 40px;
  }

  .theme-toggle,
  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    gap: 8px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 34px 16px 28px;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .hero p,
  .split-section p,
  .contact-section p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-link,
  .secondary-link,
  .nav-cta {
    width: 100%;
  }

  .section,
  .split-section,
  .contact-section,
  .learning-page {
    width: min(100% - 24px, 1180px);
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .section-title h2,
  .split-section h2,
  .contact-section h2 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .service-proof,
  .brochure-services,
  .package-ladder {
    grid-template-columns: 1fr;
  }

  .package-ladder {
    padding: 16px;
  }

  .service-command {
    min-height: auto;
    padding: 20px;
  }

  .service-steps span {
    min-height: 58px;
  }

  .service-grid article,
  .package-grid article,
  .developer-row article,
  .lesson-card {
    min-height: auto;
    padding: 18px;
  }

  .floating-chatbot {
    min-height: 62px;
    border-radius: 14px;
  }

  .chat-copy {
    min-width: 98px;
    max-width: 112px;
  }

  .panda-float {
    --panda-size: 46px;
  }

  .chat-panel {
    right: 12px;
    bottom: 92px;
    width: calc(100vw - 24px);
  }
}

.floating-call {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 58px;
  padding: 9px 16px;
  border: 1px solid rgba(7, 16, 111, 0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600));
  box-shadow: 0 18px 40px rgba(7, 16, 111, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.floating-call strong,
.floating-call span {
  display: block;
}

.floating-call strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.floating-call span {
  font-weight: 900;
}

.floating-call:hover,
.floating-call:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(7, 16, 111, 0.28);
}

body.night-mode .floating-call {
  border-color: rgba(158, 179, 255, 0.22);
  background: linear-gradient(135deg, #04094f, #1329a8 58%, #3157e8);
}

@media (max-width: 640px) {
  .floating-call {
    left: 12px;
    bottom: 14px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .site-header .nav-cta {
    width: auto;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .site-nav a {
    min-width: 0;
    padding: 0 8px;
    text-align: center;
    font-size: 0.82rem;
  }
}

/* Live phone repair: real mobile browsers were landing above the old 640px breakpoint. */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: auto;
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
  }

  .site-brand img {
    width: clamp(142px, 36vw, 178px);
    max-width: 100%;
    height: 40px;
    object-fit: contain;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-toggle,
  .nav-cta {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-cta {
    grid-column: 3;
    grid-row: 1;
    width: auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
    padding: 6px 0 0;
    overflow: visible;
    font-size: clamp(0.72rem, 2.35vw, 0.9rem);
  }

  .site-nav a {
    min-width: 0;
    min-height: 36px;
    padding: 0 5px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
  }

  body.night-mode .site-nav a {
    background: rgba(158, 179, 255, 0.1);
    border-color: rgba(158, 179, 255, 0.18);
  }

  .learning-page {
    width: min(100% - 18px, 1320px);
    padding: 18px 0 64px;
  }

  .learning-hero {
    min-height: auto;
    grid-template-columns: 1fr !important;
    gap: 18px;
    padding: 22px 16px;
  }

  .learning-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 3.6rem);
    line-height: 1.02;
  }

  .learning-hero p {
    max-width: none;
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .learning-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .learning-hero .primary-link,
  .learning-hero .secondary-link {
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .learning-radar {
    width: min(100%, 292px);
    min-height: 240px;
    justify-self: center;
  }

  .learning-radar strong {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .course-access {
    min-height: auto;
    grid-template-columns: 1fr !important;
    gap: 18px;
    align-items: stretch;
    padding: 20px 16px;
  }

  .access-copy {
    min-width: 0;
  }

  .access-copy h2 {
    max-width: none;
    font-size: clamp(2rem, 8.8vw, 3rem);
    line-height: 1.03;
    text-wrap: balance;
  }

  .access-copy p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.58;
  }

  .access-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .access-benefits span {
    min-height: 40px;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    line-height: 1.15;
  }

  .checkout-card {
    width: 100%;
    min-height: auto;
    padding: 18px;
    gap: 10px;
  }

  .checkout-card strong {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .learning-shell,
  body:not(.course-unlocked) .learning-shell {
    grid-template-columns: 1fr !important;
  }

  .course-sidebar,
  .live-panel {
    position: static;
  }

  .floating-chatbot {
    right: 10px;
    bottom: 78px;
    min-height: 56px;
    max-width: calc(100vw - 20px);
    padding: 7px 10px 7px 8px;
    border-radius: 14px;
    gap: 8px;
  }

  .floating-chatbot:hover,
  .floating-chatbot:focus-visible {
    transform: translateY(-4px) scale(1.01);
  }

  .floating-chatbot .panda-float {
    --panda-size: 42px;
  }

  .floating-chatbot .sleep-z {
    left: 12px;
    top: -18px;
    font-size: 0.88rem;
  }

  .chat-copy {
    min-width: 0;
    max-width: 116px;
    gap: 0;
  }

  .chat-copy strong {
    font-size: 0.86rem;
    line-height: 1.1;
  }

  .chat-copy small {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .chat-panel {
    right: 10px;
    bottom: 144px;
    width: calc(100vw - 20px);
  }

  .floating-call {
    left: 10px;
    bottom: 10px;
    min-height: 50px;
    padding: 7px 12px;
    border-radius: 14px;
  }
}

@media (max-width: 460px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .nav-cta {
    grid-column: 3;
    width: auto;
  }

  .site-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    font-size: 11px;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0 2px;
    font-size: 11px;
  }

  .theme-toggle,
  .nav-cta {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .learning-hero .hero-actions,
  .access-benefits {
    grid-template-columns: 1fr;
  }

  .chat-copy {
    display: none;
  }
}
