/* GrokLit — Dark Academia Design System */
:root {
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --bg-card: #1a1714;
  --bg-soft: #1f1b17;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-dim: #8a7340;
  --gold-border: rgba(201, 168, 76, 0.35);
  --text: #f2ebe0;
  --text-muted: #a89f90;
  --text-dim: #6e665c;
  --line: rgba(201, 168, 76, 0.2);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }
ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Typography —— */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-muted);
  line-height: 1.55;
}
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: #0c0b0a;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #0c0b0a;
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  letter-spacing: 0.08em;
}
.btn-ghost:hover { color: var(--gold-light); }

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.95rem 1.5rem;
    border-top: 1px solid var(--line);
  }
  .nav-links .btn { margin: 0.75rem 1.25rem; }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,11,10,0.97) 0%, rgba(12,11,10,0.88) 38%, rgba(12,11,10,0.45) 68%, rgba(12,11,10,0.25) 100%),
    linear-gradient(0deg, rgba(12,11,10,0.9) 0%, transparent 48%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
  max-width: 620px;
}
.hero h1 { margin: 1rem 0 1.25rem; }
.hero .lead { margin-bottom: 2rem; max-width: 34rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta strong {
  color: var(--gold);
  font-weight: 600;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.25rem;
}
.section-header h2 { margin: 0.75rem 0 1rem; }
.section-header p { color: var(--text-muted); }

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.feature-card h3 { margin-bottom: 0.65rem; color: var(--gold-light); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* —— Testimonials —— */
.testimonials {
  display: grid;
  gap: 2.5rem;
}
.testimonial {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 320px;
}
.testimonial:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 340px);
}
.testimonial:nth-child(even) .testimonial-photo { order: 2; }
.testimonial:nth-child(even) .testimonial-body { order: 1; }

.testimonial-photo {
  position: relative;
  min-height: 320px;
  background: var(--bg-soft);
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.testimonial-body {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}
.testimonial-body blockquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.testimonial-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-light);
}
.testimonial-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

@media (max-width: 780px) {
  .testimonial,
  .testimonial:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .testimonial:nth-child(even) .testimonial-photo { order: 0; }
  .testimonial-photo { min-height: 360px; }
}

/* —— Pricing —— */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .pricing-wrap { grid-template-columns: 1fr; }
}
.price-card {
  background: linear-gradient(160deg, #1c1813 0%, #12100e 100%);
  border: 1px solid var(--gold-border);
  padding: 2.75rem 2.25rem;
  position: relative;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  pointer-events: none;
}
.price-amount {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold-light);
  margin: 0.5rem 0 0.25rem;
}
.price-amount span {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.price-list {
  margin: 1.75rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}
.price-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.35rem;
}
.price-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.free-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.free-card h3 { color: var(--gold-light); margin: 0.5rem 0 1rem; }

/* —— About layout —— */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-bottom: 1px solid var(--line);
}
.about-hero-photo {
  position: relative;
  min-height: 480px;
}
.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
}
.about-emblem {
  width: min(280px, 70%);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
}
.about-emblem img {
  width: 100%;
  height: auto;
}
.about-hero-copy h1 { margin: 0.75rem 0 1rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.about-body {
  max-width: 720px;
  margin: 0 auto;
}
.about-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.motto-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.motto-row span {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-copy {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 3rem 1.5rem;
    text-align: center;
    align-items: center;
  }
}

/* —— Modules hub —— */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .module-grid { grid-template-columns: 1fr; }
}
.module-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}
.module-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  color: inherit;
}
.module-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.module-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.module-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.module-card .arrow {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Module lesson page —— */
.lesson-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.08), transparent 50%),
    var(--bg);
}
.lesson-hero .eyebrow { margin-bottom: 0.75rem; display: inline-block; }
.lesson-hero h1 { margin-bottom: 1rem; max-width: 18ch; }
.lesson-hero .lead { max-width: 40rem; }
.lesson-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.lesson-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .lesson-content { grid-template-columns: 1fr; }
}
.prose h2 {
  font-size: 1.75rem;
  color: var(--gold-light);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}
.prose p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}
.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.2rem;
  color: var(--text-muted);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.25rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0 1.75rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.5;
}
.prompt-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
  display: block;
}
.sidebar-card {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.sidebar-card a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sidebar-card a:hover { color: var(--gold-light); }
.sidebar-card a:last-child { border-bottom: none; }
.sidebar-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* —— Email signup (placeholder) —— */
.signup-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.signup-box h3 { margin: 0.5rem 0 0.75rem; color: var(--gold-light); }
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.signup-form input[type="email"] {
  flex: 1 1 220px;
  background: var(--bg);
  border: 1px solid var(--gold-border);
  color: var(--text);
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: var(--radius);
  outline: none;
}
.signup-form input:focus {
  border-color: var(--gold);
}
.signup-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  background: #090807;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 28ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* —— Ad slots —— */
.ad-slot {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  min-height: 90px;
}

/* —— Utility —— */
.gold { color: var(--gold-light); }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.page-intro {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 { margin: 0.75rem 0 1rem; }
.page-intro .lead { max-width: 36rem; }
