.landing-shell {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  color: var(--text-primary, #f1f1f1);
}

.landing-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(208, 197, 255, .12);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary, #f1f1f1);
  font-weight: 700;
  letter-spacing: -.35px;
}

.landing-brand img { display: block; }
.landing-brand-accent { color: #a78bfa; font-weight: 400; }
.landing-sign-in {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ddd8ed;
  font-size: 14px;
  font-weight: 600;
}

.landing-sign-in span,
.landing-feature-arrow { color: #a78bfa; transition: transform .18s ease, color .18s ease; }
.landing-sign-in:hover { color: #fff; }
.landing-sign-in:hover span { transform: translate(2px, -2px); }

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .88fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
  padding: clamp(64px, 8vw, 106px) 0 86px;
}

.landing-hero-copy { max-width: 610px; position: relative; z-index: 1; }
.landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #c6b3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.landing-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
}

.landing-hero h1 {
  max-width: 640px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.08;
}
.landing-hero h1 span,
.landing-section-heading h2 span { color: #a78bfa; }
.landing-intro {
  max-width: 540px;
  margin: 0 0 16px;
  color: #c2c5d4;
  font-size: 16px;
  line-height: 1.75;
}
.landing-audience {
  max-width: 500px;
  margin: 0 0 27px;
  padding-left: 14px;
  border-left: 2px solid var(--primary, #6c3ce1);
  color: var(--text-secondary, #a0aec0);
  font-size: 14px;
}

.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.landing-button:hover { transform: translateY(-2px); }
.landing-button-primary {
  color: #fff;
  background: var(--primary, #6c3ce1);
  box-shadow: 0 8px 22px rgba(40, 16, 100, .23);
}
.landing-button-primary:hover { color: #fff; background: var(--primary-hover, #5a2fcb); }
.landing-button-primary span { font-size: 18px; font-weight: 400; transition: transform .18s ease; }
.landing-button-primary:hover span { transform: translateX(3px); }
.landing-button-secondary {
  color: #ddd8ed;
  border-color: rgba(208, 197, 255, .2);
}
.landing-button-secondary:hover {
  color: #fff;
  border-color: rgba(208, 197, 255, .4);
  background: rgba(255, 255, 255, .025);
}
.landing-button:focus-visible,
.landing-sign-in:focus-visible,
.landing-brand:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 4px;
}

.landing-example {
  position: relative;
  width: 100%;
  max-width: 450px;
  justify-self: end;
  padding: 19px 21px 16px;
  border: 1px solid rgba(186, 164, 255, .24);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 74% 14%, rgba(108, 60, 225, .17), transparent 46%),
    linear-gradient(145deg, #2b2746, #1b1b30);
  box-shadow: 0 24px 64px rgba(5, 5, 20, .25);
  transform: rotate(1deg);
}
.landing-example-top,
.landing-example-caption { display: flex; align-items: center; justify-content: space-between; }
.landing-example-top {
  padding-bottom: 16px;
  color: #d4c4ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.landing-example-top span:first-child,
.landing-example-caption { display: flex; align-items: center; gap: 8px; }
.landing-example-top span:first-child i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
}
.landing-example-top span:last-child { color: #84819a; }
.landing-math-paper {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px 25px 18px;
  border: 1px solid rgba(216, 204, 255, .12);
  border-radius: 10px;
  background-color: #24243d;
}
.landing-math-paper::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .15;
  pointer-events: none;
  background-image: linear-gradient(rgba(179,164,228,.18) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(179,164,228,.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.landing-example-label {
  position: relative;
  margin: 0 0 8px;
  color: #a7a0bc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}
.landing-equation {
  position: relative;
  margin: 0 0 22px;
  color: #f3efff;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.landing-equation i,
.landing-steps p i { color: #c5adff; font-style: normal; }
.landing-equation b { padding: 0 7px; color: #8e86a8; font-size: .68em; font-weight: 400; }
.landing-rule { position: relative; display: flex; gap: 5px; margin-bottom: 11px; }
.landing-rule span { height: 2px; border-radius: 2px; background: var(--primary, #6c3ce1); }
.landing-rule span:nth-child(1) { width: 25%; }
.landing-rule span:nth-child(2) { width: 12%; opacity: .55; }
.landing-rule span:nth-child(3) { width: 6%; opacity: .3; }
.landing-steps { position: relative; }
.landing-steps > div {
  min-height: 43px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(206, 191, 255, .1);
}
.landing-steps > div > span { color: #76718c; font-size: 9px; }
.landing-steps p { margin: 0; color: #d7d2e5; font-size: 13px; }
.landing-steps small { justify-self: end; color: #a99bc9; font-size: 10px; }
.landing-steps .landing-answer { border-bottom: 0; }
.landing-steps .landing-answer p { color: #fff; font-size: 16px; font-weight: 600; }
.landing-steps .landing-answer small {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, .56);
  border-radius: 50%;
  color: #c3aaff;
}
.landing-example-caption {
  justify-content: flex-start;
  margin: 13px 1px 0;
  color: #827b9c;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}
.landing-example-caption span { width: 17px; height: 1px; background: #9c7cf2; }
.landing-index {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #787b92;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}
.landing-index span { color: #a78bfa; }
.landing-index i { width: 42px; height: 1px; background: rgba(208,197,255,.24); }

.landing-features { padding: 67px 0 76px; border-top: 1px solid rgba(208,197,255,.12); }
.landing-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}
.landing-section-heading .landing-eyebrow { margin-bottom: 14px; }
.landing-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.landing-section-heading > p {
  max-width: 290px;
  margin: 0 0 4px;
  color: var(--text-secondary, #a0aec0);
  font-size: 14px;
}
.landing-feature-list { border-top: 1px solid rgba(208,197,255,.16); }
.landing-feature {
  min-height: 105px;
  display: grid;
  grid-template-columns: 56px 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(208,197,255,.16);
  transition: background-color .18s ease;
}
.landing-feature:hover { background: rgba(255,255,255,.018); }
.landing-feature-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176,151,255,.22);
  border-radius: 12px;
  background: rgba(108,60,225,.08);
}
.landing-feature-number { color: #88829c; font-size: 10px; letter-spacing: .08em; }
.landing-feature h3 { margin: 0; color: #e8e5f0; font-size: 17px; font-weight: 500; line-height: 1.4; }
.landing-feature-arrow { font-size: 17px; }
.landing-feature:hover .landing-feature-arrow { color: #c1a8ff; transform: translate(2px, -2px); }
.landing-icon-topic { flex-direction: column; gap: 5px; align-items: flex-start; padding-left: 12px; }
.landing-icon-topic i { width: 21px; height: 2px; border-radius: 2px; background: #80749f; }
.landing-icon-topic i:nth-child(2) { width: 27px; background: #b09af0; }
.landing-icon-topic i:nth-child(3) { width: 16px; }
.landing-icon-steps { gap: 3px; }
.landing-icon-steps i {
  width: 11px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #9883d4;
  border-radius: 3px;
  color: #c8b6f4;
  font-size: 8px;
  font-style: normal;
}
.landing-icon-steps b { width: 3px; height: 1px; background: #81769d; }
.landing-icon-exam { flex-direction: column; gap: 5px; align-items: flex-start; padding: 10px 12px; }
.landing-icon-exam i { width: 22px; height: 2px; background: #9884c7; }
.landing-icon-exam i:nth-child(2) { width: 16px; }
.landing-icon-exam i:nth-child(3) { width: 19px; }
.landing-icon-progress { align-items: end; gap: 4px; padding: 0 12px 11px; }
.landing-icon-progress::before { position: absolute; right: 9px; bottom: 10px; left: 9px; height: 1px; content: ""; background: #766b91; }
.landing-icon-progress i { z-index: 1; width: 5px; height: 12px; background: #8d72d6; }
.landing-icon-progress i:nth-child(2) { height: 20px; background: #a98df0; }
.landing-icon-progress i:nth-child(3) { height: 15px; }

.landing-closing {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 30px clamp(24px, 5vw, 58px);
  border: 1px solid rgba(185,159,255,.22);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(108,60,225,.21), rgba(44,38,69,.73) 52%, rgba(32,33,58,.95));
}
.landing-closing p { margin: 0; color: #f0edf9; font-size: clamp(22px, 3vw, 31px); font-weight: 500; letter-spacing: -.04em; }

@media (max-width: 850px) {
  .landing-shell { width: min(100% - 48px, 720px); }
  .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 28px; padding-top: 70px; }
  .landing-example { padding: 16px; }
  .landing-math-paper { min-height: 258px; padding: 24px 18px 15px; }
  .landing-steps p { font-size: 11px; }
}
@media (max-width: 680px) {
  .landing-shell { width: calc(100% - 36px); }
  .landing-header { min-height: 70px; }
  .landing-brand img { width: 36px; height: 36px; }
  .landing-hero { grid-template-columns: 1fr; gap: 35px; padding: 56px 0 66px; }
  .landing-hero h1 { max-width: 540px; font-size: clamp(40px, 9.5vw, 58px); }
  .landing-intro { font-size: 15px; }
  .landing-example { width: min(100%, 450px); justify-self: center; }
  .landing-index { bottom: 21px; }
  .landing-features { padding: 52px 0 58px; }
  .landing-section-heading { display: block; margin-bottom: 24px; }
  .landing-section-heading > p { margin-top: 14px; }
  .landing-feature { min-height: 96px; grid-template-columns: 45px 24px minmax(0, 1fr) 15px; gap: 10px; }
  .landing-feature-icon { width: 42px; height: 42px; }
  .landing-feature h3 { font-size: 15px; }
  .landing-feature-arrow { font-size: 15px; }
  .landing-closing { min-height: 145px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; padding: 24px; }
}
@media (max-width: 380px) {
  .landing-shell { width: calc(100% - 28px); }
  .landing-hero h1 { font-size: 38px; }
  .landing-feature { grid-template-columns: 39px 21px minmax(0, 1fr) 12px; gap: 8px; }
  .landing-feature-icon { width: 38px; height: 38px; }
  .landing-feature h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-shell *, .landing-shell *::before, .landing-shell *::after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
