:root {
  --ink: #172238;
  --muted: #667085;
  --paper: #fbfaf7;
  --white: #ffffff;
  --navy: #12223f;
  --blue: #c79245;
  --blue-dark: #a8732d;
  --cyan: #f0d9ad;
  --orange: #f48a62;
  --yellow: #f5c95c;
  --border: #e6e7eb;
  --shadow: 0 18px 45px rgba(30, 43, 77, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  min-height: 500px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 83% 48%, rgba(199, 146, 69, 0.19), transparent 28%),
    linear-gradient(135deg, #17191b 0%, #292d30 55%, #17191b 100%);
}

.nav-shell,
.hero,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.4px;
}

.brand strong {
  color: #e7ca94;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: #f5e7ca;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: -2px;
  background: #26292b;
  border: 1px solid rgba(231, 202, 148, 0.7);
  border-radius: 50%;
  place-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-tab {
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-tab:hover,
.nav-tab.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  min-height: 425px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  padding: 38px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e7ca94;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 60px);
}

h1 span {
  color: #e7ca94;
}

.hero-description {
  max-width: 520px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.primary-button,
.course-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-button:hover,
.course-link:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.instagram-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 202, 148, 0.45);
}

.instagram-link:hover {
  color: #e7ca94;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  background: rgba(210, 155, 73, 0.18);
  border-radius: 50%;
  filter: blur(45px);
  transform: translate(-50%, -50%);
}

.hero-logo-image {
  position: relative;
  z-index: 1;
  width: min(100%, 385px);
  aspect-ratio: 1.1;
  object-fit: cover;
  border: 1px solid rgba(231, 202, 148, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

main {
  padding: 72px 0;
}

.tab-panel {
  animation: fade-in 320ms ease;
}

.tab-panel[hidden] {
  display: none;
}

.section-heading {
  display: flex;
  gap: 50px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 45px;
}

.section-heading h2,
.about-copy h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 50px);
}

.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 920px;
  margin-inline: auto;
}

.courses-loading,
.course-empty,
.course-error {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.course-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.course-empty p {
  margin: 0;
}

.course-error strong {
  display: block;
  margin-bottom: 6px;
  color: #9d2d2d;
  font-family: "Manrope", sans-serif;
}

.course-error p {
  margin: 0;
}

.about-loading,
.about-error {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.about-error strong {
  display: block;
  margin-bottom: 6px;
  color: #9d2d2d;
  font-family: "Manrope", sans-serif;
}

.about-error p {
  margin: 0;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(31, 45, 81, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.video-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  border: 0;
  cursor: pointer;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 300ms ease;
}

.video-preview:hover img {
  transform: scale(1.04);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  color: var(--navy);
  font-size: 19px;
  background: var(--white);
  border-radius: 50%;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.preview-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  background: rgba(17, 27, 48, 0.78);
  border-radius: 99px;
}

.course-content {
  padding: 30px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform {
  padding: 4px 9px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: #eef0ff;
  border-radius: 6px;
}

.price {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.course-content h3 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: -0.8px;
}

.course-description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.course-pages {
  position: relative;
  padding: 15px 0 12px;
  margin: 0 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.page-track::-webkit-scrollbar {
  display: none;
}

.course-page {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2px 4px 12px;
  scroll-snap-align: start;
}

.page-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.course-page h4 {
  margin: 0 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.course-page p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.page-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--blue-dark);
  background: #f5efe5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.page-dots {
  display: flex;
  gap: 6px;
}

.page-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  background: #d7d9df;
  border: 0;
  border-radius: 50%;
}

.page-dot.active {
  width: 18px;
  background: var(--blue);
  border-radius: 99px;
}

.course-link {
  width: 100%;
  padding-block: 11px;
  font-size: 14px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
  min-height: 530px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 17px;
}

.stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}

.stats div {
  display: grid;
}

.stats strong {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

.about-values {
  display: grid;
  gap: 14px;
}

.about-values article {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.about-values article > span {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.about-values h3 {
  margin-bottom: 3px;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.about-values p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.footer-brand {
  color: var(--navy);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  padding: 6px;
}

footer p,
footer small,
.footer-instagram {
  color: var(--muted);
}

.footer-instagram {
  text-decoration: none;
}

.footer-instagram:hover {
  color: var(--blue-dark);
}

footer small {
  justify-self: end;
}

.video-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.video-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 27, 0.84);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modal-in 220ms ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.close-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 25px;
  background: #f1f2f5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.local-preview-message {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background: #222426;
}

.local-preview-message[hidden] {
  display: none;
}

.local-preview-message strong {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.local-preview-message p {
  max-width: 500px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.local-preview-message code {
  color: #f1d49e;
}

body.modal-open {
  overflow: hidden;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
    gap: 24px;
  }

  .hero-copy {
    padding: 36px 0;
  }

  .hero-art {
    min-height: 300px;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .video-preview {
    min-height: 320px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 650px) {
  .nav-shell,
  .hero,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .nav-shell {
    height: auto;
    padding: 18px 0;
  }

  .brand {
    font-size: 15px;
  }

  .nav-tab {
    padding: 7px 11px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(105px, 0.75fr);
    gap: 12px;
    min-height: 320px;
  }

  .hero-copy {
    padding: 30px 0 36px;
  }

  .hero-art {
    min-height: 220px;
  }

  .hero-logo-image {
    width: min(100%, 220px);
    border-radius: 18px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(29px, 8vw, 39px);
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .hero-description {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button {
    padding: 10px 13px;
    font-size: 12px;
  }

  .instagram-link {
    font-size: 11px;
  }

  main {
    padding: 52px 0;
  }

  .section-heading {
    display: grid;
    gap: 18px;
  }

  .video-preview {
    min-height: 240px;
  }

  .course-description {
    min-height: auto;
  }

  .stats {
    flex-wrap: wrap;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .footer-brand,
  footer small {
    justify-self: center;
  }

  footer p {
    margin: 8px 0;
  }
}

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