/* ═══════════════════════════════════════════════════════════════
   Tenets of Power — main.css
   Full theme stylesheet: tokens → base → layout → components
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #8a6e2f;
  --black:      #060503;
  --dark:       #0d0b07;
  --dark2:      #141008;
  --dark3:      #1c160d;
  --text:       #d4c8a8;
  --text-dim:   #8a7f65;
  --crimson:    #8b1a1a;
  --border:     rgba(201,168,76,0.18);
  --nav-h:      64px;
  --container:  1200px;
  --narrow:     900px;
  --radius:     0px;
  --transition: 0.25s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--black); color: var(--text); font-family: 'EB Garamond', Georgia, serif; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.3;
}

.top-no-scroll { overflow: hidden; }

/* ── Container ──────────────────────────────────────────────── */
.top-container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.top-container--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 40px; }
.top-container--wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ── Buttons ────────────────────────────────────────────────── */
.top-btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none; border: none;
  padding: 14px 32px;
  transition: all var(--transition);
  white-space: nowrap; line-height: 1;
}
.top-btn--gold  { background: var(--gold); color: var(--black); }
.top-btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,0.28); }
.top-btn--ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.top-btn--ghost:hover { background: rgba(201,168,76,0.06); border-color: var(--gold); }
.top-btn--lg    { padding: 18px 40px; font-size: 12px; }
.top-btn--sm    { padding: 8px 18px; font-size: 10px; }

/* ── Section typography ─────────────────────────────────────── */
.top-section { position: relative; }
.top-section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.top-section-label::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold-dim);
}
.top-section-label--center { justify-content: center; }
.top-section-label--center::before { display: none; }

.top-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 40px); font-weight: 700;
  letter-spacing: 0.06em; color: var(--gold);
  margin-bottom: 28px; line-height: 1.15;
}
.top-section-title--center { text-align: center; }
.top-section-subtitle { font-size: 18px; font-style: italic; color: var(--text-dim); margin-bottom: 48px; line-height: 1.6; }
.top-section-subtitle--center { text-align: center; }
.top-section-body { font-size: 19px; line-height: 1.85; color: var(--text-dim); }
.top-section-body p + p { margin-top: 1.3em; }

/* ── Divider ────────────────────────────────────────────────── */
.top-divider {
  display: flex; align-items: center; gap: 24px;
  padding: 0 40px; max-width: var(--container); margin: 0 auto;
}
.top-divider__line { flex: 1; height: 1px; background: var(--border); }
.top-divider__symbol { font-family: 'Cinzel', serif; font-size: 18px; color: var(--gold-dim); }

/* ── NAV ───────────────────────────────────────────────────── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(6,5,3,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--transition);
}
.top-nav--scrolled { background: rgba(6,5,3,0.98); }

.top-nav__logo {
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.top-nav__logo img { height: 36px; width: auto; }

.top-nav__links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.top-nav__links a, .top-nav__link {
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color var(--transition);
}
.top-nav__links a:hover, .top-nav__link:hover,
.top-nav__link--active { color: var(--gold); }

.top-nav__cta { display: flex; align-items: center; gap: 10px; }

.top-account-trigger {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--gold-dim);
  color: var(--gold); padding: 7px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  transition: border-color var(--transition);
}
.top-account-trigger:hover { border-color: var(--gold); }
.top-account-trigger__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.top-account-trigger__caret { font-size: 10px; opacity: 0.6; }

.top-nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.top-nav__hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ──────────────────────────────────────────────────── */
.top-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 60px) 40px 80px;
  overflow: hidden;
}
.top-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(139,26,26,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  z-index: 0;
}
.top-hero__image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.12; z-index: 0; filter: saturate(0.3) sepia(0.4);
}
.top-hero__content { position: relative; z-index: 1; max-width: 860px; }
.top-hero__eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.top-hero__eyebrow::before, .top-hero__eyebrow::after {
  content: ''; display: block; width: 60px; height: 1px; background: var(--gold-dim);
}
.top-hero__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(40px, 8vw, 100px); font-weight: 900; line-height: 1;
  letter-spacing: 0.05em; color: var(--gold);
  text-shadow: 0 0 80px rgba(201,168,76,0.3), 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 28px;
  animation: fadeUp 1.2s ease forwards;
}
.top-hero__subtitle {
  font-size: clamp(15px, 2.5vw, 21px); font-style: italic;
  color: var(--text-dim); line-height: 1.65; margin-bottom: 44px;
  animation: fadeUp 1.2s ease 0.2s both;
}
.top-hero__cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1.2s ease 0.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SOVEREIGNTY ────────────────────────────────────────────── */
.top-section--sovereignty { background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%); }
.top-sovereignty-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 100px 0;
}
.top-sovereignty-grid__image { position: relative; }
.top-sovereignty-grid__image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  filter: saturate(0.5) sepia(0.3); opacity: 0.85;
}
.top-sovereignty-grid__image-frame {
  position: absolute; inset: -8px; border: 1px solid var(--border); pointer-events: none;
}

/* ── SECTION VARIANTS ───────────────────────────────────────── */
.top-section--dark { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.top-section--alt  { background: var(--black); border-top: 1px solid var(--border); }
.top-section--claim { background: var(--dark2); border-top: 1px solid var(--border); }
.top-section--creed { background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%); }
.top-section-header--center { text-align: center; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.top-section--dark .top-container { padding-top: 100px; padding-bottom: 100px; }
.top-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.top-testimonial-card {
  background: var(--dark3); border: 1px solid rgba(201,168,76,0.07);
  padding: 40px 32px; transition: border-color var(--transition);
}
.top-testimonial-card:hover { border-color: rgba(201,168,76,0.22); }
.top-testimonial-card__stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; }
.top-testimonial-card__title { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 14px; line-height: 1.4; }
.top-testimonial-card__quote { font-size: 17px; font-style: italic; line-height: 1.75; color: var(--text-dim); margin-bottom: 22px; }
.top-testimonial-card__author { font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-dim); }

/* ── CLAIM GRID ─────────────────────────────────────────────── */
.top-section--claim .top-container { padding-top: 100px; padding-bottom: 100px; }
.top-claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.top-claim-card {
  background: var(--dark3); border: 1px solid rgba(201,168,76,0.1);
  padding: 48px 40px; position: relative; overflow: hidden;
  transition: border-color var(--transition);
}
.top-claim-card:hover { border-color: rgba(201,168,76,0.3); }
.top-claim-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.top-claim-card:hover::before { opacity: 1; }
.top-claim-card__title { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.top-claim-card__body { font-size: 17px; line-height: 1.75; color: var(--text-dim); margin-bottom: 28px; }

/* ── PRODUCT SECTIONS ───────────────────────────────────────── */
.top-product-section .top-container--narrow { padding-top: 100px; padding-bottom: 100px; }
.top-product-image-wrap { position: relative; margin-bottom: 36px; overflow: hidden; }
.top-product-image-wrap img { width: 100%; max-height: 420px; object-fit: cover; filter: saturate(0.5) sepia(0.2); opacity: 0.9; }
.top-product-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--gold); color: var(--black);
  font-family: 'Raleway', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; padding: 6px 14px;
}

.top-product-items { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 0; }
.top-product-item {
  display: flex; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  font-size: 18px; line-height: 1.7; color: var(--text-dim);
}
.top-product-item:last-child { border-bottom: none; }
.top-product-item__num {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--gold-dim); min-width: 28px; margin-top: 4px;
}
.top-product-item__title { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.04em; }

/* ── STATS ──────────────────────────────────────────────────── */
.top-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin: 36px 0; }
.top-stat-box { background: var(--dark3); border: 1px solid var(--border); padding: 28px 20px; text-align: center; }
.top-stat-box__value { display: block; font-family: 'Cinzel', serif; font-size: 30px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.top-stat-box__label { font-family: 'Raleway', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); line-height: 1.5; }

/* ── CONTACT ────────────────────────────────────────────────── */
.top-contact-wrap { max-width: 640px; margin: 0 auto; padding: 100px 0; }

/* ── CREED ──────────────────────────────────────────────────── */
.top-creed { text-align: center; padding: 100px 0; max-width: 700px; margin: 0 auto; }
.top-creed__symbol { font-size: 28px; color: var(--gold-dim); display: block; margin-bottom: 40px; }
.top-creed__quote {
  font-size: clamp(18px, 3vw, 30px); font-style: italic; font-weight: 500;
  line-height: 1.65; color: var(--text); margin-bottom: 28px; position: relative;
}
.top-creed__quote::before {
  content: '"'; font-family: 'Cinzel Decorative', serif; font-size: 80px;
  color: rgba(201,168,76,0.1); position: absolute; top: -24px; left: -16px; line-height: 1;
}
.top-creed__attribution { font-family: 'Cinzel', serif; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); }

/* ── FORMS ──────────────────────────────────────────────────── */
.top-form-group { margin-bottom: 18px; }
.top-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.top-form-label {
  display: block; font-family: 'Raleway', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.top-form-input {
  width: 100%; background: var(--dark3); border: 1px solid rgba(201,168,76,0.15);
  color: var(--text); font-family: 'EB Garamond', serif; font-size: 16px;
  padding: 13px 16px; outline: none; transition: border-color var(--transition);
  appearance: none; -webkit-appearance: none; border-radius: 0;
}
.top-form-input:focus { border-color: var(--gold-dim); }
.top-form-input::placeholder { color: rgba(138,127,101,0.4); }
.top-form-input:disabled { opacity: 0.5; cursor: not-allowed; }
.top-form-textarea { resize: vertical; min-height: 120px; }
.top-form-submit {
  width: 100%; font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--black); background: var(--gold); border: none;
  padding: 16px; cursor: pointer; transition: all var(--transition); margin-top: 6px;
}
.top-form-submit:hover { background: var(--gold-light); }
.top-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.top-form-note { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.top-form-note button { background: none; border: none; color: var(--gold-dim); font-size: 14px; text-decoration: underline; cursor: pointer; }
.top-form-note button:hover { color: var(--gold); }
.top-form-intro { font-size: 16px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.65; }
.top-form-hint { display: block; font-family: 'Raleway', sans-serif; font-size: 10px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.1em; }
.top-form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.top-form-notice {
  padding: 12px 16px; margin-bottom: 16px; font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.top-form-notice--error   { background: rgba(139,26,26,0.18); color: #e07070; border-left: 3px solid #8b1a1a; }
.top-form-notice--success { background: rgba(201,168,76,0.12); color: var(--gold);  border-left: 3px solid var(--gold-dim); }

/* ── MODAL ──────────────────────────────────────────────────── */
.top-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6,5,3,0.88); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.top-modal-overlay--active { display: flex; }
.top-modal {
  background: var(--dark2); border: 1px solid var(--border);
  width: 100%; max-width: 460px; position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.top-modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim); font-size: 24px; line-height: 1;
  transition: color var(--transition);
}
.top-modal__close:hover { color: var(--gold); }
.top-modal__header {
  padding: 36px 40px 24px; border-bottom: 1px solid var(--border);
}
.top-modal__eyebrow {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px;
}
.top-modal__title { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; }
.top-modal__body { padding: 28px 40px 36px; }
.top-modal__tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.top-modal__tab {
  font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
  background: none; border: none; padding: 11px 22px; position: relative;
  transition: color var(--transition);
}
.top-modal__tab.active { color: var(--gold); }
.top-modal__tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold);
}

/* ── ACCOUNT PANEL ──────────────────────────────────────────── */
.top-account-panel {
  position: fixed; top: var(--nav-h); right: -420px; width: 400px;
  height: calc(100vh - var(--nav-h)); background: var(--dark2);
  border-left: 1px solid var(--border); z-index: 900;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; padding: 36px 28px;
}
.top-account-panel--open { right: 0; }
.top-account-panel__header { padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.top-account-panel__name  { font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.06em; }
.top-account-panel__email { font-family: 'Raleway', sans-serif; font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.top-account-panel__section { margin-bottom: 28px; }
.top-account-panel__section-title { font-family: 'Raleway', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 14px; }

/* Library list */
.top-library-list { list-style: none; }
.top-library-list__item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid rgba(201,168,76,0.07);
  font-size: 15px; color: var(--text);
}
.top-library-list__name { flex: 1; min-width: 0; }
.top-library-list__badge { font-family: 'Raleway', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 9px; }
.top-badge--owned  { background: rgba(201,168,76,0.14); color: var(--gold); }
.top-badge--locked { background: rgba(255,255,255,0.04); color: var(--text-dim); }
.top-badge--free   { background: rgba(201,168,76,0.08); color: var(--gold-dim); }
.top-library-list__link, .top-library-list__acquire {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; padding: 4px 10px; border: 1px solid;
  transition: all var(--transition); color: var(--gold-dim); border-color: var(--gold-dim);
}
.top-library-list__link:hover    { color: var(--gold); border-color: var(--gold); }
.top-library-list__acquire       { color: var(--gold); border-color: var(--gold); }
.top-library-list__acquire:hover { background: rgba(201,168,76,0.1); }
.top-library-list__loading { color: var(--text-dim); font-size: 14px; font-style: italic; padding: 12px 0; }
.top-sync-btn {
  margin-top: 12px; background: none; border: 1px solid rgba(201,168,76,0.14);
  color: var(--text-dim); font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
  transition: all var(--transition);
}
.top-sync-btn:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Orders list */
.top-orders-list { list-style: none; }
.top-orders-list__item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.07); font-size: 14px; }
.top-orders-list__id    { color: var(--text-dim); min-width: 50px; }
.top-orders-list__total { color: var(--gold); flex: 1; }
.top-orders-list__receipt { font-family: 'Raleway', sans-serif; font-size: 10px; color: var(--gold-dim); text-decoration: none; letter-spacing: 0.1em; }
.top-orders-list__empty { color: var(--text-dim); font-size: 14px; font-style: italic; padding: 10px 0; }

.top-account-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.top-account-nav a {
  display: block; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; padding: 11px 14px; border: 1px solid transparent;
  transition: all var(--transition);
}
.top-account-nav a:hover { color: var(--gold); border-color: rgba(201,168,76,0.1); }
.top-account-panel__logout {
  width: 100%; margin-top: 20px; background: none; border: 1px solid rgba(139,26,26,0.3);
  color: #7a2020; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 12px; cursor: pointer;
  transition: all var(--transition);
}
.top-account-panel__logout:hover { color: var(--crimson); border-color: var(--crimson); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.top-footer { background: var(--black); border-top: 1px solid var(--border); padding: 64px 40px 40px; }
.top-footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.top-footer__brand-name { font-family: 'Cinzel Decorative', serif; font-size: 17px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.top-footer__brand-desc { font-size: 15px; line-height: 1.7; color: var(--text-dim); max-width: 320px; }
.top-footer__socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.top-footer__social {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; padding: 7px 12px; border: 1px solid rgba(201,168,76,0.12);
  transition: all var(--transition);
}
.top-footer__social:hover { color: var(--gold); border-color: var(--gold-dim); }
.top-footer__col-title { font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 18px; }
.top-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.top-footer__links a { font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color var(--transition); }
.top-footer__links a:hover { color: var(--gold); }
.top-footer__bottom {
  max-width: var(--container); margin: 30px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim);
}
.top-footer__built-with { color: var(--gold-dim); }

/* ── ACCOUNT PAGE ───────────────────────────────────────────── */
.top-account-page { padding-top: calc(var(--nav-h) + 60px); min-height: 100vh; }
.top-account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 60px 0; }
.top-account-sidebar { background: var(--dark2); border: 1px solid var(--border); padding: 32px 24px; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.top-account-sidebar__user { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.top-account-sidebar__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.top-account-sidebar__name  { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.top-account-sidebar__email { font-family: 'Raleway', sans-serif; font-size: 10px; color: var(--text-dim); word-break: break-all; }
.top-account-sidebar__nav   { display: flex; flex-direction: column; gap: 2px; }
.top-account-sidebar__nav-link {
  font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; padding: 10px 12px; border: 1px solid transparent;
  transition: all var(--transition);
}
.top-account-sidebar__nav-link:hover { color: var(--gold); border-color: rgba(201,168,76,0.1); }
.top-account-sidebar__nav-link--active { color: var(--gold); background: rgba(201,168,76,0.06); border-color: var(--border); }
.top-account-sidebar__logout {
  display: block; margin-top: 20px; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #7a2020; text-decoration: none;
  padding: 10px 12px; border: 1px solid rgba(139,26,26,0.3); transition: all var(--transition);
}
.top-account-sidebar__logout:hover { color: var(--crimson); border-color: var(--crimson); }

.top-account-content__title { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 700; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.05em; }
.top-account-content__welcome { font-size: 18px; color: var(--text-dim); margin-bottom: 40px; font-style: italic; }
.top-account-section-title { font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 16px; margin-top: 40px; }
.top-account-section-title:first-child { margin-top: 0; }
.top-account-empty { font-size: 17px; color: var(--text-dim); font-style: italic; margin-bottom: 24px; }

.top-library-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.top-library-card { background: var(--dark3); border: 1px solid rgba(201,168,76,0.08); padding: 24px; }
.top-library-card--owned { border-color: rgba(201,168,76,0.2); }
.top-library-card__name { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); margin-bottom: 12px; line-height: 1.4; }
.top-library-card__status { margin-bottom: 16px; }
.top-library-card__action { text-decoration: none; }

.top-orders-table { width: 100%; border-collapse: collapse; }
.top-orders-table th, .top-orders-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(201,168,76,0.08); }
.top-orders-table th { font-family: 'Raleway', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); }
.top-orders-table td { font-size: 16px; color: var(--text-dim); }

.top-downloads-list { list-style: none; }
.top-downloads-list__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(201,168,76,0.08); }
.top-downloads-list__name { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); }
.top-profile-form { max-width: 560px; }
.top-link { color: var(--gold-dim); text-decoration: none; font-family: 'Raleway', sans-serif; font-size: 11px; letter-spacing: 0.1em; transition: color var(--transition); }
.top-link:hover { color: var(--gold); }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.top-reveal    { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.top-revealed  { opacity: 1; transform: translateY(0); }

/* Old responsive block removed — see full mobile overhaul below */

/* ── LemonSqueezy Post-Purchase Toast ───────────────────────── */
.top-purchase-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  background: var(--dark2);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.1);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  max-width: 90vw;
}
.top-purchase-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.top-purchase-toast__icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-purchase-toast__msg {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Full overhaul
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
═══════════════════════════════════════════════════════════════ */

/* ── Tablet 1024px ──────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Nav */
  .top-nav { padding: 0 24px; }

  /* Footer */
  .top-footer { padding: 56px 24px 32px; }
  .top-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .top-footer__brand { grid-column: 1 / -1; }

  /* Account page */
  .top-account-layout { grid-template-columns: 220px 1fr; gap: 32px; }

  /* Sovereignty */
  .top-sovereignty-grid { gap: 40px; }

  /* Testimonials */
  .top-testimonials-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .top-testimonial-card:last-child { grid-column: 1 / -1; }

  /* Course sidebar */
  .top-course-sidebar { width: 280px; min-width: 280px; }
}

/* ── Mobile 768px ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Base ─────────────────────────────────────────── */
  :root { --nav-h: 56px; }

  .top-container,
  .top-container--narrow,
  .top-container--wide { padding-left: 20px; padding-right: 20px; }

  /* ── Nav ──────────────────────────────────────────── */
  .top-nav { padding: 0 20px; height: var(--nav-h); }
  .top-nav__logo { font-size: 11px; letter-spacing: 0.2em; }

  /* Hide desktop links, show hamburger */
  .top-nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(6,5,3,0.99);
    flex-direction: column;
    padding: 20px 20px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .top-nav__links--open { display: flex; }
  .top-nav__links li { width: 100%; }
  .top-nav__links a, .top-nav__link {
    display: block; padding: 12px 4px;
    font-size: 12px; letter-spacing: 0.25em;
    border-bottom: 1px solid rgba(201,168,76,0.06);
  }
  .top-nav__hamburger { display: flex; }

  /* Shrink the sign-in button in nav on mobile */
  .top-account-trigger { padding: 6px 10px; font-size: 10px; gap: 6px; }
  .top-account-trigger__caret { display: none; }
  .top-nav__cta .top-btn { padding: 8px 14px; font-size: 10px; letter-spacing: 0.15em; }

  /* ── Hero ─────────────────────────────────────────── */
  .top-hero {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 40px) 24px 64px;
    text-align: center;
  }
  .top-hero__eyebrow { font-size: 9px; letter-spacing: 0.35em; }
  .top-hero__eyebrow::before,
  .top-hero__eyebrow::after { width: 32px; }
  .top-hero__title { font-size: clamp(36px, 12vw, 64px); margin-bottom: 20px; }
  .top-hero__subtitle { font-size: 16px; margin-bottom: 32px; }
  .top-hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .top-hero__cta .top-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 16px 24px;
  }

  /* ── Divider ──────────────────────────────────────── */
  .top-divider { padding: 0 20px; }

  /* ── Sovereignty section ──────────────────────────── */
  .top-sovereignty-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 0;
  }
  .top-sovereignty-grid__image { display: none; }
  .top-section-body { font-size: 17px; }

  /* ── Section padding ──────────────────────────────── */
  .top-section--dark .top-container { padding-top: 64px; padding-bottom: 64px; }
  .top-section--claim .top-container { padding-top: 64px; padding-bottom: 64px; }
  .top-product-section .top-container--narrow { padding-top: 64px; padding-bottom: 64px; }
  .top-contact-wrap { padding: 64px 0; }

  /* ── Testimonials ─────────────────────────────────── */
  .top-testimonials-grid { grid-template-columns: 1fr; }
  .top-testimonial-card { padding: 28px 24px; }
  .top-testimonial-card:last-child { grid-column: auto; }
  .top-testimonial-card__quote { font-size: 16px; }

  /* ── Claim grid ───────────────────────────────────── */
  .top-claim-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .top-claim-card { padding: 36px 24px; }
  .top-claim-card__title { font-size: 15px; }
  .top-claim-card__body { font-size: 16px; }

  /* ── Product sections ─────────────────────────────── */
  .top-section-title { font-size: clamp(18px, 5vw, 28px); margin-bottom: 20px; }
  .top-product-item { font-size: 16px; gap: 14px; }
  .top-product-item__title { font-size: 13px; }

  /* ── Stats ────────────────────────────────────────── */
  .top-stats-row { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .top-stat-box { padding: 20px 12px; }
  .top-stat-box__value { font-size: 22px; }
  .top-stat-box__label { font-size: 8px; letter-spacing: 0.18em; }

  /* ── Buttons ──────────────────────────────────────── */
  .top-btn--lg { padding: 15px 28px; }

  /* ── Creed ────────────────────────────────────────── */
  .top-creed { padding: 64px 0; }
  .top-creed__quote { font-size: clamp(17px, 4vw, 22px); }
  .top-creed__quote::before { font-size: 60px; top: -16px; left: -8px; }

  /* ── Footer ───────────────────────────────────────── */
  .top-footer { padding: 48px 20px 28px; }
  .top-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .top-footer__brand { grid-column: auto; }
  .top-footer__brand-name { font-size: 15px; }
  .top-footer__brand-desc { font-size: 14px; max-width: 100%; }
  .top-footer__socials { gap: 8px; }
  .top-footer__social { font-size: 9px; padding: 6px 10px; }
  .top-footer__bottom {
    flex-direction: column; gap: 8px; text-align: center;
    font-size: 9px; margin-top: 24px;
  }

  /* ── Modal ────────────────────────────────────────── */
  .top-modal-overlay { padding: 16px; align-items: flex-end; }
  .top-modal {
    max-width: 100%;
    border-radius: 0;
    animation: modalInMobile 0.3s ease;
  }
  @keyframes modalInMobile {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .top-modal__header { padding: 24px 20px 18px; }
  .top-modal__title { font-size: 18px; }
  .top-modal__body { padding: 20px 20px 28px; }
  .top-modal__tabs { margin-bottom: 20px; }
  .top-modal__tab { padding: 10px 16px; font-size: 10px; }
  .top-form-row { grid-template-columns: 1fr; }

  /* ── Account panel ────────────────────────────────── */
  .top-account-panel {
    width: 100%;
    right: -100%;
    top: var(--nav-h);
    height: calc(100dvh - var(--nav-h));
  }
  .top-account-panel--open { right: 0; }

  /* ── Account page ─────────────────────────────────── */
  .top-account-page { padding-top: calc(var(--nav-h) + 24px); }
  .top-account-layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .top-account-sidebar {
    position: static;
    padding: 24px 20px;
  }
  .top-account-sidebar__user { margin-bottom: 20px; padding-bottom: 20px; }
  .top-account-content__title { font-size: 22px; }
  .top-account-content__welcome { font-size: 16px; margin-bottom: 28px; }

  /* Collapse sidebar nav into horizontal scroll on mobile */
  .top-account-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-account-sidebar__nav-link {
    font-size: 10px;
    padding: 8px 10px;
    letter-spacing: 0.12em;
  }

  /* Library grid */
  .top-library-grid { grid-template-columns: 1fr; gap: 10px; }
  .top-library-card { padding: 20px; }
  .top-library-card__name { font-size: 13px; }

  /* Orders table — make it scrollable */
  .top-orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .top-orders-table { min-width: 500px; }

  /* Downloads list */
  .top-downloads-list__item { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Course cards */
  .top-course-cards { grid-template-columns: 1fr; }
  .top-course-card { padding: 20px; }
}

/* ── Small mobile 480px ─────────────────────────────────────── */
@media (max-width: 480px) {

  /* Nav */
  .top-nav__logo { font-size: 10px; letter-spacing: 0.15em; }
  .top-nav__cta { gap: 6px; }

  /* Hero */
  .top-hero { padding: calc(var(--nav-h) + 28px) 16px 48px; }
  .top-hero__title { font-size: clamp(32px, 11vw, 52px); line-height: 1.05; }
  .top-hero__subtitle { font-size: 15px; }
  .top-hero__cta .top-btn { max-width: 100%; padding: 15px 20px; font-size: 11px; }

  /* Container */
  .top-container,
  .top-container--narrow,
  .top-container--wide { padding-left: 16px; padding-right: 16px; }

  /* Stats — stack to 1 column on very small screens */
  .top-stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .top-stat-box__value { font-size: 20px; }
  .top-stat-box__label { font-size: 7px; letter-spacing: 0.12em; }

  /* Section title */
  .top-section-title { font-size: clamp(17px, 5.5vw, 24px); letter-spacing: 0.04em; }

  /* Claim card */
  .top-claim-card { padding: 28px 20px; }

  /* Footer socials — wrap tighter */
  .top-footer__socials { gap: 6px; }
  .top-footer__social { font-size: 8px; padding: 5px 8px; letter-spacing: 0.12em; }

  /* Modal full screen on tiny phones */
  .top-modal-overlay { padding: 0; align-items: flex-end; }
  .top-modal { max-height: 92dvh; overflow-y: auto; }

  /* Product items */
  .top-product-item { gap: 10px; padding: 14px 0; }
  .top-product-item__num { min-width: 22px; font-size: 11px; }

  /* Account sidebar nav */
  .top-account-sidebar__nav-link { font-size: 9px; padding: 7px 8px; letter-spacing: 0.1em; }

  /* Purchase toast */
  .top-purchase-toast { padding: 14px 20px; bottom: 20px; }
  .top-purchase-toast__msg { font-size: 10px; letter-spacing: 0.1em; }
}

/* ── Touch device improvements ──────────────────────────────── */
@media (hover: none) {
  /* Remove hover effects on touch — prevents sticky hover states */
  .top-btn--gold:hover    { transform: none; box-shadow: none; }
  .top-claim-card:hover   { border-color: rgba(201,168,76,0.1); }
  .top-claim-card:hover::before { opacity: 0; }
  .top-testimonial-card:hover { border-color: rgba(201,168,76,0.07); }

  /* Larger tap targets */
  .top-nav__links a, .top-nav__link { padding: 14px 4px; }
  .top-footer__links a { padding: 6px 0; }
}

/* ── Safe area for notched phones (iPhone X+) ───────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .top-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .top-account-panel { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .top-modal { padding-bottom: env(safe-area-inset-bottom); }
  .top-hero { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════════════
   MASTERCLASS LANDING SECTION
═══════════════════════════════════════════════════════════════ */

/* ── Hero banner ────────────────────────────────────────────── */
.top-masterclass__hero {
  position: relative;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
  overflow: hidden;
}
.top-masterclass__hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(139,26,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.top-masterclass__hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.top-masterclass__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(201,168,76,0.2);
  margin-bottom: 24px;
}
.top-masterclass__tagline {
  font-size: 18px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.top-masterclass__coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 10px 20px;
  margin-bottom: 16px;
}
.top-masterclass__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.top-masterclass__waitlist-social-proof {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Video placeholder ──────────────────────────────────────── */
.top-masterclass__video-wrap { position: relative; }
.top-masterclass__video-placeholder {
  aspect-ratio: 16/9;
  background: var(--dark3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.top-masterclass__video-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
}
.top-masterclass__video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.top-masterclass__play-btn {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: all var(--transition);
}
.top-masterclass__play-btn:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.15);
}
.top-masterclass__video-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Modules ────────────────────────────────────────────────── */
.top-masterclass__modules {
  padding: 100px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
}
.top-masterclass__modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  margin-bottom: 48px;
}
.top-masterclass__module-card {
  display: flex;
  gap: 24px;
  padding: 32px 28px;
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.07);
  transition: border-color var(--transition);
}
.top-masterclass__module-card:hover { border-color: rgba(201,168,76,0.2); }
.top-masterclass__module-num {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dim);
  min-width: 28px;
  margin-top: 2px;
  flex-shrink: 0;
}
.top-masterclass__module-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.35;
}
.top-masterclass__module-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.top-masterclass__module-count {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.top-masterclass__stats { margin-top: 0; }

/* ── Who it's for ───────────────────────────────────────────── */
.top-masterclass__for {
  padding: 100px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}
.top-masterclass__for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.top-masterclass__for-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.top-masterclass__for-heading--gold  { color: var(--gold); }
.top-masterclass__for-heading--dim   { color: var(--text-dim); }
.top-masterclass__for-list { display: flex; flex-direction: column; gap: 16px; }
.top-masterclass__for-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
}
.top-masterclass__for-icon {
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.top-masterclass__for-icon--yes { color: var(--gold); }
.top-masterclass__for-icon--no  { color: var(--crimson); }

/* ── Instructor ─────────────────────────────────────────────── */
.top-masterclass__instructor {
  padding: 100px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
}
.top-masterclass__instructor-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.top-masterclass__instructor-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--black);
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.3);
}
.top-masterclass__instructor-name {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.top-masterclass__instructor-title {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 24px;
}
.top-masterclass__instructor-bio { font-size: 18px; line-height: 1.8; color: var(--text-dim); }
.top-masterclass__instructor-bio p + p { margin-top: 1.2em; }

/* ── Testimonials wrapper ───────────────────────────────────── */
.top-masterclass__testimonials {
  padding: 100px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

/* ── Waitlist CTA ───────────────────────────────────────────── */
.top-masterclass__waitlist {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  border-top: 1px solid var(--border);
}
.top-masterclass__waitlist-inner { text-align: center; }
.top-masterclass__waitlist-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.top-masterclass__waitlist-sub {
  font-size: 18px;
  font-style: italic;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.top-masterclass__waitlist-form { max-width: 600px; margin: 0 auto 40px; }
.top-masterclass__waitlist-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}
.top-masterclass__waitlist-input { font-size: 15px; padding: 15px 16px; }
.top-masterclass__waitlist-btn {
  white-space: nowrap;
  padding: 15px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  height: 100%;
}
.top-masterclass__waitlist-notice {
  margin-top: 16px;
  padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.top-masterclass__waitlist-notice--success {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-left: 3px solid var(--gold-dim);
}
.top-masterclass__waitlist-notice--error {
  background: rgba(139,26,26,0.15);
  color: #e07070;
  border-left: 3px solid var(--crimson);
}
.top-masterclass__waitlist-count {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ── Guarantee badge ────────────────────────────────────────── */
.top-masterclass__guarantee {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.15);
  text-align: left;
}
.top-masterclass__guarantee-icon {
  font-size: 32px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.top-masterclass__guarantee-text strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.top-masterclass__guarantee-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .top-masterclass__hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .top-masterclass__modules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-masterclass__hero { padding: 64px 0; }
  .top-masterclass__title { font-size: clamp(28px, 9vw, 42px); }
  .top-masterclass__tagline { font-size: 16px; }
  .top-masterclass__modules { padding: 64px 0; }
  .top-masterclass__module-card { padding: 24px 20px; gap: 16px; }
  .top-masterclass__for { padding: 64px 0; }
  .top-masterclass__for-grid { grid-template-columns: 1fr; gap: 40px; }
  .top-masterclass__instructor { padding: 64px 0; }
  .top-masterclass__instructor-inner { flex-direction: column; gap: 28px; align-items: center; text-align: center; }
  .top-masterclass__instructor-name { font-size: 22px; }
  .top-masterclass__instructor-bio { font-size: 16px; }
  .top-masterclass__testimonials { padding: 64px 0; }
  .top-masterclass__waitlist { padding: 64px 0; }
  .top-masterclass__waitlist-fields { grid-template-columns: 1fr; }
  .top-masterclass__waitlist-btn { width: 100%; }
  .top-masterclass__guarantee { flex-direction: column; gap: 14px; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .top-masterclass__title { font-size: clamp(24px, 8vw, 36px); }
  .top-masterclass__module-card { flex-direction: column; gap: 8px; padding: 20px 16px; }
  .top-masterclass__module-num { font-size: 11px; }
}

/* ── Hero logo ──────────────────────────────────────────────── */
.top-hero__logo-wrap {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}
.top-hero__logo-img {
  width: 120px;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.25));
  animation: fadeUp 1.2s ease both;
}

@media (max-width: 768px) {
  .top-hero__logo-img { width: 90px; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW SECTIONS — The Architect + The Command Structure
   Added to support homepage Command Structure update.
═══════════════════════════════════════════════════════════════ */

/* ── THE ARCHITECT ──────────────────────────────────────────── */
.top-section--architect {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.top-architect-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.top-architect-text {
  font-size: 19px;
  line-height: 1.85;
  color: var(--text-dim);
}

.top-architect-text + .top-architect-text {
  margin-top: 1.3em;
}

/* ── THE COMMAND STRUCTURE ──────────────────────────────────── */
.top-section--command {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Apex card (Master Regalion) ────────────────────────────── */
.top-command-apex {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.top-command-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition);
}

.top-command-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.top-command-card:hover { border-color: rgba(201,168,76,0.3); }
.top-command-card:hover::before { opacity: 1; }

.top-command-card--apex {
  max-width: 500px;
  width: 100%;
  border-color: rgba(201,168,76,0.25);
}

.top-command-card--apex::before { opacity: 0.5; }

/* ── Card image ─────────────────────────────────────────────── */
.top-command-card__image-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,0.3);
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-command-card--apex .top-command-card__image-wrap {
  width: 120px;
  height: 120px;
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 32px rgba(201,168,76,0.15);
}

.top-command-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) sepia(0.2);
  opacity: 0.9;
}

/* ── Card text elements ─────────────────────────────────────── */
.top-command-card__rank {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.top-command-card__name {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.top-command-card--apex .top-command-card__name {
  font-size: clamp(18px, 2.5vw, 26px);
}

.top-command-card__domain {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.6;
}

.top-command-card__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.top-command-card__handle {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.top-command-card__handle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Connector (apex → generals) ────────────────────────────── */
.top-command-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 500px;
  pointer-events: none;
}

.top-command-connector__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(201,168,76,0.4), rgba(201,168,76,0.15));
}

.top-command-connector__branches {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.top-command-connector__branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.25), rgba(201,168,76,0.08));
}

.top-command-connector__branches::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  height: 1px;
  background: linear-gradient(270deg, rgba(201,168,76,0.25), rgba(201,168,76,0.08));
}

.top-command-connector__branch {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(201,168,76,0.15), rgba(201,168,76,0.35));
}

/* ── Generals row ───────────────────────────────────────────── */
.top-command-generals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 0;
}

/* ── Footer line ────────────────────────────────────────────── */
.top-command-footer {
  text-align: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.top-command-footer__text {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ── Responsive: Architect ──────────────────────────────────── */
@media (max-width: 768px) {
  .top-architect-body { text-align: left; }
  .top-architect-text { font-size: 17px; }
}

/* ── Responsive: Command Structure ─────────────────────────── */
@media (max-width: 1024px) {
  .top-command-card { padding: 40px 28px; }
}

@media (max-width: 768px) {

  /* Stack generals vertically on mobile */
  .top-command-generals {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Hide connector branches on mobile — too narrow to render cleanly */
  .top-command-connector__branches::before,
  .top-command-connector__branches::after { display: none; }

  .top-command-connector__branch { display: none; }

  .top-command-connector__line { height: 28px; }

  .top-command-card { padding: 36px 24px; }

  .top-command-card__image-wrap {
    width: 90px;
    height: 90px;
  }

  .top-command-card--apex .top-command-card__image-wrap {
    width: 100px;
    height: 100px;
  }

  .top-command-card__body { font-size: 15px; }

  .top-command-footer { margin-top: 40px; padding-top: 28px; }

  .top-command-footer__text {
    font-size: 11px;
    letter-spacing: 0.25em;
  }
}

@media (max-width: 480px) {
  .top-command-card { padding: 28px 20px; }

  .top-command-card__name {
    font-size: clamp(15px, 5vw, 18px);
  }
}
