/* ===== BLACK & GOLD COLOR PALETTE ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --black-muted: #2d2d2d;
  --gray-dark: #404040;
  --gray-medium: #6b6b6b;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --gold-dark: #b8860b;
  --gold-muted: #9a7b2a;
  --bg-light: #f5f5f5;
  --bg-cream: #faf8f5;
  --bg-off-white: #fafafa;
  --text-muted: #6b7280;
}

/* ===== PROMOTIONAL BANNER ===== */
.promo-banner {
  background: linear-gradient(90deg, var(--black), var(--gold-dark));
  color: #fff;
  padding: 12px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.promo-banner.hidden { display: none; }
.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.promo-banner-text {
  font-size: 15px;
  font-weight: 500;
}
.promo-banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.promo-banner-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
@media (max-width: 768px) {
  .promo-banner { padding: 10px 40px 10px 16px; }
  .promo-banner-text { font-size: 13px; }
  .promo-banner-close { right: 12px; font-size: 20px; }
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-off-white);
  color: var(--black);
  overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  height: 100vh;
  width: 100%;
}
.left {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--bg-off-white), var(--bg-cream));
  z-index: 2;
  position: relative;
}
.left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  line-height: 1.2;
  color: var(--black);
}
.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--gold-dark);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.left p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  min-height: 90px;
}
.btn-primary {
  width: fit-content;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--black), var(--gold-dark));
  color: white;
  box-shadow: 0 10px 30px rgba(10,10,10,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(184,134,11,0.45);
}

.right {
  position: relative;
  background: var(--bg-off-white);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

canvas { display: block; width: 100%; height: 100%; outline: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
.blob.one { width: 400px; height: 400px; background: var(--gold); top: -10%; left: -10%; }
.blob.two { width: 400px; height: 400px; background: var(--gold-muted); bottom: -10%; right: -10%; }

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  transition: color 0.3s;
  cursor: pointer;
}
.scroll-down:hover { color: var(--gold); }
.scroll-down svg {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 100px 80px;
  background: #ffffff;
  position: relative;
  z-index: 10;
}
.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.features-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.features-header p {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 360px;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--gold);
}
.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold-dark);
  font-size: 28px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}
.feature-card p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 15px;
}

/* ===== QUIZ SECTION ===== */
.quiz-section {
  padding: 100px 80px;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
  position: relative;
  z-index: 10;
}
.quiz-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}
.quiz-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.quiz-header p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.quiz-start-btn {
  font-size: 18px;
  padding: 18px 50px;
}

/* Quiz question UI */
.quiz-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.quiz-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.3s;
}
.quiz-progress-dot.active { background: var(--gold-dark); }
.quiz-progress-dot.answered { background: var(--gold); }

.quiz-question {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  text-align: left;
}
.quiz-question h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold-dark);
  margin-bottom: 30px;
  text-align: center;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-option {
  display: block;
  width: 100%;
  padding: 18px 24px;
  min-height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  color: #374151;
  transition: all 0.2s ease;
  background: #fff;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.quiz-option:hover {
  border-color: var(--gold);
  background: var(--bg-off-white);
}
.quiz-option:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
.quiz-option.selected {
  border-color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.15);
  font-weight: 600;
}
.quiz-option:active {
  transform: scale(0.98);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.quiz-nav button {
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--gold-dark);
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.quiz-nav button:hover {
  background: var(--gold-dark);
  color: #fff;
}
.quiz-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.quiz-nav .btn-submit {
  background: linear-gradient(135deg, var(--black), var(--gold-dark));
  color: white;
  border: none;
}

/* Quiz result */
.quiz-result {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  text-align: center;
}
.quiz-result h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.quiz-result .score-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--black), var(--gold-dark));
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
.quiz-result p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 30px auto;
}
.quiz-result .btn-retry {
  padding: 14px 36px;
  border-radius: 999px;
  border: 2px solid var(--gold-dark);
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.quiz-result .btn-retry:hover {
  background: var(--gold-dark);
  color: #fff;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
  padding: 100px 80px;
  background: #ffffff;
  position: relative;
  z-index: 10;
}
.articles-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.articles-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.articles-header p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.article-card {
  display: block;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), var(--bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 28px 24px;
}
.article-card-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-card-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
}
.article-tag {
  padding: 4px 10px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-dark);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Article detail overlay */
.article-detail-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.article-detail-overlay.active { display: flex; }
.article-detail {
  background: #fff;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 50px 40px;
  position: relative;
}
.article-detail-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.article-detail-close:hover { background: #e5e7eb; }
.article-detail h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.article-detail .article-detail-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
}
.article-detail .article-detail-body {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
}
.article-detail .article-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== ARTICLE PAGE (dedicated full article) ===== */
.article-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf9f7;
}
.article-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.article-header .back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.article-header .back-link:hover {
  opacity: 0.8;
}
.article-full {
  flex: 1;
  padding: 48px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.article-full-inner {
  background: #fff;
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.article-full-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-full-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}
.article-full-meta span + span::before {
  content: " • ";
}
.article-full-body {
  font-size: 17px;
  color: #374151;
  line-height: 1.85;
}
.article-full-body p {
  margin-bottom: 1.2em;
}
.article-full-body strong {
  color: var(--black);
}
.article-full-body h2, .article-full-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark);
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.article-full-body ul, .article-full-body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.article-footer {
  padding: 24px 40px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 80px;
  background: linear-gradient(135deg, var(--black), var(--gold-dark));
  text-align: center;
  position: relative;
  z-index: 10;
}
.cta-content {
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #ffffff;
  margin-bottom: 20px;
}
.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}
.btn-cta {
  background: #ffffff !important;
  color: var(--gold-dark) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-cta:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
footer {
  height: 80px;
  background: var(--bg-cream);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  color: var(--text-muted);
  z-index: 20;
}
footer span { cursor: pointer; transition: color 0.2s; }
footer span:hover { color: var(--gold-dark); }

.lang-toggle {
  display: flex;
  gap: 8px;
  background: rgba(10, 10, 10, 0.08);
  padding: 4px;
  border-radius: 20px;
  cursor: pointer;
}
.lang-opt {
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-opt.active {
  background: #ffffff;
  color: var(--gold-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== MOBILE LAYOUT ===== */
@media (max-width: 900px) {
  .hero-section {
    display: block;
  }
  .right {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  }
  .left {
    height: 100%;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 40px;
    padding-top: 100px;
    justify-content: flex-start;
    pointer-events: none;
  }
  .left > * { pointer-events: auto; }
  .left h1 { font-size: 36px; }
  .left p { font-size: 16px; min-height: 120px; }

  .scroll-down {
    bottom: 50px;
    z-index: 20;
    pointer-events: auto;
  }

  .features-section { padding: 60px 24px; }
  .feature-card { max-width: 100%; }
  .features-header h2 { font-size: 32px; }

  .quiz-section { padding: 60px 24px; }
  .quiz-header h2 { font-size: 32px; }
  .quiz-question { padding: 30px 24px; }
  .quiz-options { gap: 12px; }
  .quiz-option { padding: 16px 20px; min-height: 52px; }
  .quiz-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .quiz-nav button { min-width: 120px; }

  .articles-section { padding: 60px 24px; }
  .articles-header h2 { font-size: 32px; }
  .articles-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 60px 24px; }
  .cta-content h2 { font-size: 32px; }

  .article-detail-overlay { padding: 20px; }
  .article-detail { padding: 30px 24px; }

  footer {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .left { padding: 24px; padding-top: 80px; }
  .left h1 { font-size: 28px; }
  .left p { font-size: 15px; min-height: 100px; }
  .btn-primary { padding: 14px 32px; font-size: 15px; }

  .features-section { padding: 48px 16px; }
  .features-header h2 { font-size: 26px; }
  .features-header p { font-size: 16px; }
  .feature-card { padding: 28px 20px; }

  .quiz-section { padding: 48px 16px; }
  .quiz-header h2 { font-size: 26px; }
  .quiz-header p { font-size: 16px; }
  .quiz-question { padding: 24px 16px; }
  .quiz-question h3 { font-size: 18px; margin-bottom: 20px; }
  .quiz-option { padding: 14px 16px; font-size: 15px; min-height: 48px; }
  .quiz-progress-dot { width: 10px; height: 10px; }
  .quiz-nav button { padding: 12px 24px; font-size: 14px; min-height: 44px; }
  .quiz-start-btn { padding: 14px 36px; font-size: 16px; }
  .quiz-result { padding: 30px 20px; }
  .quiz-result h3 { font-size: 22px; }
  .score-badge { font-size: 16px; padding: 6px 20px; }

  .articles-section { padding: 48px 16px; }
  .articles-header h2 { font-size: 26px; }
  .article-card-body { padding: 20px 16px; }
  .article-card-body h3 { font-size: 17px; }

  .cta-section { padding: 48px 16px; }
  .cta-content h2 { font-size: 26px; }
  .cta-content p { font-size: 16px; }

  .article-detail-overlay { padding: 12px; align-items: flex-start; }
  .article-detail {
    padding: 24px 16px;
    max-height: 85vh;
    margin-top: 20px;
  }
  .article-detail h2 { font-size: 22px; }
}
