:root {
  --bg-deep: #080706;
  --bg: #0c0a08;
  --bg-elevated: #151210;
  --bg-soft: #1c1814;
  --gold: #c9a227;
  --gold-bright: #e0bc4a;
  --gold-soft: #e8d5a3;
  --gold-muted: #8a7428;
  --text: #f3eee4;
  --text-muted: #a89f8f;
  --line: rgba(201, 162, 39, 0.22);
  --danger: #d9776a;
  --success: #7dba8a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

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

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

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1rem; color: var(--text-muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 8, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  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.45rem;
  letter-spacing: 0.04em;
}

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

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after { position: absolute; top: 6px; left: 0; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold-bright);
}

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

.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.is-open { max-height: 28rem; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space) 1.5rem;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* Layout */
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--space) 5rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--space);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

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

.lead {
  font-size: 1.15rem;
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  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, #b8922a);
  color: #14110c;
  border-color: var(--gold);
}

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Hero variants */
.hero-home {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.45);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.55) 48%, rgba(8, 7, 6, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.95) 0%, transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) var(--space) clamp(3rem, 8vh, 5rem);
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--gold-soft);
  margin: 0 0 0.4rem;
  letter-spacing: 0.03em;
}

.hero-home h1 {
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.hero-home .hero-support {
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--space) 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 85% 20%, rgba(201, 162, 39, 0.1), transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.page-hero h1 { max-width: 16ch; }

/* Motion */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-1.5%); }
}

@keyframes fadeLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
  transform-origin: left;
  animation: fadeLine 0.8s var(--ease) both;
}

/* Home sections - varied order: proof strip, featured, benefits, testimonials, courses teaser */
.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-soft);
  font-weight: 500;
}

.proof-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .proof-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.feature-list {
  display: grid;
  gap: 2rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75);
}

@media (max-width: 800px) {
  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

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

.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.course-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  transition: border-color 0.25s var(--ease);
}

.course-tile:hover { border-color: var(--gold); }

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.8);
}

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

.course-meta {
  font-size: 0.85rem;
  color: var(--gold-muted);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2.5rem;
}

.quote-block {
  max-width: 40rem;
  border-left: 1px solid var(--gold-muted);
  padding-left: 1.5rem;
}

.quote-block.wide { max-width: 48rem; }

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--text);
  line-height: 1.4;
}

.quote-attr {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Pricing */
.tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: stretch;
}

.tier {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.tier.featured {
  border-color: var(--gold-muted);
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.1), transparent 50%),
    var(--bg-soft);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.tier-price {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 1rem;
}

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

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  max-width: 40rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { min-height: 9rem; resize: vertical; }

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

.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(125, 186, 138, 0.12);
  border: 1px solid rgba(125, 186, 138, 0.35);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: rgba(217, 119, 106, 0.12);
  border: 1px solid rgba(217, 119, 106, 0.35);
  color: var(--danger);
}

.contact-details address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.inline-error {
  margin: 1rem var(--space);
  padding: 0.85rem 1rem;
  background: rgba(217, 119, 106, 0.12);
  border: 1px solid rgba(217, 119, 106, 0.35);
  color: var(--danger);
}

/* Blog */
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.75);
}

.blog-card h2 {
  font-size: 1.55rem;
  color: var(--text);
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2.5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  margin: 0 0 2.5rem;
  filter: saturate(0.8);
}

/* Course detail */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  color: var(--text-muted);
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.25rem;
}

.module-list strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.instructor {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.instructor img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.7);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
}

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

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  margin-top: 0.75rem;
}

/* Reviews / case studies */
.case-study {
  background: var(--bg-elevated);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 2.5rem;
  border-top: 1px solid var(--gold-muted);
}

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* Legal */
.legal-body {
  max-width: 44rem;
}

.legal-body h2 {
  margin-top: 2.5rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--bg-elevated);
  color: var(--gold-soft);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(21, 18, 16, 0.97);
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--space);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

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

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 3.5rem var(--space) 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.footer-heading {
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Utilities */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 760px) {
  .split-2 { grid-template-columns: 1fr; }
}

.muted { color: var(--text-muted); }
.text-gold { color: var(--gold-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
