:root {
  --zm-brand: #6750e8;
  --zm-brand-strong: #4f3bd5;
  --zm-cyan: #00c2ff;
  --zm-surface: rgba(255, 255, 255, 0.78);
  --zm-border: rgba(103, 80, 232, 0.16);
  --zm-shadow: 0 18px 48px rgba(33, 31, 71, 0.11);
  --md-primary-fg-color: #5b48df;
  --md-primary-fg-color--light: #7969eb;
  --md-primary-fg-color--dark: #4331bd;
  --md-accent-fg-color: #00a9df;
}

[data-md-color-scheme="slate"] {
  --zm-surface: rgba(30, 32, 48, 0.78);
  --zm-border: rgba(133, 116, 255, 0.24);
  --zm-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --md-default-bg-color: #11131d;
  --md-default-bg-color--light: #171a27;
  --md-code-bg-color: #181b2a;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 12% 4%, rgba(103, 80, 232, 0.09), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(0, 194, 255, 0.07), transparent 24rem);
  background-attachment: fixed;
}

.md-header {
  background: linear-gradient(110deg, #4634bd 0%, #6250df 48%, #087da8 100%);
  box-shadow: 0 4px 24px rgba(31, 25, 93, 0.22);
}

.md-tabs {
  background: linear-gradient(110deg, #3d2eab 0%, #5140c9 55%, #076f95 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.md-tabs__link {
  font-weight: 650;
  opacity: 0.78;
  transition: opacity 160ms ease, transform 160ms ease;
}

.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link {
  opacity: 1;
  transform: translateY(-1px);
}

.md-grid {
  max-width: 92rem;
}

.md-main__inner {
  margin-top: 1.1rem;
}

.md-content__inner {
  padding-bottom: 4rem;
}

.md-content__inner > h1:first-child {
  margin-bottom: 1.2rem;
  color: var(--md-default-fg-color);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 2.3rem;
  padding: clamp(2.3rem, 6vw, 5.6rem) clamp(1.4rem, 5vw, 5rem);
  border: 1px solid var(--zm-border);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(91, 72, 223, 0.13), rgba(0, 194, 255, 0.07)),
    var(--zm-surface);
  box-shadow: var(--zm-shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
}

.hero::before {
  top: -9rem;
  right: -7rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.22), transparent 68%);
}

.hero::after {
  bottom: -10rem;
  left: -8rem;
  width: 27rem;
  height: 27rem;
  background: radial-gradient(circle, rgba(103, 80, 232, 0.25), transparent 68%);
}

.hero h1 {
  margin: 0 0 0.65rem;
  background: linear-gradient(100deg, var(--zm-brand-strong), #6d5df0 46%, #009dce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h2 {
  margin: 0 auto 1rem;
  border: 0;
  color: var(--md-default-fg-color);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 52rem;
  margin: 0.7rem auto 1.5rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.92rem;
  line-height: 1.8;
}

.hero .md-button {
  margin: 0.3rem 0.28rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(103, 80, 232, 0.3);
  border-radius: 0.65rem;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.hero .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77, 58, 190, 0.2);
}

.hero .md-button--primary {
  border-color: transparent;
  background: linear-gradient(105deg, var(--zm-brand), #178fc1);
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(103, 80, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--zm-brand-strong);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

[data-md-color-scheme="slate"] .hero-badge {
  background: rgba(20, 21, 38, 0.55);
  color: #bcb2ff;
}

.landing-hero {
  padding-top: clamp(3.2rem, 8vw, 7rem);
  padding-bottom: clamp(3.2rem, 8vw, 7rem);
  background:
    linear-gradient(130deg, rgba(103, 80, 232, 0.14), rgba(0, 194, 255, 0.1)),
    var(--zm-surface);
}

.landing-hero h1 {
  max-width: 17ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 1.04;
}

.hero--ui { background: linear-gradient(135deg, rgba(125, 80, 255, 0.15), rgba(255, 88, 174, 0.08)), var(--zm-surface); }
.hero--asset { background: linear-gradient(135deg, rgba(255, 150, 45, 0.14), rgba(255, 210, 75, 0.08)), var(--zm-surface); }
.hero--debug { background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.09)), var(--zm-surface); }
.hero--math { background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(0, 194, 255, 0.08)), var(--zm-surface); }
.hero--physics { background: linear-gradient(135deg, rgba(0, 154, 255, 0.14), rgba(103, 80, 232, 0.09)), var(--zm-surface); }
.hero--academy { background: linear-gradient(135deg, rgba(255, 80, 116, 0.13), rgba(255, 160, 54, 0.09)), var(--zm-surface); }

.trust-strip {
  margin: -1rem 0 3rem;
  color: var(--md-default-fg-color--light);
  text-align: center;
  word-spacing: 0.65rem;
}

.section-title {
  margin-top: 3rem !important;
  border: 0 !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  text-align: center;
}

.product-grid > ul > li {
  min-height: 14.5rem;
  padding: 1.45rem !important;
}

.product-grid .lg {
  color: var(--zm-brand);
  font-size: 1.8rem !important;
}

.product-grid a:last-child {
  font-weight: 750;
}

.value-grid > ul > li {
  min-height: 9rem;
}

.learning-path {
  position: relative;
  margin: 1.5rem 0 3rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(103, 80, 232, 0.24);
}

.learning-path h3 {
  position: relative;
  margin-top: 2.2rem;
}

.learning-path h3::before {
  position: absolute;
  top: 0.35rem;
  left: -2.48rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--md-default-bg-color);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zm-brand), #00a9d6);
  box-shadow: 0 0 0 3px rgba(103, 80, 232, 0.12);
  content: "";
}

.course-grid > ul > li {
  min-height: 15.5rem;
}

.course-cta {
  margin: 3.5rem 0 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--zm-border);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(103, 80, 232, 0.11), rgba(0, 194, 255, 0.08));
  text-align: center;
  box-shadow: var(--zm-shadow);
}

.course-cta h2 {
  margin-top: 0;
  border: 0;
}

.md-typeset h2 {
  margin-top: 2.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--zm-border);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.md-typeset h3 {
  font-weight: 750;
  letter-spacing: -0.018em;
}

.md-typeset .grid.cards > ul {
  gap: 0.9rem;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border: 1px solid var(--zm-border);
  border-radius: 0.9rem;
  background: var(--zm-surface);
  box-shadow: 0 8px 28px rgba(33, 31, 71, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
  backdrop-filter: blur(12px);
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 80, 232, 0.42);
  box-shadow: var(--zm-shadow);
}

.md-typeset table:not([class]) {
  overflow: hidden;
  border: 1px solid var(--zm-border);
  border-radius: 0.75rem;
  box-shadow: 0 7px 24px rgba(33, 31, 71, 0.055);
}

.md-typeset table:not([class]) th {
  background: rgba(103, 80, 232, 0.09);
  font-weight: 750;
}

.md-typeset .admonition,
.md-typeset details {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 7px 24px rgba(33, 31, 71, 0.07);
}

.md-typeset pre > code {
  border-radius: 0.7rem;
}

.highlight > pre,
.md-typeset pre {
  border-radius: 0.7rem;
  box-shadow: 0 10px 30px rgba(22, 23, 38, 0.12);
}

.md-sidebar__scrollwrap {
  scrollbar-width: thin;
}

.md-nav__link--active {
  font-weight: 700;
}

.md-footer {
  background: linear-gradient(110deg, #171426, #24203e 55%, #112d3a);
}

@media screen and (max-width: 76.234375em) {
  .md-grid {
    max-width: 100%;
  }
}

@media screen and (max-width: 44.984375em) {
  .hero {
    margin-right: -0.4rem;
    margin-left: -0.4rem;
    padding: 2.2rem 1.1rem;
    border-radius: 1rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero .md-button {
    display: block;
    width: 100%;
    margin: 0.55rem 0;
  }
}
