@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --black:    #0A0A08;
  --dark:     #141410;
  --dark2:    #1C1C18;
  --gold:     #C8960C;
  --gold-l:   #E8B84B;
  --gold-bg:  rgba(200,150,12,0.08);
  --gold-bd:  rgba(200,150,12,0.2);
  --cream:    #F5EDD6;
  --rust:     #8B3A1A;
  --gray:     #6B6B60;
  --white:    #FAFAF7;
  --muted:    rgba(245,237,214,0.5);
  --subtle:   rgba(245,237,214,0.12);
  --teal:     #1D9E75;
  --teal-bg:  rgba(29,158,117,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* ── BANNER ── */
.banner {
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-bd);
  padding: 10px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.banner p { font-size: 12px; color: var(--gold-l); letter-spacing: 0.3px; }
.banner strong { font-weight: 500; }
.banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-bd);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark { width: 36px; height: 36px; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .oil {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: -0.3px;
}
.logo-text .ext {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.45;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-ghost-nav {
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 3px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-l); }

.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-bd);
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 3px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--gold-bg); border-color: var(--gold); }

.btn-ghost {
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  padding: 0;
}
.btn-ghost:hover { color: var(--gold); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,12,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold); opacity: 0.6;
}

.hero-title {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--gold-l); }

.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-bd);
}
.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-l);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-l {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* HERO FEED */
.hero-feed {
  background: var(--dark);
  border: 1px solid var(--gold-bd);
  border-radius: 12px;
  overflow: hidden;
}
.feed-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gold-bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.feed-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(200,150,12,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.feed-item:hover { background: rgba(200,150,12,0.04); }
.feed-item:last-child { border-bottom: none; }

.feed-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-gold { background: var(--gold); }
.dot-teal { background: var(--teal); }
.dot-rust { background: var(--rust); }

.feed-info { flex: 1; min-width: 0; }
.feed-name {
  font-size: 13px; font-weight: 500;
  color: rgba(245,237,214,0.85);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-sub { font-size: 11px; color: var(--muted); }

/* ── BADGES ── */
.badge {
  font-size: 9px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; flex-shrink: 0;
}
.badge-open { background: rgba(200,150,12,0.12); color: var(--gold); }
.badge-new  { background: var(--teal-bg); color: #5DCAA5; }
.badge-feat { background: var(--subtle); color: var(--muted); }
.badge-premium { background: rgba(200,150,12,0.15); color: var(--gold-l); border: 1px solid var(--gold-bd); }

/* ── MODULES ── */
.modules-section {
  background: var(--dark);
  border-top: 1px solid var(--gold-bd);
  border-bottom: 1px solid var(--gold-bd);
  padding: 72px 48px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-bd);
  border: 1px solid var(--gold-bd);
  border-radius: 10px;
  overflow: hidden;
}

.module-card {
  background: var(--dark2);
  padding: 32px 28px;
  transition: background 0.2s;
  cursor: pointer;
}
.module-card:hover { background: rgba(200,150,12,0.04); }

.module-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.module-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.module-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.module-link { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; }

/* ── GENERAL SECTIONS ── */
.section { padding: 80px 48px; }
.section-dark { background: var(--dark); border-top: 1px solid var(--gold-bd); }
.section-black { background: var(--black); }

/* ── FILTERS ── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-input {
  flex: 1;
  min-width: 200px;
  background: var(--dark);
  border: 1px solid var(--subtle);
  border-radius: 4px;
  padding: 9px 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.filter-input::placeholder { color: var(--muted); }
.filter-input:focus { border-color: var(--gold-bd); }

.filter-tag {
  font-size: 11px;
  padding: 7px 14px;
  border-radius: 3px;
  border: 1px solid var(--subtle);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}
.filter-tag:hover,
.filter-tag.active {
  background: var(--gold-bg);
  border-color: var(--gold-bd);
  color: var(--gold-l);
}

/* ── DIRECTORY GRID ── */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dir-card {
  background: var(--dark);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.dir-card:hover { border-color: var(--gold-bd); transform: translateY(-2px); }
.dir-card.premium { border-color: var(--gold-bd); }

.dir-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.dir-avatar {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--gold-l);
  flex-shrink: 0;
}

.dir-name { font-size: 14px; font-weight: 500; color: rgba(245,237,214,0.9); margin-bottom: 2px; }
.dir-type { font-size: 11px; color: var(--muted); }

.dir-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dir-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 2px;
  background: var(--subtle); color: rgba(245,237,214,0.4); letter-spacing: 0.3px;
}

.dir-empty {
  background: transparent;
  border: 1px dashed rgba(200,150,12,0.2);
  border-radius: 8px;
  padding: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 108px; gap: 6px; cursor: pointer;
  transition: border-color 0.2s;
}
.dir-empty:hover { border-color: var(--gold); }
.dir-empty span:first-child { font-size: 11px; color: rgba(245,237,214,0.25); }
.dir-empty span:last-child { font-size: 11px; font-weight: 500; color: var(--gold); }

/* ── JOBS LIST ── */
.jobs-list { display: flex; flex-direction: column; gap: 8px; }

.job-card {
  background: var(--dark2);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s, background 0.15s;
  cursor: pointer;
}
.job-card:hover { border-color: var(--gold-bd); background: rgba(200,150,12,0.03); }

.job-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.job-info { flex: 1; }
.job-title { font-size: 14px; font-weight: 500; color: rgba(245,237,214,0.9); margin-bottom: 4px; }
.job-meta { font-size: 11px; color: var(--muted); display: flex; gap: 0; flex-wrap: wrap; }
.job-meta span { margin-right: 4px; }
.job-meta span::before { content: '· '; opacity: 0.4; }
.job-meta span:first-child::before { content: none; }

/* ── COURSES ── */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.course-card {
  background: var(--dark);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.course-card:hover { border-color: var(--gold-bd); transform: translateY(-2px); }

.course-thumb {
  height: 120px;
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-bd);
  display: flex; align-items: center; justify-content: center;
}
.course-body { padding: 18px; }
.course-title { font-size: 14px; font-weight: 500; color: rgba(245,237,214,0.9); line-height: 1.4; margin-bottom: 6px; }
.course-meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.course-price { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--gold-l); }
.course-free { font-size: 12px; font-weight: 500; color: #5DCAA5; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--dark);
  border-top: 1px solid var(--gold-bd);
  border-bottom: 1px solid var(--gold-bd);
  padding: 72px 48px;
  text-align: center;
}
.cta-band .section-title { margin: 0 auto 12px; max-width: 560px; }
.cta-band .section-sub { margin: 0 auto 28px; }
.cta-band .section-label { justify-content: center; }
.cta-band .section-label::before { display: none; }
.cta-actions { display: flex; gap: 14px; align-items: center; justify-content: center; }

/* ── REGISTER FORM ── */
.register-wrapper {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
}
.register-card {
  background: var(--dark);
  border: 1px solid var(--gold-bd);
  border-radius: 16px;
  padding: 40px;
  width: 100%; max-width: 480px;
}
.register-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.register-card p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.type-btn {
  padding: 10px; border-radius: 4px;
  border: 1px solid var(--subtle);
  background: transparent; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  cursor: pointer; text-align: center; transition: all 0.15s;
}
.type-btn.active { background: var(--gold-bg); border-color: var(--gold-bd); color: var(--gold-l); font-weight: 500; }

.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; display: block; letter-spacing: 0.3px; }
.form-input, .form-select {
  width: 100%; padding: 10px 14px;
  background: var(--dark2); border: 1px solid var(--subtle);
  border-radius: 4px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(245,237,214,0.2); }
.form-input:focus, .form-select:focus { border-color: var(--gold-bd); }
.form-select option { background: var(--dark2); }
.form-submit {
  width: 100%; padding: 12px;
  background: var(--gold); color: var(--black);
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; border-radius: 4px; cursor: pointer;
  transition: background 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--gold-l); }
.form-divider {
  text-align: center; font-size: 12px; color: var(--muted);
  margin: 16px 0; position: relative;
}
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 44%; height: 1px; background: var(--subtle);
}
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
.form-login { text-align: center; font-size: 13px; color: var(--muted); }
.form-login a { color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--gold-bd);
  padding: 52px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; font-weight: 300; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--subtle); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(245,237,214,0.2); }
.footer-domain { font-size: 12px; color: var(--gold); opacity: 0.5; letter-spacing: 0.5px; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 60px 48px 40px;
  border-bottom: 1px solid var(--gold-bd);
}
.page-header .section-label { margin-bottom: 10px; }
.page-header h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; }
.page-header p { font-size: 15px; font-weight: 300; color: var(--muted); max-width: 500px; line-height: 1.7; }

/* ── LOADING STATE ── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--muted); font-size: 13px; letter-spacing: 1px;
}
.loading::after { content: ''; display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--gold-bd); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center; padding: 60px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.empty-state strong { display: block; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 8px; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--dark); border: 1px solid var(--gold-bd);
  border-radius: 8px; padding: 14px 20px;
  font-size: 13px; color: var(--gold-l);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s; z-index: 999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--gold-bd);
  padding: 20px 24px;
  flex-direction: column; gap: 16px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--subtle); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-actions .btn-ghost-nav { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; padding: 48px 24px; min-height: auto; gap: 40px; }
  .hero-right { display: none; }
  .hero-title { font-size: clamp(32px, 8vw, 48px); }

  .modules-section { padding: 48px 24px; }
  .modules-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 24px; }
  .page-header { padding: 40px 24px 28px; }

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

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .banner { padding: 10px 24px; }
  .cta-band { padding: 48px 24px; }
  .register-wrapper { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .dir-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-input { width: 100%; }
}
