:root {
  --bg: #090416;
  --bg-soft: #130824;
  --surface: rgba(24, 13, 45, 0.78);
  --surface-strong: rgba(34, 17, 58, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #fbf7ff;
  --muted: #bcb0d7;
  --gold: #ff8fca;
  --gold-strong: #d93b8c;
  --ink-on-accent: #25071a;
  --violet: #8c70ff;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --fold-vertical: url("../img/mystic-fold-vertical.webp");
  --fold-wide: url("../img/mystic-fold-wide.webp");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(140, 112, 255, 0.2), transparent 30%),
    radial-gradient(circle at 15% 45%, rgba(217, 59, 140, 0.16), transparent 25%),
    linear-gradient(180deg, #0c051d 0%, #090416 46%, #120522 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 143, 202, 0.42) 0 1px, transparent 1.5px);
  background-position: 0 0, 35px 60px;
  background-size: 140px 140px, 210px 210px;
  opacity: 0.15;
  z-index: -1;
}

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--ink-on-accent);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 20px 22px;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  top: 12px;
  width: min(calc(100% - 24px), var(--max));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(9, 4, 22, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 143, 202, 0.65);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 143, 202, 0.9) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255, 143, 202, 0.9) 48% 52%, transparent 53%),
    radial-gradient(circle, rgba(255, 143, 202, 0.95) 0 3px, transparent 4px);
  box-shadow: 0 0 24px rgba(217, 59, 140, 0.42);
}

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  color: var(--ink-on-accent);
  background: var(--gold);
  border-radius: 999px;
  padding: 9px 14px;
}

.hero {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 42px;
  padding: 138px max(22px, calc((100vw - var(--max)) / 2)) 78px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 4, 22, 0.9) 0%, rgba(9, 4, 22, 0.67) 42%, rgba(9, 4, 22, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 4, 22, 0.04) 0%, #090416 95%),
    url("../img/tarot-hero.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 9%;
  bottom: 8%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 143, 202, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(140, 112, 255, 0.22);
  opacity: 0.9;
  z-index: -1;
}

.hero-content {
  max-width: 730px;
  min-width: 0;
}

.hero-label,
.section-kicker {
  display: block;
  max-width: 100%;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.96;
  max-width: 820px;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 30px;
  color: #ddd4ef;
  font-size: clamp(17px, 1.6vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: var(--ink-on-accent);
  background: linear-gradient(135deg, #ffc2e2 0%, var(--gold) 42%, var(--gold-strong) 100%);
  box-shadow: 0 14px 30px rgba(217, 59, 140, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(217, 59, 140, 0.5);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 143, 202, 0.52);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(12, 5, 31, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-panel span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.section {
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.intro,
.learn,
.audience,
.outcomes,
.syllabus,
.final-cta {
  position: relative;
  isolation: isolate;
}

.intro::before,
.learn::before,
.audience::before,
.outcomes::before,
.syllabus::before {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 8px;
  opacity: 0.9;
}

.intro::after,
.learn::after,
.audience::after,
.outcomes::after,
.syllabus::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 143, 202, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(9, 4, 22, 0.74), rgba(9, 4, 22, 0.9));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.audience-copy h2,
.final-cta h2 {
  margin-top: 10px;
  font-size: clamp(31px, 4.2vw, 56px);
  line-height: 1.05;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}

.intro::before,
.intro::after {
  inset: 42px -34px;
}

.intro::before {
  background:
    linear-gradient(90deg, rgba(9, 4, 22, 0.96) 0 38%, rgba(9, 4, 22, 0.76) 72%, rgba(9, 4, 22, 0.88) 100%),
    var(--fold-wide) center / cover no-repeat;
}

.intro > p {
  color: var(--muted);
  font-size: 19px;
}

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

.learn::before,
.learn::after {
  inset: 36px -34px;
}

.learn::before {
  background:
    linear-gradient(180deg, rgba(9, 4, 22, 0.72), rgba(9, 4, 22, 0.96)),
    var(--fold-vertical) center 42% / cover no-repeat;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 143, 202, 0.46);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.feature-card h3,
.syllabus-list h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.feature-card p,
.syllabus-list p,
.final-cta p,
.check-list {
  color: var(--muted);
}

.audience {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
}

.audience::before,
.audience::after {
  inset: 42px -34px;
}

.audience::before {
  background:
    linear-gradient(90deg, rgba(9, 4, 22, 0.82), rgba(9, 4, 22, 0.94)),
    var(--fold-wide) center / cover no-repeat;
}

.audience-art {
  position: relative;
  min-height: 480px;
}

.orbit {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 143, 202, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(140, 112, 255, 0.18) 0 18%, transparent 19%),
    conic-gradient(from 30deg, transparent, rgba(255, 143, 202, 0.2), transparent, rgba(140, 112, 255, 0.18), transparent);
  filter: drop-shadow(0 20px 60px rgba(140, 112, 255, 0.28));
}

.mini-card {
  position: absolute;
  width: 138px;
  height: 216px;
  border: 1px solid rgba(255, 143, 202, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 143, 202, 0.95) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 48%, rgba(255, 143, 202, 0.58) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 143, 202, 0.58) 49% 51%, transparent 52%),
    #151034;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.46);
}

.card-a {
  left: 16%;
  bottom: 12%;
  transform: rotate(-15deg);
}

.card-b {
  left: 38%;
  bottom: 19%;
  transform: rotate(2deg);
}

.card-c {
  right: 13%;
  bottom: 10%;
  transform: rotate(17deg);
}

.audience-copy {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(217, 59, 140, 0.38);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--ink-on-accent);
  border-bottom: 2px solid var(--ink-on-accent);
  transform: rotate(-45deg);
}

.outcomes {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes::before,
.outcomes::after {
  inset: 38px -34px;
}

.outcomes::before {
  background:
    linear-gradient(180deg, rgba(9, 4, 22, 0.78), rgba(9, 4, 22, 0.95)),
    var(--fold-vertical) center 56% / cover no-repeat;
}

.outcome-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.outcome-row div {
  padding: 24px 0;
}

.outcome-row strong {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.outcome-row p {
  color: var(--muted);
}

.syllabus-list {
  display: grid;
  gap: 14px;
}

.syllabus::before,
.syllabus::after {
  inset: 40px -34px;
}

.syllabus::before {
  background:
    linear-gradient(90deg, rgba(9, 4, 22, 0.93), rgba(9, 4, 22, 0.72), rgba(9, 4, 22, 0.92)),
    var(--fold-wide) center / cover no-repeat;
}

.syllabus-list article {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.6fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.syllabus-list span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 800;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  width: min(100% - 44px, var(--max));
  margin: 26px auto 84px;
  padding: 44px;
  border: 1px solid rgba(255, 143, 202, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 8, 36, 0.88), rgba(18, 8, 36, 0.72)),
    var(--fold-wide) center / cover no-repeat,
    linear-gradient(135deg, rgba(255, 143, 202, 0.16), transparent 38%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.final-cta p:last-child {
  max-width: 740px;
  margin-top: 16px;
  font-size: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  padding: 30px 0 96px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

.sticky-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: none;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--ink-on-accent);
  background: linear-gradient(135deg, #ffc2e2 0%, var(--gold) 42%, var(--gold-strong) 100%);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(217, 59, 140, 0.42);
}

@media (max-width: 920px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 128px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .intro,
  .audience,
  .final-cta {
    grid-template-columns: 1fr;
  }

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

  .outcome-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .syllabus-list article {
    grid-template-columns: 64px 1fr;
  }

  .syllabus-list p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  body {
    width: 100%;
  }

  .site-header {
    padding: 16px;
    gap: 10px;
  }

  .brand span:last-child {
    max-width: 132px;
    line-height: 1.1;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 112px 20px 58px;
    overflow-x: clip;
  }

  .hero-content,
  .hero-panel {
    width: min(100%, 330px);
    max-width: 330px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 4, 22, 0.82) 0%, rgba(9, 4, 22, 0.72) 42%, #090416 100%),
      url("../img/tarot-hero.webp") center top / cover no-repeat;
  }

  h1 {
    font-size: clamp(34px, 9.8vw, 40px);
    line-height: 1;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-label {
    max-width: 330px;
    font-size: 11px;
    line-height: 1.45;
  }

  .actions .btn,
  .final-cta .btn {
    width: 100%;
  }

  .actions {
    width: min(100%, 330px);
    max-width: 330px;
  }

  .section {
    width: min(100% - 40px, 330px);
    padding: 72px 0;
  }

  .section-heading h2,
  .audience-copy h2,
  .final-cta h2 {
    font-size: clamp(28px, 8.4vw, 34px);
  }

  .intro::before,
  .intro::after,
  .learn::before,
  .learn::after,
  .audience::before,
  .audience::after,
  .outcomes::before,
  .outcomes::after,
  .syllabus::before,
  .syllabus::after {
    inset: 30px -18px;
  }

  .intro::before,
  .audience::before,
  .syllabus::before {
    background:
      linear-gradient(180deg, rgba(9, 4, 22, 0.78), rgba(9, 4, 22, 0.94)),
      var(--fold-wide) center / cover no-repeat;
  }

  .learn::before,
  .outcomes::before {
    background:
      linear-gradient(180deg, rgba(9, 4, 22, 0.8), rgba(9, 4, 22, 0.96)),
      var(--fold-vertical) center / cover no-repeat;
  }

  .feature-grid,
  .outcome-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 22px;
  }

  .audience-art {
    min-height: 360px;
  }

  .mini-card {
    width: 104px;
    height: 164px;
  }

  .audience-copy,
  .final-cta {
    padding: 28px;
  }

  .syllabus-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .syllabus-list p {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
    padding-bottom: 88px;
  }

  .sticky-cta {
    left: 18px;
    right: 18px;
    bottom: 16px;
    justify-content: center;
    text-align: center;
  }
}

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