:root {
  --bg: #0c0b09;
  --bg-elevated: #14120f;
  --bg-soft: #1b1814;
  --line: rgba(201, 162, 39, 0.22);
  --gold: #c9a227;
  --gold-bright: #e0bf55;
  --gold-mute: #8a7120;
  --cream: #f3ebda;
  --cream-soft: #cfc4b0;
  --muted: #9a8f7c;
  --danger: #d97a6a;
  --success: #7fad7a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius: 2px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-soft);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(201, 162, 39, 0.06), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { margin: 0 0 1.1em; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(217, 122, 106, 0.15);
  color: #f0c2ba;
  border-bottom: 1px solid rgba(217, 122, 106, 0.4);
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 9, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.35rem auto;
  background: var(--cream);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #a8871f);
  color: #14110c;
  border-color: #d4af37;
}

.btn-gold:hover {
  color: #0c0b09;
  background: linear-gradient(135deg, #e0bf55, #c9a227);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Hero variants */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
  min-height: calc(100vh - var(--header-h));
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-editorial h1 {
  max-width: 12ch;
  margin-bottom: 0.4em;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 36ch;
  color: var(--cream-soft);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.85) contrast(1.05);
  box-shadow: var(--shadow);
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 11, 9, 0.78);
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  color: var(--cream);
}

.hero-plain {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-plain h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-hero p {
  max-width: 52ch;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-label {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
}

.proof-row > div {
  background: var(--bg-elevated);
  padding: 1.75rem 1.5rem;
}

.proof-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.proof-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold-mute);
}

.benefit-list h3 {
  margin-bottom: 0.35rem;
}

.feature-band {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-block: 1px solid var(--line);
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { grid-template-columns: repeat(2, 1fr); }
.tier-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid { grid-template-columns: 1.2fr 1fr; }

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease);
}

.media-tile:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  color: inherit;
}

.media-tile img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.media-tile .tile-body {
  padding: 1.35rem 1.25rem 1.6rem;
}

.media-tile h3 {
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.media-tile p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  color: var(--gold-mute);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.quote-block {
  padding: 2rem;
  background: var(--bg-elevated);
  border-top: 2px solid var(--gold);
}

.quote-block blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--cream);
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-soft {
  border: 1px solid var(--line);
  border-top: none;
  padding: 1.5rem;
  background: transparent;
}

.quote-soft p {
  margin-bottom: 0.85rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background:
    linear-gradient(120deg, rgba(201, 162, 39, 0.12), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--line);
}

.tier {
  padding: 2rem 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tier.featured {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent 40%),
    var(--bg-elevated);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-bright);
  margin: 0.4rem 0 1rem;
}

.tier .price span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.tier ul {
  margin: 0 0 1.75rem;
  padding-left: 1.1rem;
  color: var(--cream-soft);
  flex: 1;
}

.tier li { margin-bottom: 0.45rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.faq p {
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-soft);
  color: var(--cream);
  font-weight: 600;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.modules {
  display: grid;
  gap: 1rem;
}

.module {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.module .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2.5rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--cream);
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(127, 173, 122, 0.12);
  color: #b8d6b4;
  border: 1px solid rgba(127, 173, 122, 0.35);
}

.form-status.is-error {
  background: rgba(217, 122, 106, 0.12);
  color: #f0c2ba;
  border: 1px solid rgba(217, 122, 106, 0.35);
}

.form-status.is-pending {
  background: rgba(201, 162, 39, 0.08);
  color: var(--cream-soft);
  border: 1px solid var(--line);
}

.address-block {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.address-block address {
  font-style: normal;
  margin-bottom: 1rem;
}

.case-study {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-bottom: 1.5rem;
}

.case-study h3 { margin-top: 0; }

.rating {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #090807;
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.footer-tag {
  color: var(--muted);
  max-width: 28ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols h2 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li { margin-bottom: 0.45rem; }

.footer-cols a {
  color: var(--cream-soft);
  text-decoration: none;
}

.footer-cols a:hover { color: var(--gold-bright); }

.footer-cols address {
  font-style: normal;
  color: var(--cream-soft);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.footer-base {
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  padding: 1.1rem 0 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-base p { margin: 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-mute);
  box-shadow: var(--shadow);
  animation: rise 0.55s var(--ease);
}

.cookie-banner-inner {
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fade-up 0.8s var(--ease) both;
}

.reveal-delay { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }

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

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--gold);
  line-height: 0.9;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-editorial,
  .split,
  .contact-layout,
  .footer-inner,
  .review-grid,
  .cta-panel,
  .instructor {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .tier-grid,
  .proof-row,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(12, 11, 9, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .module {
    grid-template-columns: 3rem 1fr;
  }
}

@media (max-width: 640px) {
  .hero-editorial {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
