:root {
  --navy: #0B1D3A;
  --navy-mid: #132D54;
  --navy-light: #1A3A6B;
  --gold: #D4A843;
  --gold-light: #E8C76A;
  --gold-pale: #F5E6C0;
  --cream: #FAF6EE;
  --cream-dark: #EDE5D4;
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A5A;
  --text-light: #8A8A9A;
  --green-accent: #2D8B5E;
  --green-light: #E8F5EE;
  --red-soft: #C44D4D;
  --red-light: #FEF0F0;
  --border: #E0D8CA;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.06);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.08);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.12);
  --shadow-xl: 0 16px 48px rgba(11,29,58,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── HERO / HEADER ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links .btn-login {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links .btn-login:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-links .btn-apply {
  background: var(--gold);
  border: none;
  color: var(--navy);
  padding: 9px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links .btn-apply:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,168,67,0.3);
}

.hero-content {
  padding: 80px 48px 100px;
  max-width: 780px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 4px;
}

/* ─── ACCESS CONTROL BANNER ─── */
.access-banner {
  background: linear-gradient(90deg, var(--green-light) 0%, #F0FAF4 100%);
  border-bottom: 1px solid #C8E6D5;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-icon {
  width: 32px;
  height: 32px;
  background: var(--green-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.access-banner p {
  font-size: 14px;
  color: #1A5E3A;
  font-weight: 500;
}

.access-banner strong { font-weight: 700; }

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── CATEGORIES ─── */
.categories {
  padding: 0 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
}

.cat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-card:hover::before { opacity: 1; }

.cat-card.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.cat-card.active::before { opacity: 1; }

.cat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.cat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cat-card .count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.cat-card.active .count { color: rgba(255,255,255,0.5); }

/* ─── TOPIC LIST / DISCUSSION AREA ─── */
.discussion-area {
  padding: 0 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.topic-card:hover { box-shadow: var(--shadow-md); }

.topic-header {
  padding: 28px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  transition: background 0.2s;
}

.topic-header:hover { background: #FDFBF7; }

.topic-q-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.topic-question {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}

.topic-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.topic-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topic-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-mid);
  margin-top: 4px;
}

.topic-toggle:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.topic-card.open .topic-toggle {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  transform: rotate(180deg);
}

/* Responses / Comments Area */
.topic-responses {
  display: none;
  border-top: 1px solid var(--border);
  background: #FDFBF7;
}

.topic-card.open .topic-responses { display: block; }

.response-guidelines {
  padding: 20px 32px;
  background: linear-gradient(90deg, rgba(212,168,67,0.06), transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.response-guidelines p {
  font-size: 13px;
  color: var(--text-mid);
  font-style: italic;
}

.response-item {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(224,216,202,0.5);
}

.response-item:last-of-type { border-bottom: none; }

.response-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.author-role {
  font-size: 11px;
  background: var(--cream-dark);
  padding: 2px 10px;
  border-radius: 100px;
  color: var(--text-mid);
  font-weight: 500;
}

.response-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-left: 42px;
}

.response-body strong {
  color: var(--navy);
}

.response-actions {
  display: flex;
  gap: 16px;
  padding-left: 42px;
}

.response-action-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.2s;
}

.response-action-btn:hover { color: var(--navy); }

/* Add Response */
.add-response {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.add-response-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.response-textarea {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  background: var(--cream);
}

.response-textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.response-textarea::placeholder { color: var(--text-light); }

.response-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.constructive-note {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-submit-response {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit-response:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ─── MODERATION CALLOUT ─── */
.moderation-section {
  padding: 0 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.moderation-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.moderation-card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.mod-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.mod-left p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.7;
}

.mod-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mod-rules li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mod-rule-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mod-rule-icon.yes { background: rgba(45,139,94,0.2); color: #5ED99A; }
.mod-rule-icon.no { background: rgba(196,77,77,0.2); color: #E87A7A; }

.mod-rule-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.mod-rule-text strong { color: var(--white); font-weight: 600; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.4);
  padding: 48px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer a { color: var(--gold); text-decoration: none; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11,29,58,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalIn 0.3s ease;
}

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

.modal-header {
  background: var(--navy);
  padding: 32px;
  color: var(--white);
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.modal-body { padding: 32px; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  background: var(--cream);
}

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

.form-group textarea { min-height: 80px; resize: vertical; }

.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  transition: all 0.2s;
}

.btn-cancel:hover { border-color: var(--text-mid); }

.btn-primary {
  padding: 10px 28px;
  border: none;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 16px; }
  .hero-content { padding: 48px 24px 64px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .categories, .discussion-area, .how-it-works, .moderation-section { padding-left: 24px; padding-right: 24px; }
  .moderation-card { grid-template-columns: 1fr; padding: 36px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-login):not(.btn-apply) { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .topic-header { padding: 20px; }
  .response-item, .add-response { padding: 20px; }
  .response-body, .response-actions { padding-left: 0; }
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }
