:root {
  --ink: #122033;
  --muted: #647187;
  --line: #dce4ee;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --navy: #0b1930;
  --blue: #3156d8;
  --blue-dark: #2341ad;
  --cyan: #32d5c8;
  --green: #14866d;
  --shadow: 0 20px 60px rgba(18, 32, 51, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 13px;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px rgba(49, 86, 216, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.header-link,
.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.header-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 72px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content));
  margin: 26px auto 0;
  padding: 80px 72px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(50, 213, 200, 0.22), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(49, 86, 216, 0.38), transparent 34%),
    var(--navy);
  border-radius: var(--radius-lg);
}

.hero::after {
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.02);
}

.hero__content,
.hero__status {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8cf2e8;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(50, 213, 200, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: #8cf2e8;
}

.hero__description {
  max-width: 660px;
  margin: 28px 0 0;
  color: #c7d2e2;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  color: var(--navy);
  background: var(--cyan);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #70eee4;
}

.button--secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.hero__status {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.status-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
}

.status-heading span {
  color: #aab9ce;
}

.status-heading strong {
  flex: none;
  text-align: right;
}

.progress {
  height: 8px;
  margin: 15px 0 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: inherit;
  transition: width 240ms ease;
}

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

.stats div {
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats dt {
  color: #9eacc0;
  font-size: 0.72rem;
}

.stats dd {
  margin: 5px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .progress span {
    transition: none;
  }
}

.section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 94px 0;
}

.section--soft {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--content)) / 2));
  padding-left: max(20px, calc((100% - var(--content)) / 2));
  background: var(--surface-soft);
}

.section__heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section__heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.document-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.document-card:hover,
.document-card:focus-visible {
  border-color: #a9b9e8;
  outline: none;
  box-shadow: 0 16px 40px rgba(18, 32, 51, 0.08);
  transform: translateY(-3px);
}

.document-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--blue);
  background: #edf1ff;
  border-radius: 13px;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.document-card strong,
.document-card small {
  display: block;
}

.document-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.document-card__arrow {
  color: var(--blue);
  font-size: 1.3rem;
}

.module-map {
  scroll-margin-top: 1rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 220px;
  padding: 22px;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.module-card--ready {
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(18, 32, 51, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card--active {
  background: linear-gradient(145deg, var(--surface), #edfdfb);
  border-color: #83d9d1;
  box-shadow: 0 12px 30px rgba(23, 155, 147, 0.09);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card--ready:hover,
.module-card--ready:focus-visible,
.module-card--active:hover,
.module-card--active:focus-visible {
  border-color: #9eb2ec;
  outline: none;
  box-shadow: 0 16px 38px rgba(18, 32, 51, 0.09);
  transform: translateY(-3px);
}

.module-card__number {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.module-card strong,
.module-card small,
.module-card p {
  grid-column: 1 / -1;
}

.module-card strong {
  align-self: end;
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.module-card small {
  margin-top: 5px;
  color: var(--blue);
  font-weight: 800;
}

.module-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lesson-card {
  display: flex;
  min-height: 310px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
}

.lesson-card--ready {
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(18, 32, 51, 0.06);
}

.lesson-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-number {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.badge {
  padding: 5px 9px;
  color: var(--muted);
  background: #e9eef4;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge--ready {
  color: var(--green);
  background: #e7f7f1;
}

.lesson-card h3 {
  margin: 30px 0 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lesson-card__meta {
  display: flex;
  gap: 8px 16px;
  margin: auto 0 20px;
  padding-top: 25px;
  color: var(--muted);
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.lesson-card__meta span + span::before {
  margin-right: 16px;
  color: #bac4d1;
  content: "•";
}

.lesson-card > a {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.lesson-card__disabled {
  color: #9ca7b5;
  font-size: 0.88rem;
  font-weight: 700;
}

.preview-section {
  padding-bottom: 110px;
}

.browser-frame {
  padding: 10px;
  overflow: hidden;
  background: var(--navy);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.browser-frame__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 44px;
  padding: 0 10px;
}

.browser-frame__bar > span {
  width: 9px;
  height: 9px;
  background: #f16f67;
  border-radius: 50%;
}

.browser-frame__bar > span:nth-child(2) {
  background: #e4bd55;
}

.browser-frame__bar > span:nth-child(3) {
  background: #5ac28a;
}

.browser-frame__bar div {
  width: min(60%, 420px);
  margin: 0 auto;
  padding: 6px 12px;
  color: #9fadc1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  font-size: 0.7rem;
  text-align: center;
}

.browser-frame iframe {
  display: block;
  width: 100%;
  height: 620px;
  background: #fff;
  border: 0;
  border-radius: 14px;
}

.site-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(20px, calc((100% - var(--content)) / 2));
  color: #aab6c7;
  background: var(--navy);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin: 0 7px;
  color: var(--cyan);
}

.site-footer a {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 64px 42px;
  }

  .hero__status {
    max-width: 560px;
  }

  .document-grid,
  .module-grid,
  .lesson-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .document-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand small {
    display: none;
  }

  .header-link {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .hero {
    width: min(calc(100% - 20px), var(--content));
    margin-top: 8px;
    padding: 48px 24px;
    border-radius: 22px;
  }

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

  .hero__actions,
  .button {
    width: 100%;
  }

  .stats {
    gap: 8px;
  }

  .stats dd {
    font-size: 1.05rem;
  }

  .section {
    width: min(calc(100% - 28px), var(--content));
    padding: 68px 0;
  }

  .section--soft {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .document-grid,
  .module-grid,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .document-card:last-child {
    grid-column: auto;
  }

  .browser-frame {
    margin-right: -4px;
    margin-left: -4px;
    padding: 6px;
    border-radius: 16px;
  }

  .browser-frame iframe {
    height: 540px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
