:root {
  --ink: #10201e;
  --ink-soft: #1e3531;
  --muted: #5a6e69;
  --paper: #eef5f2;
  --mist: #d5e6df;
  --deep: #0c1f1c;
  --signal: #e24a24;
  --signal-deep: #c23a18;
  --foam: #f4f8f5;
  --line: rgba(16, 32, 30, 0.12);
  --glow-warm: rgba(226, 74, 36, 0.14);
  --glow-cool: rgba(74, 140, 120, 0.16);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(880px 460px at 8% -6%, var(--glow-warm), transparent 58%),
    radial-gradient(700px 400px at 94% 0%, var(--glow-cool), transparent 55%),
    linear-gradient(180deg, #e8f2ee 0%, var(--paper) 40%, var(--foam) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--signal) 32%, white);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.nav {
  display: none;
  gap: 1.8rem;
}

.nav a,
.header-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.header-link:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border: 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-signal {
  background: var(--signal);
  color: #fff;
}

.btn-signal:hover {
  background: var(--signal-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-soft);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0 1rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #132622 center / cover no-repeat url("images/hero.jpg");
  animation: soft-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    108deg,
    rgba(12, 31, 28, 0.9) 0%,
    rgba(12, 31, 28, 0.72) 44%,
    rgba(12, 31, 28, 0.28) 74%,
    rgba(12, 31, 28, 0.12) 100%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 7rem 0 4rem;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 13vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__rule {
  width: 5.5rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--signal);
  transform-origin: left;
  animation: line-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero__title {
  max-width: 14ch;
  margin: 1.35rem 0 0;
  font-size: clamp(1.9rem, 4.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__copy {
  max-width: 32rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-label {
  margin: 0;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 16ch;
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-copy {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section--deep {
  background: var(--deep);
  color: #fff;
}

.section--deep .section-copy,
.section--deep .muted-link {
  color: rgba(255, 255, 255, 0.68);
}

.muted-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.muted-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section--deep .muted-link:hover {
  color: #fff;
}

.levels-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.75rem;
}

.level-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.level-list li + li {
  border-top: 1px solid var(--line);
}

.level-btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.level-btn__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(16, 32, 30, 0.3);
  transition: color 0.2s ease;
}

.level-btn__blurb {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.level-btn__meta {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.level-btn.is-active .level-btn__name,
.level-btn:hover .level-btn__name {
  color: var(--ink);
}

.level-btn.is-active .level-btn__blurb {
  opacity: 1;
}

.level-btn.is-active .level-btn__meta {
  color: var(--signal);
}

.level-preview {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  background: var(--mist);
}

.level-preview img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.level-preview:hover img {
  transform: scale(1.03);
}

.level-preview__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(12, 31, 28, 0.74), transparent);
  color: #fff;
}

.level-preview__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.level-preview__meta a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-grid {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.course-row {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.course-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.course-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.course-row__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.course-row__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.course-row__price span {
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
}

.course-row__copy {
  margin: 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.course-row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.course-row__tags {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  font-weight: 500;
}

.flow {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
}

.flow-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--signal);
}

.flow-title {
  margin: 0.55rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.flow-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-band {
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta-band strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
}

.footer-blurb {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-cols h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-cols ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.footer-cols li + li {
  margin-top: 0.45rem;
}

.footer-cols a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes soft-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .header-link {
    display: inline;
  }

  .course-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .course-row__top {
    grid-column: 1 / -1;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero__content {
    justify-content: center;
    padding: 6rem 0;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 2fr;
  }
}

@media (min-width: 1024px) {
  .levels-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 2.5rem;
  }

  .level-preview,
  .level-preview img {
    min-height: 26rem;
    height: 100%;
  }
}

@media (max-width: 767px) {
  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(12, 31, 28, 0.82) 0%,
      rgba(12, 31, 28, 0.72) 48%,
      rgba(12, 31, 28, 0.58) 100%
    );
  }

  .header-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__brand,
  .hero__rule,
  .hero__title,
  .hero__copy,
  .hero__actions {
    animation: none;
  }
}
