/* AI-Minded Media — Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --border: #2a2a3a;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.25);
  --accent-bright: #9b7ffe;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-dim: #55556a;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo span { color: var(--accent-bright); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-bright); text-decoration: none; }

/* ── HERO ── */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-bright);
  border: 1px solid rgba(124, 92, 252, 0.4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #7c5cfc, #b48ffe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-price {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 0 30px var(--accent-glow);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 40px var(--accent-glow);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  text-decoration: none;
}

/* ── SECTION ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── AUDIENCE CARDS ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}

.audience-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.audience-card .icon { font-size: 28px; margin-bottom: 12px; }
.audience-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.audience-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── LESSON LIST ── */
.lesson-list { margin-top: 36px; }

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.lesson-item:last-child { border-bottom: none; }

.lesson-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-top: 2px;
}

.lesson-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.lesson-info p { font-size: 13px; color: var(--text-muted); }
.lesson-info .lesson-duration {
  display: inline-block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── HOSTS SECTION ── */
.hosts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 600px) { .hosts-grid { grid-template-columns: 1fr; } }

.host-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.host-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg-card-hover);
  color: var(--text-muted);
}

.host-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.host-card .host-role { font-size: 12px; color: var(--accent-bright); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.host-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── PRICING ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  margin: 36px auto 0;
  text-align: center;
  box-shadow: 0 0 60px var(--accent-glow);
}

.pricing-card .price {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.pricing-card .price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-includes {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-includes li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-includes li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ── COURSE PLAYER PAGE ── */
.player-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.player-lesson-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.player-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.player-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
}

.video-container iframe,
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
}

.video-placeholder .play-icon { font-size: 48px; opacity: 0.3; }
.video-placeholder p { font-size: 14px; }

/* ── LESSON NAV ── */
.lesson-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lesson-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.lesson-pill:hover { border-color: var(--accent); color: var(--accent-bright); text-decoration: none; }
.lesson-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── QUIZ STYLES ── */
.quiz-wrapper {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.quiz-wrapper > h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.quiz-wrapper > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

#quiz {}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.quiz-title { font-size: 14px; font-weight: 700; }
.quiz-score { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.quiz-question {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.quiz-question[data-answered="true"] { border-color: var(--border); }

.question-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.question-num { color: var(--accent-bright); margin-right: 4px; }

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.quiz-option:not([disabled]):hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.option-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
}

.quiz-option.selected-correct { border-color: var(--green); background: var(--green-bg); }
.quiz-option.selected-correct .option-letter { border-color: var(--green); background: var(--green); color: #fff; }

.quiz-option.correct { border-color: var(--green); }
.quiz-option.correct .option-letter { border-color: var(--green); color: var(--green); }

.quiz-option.selected-incorrect { border-color: var(--red); background: var(--red-bg); }
.quiz-option.selected-incorrect .option-letter { border-color: var(--red); background: var(--red); color: #fff; }

.quiz-option[disabled] { cursor: default; opacity: 0.7; }
.quiz-option.correct[disabled] { opacity: 1; }
.quiz-option.selected-correct[disabled],
.quiz-option.selected-incorrect[disabled] { opacity: 1; }

/* Reveal */
.reveal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border-left: 3px solid var(--border);
}

.reveal.slide-in {
  animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.icon-correct { color: var(--green); }
.icon-incorrect { color: var(--red); }

.reveal.slide-in.icon-correct,
.reveal[style*="green"] { border-left-color: var(--green); }

.reveal-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Result card */
.quiz-result { margin-top: 24px; }

.result-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-emoji { font-size: 40px; margin-bottom: 12px; }
.result-score { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.result-message { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

.btn-next {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-next:hover { background: var(--accent-bright); text-decoration: none; }

.upsell-nudge {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.upsell-nudge a { color: var(--accent-bright); }

/* Utilities */
.hidden { display: none !important; }

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .section { padding: 48px 16px; }
  .player-layout { padding: 24px 16px 60px; }
  .lesson-nav { gap: 8px; }
}
