:root {
  --bg: #07090d;
  --panel: rgba(18, 23, 31, 0.78);
  --panel-strong: rgba(22, 29, 39, 0.92);
  --line: rgba(208, 255, 224, 0.14);
  --line-strong: rgba(158, 255, 191, 0.32);
  --text: #f4f7fb;
  --muted: #a7b0bf;
  --soft: #dbe5ef;
  --green: #98ffb3;
  --green-strong: #5cff8d;
  --cyan: #75d8ff;
  --violet: #b7a4ff;
  --accent-rgb: 152, 255, 179;
  --accent-strong-rgb: 92, 255, 141;
  --secondary-rgb: 117, 216, 255;
  --tertiary-rgb: 183, 164, 255;
  --danger: #ff8fbd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(125deg, rgba(var(--accent-strong-rgb), 0.1), transparent 32%),
    linear-gradient(235deg, rgba(var(--secondary-rgb), 0.09), transparent 34%),
    linear-gradient(15deg, rgba(var(--tertiary-rgb), 0.08), transparent 38%),
    var(--bg);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--secondary-rgb), 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
  z-index: -2;
}

.ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(var(--accent-rgb), 0.06), transparent);
  transform: translateX(-35%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.52);
  border-radius: 8px;
  color: #06120b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 24px rgba(var(--accent-strong-rgb), 0.34);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.main-nav .login-link {
  color: var(--green);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.mobile-signup {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.8);
  border-radius: 8px;
  color: #06120b;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  box-shadow: 0 0 24px rgba(var(--accent-strong-rgb), 0.2);
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(var(--accent-strong-rgb), 0.3);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(var(--accent-rgb), 0.08);
}

.palette-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.palette-swatch {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.palette-swatch:hover,
.palette-swatch.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12), 0 0 18px rgba(var(--accent-strong-rgb), 0.26);
}

.palette-swatch.active::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
}

.palette-green {
  background: linear-gradient(135deg, #98ffb3, #75d8ff);
}

.palette-orange {
  background: linear-gradient(135deg, #ffb86b, #ff6f3d);
}

.palette-blue {
  background: linear-gradient(135deg, #8bdfff, #5b8cff);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 104px);
  padding-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 999px;
  color: var(--green);
  background: rgba(var(--accent-rgb), 0.06);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.page-title h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-title p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.hero-offer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(var(--accent-rgb), 0.055);
  font-size: 13px;
  font-weight: 800;
}

.hero-offer i {
  width: 16px;
  height: 16px;
  color: var(--green);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.42);
}

.btn-primary {
  color: #06120b;
  border-color: rgba(var(--accent-rgb), 0.8);
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  box-shadow: 0 0 28px rgba(var(--accent-strong-rgb), 0.24);
}

.btn-ghost {
  color: var(--green);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.hero-console {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(12, 16, 22, 0.72);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(rgba(var(--secondary-rgb), 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.75;
}

.console-inner {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.hero-gallery {
  display: grid;
  align-content: stretch;
  min-height: 520px;
  padding: 18px;
}

.carousel-track {
  position: relative;
  display: flex;
  width: 600%;
  height: 100%;
  min-height: 484px;
  animation: heroCarousel 28s linear infinite;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 16.666%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
}

.carousel-art,
.carousel-art svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 484px;
}

.carousel-art {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  box-shadow:
    0 18px 54px rgba(var(--accent-rgb), 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.carousel-art svg {
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.18);
}

.carousel-dots span:nth-child(1) {
  animation: carouselDot1 18s ease-in-out infinite;
}

.carousel-dots span:nth-child(2) {
  animation: carouselDot2 18s ease-in-out infinite;
}

.carousel-dots span:nth-child(3) {
  animation: carouselDot3 18s ease-in-out infinite;
}

@keyframes heroCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes carouselDot1 {
  0%,
  26%,
  100% {
    background: var(--green);
  }
  33%,
  92% {
    background: rgba(255, 255, 255, 0.28);
  }
}

@keyframes carouselDot2 {
  0%,
  26%,
  66%,
  100% {
    background: rgba(255, 255, 255, 0.28);
  }
  33%,
  59% {
    background: var(--green);
  }
}

@keyframes carouselDot3 {
  0%,
  59%,
  100% {
    background: rgba(255, 255, 255, 0.28);
  }
  66%,
  92% {
    background: var(--green);
  }
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(4, 7, 10, 0.62);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 23px;
}

.course-radar {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.orbital {
  display: grid;
  place-items: center;
  min-height: 246px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(4, 7, 10, 0.56);
}

.orbital-core {
  display: grid;
  place-items: center;
  width: 142px;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  color: var(--green);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), transparent 58%),
    conic-gradient(from 90deg, rgba(var(--accent-rgb), 0.84), rgba(var(--secondary-rgb), 0.22), rgba(var(--tertiary-rgb), 0.55), rgba(var(--accent-rgb), 0.84));
  box-shadow: 0 0 40px rgba(var(--accent-strong-rgb), 0.18);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-item,
.lesson-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(4, 7, 10, 0.62);
}

.stack-item span,
.lesson-pill span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2,
.page-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head.section-head-stacked {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 18px;
}

.section-head.section-head-stacked p {
  max-width: 900px;
  margin: 0;
}

.section-title-block {
  display: block;
  max-width: 920px;
  margin-bottom: 24px;
}

.section-title-block h2 {
  margin: 0;
}

.section-title-block p {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.teacher-card {
  grid-column: span 2;
}

.teacher-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.teacher-card:nth-child(5) {
  grid-column: 4 / span 2;
}

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

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.52), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
}

.card:hover::before {
  opacity: 1;
}

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 8px;
  color: var(--green);
  background: rgba(var(--accent-rgb), 0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.24;
}

.card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.14;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.course-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 26px;
}

.course-card-tags + h3 {
  margin-top: 0;
}

.course-card-clickable {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card-clickable:hover,
.course-card-clickable:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 20px 58px rgba(var(--accent-rgb), 0.12);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 700;
}

.tag.green {
  color: var(--green);
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.06);
}

.tag.status-active {
  color: var(--green);
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.1);
}

.tag.status-dev {
  color: var(--cyan);
  border-color: rgba(var(--secondary-rgb), 0.28);
  background: rgba(var(--secondary-rgb), 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 22px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active {
  color: #06120b;
  border-color: rgba(var(--accent-rgb), 0.78);
  background: var(--green);
}

.page-title {
  padding: 18px 0 22px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.meta-list,
.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li,
.clean-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--soft);
  line-height: 1.5;
}

.meta-list i,
.clean-list i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--green);
  margin-top: 2px;
}

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.module-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #06120b;
  background: var(--green);
  font-weight: 900;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(var(--accent-strong-rgb), 0.38);
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.course-price {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.055);
}

.course-price strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
}

.course-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.course-price i {
  width: 17px;
  height: 17px;
}

.course-price-large {
  margin-bottom: 14px;
}

.course-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.course-actions .btn {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
}

.course-actions .btn i {
  width: 16px;
  height: 16px;
}

.course-note {
  margin-top: 12px !important;
  color: var(--soft) !important;
  font-size: 14px;
}

.course-development-section {
  padding-top: 44px;
}

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--secondary-rgb), 0.06)),
    var(--panel);
  box-shadow: 0 18px 58px rgba(var(--accent-rgb), 0.1);
  overflow: hidden;
}

.promo-strip h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
}

.promo-strip p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.tab.active {
  color: var(--green);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
}

.lesson-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.lesson-nav {
  position: sticky;
  top: 96px;
}

.lesson-link {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.lesson-link + .lesson-link {
  margin-top: 9px;
}

.lesson-link.active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.08);
}

.media-box {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(rgba(var(--secondary-rgb), 0.06) 1px, transparent 1px),
    rgba(4, 7, 10, 0.62);
  background-size: 36px 36px;
  color: var(--green);
  text-align: center;
}

.assignment-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

select.input {
  appearance: auto;
}

textarea.input {
  min-height: 112px;
  resize: vertical;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.contact-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.consent-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--green-strong);
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status {
  min-height: 24px;
  color: var(--muted) !important;
  font-weight: 700;
}

.form-status.success {
  color: var(--green) !important;
}

.form-status.error {
  color: var(--danger) !important;
}

.contact-card {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.teacher-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 20px;
}

.teacher-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.teacher-icon svg {
  width: 22px;
  height: 22px;
}

.teacher-role {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 0;
  padding: 9px 12px;
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-banner p {
  margin-top: 8px;
}

.review-card {
  display: grid;
  grid-template-rows: auto auto 168px auto auto;
  align-self: start;
  gap: 16px;
  min-height: 430px;
  height: 100%;
}

.review-text {
  position: relative;
  overflow: hidden;
}

.review-text.is-collapsed {
  max-height: 168px;
}

.review-text.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: linear-gradient(to bottom, rgba(18, 23, 31, 0), var(--panel));
  pointer-events: none;
}

.review-text.is-expanded {
  max-height: 168px;
  overflow-y: auto;
  padding-right: 6px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-top h3 {
  margin-bottom: 7px;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #06120b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-size: 17px;
  font-weight: 900;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--green);
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.full-stars .review-stars svg {
  fill: currentColor;
  stroke: currentColor;
}

.review-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: end;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.review-result i {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--green);
}

.review-more {
  justify-self: start;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 8px;
  color: var(--green);
  background: rgba(var(--accent-rgb), 0.07);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.review-more:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.44);
  background: rgba(var(--accent-rgb), 0.11);
}

.input:focus {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.skill-meter {
  display: grid;
  gap: 9px;
}

.skill-meter header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.result-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.result-stat strong {
  display: block;
  color: var(--green);
  font-size: 28px;
}

.result-stat span {
  color: var(--muted);
  font-size: 13px;
}

[data-theme="light"] {
  --bg: #f4f8f6;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(20, 91, 50, 0.14);
  --line-strong: rgba(var(--accent-strong-rgb), 0.36);
  --text: #102219;
  --muted: #607168;
  --soft: #344b40;
  --green: #159b4b;
  --green-strong: #48d477;
  --cyan: #2588b8;
  --violet: #715ad1;
  --accent-rgb: 21, 155, 75;
  --accent-strong-rgb: 72, 212, 119;
  --secondary-rgb: 37, 136, 184;
  --tertiary-rgb: 113, 90, 209;
  --danger: #c84979;
  --shadow: 0 24px 70px rgba(29, 75, 49, 0.12);
  color-scheme: light;
}

[data-theme="light"] body {
  background:
    linear-gradient(125deg, rgba(var(--accent-strong-rgb), 0.17), transparent 32%),
    linear-gradient(235deg, rgba(var(--secondary-rgb), 0.12), transparent 34%),
    linear-gradient(15deg, rgba(var(--tertiary-rgb), 0.09), transparent 38%),
    var(--bg);
}

[data-theme="light"] .ambient-grid {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--secondary-rgb), 0.07) 1px, transparent 1px);
}

[data-theme="light"] .ambient-grid::after {
  background: linear-gradient(115deg, transparent, rgba(var(--accent-rgb), 0.08), transparent);
}

[data-theme="light"] .site-header,
[data-theme="light"] .main-nav {
  background: rgba(248, 252, 250, 0.88);
  box-shadow: 0 12px 42px rgba(29, 75, 49, 0.1);
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.active,
[data-theme="light"] .nav-toggle,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .btn,
[data-theme="light"] .tag,
[data-theme="light"] .filter-btn,
[data-theme="light"] .tab,
[data-theme="light"] .lesson-link,
[data-theme="light"] .result-stat,
[data-theme="light"] .input {
  background: rgba(16, 34, 25, 0.045);
}

[data-theme="light"] .hero-console {
  border-color: rgba(var(--accent-rgb), 0.12);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.055), rgba(var(--secondary-rgb), 0.035)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 58px rgba(var(--accent-rgb), 0.09);
}

[data-theme="light"] .carousel-art {
  border-color: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 14px 46px rgba(var(--accent-rgb), 0.08);
}

[data-theme="light"] .metric,
[data-theme="light"] .orbital,
[data-theme="light"] .stack-item,
[data-theme="light"] .lesson-pill,
[data-theme="light"] .media-box {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(var(--accent-rgb), 0.12);
}

[data-theme="light"] .card {
  box-shadow: 0 16px 52px rgba(29, 75, 49, 0.09);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .module-index,
[data-theme="light"] .header-cta {
  color: #06170d;
}

[data-theme="light"] .progress {
  background: rgba(16, 34, 25, 0.09);
}

[data-palette="orange"] {
  --line: rgba(255, 184, 107, 0.16);
  --line-strong: rgba(255, 125, 69, 0.38);
  --green: #ffb86b;
  --green-strong: #ff7d45;
  --cyan: #ffc857;
  --violet: #ff9fd1;
  --accent-rgb: 255, 184, 107;
  --accent-strong-rgb: 255, 125, 69;
  --secondary-rgb: 255, 200, 87;
  --tertiary-rgb: 255, 159, 209;
}

[data-palette="blue"] {
  --line: rgba(139, 223, 255, 0.16);
  --line-strong: rgba(91, 140, 255, 0.42);
  --green: #8bdfff;
  --green-strong: #5b8cff;
  --cyan: #6fffe9;
  --violet: #b8b4ff;
  --accent-rgb: 139, 223, 255;
  --accent-strong-rgb: 91, 140, 255;
  --secondary-rgb: 111, 255, 233;
  --tertiary-rgb: 184, 180, 255;
}

[data-theme="light"][data-palette="green"] {
  --line: rgba(20, 91, 50, 0.14);
  --line-strong: rgba(19, 169, 83, 0.36);
  --green: #159b4b;
  --green-strong: #48d477;
  --cyan: #2588b8;
  --violet: #715ad1;
  --accent-rgb: 21, 155, 75;
  --accent-strong-rgb: 72, 212, 119;
  --secondary-rgb: 37, 136, 184;
  --tertiary-rgb: 113, 90, 209;
}

[data-theme="light"][data-palette="orange"] {
  --line: rgba(168, 88, 34, 0.16);
  --line-strong: rgba(226, 112, 48, 0.38);
  --green: #d66b28;
  --green-strong: #ff9856;
  --cyan: #bd7c15;
  --violet: #a85585;
  --accent-rgb: 214, 107, 40;
  --accent-strong-rgb: 255, 152, 86;
  --secondary-rgb: 189, 124, 21;
  --tertiary-rgb: 168, 85, 133;
}

[data-theme="light"][data-palette="blue"] {
  --line: rgba(35, 105, 156, 0.16);
  --line-strong: rgba(58, 126, 221, 0.42);
  --green: #2377b7;
  --green-strong: #52a8ff;
  --cyan: #168f9e;
  --violet: #6465d8;
  --accent-rgb: 35, 119, 183;
  --accent-strong-rgb: 82, 168, 255;
  --secondary-rgb: 22, 143, 158;
  --tertiary-rgb: 100, 101, 216;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .lesson-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .promo-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .lesson-nav {
    position: static;
  }

  .grid-3,
  .grid-2,
  .teachers-grid,
  .result-strip {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-card,
  .teacher-card:nth-child(4),
  .teacher-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .palette-picker {
    gap: 4px;
    padding: 5px;
  }

  .palette-swatch {
    width: 22px;
    height: 22px;
  }

  .palette-swatch.active::after {
    inset: 6px;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 9, 13, 0.96);
    backdrop-filter: blur(18px);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav .mobile-signup {
    display: inline-flex;
    justify-content: center;
    color: #06120b;
    border: 1px solid rgba(var(--accent-rgb), 0.8);
    background: linear-gradient(135deg, var(--green), var(--green-strong));
  }

  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 22px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 42px;
  }

  .hero-console {
    min-height: auto;
  }

  .hero-gallery {
    padding: 12px;
  }

  .carousel-track,
  .carousel-art,
  .carousel-art svg {
    min-height: 340px;
  }

  .status-row,
  .course-radar,
  .grid-3,
  .grid-2,
  .teachers-grid,
  .result-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .course-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .btn {
    width: 100%;
  }

  .header-cta {
    display: none;
  }

  .contact-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form .btn {
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .brand > span:not(.brand-mark) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-dots span {
    animation: none;
  }
}
