:root {
  --ink: #2b2321;
  --charcoal: #191514;
  --espresso: #3a2925;
  --muted: #746760;
  --soft-muted: #927f76;
  --line: #eadbd2;
  --line-strong: #d8beb2;
  --paper: #fbf6f1;
  --ivory: #fffaf5;
  --white: #ffffff;
  --blush: #f7dedb;
  --blush-light: #fdecea;
  --rose: #c98284;
  --rose-deep: #9b555d;
  --mauve: #b996a6;
  --champagne: #ead7bc;
  --taupe: #b5a59c;
  --gold: #b78a45;
  --burgundy: #6f2f3c;
  --shadow-soft: 0 18px 60px rgba(58, 41, 37, 0.1);
  --shadow-luxe: 0 28px 90px rgba(58, 41, 37, 0.16);
  color-scheme: light;
  font-family:
    Manrope, "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffaf5 0%, #fbf2ee 45%, #f7ebe5 100%);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 10px 14px;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 245, 0.82);
  border-bottom: 1px solid rgba(216, 190, 178, 0.55);
  backdrop-filter: blur(22px);
}

.nav-shell,
.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--espresso);
  font-weight: 900;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background:
    linear-gradient(145deg, rgba(196, 130, 132, 0.98), rgba(111, 47, 60, 0.98));
  border: 1px solid rgba(255, 250, 245, 0.56);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 245, 0.35),
    0 12px 28px rgba(111, 47, 60, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(234, 219, 210, 0.8);
  border-radius: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--burgundy);
  background: rgba(247, 222, 219, 0.58);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(196, 130, 132, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--rose-deep), var(--burgundy));
  box-shadow: 0 18px 38px rgba(111, 47, 60, 0.24);
}

.button-primary:hover {
  box-shadow: 0 22px 48px rgba(111, 47, 60, 0.3);
}

.button-secondary {
  color: var(--espresso);
  background: rgba(255, 250, 245, 0.88);
  border-color: rgba(255, 250, 245, 0.7);
  box-shadow: 0 14px 34px rgba(58, 41, 37, 0.12);
}

.button-secondary:hover {
  background: var(--ivory);
  border-color: rgba(234, 215, 188, 0.92);
}

.button-ghost {
  color: var(--burgundy);
  background: rgba(255, 250, 245, 0.66);
  border-color: rgba(196, 130, 132, 0.34);
}

.button-ghost:hover {
  background: rgba(247, 222, 219, 0.58);
}

.button-small {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 0.92rem;
}

.hero-section {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) sepia(0.08) contrast(0.95);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(38, 27, 24, 0.88) 0%, rgba(94, 61, 60, 0.64) 52%, rgba(255, 250, 245, 0.2) 100%),
    linear-gradient(180deg, rgba(58, 41, 37, 0.18) 0%, rgba(58, 41, 37, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 96px 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 790px;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 250, 245, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 158px));
  gap: 12px;
  margin: 54px 0 0;
}

.hero-metrics div {
  padding: 15px 16px;
  background: rgba(255, 250, 245, 0.12);
  border: 1px solid rgba(255, 250, 245, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  color: var(--ivory);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.15;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 245, 0.72);
  font-size: 0.92rem;
}

.intro-band {
  background:
    linear-gradient(135deg, var(--espresso), #4f3230 58%, var(--burgundy));
  color: var(--ivory);
  border-block: 1px solid rgba(234, 215, 188, 0.24);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 36px;
  padding-block: 30px;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 250, 245, 0.78);
}

.intro-grid p:first-child {
  color: var(--ivory);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.4vw, 1.72rem);
  line-height: 1.24;
}

.trailer-section,
.course-section,
.access-section,
.faq-section {
  padding-block: 104px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  color: var(--espresso);
  font-size: clamp(2.1rem, 4.4vw, 4.25rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.trailer-frame {
  min-height: 440px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  overflow: hidden;
  padding: 32px;
  color: var(--ivory);
  background:
    linear-gradient(135deg, rgba(77, 49, 44, 0.82), rgba(111, 47, 60, 0.58)),
    url("https://images.unsplash.com/photo-1621761191319-c6fb62004040?auto=format&fit=crop&w=1600&q=80") center/cover;
  border: 1px solid rgba(234, 215, 188, 0.62);
  border-radius: 8px;
  box-shadow: var(--shadow-luxe);
}

.trailer-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 250, 245, 0.24);
  border-radius: 8px;
  pointer-events: none;
}

.play-button {
  width: 70px;
  height: 70px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(255, 250, 245, 0.72);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(25, 21, 20, 0.2);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--burgundy);
  transform: translateX(3px);
}

.trailer-frame > div:last-child {
  position: relative;
  z-index: 1;
}

.trailer-kicker,
.trailer-title {
  margin: 0;
}

.trailer-kicker {
  color: rgba(255, 250, 245, 0.72);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trailer-title {
  max-width: 720px;
  color: var(--ivory);
  font-size: clamp(1.7rem, 3vw, 3.05rem);
  font-weight: 900;
  line-height: 1.04;
}

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

.course-card,
.auth-panel,
.player-panel,
.faq-grid details {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 245, 0.94));
  border: 1px solid rgba(216, 190, 178, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.course-card {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  padding: 28px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 130, 132, 0.58);
  box-shadow: var(--shadow-luxe);
}

.course-card.highlighted {
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.94), rgba(253, 236, 234, 0.9));
  border-color: rgba(155, 85, 93, 0.44);
  box-shadow: 0 24px 80px rgba(155, 85, 93, 0.14);
}

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

.course-level,
.course-price {
  margin: 0;
  font-weight: 900;
}

.course-level {
  color: var(--burgundy);
  font-size: 0.8rem;
  text-transform: uppercase;
  background: rgba(247, 222, 219, 0.62);
  border: 1px solid rgba(196, 130, 132, 0.28);
  border-radius: 6px;
  padding: 6px 10px;
}

.course-price {
  color: var(--espresso);
  font-size: 1.42rem;
}

.course-card h3 {
  margin: 0;
  color: var(--espresso);
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1.12;
}

.course-card p {
  color: var(--muted);
  line-height: 1.68;
}

.course-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 30px;
  padding-left: 20px;
  color: var(--espresso);
}

.course-card li::marker {
  color: var(--gold);
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-panel,
.player-panel {
  padding: 28px;
}

.auth-panel h3,
.player-panel h3 {
  margin: 0;
  color: var(--espresso);
  font-size: 1.42rem;
  font-weight: 900;
}

.panel-copy {
  margin: 8px 0 20px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--espresso);
  font-size: 0.92rem;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(216, 190, 178, 0.82);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 250, 245, 0.88);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.auth-form input::placeholder {
  color: var(--soft-muted);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.signed-in-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(253, 236, 234, 0.68);
  border: 1px solid rgba(196, 130, 132, 0.3);
  border-radius: 8px;
}

.signed-in-box p,
.status-line {
  margin: 0;
}

.status-line {
  min-height: 24px;
  margin-top: 14px;
  color: var(--burgundy);
  font-weight: 900;
}

.course-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--charcoal);
  border: 1px solid rgba(58, 41, 37, 0.18);
  border-radius: 8px;
}

.empty-player {
  min-height: 108px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 1px dashed rgba(181, 165, 156, 0.82);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 245, 0.58);
}

.empty-player p {
  margin: 0;
  padding: 18px;
  text-align: center;
}

.entitlement-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.entitlement-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(234, 215, 188, 0.36);
  border: 1px solid rgba(183, 138, 69, 0.28);
  border-radius: 6px;
  color: var(--espresso);
  font-weight: 900;
}

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

.faq-grid details {
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.faq-grid details:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 130, 132, 0.44);
  box-shadow: var(--shadow-luxe);
}

.faq-grid summary {
  cursor: pointer;
  color: var(--espresso);
  font-weight: 900;
}

.faq-grid p {
  color: var(--muted);
}

.site-footer {
  padding-block: 34px;
  background:
    linear-gradient(135deg, var(--charcoal), var(--espresso) 58%, #4f3031);
  color: var(--ivory);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid p:first-child {
  font-weight: 900;
}

.footer-grid p:last-child {
  color: rgba(255, 250, 245, 0.68);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: 86vh;
  }

  .hero-content {
    padding-block: 76px 64px;
  }

  .hero-metrics,
  .intro-grid,
  .course-grid,
  .access-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .trailer-section,
  .course-section,
  .access-section,
  .faq-section {
    padding-block: 72px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell {
    width: min(100% - 24px, 1160px);
  }

  .nav-shell {
    min-height: 72px;
    gap: 10px;
  }

  .brand-mark {
    gap: 8px;
    min-width: 0;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .brand-mark span:last-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .hero-section {
    min-height: 88vh;
  }

  .hero-content h1 {
    font-size: clamp(3.05rem, 17vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions,
  .form-actions,
  .footer-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .nav-shell .button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 44px;
  }

  .trailer-frame {
    min-height: 360px;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 24px;
  }

  .play-button {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 360px) {
  .brand-mark span:last-child {
    max-width: 148px;
  }

  .nav-shell .button {
    padding-inline: 9px;
  }
}
