:root {
  color-scheme: light;
  --purple: #5937ef;
  --lime: #dcff00;
  --ink: #171335;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scrollbar-gutter: stable;
  background: #fff;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: #fff;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(220, 255, 0, 0.6); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.landing { min-height: 100vh; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 78svh, 850px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 48%, rgba(176, 152, 255, 0.46) 0, rgba(176, 152, 255, 0.14) 28%, transparent 52%),
    linear-gradient(118deg, #5530e8 0%, #5a37f1 49%, #6448f6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 37%;
  background: linear-gradient(to bottom, transparent, rgba(210, 199, 255, 0.14));
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  z-index: -1;
  top: 70px;
  right: -2%;
  width: 54%;
  height: 59%;
  opacity: 0.12;
  background-image: url("/assets/images/landing/notebook-grid.png");
  background-position: right calc(2vw + 22px) top 34px;
  background-size: 86px 86px;
  background-repeat: repeat;
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000);
}

.landing-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1460px);
  min-height: 96px;
  margin: 0 auto;
  gap: 42px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.landing-brand img {
  width: 40px;
  filter: brightness(0) saturate(100%) invert(91%) sepia(96%) saturate(1499%) hue-rotate(19deg) brightness(105%) contrast(103%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4vw, 66px);
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  white-space: nowrap;
}

.landing-nav a, .landing-nav button, .login-link {
  transition: color 160ms ease, opacity 160ms ease;
}

.landing-nav a:hover, .landing-nav button:hover, .login-link:hover { color: var(--lime); }

.landing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  font-size: 15px;
}

.header-cta, .hero-cta {
  color: #171335;
  background: var(--lime);
  box-shadow: 0 10px 28px rgba(64, 37, 149, 0.18);
  font-weight: 750;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.header-cta {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
}

.header-cta:hover, .hero-cta:hover {
  transform: translateY(-2px);
  background: #e5ff37;
  box-shadow: 0 15px 32px rgba(35, 17, 105, 0.27);
}

.menu-toggle { display: none; }

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  width: min(100% - 56px, 1460px);
  min-height: calc(clamp(680px, 78svh, 850px) - 96px);
  margin: 0 auto;
  padding: 35px 0 45px;
}

.hero__copy {
  position: relative;
  z-index: 5;
  padding-left: 8px;
}

.hero__copy h1 {
  margin: 0;
  color: var(--lime);
  font-size: clamp(50px, 5.25vw, 78px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.047em;
  text-transform: uppercase;
}

.hero__copy p {
  margin: 34px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(18px, 1.52vw, 23px);
  line-height: 1.45;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 36px;
  padding: 0 22px;
  gap: 24px;
  border-radius: 11px;
  font-size: 15px;
}

.hero-cta span:last-child { font-size: 27px; font-weight: 450; line-height: 1; }

.hero__visual {
  position: absolute;
  z-index: 2;
  top: 1%;
  right: -5.5%;
  width: 69%;
  height: 99%;
  pointer-events: none;
}

.hero__collage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(37, 16, 125, 0.18));
}

.scribble {
  position: absolute;
  z-index: 4;
  width: 76px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.scribble--bottom-left { bottom: -2%; left: 1%; width: 83px; transform: rotate(52deg); }
.scribble--bottom-right { right: -1%; bottom: -1%; width: 72px; transform: rotate(38deg); }

.benefits {
  position: relative;
  z-index: 6;
  min-height: 190px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 -8px 30px rgba(37, 23, 104, 0.04);
}

.benefits__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: min(100% - 48px, 1460px);
  min-height: 190px;
  margin: 0 auto;
}

.benefit {
  display: grid;
  grid-template-columns: 66px 1fr;
  min-height: 118px;
  padding: 16px 34px;
  gap: 16px;
  border-right: 1px solid #e7e3f6;
}

.benefit:first-child { padding-left: 12px; }
.benefit:last-child { border-right: 0; }

.benefit__icon {
  width: 56px;
  height: 56px;
  overflow: visible;
}

.benefit__icon img {
  width: 82px;
  max-width: none;
  height: 82px;
  object-fit: contain;
  transform: translate(-13px, -13px);
}

.benefit strong {
  display: block;
  color: #5d39e8;
  font-size: 17px;
  line-height: 1.35;
}

.benefit p {
  margin: 12px 0 0;
  color: #706d88;
  font-size: 13px;
  line-height: 1.45;
}

.platform-inside {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #f6f5ff;
}

.platform-inside__inner {
  position: relative;
  width: min(100% - 64px, 1340px);
  margin: 0 auto;
  padding: 82px 0 104px;
}

.platform-inside__dots {
  position: absolute;
  top: 47px;
  right: 3px;
  width: 220px;
  height: auto;
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}

.platform-inside h2 {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: #17151f;
  font-size: clamp(36px, 3.15vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.platform-inside__marked {
  position: relative;
  display: inline-block;
}

.platform-inside__marked img {
  position: absolute;
  right: 5%;
  bottom: -29px;
  width: 48%;
  height: 27px;
  object-fit: fill;
  transform: rotate(-2deg);
  pointer-events: none;
  user-select: none;
}

.platform-inside__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  gap: clamp(24px, 3vw, 46px);
}

.platform-card {
  min-height: 356px;
  padding: 31px 32px 29px;
  border: 1px solid rgba(94, 73, 183, 0.035);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(66, 48, 139, 0.065);
}

.platform-card__icon {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: #f0edff;
}

.platform-card__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.platform-card h3 {
  margin: 0;
  color: #181522;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.022em;
}

.platform-card > p {
  max-width: 330px;
  margin: 14px 0 0;
  color: #6e6a7a;
  font-size: 14px;
  line-height: 1.48;
}

.platform-card ul {
  display: grid;
  margin: 17px 0 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.platform-card li {
  position: relative;
  min-height: 18px;
  padding-left: 27px;
  color: #504b60;
  font-size: 14px;
  line-height: 1.35;
}

.platform-card li::before {
  content: "";
  position: absolute;
  top: 0.05em;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("/assets/images/landing/platform/check.png") center / contain no-repeat;
}

.why-easyclass {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
}

.why-easyclass__inner {
  width: min(100% - 64px, 1460px);
  margin: 0 auto;
  padding: 88px 0 104px;
}

.why-easyclass h2 {
  margin: 0;
  color: #171335;
  font-size: clamp(36px, 3.15vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.why-easyclass__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin-top: 42px;
  gap: clamp(14px, 1.4vw, 22px);
}

.why-easyclass__card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f2f0ff;
  box-shadow: 0 14px 32px rgba(66, 48, 139, 0.08);
}

.why-easyclass__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1402 / 1122;
  object-fit: cover;
}

.three-steps {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
}

.three-steps__inner {
  position: relative;
  width: min(100% - 64px, 1340px);
  margin: 0 auto;
  padding: 92px 0 104px;
}

.three-steps h2 {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: #171335;
  font-size: clamp(38px, 3.65vw, 54px);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: -0.042em;
  text-align: center;
}

.three-steps__marked {
  position: relative;
  display: inline-block;
}

.three-steps__marked img {
  position: absolute;
  right: 3%;
  bottom: -26px;
  width: 92%;
  height: 23px;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.three-steps__star,
.three-steps__squiggle {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.three-steps__star {
  top: 104px;
  left: 1.2%;
  width: 43px;
  transform: rotate(-8deg);
}

.three-steps__squiggle {
  top: 79px;
  right: 11.5%;
  width: 68px;
  transform: rotate(5deg);
}

.three-steps__stage {
  position: relative;
  margin-top: 66px;
}

.three-steps__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(22px, 2.8vw, 44px);
}

.three-steps__card {
  min-width: 0;
}

.three-steps__card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.three-steps__arrow {
  position: absolute;
  z-index: 3;
  top: 20.8%;
  width: clamp(112px, 10.6%, 142px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.three-steps__arrow--one { left: 27%; }
.three-steps__arrow--two { left: 61.1%; top: 20.5%; }

.three-steps__mobile-connector { display: none; }

.three-steps__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: min(100%, 960px);
  margin: 2px auto 0;
  gap: clamp(28px, 5vw, 78px);
}

.three-steps__benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 14px;
}

.three-steps__benefit img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.three-steps__benefit p {
  margin: 0;
  color: #26213c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.three-steps__benefit strong,
.three-steps__benefit span {
  display: block;
}

.three-steps__benefit strong { font-weight: 750; }

.landing-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 10px;
  opacity: 0;
  color: #fff;
  background: rgba(28, 18, 76, 0.94);
  box-shadow: 0 12px 32px rgba(15, 8, 49, 0.25);
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.landing-toast--visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .landing-header { grid-template-columns: auto 1fr auto; }
  .landing-nav { gap: 26px; }
  .landing-actions { gap: 18px; }
  .hero__content { grid-template-columns: minmax(330px, 0.85fr) minmax(480px, 1.15fr); }
  .hero__visual { right: -9%; width: 70%; }
  .benefit { grid-template-columns: 52px 1fr; padding-inline: 18px; gap: 12px; }
  .benefit__icon { width: 48px; height: 48px; }
  .platform-inside__inner {
    width: min(100% - 96px, 1040px);
    padding: 62px 0 50px;
  }
  .platform-inside__cards { margin-top: 45px; gap: 24px; }
  .platform-card { min-height: 330px; padding: 26px 24px; }
  .platform-card h3 { font-size: 18px; }
  .platform-card > p, .platform-card li { font-size: 13px; }
  .platform-card ul { gap: 10px; }
  .why-easyclass__inner { width: min(100% - 48px, 1040px); padding: 78px 0 88px; }
  .why-easyclass__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .three-steps__inner { width: min(100% - 48px, 1040px); padding: 78px 0 88px; }
  .three-steps__star { top: 90px; left: 0; width: 38px; }
  .three-steps__squiggle { top: 71px; right: 7%; width: 59px; }
  .three-steps__stage { margin-top: 60px; }
  .three-steps__benefits { width: min(100%, 820px); gap: 28px; }
  .three-steps__benefit img { width: 48px; height: 48px; }
  .three-steps__benefit p { font-size: 14px; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; }

  .landing-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 720px);
    min-height: 76px;
  }

  .landing-brand { font-size: 23px; }
  .landing-brand img { width: 32px; }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .landing-nav, .landing-actions {
    position: absolute;
    right: 0;
    left: 0;
    display: none;
    margin-inline: auto;
    color: var(--ink);
    background: rgba(255,255,255,0.98);
  }

  .landing-nav {
    top: 76px;
    width: calc(100% + 32px);
    transform: translateX(-16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 10px;
    gap: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 30px rgba(31, 16, 91, 0.15);
  }

  .landing-nav a, .landing-nav button { min-height: 48px; text-align: left; }

  .landing-actions {
    top: 230px;
    z-index: 2;
    width: calc(100% + 32px);
    transform: translateX(-16px);
    padding: 10px 24px 22px;
    justify-content: stretch;
    border-radius: 0 0 18px 18px;
  }

  .landing-actions > * { flex: 1; }
  .landing-actions .login-link { color: var(--purple); }
  .nav-open .landing-nav, .nav-open .landing-actions { display: flex; }

  .hero__content {
    display: flex;
    flex-direction: column;
    width: min(100% - 32px, 720px);
    min-height: 0;
    padding: 54px 0 0;
  }

  .hero__copy { align-self: stretch; padding-left: 0; }
  .hero__copy h1 { font-size: clamp(45px, 11vw, 68px); }
  .hero__copy p { margin-top: 26px; }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 115%;
    height: auto;
    margin: 24px -12% -2% auto;
  }

  .hero__collage { height: auto; }
  .scribble--bottom-left { bottom: 3%; }

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

  .benefit { border-bottom: 1px solid #e7e3f6; }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(n + 3) { border-bottom: 0; }

  .platform-inside__inner {
    width: min(100% - 32px, 720px);
    padding: 70px 0 84px;
  }

  .platform-inside__dots { top: 35px; right: -55px; width: 190px; opacity: 0.34; }
  .platform-inside__cards { grid-template-columns: 1fr; margin-top: 56px; gap: 20px; }
  .platform-card { min-height: 0; padding: 29px 30px 31px; }
  .platform-card h3 { font-size: 20px; }
  .platform-card > p, .platform-card li { font-size: 14px; }
  .platform-card > p { max-width: 520px; }

  .why-easyclass__inner {
    width: min(100% - 32px, 720px);
    padding: 74px 0 84px;
  }

  .why-easyclass__cards { margin-top: 36px; gap: 18px; }
  .why-easyclass__card { border-radius: 19px; }

  .three-steps__inner {
    width: min(100% - 32px, 720px);
    padding: 74px 0 84px;
  }

  .three-steps__star { top: 78px; left: 1%; width: 38px; }
  .three-steps__squiggle { top: 65px; right: 3%; width: 56px; }
  .three-steps__stage { width: min(100%, 530px); margin: 60px auto 0; }
  .three-steps__cards { grid-template-columns: 1fr; gap: 0; }
  .three-steps__card { position: relative; z-index: 1; }
  .three-steps__arrow { display: none; }

  .three-steps__mobile-connector {
    position: relative;
    z-index: 3;
    display: grid;
    height: 98px;
    margin: -47px 0 -43px;
    place-items: center;
    pointer-events: none;
  }

  .three-steps__mobile-connector img {
    width: 145px;
    max-width: none;
    height: auto;
    transform: rotate(90deg);
  }

  .three-steps__mobile-connector--second img { transform: rotate(90deg) scaleY(-1); }

  .three-steps__benefits {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    margin-top: 18px;
    gap: 20px;
  }

  .three-steps__benefit { justify-content: flex-start; }
  .three-steps__benefit img { width: 52px; height: 52px; }
  .three-steps__benefit p { font-size: 15px; }
}

@media (max-width: 560px) {
  .hero__content { padding-top: 38px; }
  .hero__copy h1 { font-size: clamp(40px, 12.4vw, 58px); line-height: 1.01; }
  .hero__copy p { font-size: 17px; }
  .hero-cta { width: 100%; }

  .hero__visual {
    width: 112%;
    margin-top: 25px;
    margin-right: 0;
    margin-bottom: 0;
    transform: translateX(-10%);
  }

  .scribble--bottom-left { bottom: 0; left: -4%; width: 57px; }
  .scribble--bottom-right { right: -8%; width: 56px; }

  .benefits__inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 480px);
  }

  .benefit, .benefit:first-child {
    grid-template-columns: 56px 1fr;
    min-height: 104px;
    padding: 16px 8px;
    border-right: 0;
    border-bottom: 1px solid #e7e3f6;
  }

  .benefit:nth-child(n + 3) { border-bottom: 1px solid #e7e3f6; }
  .benefit:last-child { border-bottom: 0; }
  .benefit p br { display: none; }

  .platform-inside__inner { width: min(100% - 28px, 480px); padding: 59px 0 68px; }
  .platform-inside h2 { width: 290px; font-size: 36px; }
  .platform-inside__marked img { right: 1%; bottom: -24px; width: 64%; height: 24px; }
  .platform-inside__dots { top: 21px; right: -98px; width: 185px; opacity: 0.28; }
  .platform-inside__cards { margin-top: 52px; }
  .platform-card { padding: 26px 24px 29px; border-radius: 19px; }
  .platform-card__icon { width: 60px; height: 60px; margin-bottom: 18px; }
  .platform-card__icon img { width: 52px; height: 52px; }

  .why-easyclass__inner { width: min(100% - 28px, 480px); padding: 62px 0 70px; }
  .why-easyclass h2 { font-size: 36px; }
  .why-easyclass__cards { grid-template-columns: 1fr; margin-top: 32px; gap: 16px; }

  .three-steps__inner { width: min(100% - 24px, 480px); padding: 64px 0 70px; }
  .three-steps h2 { font-size: clamp(34px, 10.4vw, 44px); line-height: 1.12; }
  .three-steps h2 > span:first-child,
  .three-steps__marked { display: block; }
  .three-steps__marked img { right: 9%; bottom: -24px; width: 82%; height: 21px; }
  .three-steps__star { top: 61px; left: -2px; width: 31px; }
  .three-steps__squiggle { top: 50px; right: -6px; width: 45px; }
  .three-steps__stage { margin-top: 57px; }
  .three-steps__mobile-connector { height: 82px; margin: -38px 0 -35px; }
  .three-steps__mobile-connector img { width: 124px; }
  .three-steps__benefits { width: min(100% - 30px, 330px); margin-top: 14px; gap: 17px; }
  .three-steps__benefit { gap: 13px; }
  .three-steps__benefit img { width: 48px; height: 48px; }
  .three-steps__benefit p { font-size: 14px; }
}

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

.lesson-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 82%, rgba(74, 37, 219, 0.34), transparent 38%),
    linear-gradient(145deg, #0d012c 0%, #120338 52%, #160448 100%);
}

.lesson-showcase::before,
.lesson-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: rgba(69, 31, 202, 0.13);
  filter: blur(90px);
}

.lesson-showcase::before { top: 4%; left: -230px; }
.lesson-showcase::after { right: -220px; bottom: -16%; }

.lesson-showcase__inner {
  width: min(100% - 112px, 1340px);
  margin: 0 auto;
  padding: 92px 0 86px;
  text-align: center;
}

.lesson-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin: 0;
  padding: 0 15px;
  gap: 8px;
  border: 1px solid rgba(112, 73, 255, 0.35);
  border-radius: 999px;
  color: #aaa1ce;
  background: rgba(28, 9, 76, 0.72);
  box-shadow: inset 0 0 16px rgba(99, 55, 255, 0.07);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lesson-showcase__eyebrow span { color: #7a56ff; font-size: 13px; }

.lesson-showcase h2 {
  margin: 19px 0 0;
  font-size: clamp(40px, 4.15vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lesson-showcase h2 span { color: var(--lime); }

.lesson-showcase__lead {
  margin: 15px 0 0;
  color: #a8a1c2;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.lesson-showcase__carousel {
  position: relative;
  margin-top: 52px;
}

.lesson-showcase__viewport {
  overflow: hidden;
  padding: 20px 2px 25px;
}

.lesson-showcase__track {
  display: flex;
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.lesson-showcase__page {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 7.5%;
  gap: 18px;
}

.showcase-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(131, 99, 229, 0.16);
  border-radius: 15px;
  background: #1b0e41;
  box-shadow: 0 14px 35px rgba(3, 0, 23, 0.16);
  text-align: left;
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  z-index: 2;
  border-color: #7350ff;
  box-shadow: 0 18px 42px rgba(36, 10, 127, 0.52), 0 0 28px rgba(101, 62, 255, 0.34);
  outline: none;
  transform: translateY(-10px) scale(1.035);
}

.showcase-card__cover {
  position: relative;
  aspect-ratio: 1.54;
  overflow: hidden;
  background: #311b6f;
}

.showcase-card__cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(16, 4, 49, 0.84));
  pointer-events: none;
}

.showcase-card__cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.showcase-card:hover .showcase-card__cover > img,
.showcase-card:focus-visible .showcase-card__cover > img { transform: scale(1.045); }

.showcase-card__level {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  min-width: 43px;
  height: 34px;
  padding: 0 10px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #895eff, #5b2ff0);
  box-shadow: 0 5px 13px rgba(42, 15, 125, 0.28);
  font-size: 13px;
  font-weight: 800;
}

.showcase-card__skills {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.showcase-card:hover .showcase-card__skills,
.showcase-card:focus-visible .showcase-card__skills { opacity: 1; transform: translateY(0); }

.showcase-card__skills span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 5px 8px;
  gap: 4px;
  border: 1px solid rgba(144, 116, 241, 0.36);
  border-radius: 5px;
  color: #ddd8ee;
  background: rgba(20, 10, 52, 0.88);
  font-size: 9px;
  white-space: nowrap;
}

.showcase-card__skills b { color: var(--lime); font-size: 11px; }

.showcase-card__body {
  min-height: 154px;
  padding: 18px 19px 20px;
}

.showcase-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-card__facts {
  display: flex;
  align-items: center;
  margin: 7px 0 0;
  gap: 7px;
  color: #81799e;
  font-size: 12px;
  font-weight: 600;
}

.showcase-card__facts i { color: #51476f; font-size: 7px; font-style: normal; }

.showcase-card__description {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: #aaa4bc;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-showcase__arrow {
  position: absolute;
  z-index: 5;
  top: calc(50% - 3px);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #32187b;
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 0, 24, 0.27);
  font-size: 25px;
  transform: translateY(-50%);
  transition: color 160ms ease, transform 160ms ease, background 160ms ease;
}

.lesson-showcase__arrow:hover { color: #fff; background: #724cff; transform: translateY(-50%) scale(1.06); }
.lesson-showcase__arrow:focus-visible { outline-color: var(--lime); }
.lesson-showcase__arrow--previous { left: 0; }
.lesson-showcase__arrow--next { right: 0; }

.lesson-showcase__dots {
  display: flex;
  justify-content: center;
  margin-top: 1px;
  gap: 14px;
}

.lesson-showcase__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #585086;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.lesson-showcase__dots button:hover { transform: scale(1.25); }
.lesson-showcase__dots button[aria-current="true"] { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.38); }

@media (max-width: 980px) {
  .lesson-showcase__inner { width: min(100% - 48px, 820px); }
  .lesson-showcase__page { padding: 0 6%; gap: 13px; }
  .showcase-card__body { padding-inline: 14px; }
  .showcase-card h3 { font-size: 18px; }
  .showcase-card__skills span { padding-inline: 5px; font-size: 8px; }
}

@media (max-width: 700px) {
  .lesson-showcase__inner { width: min(100% - 28px, 520px); padding: 68px 0 64px; }
  .lesson-showcase h2 { font-size: clamp(38px, 11vw, 52px); }
  .lesson-showcase__lead br { display: none; }
  .lesson-showcase__carousel { margin-top: 34px; }
  .lesson-showcase__viewport { padding: 17px 0 22px; }
  .lesson-showcase__page { grid-template-columns: 1fr; padding: 0 44px; gap: 16px; }
  .showcase-card:nth-child(n + 2) { display: none; }
  .showcase-card__body { min-height: 146px; }
  .showcase-card h3 { font-size: 20px; }
  .lesson-showcase__arrow { width: 40px; height: 40px; font-size: 21px; }
  .lesson-showcase__arrow--previous { left: -5px; }
  .lesson-showcase__arrow--next { right: -5px; }
}

.pricing {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 24px;
  color: var(--ink);
  background: #f7f7fc;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.pricing__inner {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 96px 0 112px;
}

.pricing h2 {
  margin: 0;
  color: #090811;
  font-size: clamp(44px, 4.25vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 62px;
  gap: 30px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 540px;
  padding: 34px 32px 28px;
  flex-direction: column;
  border: 1px solid #eeecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(48, 35, 103, 0.07);
}

.pricing-card--featured {
  border: 2px solid #9a7df6;
  box-shadow: 0 18px 38px rgba(89, 55, 239, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  right: 26px;
  padding: 7px 17px;
  border-radius: 999px;
  color: #2c3100;
  background: var(--lime);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.pricing-card__body { flex: 1; }

.pricing-card__name {
  margin: 0;
  color: #514a70;
  font-size: 19px;
  font-weight: 700;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  min-height: 42px;
  margin: 10px 0 0;
  gap: 6px;
  color: #171335;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pricing-card__price strong { font: inherit; }

.pricing-card__price span,
.pricing-card__total span {
  color: #817c92;
  font-size: 16px;
  font-weight: 500;
}

.pricing-card__description {
  min-height: 44px;
  margin: 22px 0 0;
  color: #625d75;
  font-size: 14px;
  line-height: 1.65;
}

.pricing-card__features {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.pricing-card__features li {
  position: relative;
  padding-left: 27px;
  color: #4f4963;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  top: -0.1em;
  left: 0;
  color: var(--purple);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.pricing-card__footer { margin-top: 30px; }

.pricing-card__total {
  display: flex;
  align-items: baseline;
  margin: 0 0 15px;
  gap: 6px;
}

.pricing-card__total strong {
  color: var(--purple);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.pricing-card__button {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  place-items: center;
  border: 2px solid #8262ed;
  border-radius: 9px;
  color: var(--purple);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pricing-card__button:hover {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 10px 22px rgba(89, 55, 239, 0.18);
  transform: translateY(-2px);
}

.pricing-card__button--primary {
  border-color: var(--lime);
  color: #282c00;
  background: var(--lime);
  box-shadow: 0 10px 22px rgba(153, 178, 0, 0.18);
}

.pricing-card__button--primary:hover {
  border-color: #e5ff37;
  color: #282c00;
  background: #e5ff37;
}

.pricing-card__note {
  min-height: 18px;
  margin: 16px 0 0;
  color: #7654e8;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 980px) {
  .pricing__inner { width: min(100% - 48px, 760px); padding: 82px 0 94px; }
  .pricing__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .pricing-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
}

@media (max-width: 650px) {
  .pricing__inner { width: min(100% - 28px, 480px); padding: 66px 0 74px; }
  .pricing h2 { font-size: 44px; }
  .pricing__cards { grid-template-columns: 1fr; margin-top: 46px; gap: 20px; }
  .pricing-card,
  .pricing-card:last-child { grid-column: auto; width: 100%; min-height: 0; padding: 30px 24px 25px; }
  .pricing-card--featured { order: -1; }
  .pricing-card__description { min-height: 0; }
}

.time-savings {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 44%, rgba(104, 72, 246, 0.055), transparent 42%),
    #fdfcff;
}

.time-savings__inner {
  width: min(100% - 64px, 1340px);
  margin: 0 auto;
  padding: 96px 0 48px;
}

.time-savings h2 {
  margin: 0;
  color: #11102b;
  font-size: clamp(44px, 4.15vw, 64px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: center;
}

.time-savings h2 span { color: var(--purple); }

.time-savings__lead {
  margin: 22px 0 0;
  color: #77738b;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.48;
  text-align: center;
}

.time-savings__comparison {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin-top: 48px;
  gap: 28px;
}

.time-savings__card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 30px);
  background: #fff;
  box-shadow: 0 18px 45px rgba(43, 27, 105, 0.09);
}

.time-savings__card img {
  width: 100%;
  height: auto;
}

.time-savings__vs {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 7px solid #fdfcff;
  border-radius: 50%;
  color: var(--purple);
  background: #eeeaff;
  box-shadow: 0 8px 20px rgba(50, 27, 142, 0.12);
  font-size: 18px;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.time-savings__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  margin-top: 28px;
  padding: 16px 34px;
  gap: 20px;
  border: 1px solid #ded8f2;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 30px rgba(44, 28, 102, 0.04);
}

.time-savings__summary img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
}

.time-savings__summary p {
  margin: 0;
  color: #29263c;
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.45;
  text-align: center;
}

.time-savings__summary strong { color: var(--purple); }

@media (max-width: 900px) {
  .time-savings__inner { width: min(100% - 40px, 680px); padding: 80px 0 40px; }
  .time-savings__comparison { grid-template-columns: 1fr; margin-top: 42px; gap: 42px; }
  .time-savings__vs { top: 50%; width: 58px; height: 58px; border-width: 6px; }
  .time-savings__summary { margin-top: 34px; }
}

@media (max-width: 560px) {
  .time-savings__inner { width: min(100% - 24px, 480px); padding: 64px 0 32px; }
  .time-savings h2 { font-size: clamp(38px, 11.5vw, 50px); }
  .time-savings__lead { margin-top: 18px; font-size: 15px; }
  .time-savings__lead br { display: none; }
  .time-savings__comparison { margin-top: 34px; gap: 34px; }
  .time-savings__card { border-radius: 18px; box-shadow: 0 12px 30px rgba(43, 27, 105, 0.08); }
  .time-savings__vs { width: 50px; height: 50px; border-width: 5px; font-size: 15px; }
  .time-savings__summary { min-height: 0; margin-top: 26px; padding: 16px 18px; gap: 12px; border-radius: 14px; }
  .time-savings__summary img { width: 38px; height: 38px; }
  .time-savings__summary p { font-size: 14px; text-align: left; }
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 28px 40px 48px;
  color: #fff;
  background: #fdfcff;
}

.final-cta__inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(460px, 0.95fr) minmax(560px, 1.05fr);
  width: min(100%, 1460px);
  min-height: 540px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 12%, rgba(214, 132, 255, 0.62), transparent 30%),
    radial-gradient(circle at 52% 52%, rgba(132, 56, 245, 0.42), transparent 40%),
    linear-gradient(125deg, #4511a3 0%, #5818c4 46%, #7428e2 100%);
  box-shadow: 0 24px 58px rgba(49, 22, 126, 0.16);
}

.final-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 32%, #000 68%);
}

.final-cta__copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  padding: 72px 24px 68px 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.final-cta__burst,
.final-cta__arc {
  position: absolute;
  z-index: 4;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.final-cta__burst {
  top: 54px;
  left: 28px;
  width: 78px;
}

.final-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 4.1vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.final-cta h2 > span {
  display: block;
  white-space: nowrap;
}

.final-cta h2 > .final-cta__title-line {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.22em;
}

.final-cta__arc {
  right: 0.02em;
  bottom: -0.18em;
  width: 2.2em;
}

.final-cta__copy > p {
  margin: 26px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.48;
}

.final-cta__actions {
  display: flex;
  margin-top: 34px;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.final-cta__primary {
  display: inline-flex;
  min-height: 64px;
  padding: 0 36px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  color: #1a0f33;
  background: var(--lime);
  box-shadow:
    0 10px 30px rgba(220, 255, 0, 0.34),
    0 0 36px rgba(220, 255, 0, 0.28),
    0 0 0 1px rgba(255, 255, 180, 0.25);
  font-size: 17px;
  font-weight: 800;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.final-cta__button-star {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.final-cta__primary:hover {
  background: #e7ff38;
  box-shadow:
    0 14px 36px rgba(220, 255, 0, 0.42),
    0 0 42px rgba(220, 255, 0, 0.34),
    0 0 0 1px rgba(255, 255, 180, 0.3);
  transform: translateY(-2px);
}

.final-cta__secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
  transition: color 160ms ease, border-color 160ms ease;
}

.final-cta__secondary span { font-size: 18px; line-height: 1; }
.final-cta__secondary:hover { color: #fff; border-color: var(--lime); }

.final-cta__visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 540px;
  pointer-events: none;
}

.final-cta__visual img {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 108%;
  max-width: none;
  height: 112%;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 28px rgba(24, 2, 74, 0.16));
}

.landing-footer {
  color: rgba(255,255,255,0.76);
  background: #10043a;
}

.landing-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  width: min(100% - 80px, 1460px);
  min-height: 260px;
  margin: 0 auto;
  padding: 62px 28px 58px;
  gap: clamp(60px, 10vw, 170px);
}

.landing-footer__brand {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.landing-footer__about p,
.landing-footer__column p,
.landing-footer__column a,
.landing-footer__column button {
  margin: 0;
  color: rgba(255,255,255,0.67);
  font-size: 13px;
  line-height: 1.52;
}

.landing-footer__about p { margin-top: 14px; }
.landing-footer__about p:last-child { color: rgba(255,255,255,0.49); }

.landing-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.landing-footer__column h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.landing-footer__column a,
.landing-footer__column button { transition: color 160ms ease; }
.landing-footer__column a:hover,
.landing-footer__column button:hover { color: var(--lime); }

@media (max-width: 1120px) {
  .final-cta { padding-inline: 28px; }
  .final-cta__inner { grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr); min-height: 500px; }
  .final-cta__copy { padding: 56px 16px 54px 48px; }
  .final-cta__burst { top: 36px; left: 16px; width: 68px; }
  .final-cta h2 { font-size: clamp(40px, 4.5vw, 50px); }
  .final-cta__visual { min-height: 500px; }
  .final-cta__visual img { right: -8%; width: 112%; height: 114%; }
  .landing-footer__inner { width: min(100% - 48px, 1040px); gap: 70px; }
}

@media (max-width: 880px) {
  .final-cta { padding: 20px 24px 36px; }
  .final-cta__inner { grid-template-columns: 1fr; width: min(100%, 720px); min-height: 0; }
  .final-cta__copy { min-height: 0; padding: 56px 40px 28px; }
  .final-cta__burst { top: 22px; left: 14px; width: 64px; }
  .final-cta__visual { min-height: 420px; margin-top: -28px; }
  .final-cta__visual img {
    top: 0;
    right: 50%;
    width: min(118%, 560px);
    height: 100%;
    transform: translateX(50%);
  }
  .landing-footer__inner { grid-template-columns: 1.25fr 1fr 1fr; padding-inline: 8px; gap: 34px; }
}

@media (max-width: 600px) {
  .final-cta { padding: 16px 12px 24px; }
  .final-cta__inner { border-radius: 24px; }
  .final-cta__copy { padding: 48px 22px 24px; }
  .final-cta__burst { top: 14px; left: 8px; width: 56px; }
  .final-cta h2 { font-size: clamp(34px, 10vw, 46px); line-height: 1.02; }
  .final-cta h2 > span { white-space: normal; }
  .final-cta__arc { width: 2em; right: 0.2em; }
  .final-cta__copy > p { margin-top: 20px; font-size: 15px; }
  .final-cta__actions { width: 100%; margin-top: 28px; gap: 18px; }
  .final-cta__primary { width: 100%; min-height: 58px; padding-inline: 18px; font-size: 15px; }
  .final-cta__secondary { font-size: 14px; }
  .final-cta__visual { min-height: 320px; margin-top: -16px; }
  .final-cta__visual img { width: min(130%, 440px); }

  .landing-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 40px, 480px);
    min-height: 0;
    padding: 48px 0 52px;
    gap: 38px 26px;
  }
  .landing-footer__about { grid-column: 1 / -1; }
}

/* Authentication modal */
body.auth-modal-open { overflow: hidden; }

.auth-modal[hidden],
.auth-modal__panel[hidden] { display: none; }

.auth-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  color: #171335;
  opacity: 0;
  transition: opacity 180ms ease;
}

.auth-modal--visible { opacity: 1; }

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 55, 0.76);
  backdrop-filter: blur(5px);
}

.auth-modal__dialog {
  position: relative;
  width: min(100%, 584px);
  max-height: calc(100svh - 48px);
  overflow: auto;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 4, 47, 0.32);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-modal--visible .auth-modal__dialog { opacity: 1; transform: none; }

.auth-modal__header {
  position: relative;
  min-height: 94px;
  border-bottom: 1px solid #e9e7ef;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: calc(100% - 90px);
  height: 94px;
}

.auth-modal__tab {
  position: relative;
  color: #5f5b6c;
  font-size: 18px;
  font-weight: 650;
}

.auth-modal__tab::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #4a20ef;
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
}

.auth-modal__tab[aria-selected="true"] { color: #4a20ef; }
.auth-modal__tab[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }

.auth-modal__close {
  position: absolute;
  top: 29px;
  right: 28px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #5f5b6c;
}

.auth-modal__close:hover { color: #251d3e; background: #f4f2f8; }
.auth-modal__close svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.auth-modal__panel { padding: 49px 66px 64px; }
.auth-modal__panel h2 { margin: 0; font-size: 31px; line-height: 1.15; letter-spacing: -0.035em; }
.auth-modal__intro { margin: 14px 0 37px; color: #5d586b; font-size: 17px; line-height: 1.45; }

.auth-form { display: grid; gap: 22px; }
.auth-form--register { gap: 17px; }

.auth-form__field {
  display: grid;
  gap: 10px;
  color: #1f1a32;
  font-size: 15px;
  font-weight: 650;
}

.auth-form__control {
  display: flex;
  min-height: 66px;
  padding: 0 15px;
  align-items: center;
  gap: 15px;
  border: 1px solid #d9d6df;
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form__control:focus-within { border-color: #6846ee; box-shadow: 0 0 0 3px rgba(89, 55, 239, 0.11); }
.auth-form__control > svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: #777284; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.auth-form__control input {
  min-width: 0;
  width: 100%;
  height: 62px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #201a35;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.auth-form__control input::placeholder { color: #85808f; opacity: 1; }

.auth-form__password-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #777284;
}

.auth-form__password-toggle:hover { color: #4a20ef; background: #f4f1ff; }
.auth-form__password-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.auth-form__forgot {
  width: max-content;
  margin: -1px 0 17px;
  color: #4a20ef;
  font-size: 16px;
  font-weight: 550;
}

.auth-form__forgot:hover,
.auth-form__consent button:hover { text-decoration: underline; }

.auth-form__error {
  margin: -5px 0;
  color: #bc2341;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}

.auth-form__error:empty { display: none; }
.auth-form__control:has(input[aria-invalid="true"]) { border-color: #cf3553; box-shadow: 0 0 0 3px rgba(207, 53, 83, 0.1); }

.auth-form__submit {
  min-height: 73px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(100deg, #5325f5 0%, #3b12e4 100%);
  box-shadow: 0 10px 24px rgba(75, 31, 235, 0.16);
  font-size: 20px;
  font-weight: 550;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-form__submit:hover { box-shadow: 0 13px 28px rgba(75, 31, 235, 0.25); transform: translateY(-1px); }
.auth-form__submit:disabled { cursor: wait; opacity: 0.7; transform: none; box-shadow: none; }

.auth-form__consent {
  display: grid;
  margin-top: 7px;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 13px;
  color: #625d6c;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}

.auth-form__consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #4a20ef;
}

.auth-form__consent button { display: inline; color: #4a20ef; text-align: left; }

.auth-modal button:focus-visible { outline: 3px solid rgba(89, 55, 239, 0.24); outline-offset: 2px; }
.auth-modal input:focus-visible { outline: none; }

@media (max-width: 640px) {
  .auth-modal { padding: 10px; }
  .auth-modal__dialog { max-height: calc(100svh - 20px); border-radius: 22px; }
  .auth-modal__header, .auth-modal__tabs { height: 72px; min-height: 72px; }
  .auth-modal__tabs { width: calc(100% - 62px); }
  .auth-modal__tab { font-size: 15px; }
  .auth-modal__close { top: 19px; right: 15px; width: 34px; height: 34px; }
  .auth-modal__close svg { width: 23px; height: 23px; }
  .auth-modal__panel { padding: 30px 22px 34px; }
  .auth-modal__panel h2 { font-size: 27px; }
  .auth-modal__intro { margin: 10px 0 25px; font-size: 15px; }
  .auth-form { gap: 17px; }
  .auth-form--register { gap: 13px; }
  .auth-form__field { gap: 7px; font-size: 14px; }
  .auth-form__control { min-height: 56px; }
  .auth-form__control input { height: 52px; font-size: 15px; }
  .auth-form__submit { min-height: 58px; font-size: 17px; }
  .auth-form__forgot { margin-bottom: 8px; font-size: 15px; }
  .auth-form__consent { grid-template-columns: 22px 1fr; gap: 10px; font-size: 12px; }
  .auth-form__consent input { width: 20px; height: 20px; }
}

@media (max-height: 760px) and (min-width: 641px) {
  .auth-modal__header, .auth-modal__tabs { height: 76px; min-height: 76px; }
  .auth-modal__close { top: 20px; }
  .auth-modal__panel { padding-top: 30px; padding-bottom: 36px; }
  .auth-modal__intro { margin-bottom: 24px; }
  .auth-form, .auth-form--register { gap: 13px; }
  .auth-form__control { min-height: 56px; }
  .auth-form__control input { height: 52px; }
  .auth-form__submit { min-height: 60px; }
  .auth-form__consent { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal,
  .auth-modal__dialog { transition: none; }
}
