/* Papa Bale's Pulse Motors — Global Styles */
:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --blue: #0077ff;
  --blue-light: #3399ff;
  --amber: #ff8c00;
  --amber-light: #ffaa33;
  --text: #e8e8e8;
  --text-muted: #999;
  --border: #2a2a2a;
  --radius: 8px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--amber-light); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── Nav ── */
nav {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 14px 20px;
}
.nav-logo {
  font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--amber); color: #000 !important;
  padding: 7px 16px; border-radius: 20px; font-weight: 700; font-size: 0.85rem;
}
.nav-cta:hover { background: var(--amber-light); text-decoration: none !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ── Hero ── */
.hero {
  background: radial-gradient(ellipse at 50% 0%, #001833 0%, var(--bg) 70%);
  padding: 90px 20px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--blue-light); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; }
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; font-weight: 700;
  font-size: 0.95rem; transition: all 0.2s; text-decoration: none !important;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); color: #fff; }
.btn-amber { background: var(--amber); color: #000; }
.btn-amber:hover { background: var(--amber-light); color: #000; }
.btn-outline { border: 2px solid var(--blue); color: var(--blue-light); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Section ── */
section { padding: 72px 20px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 48px; }

/* ── Video Embed ── */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ── Cards ── */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); }
.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-thumb-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #001433, #002966);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 20px; }
.card-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); margin-bottom: 8px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--blue-light); }
.card-excerpt { font-size: 0.9rem; color: var(--text-muted); }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #001433 0%, #1a0d00 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 36px; text-align: center; margin: 48px 0;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Perks Grid ── */
.perks { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 48px; }
.perk {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.perk-icon { font-size: 2.5rem; margin-bottom: 16px; }
.perk h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.perk p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Glossary ── */
.glossary { display: grid; gap: 16px; }
.gloss-item {
  background: var(--bg2); border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px;
}
.gloss-term { font-weight: 700; font-size: 1rem; color: var(--blue-light); margin-bottom: 6px; }
.gloss-def { font-size: 0.93rem; color: var(--text-muted); }

/* ── Article ── */
.article-header { padding: 60px 20px 40px; border-bottom: 1px solid var(--border); }
.article-header .eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.article-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.2; max-width: 800px; margin-bottom: 16px; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; }
.article-body { max-width: 780px; margin: 0 auto; padding: 48px 20px; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 40px 0 16px; color: var(--blue-light); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 12px; color: var(--amber-light); }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 28px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }

/* ── Related Videos ── */
.related { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 20px; }

/* ── Footer ── */
footer {
  background: #080808; border-top: 1px solid var(--border);
  padding: 60px 20px 32px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Tags ── */
.tag { display: inline-block; background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; margin: 4px 4px 4px 0; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 16px 20px; max-width: var(--max-width); margin: 0 auto; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-avatar {
  width: 100%; aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #002266, #0d0d0d);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 6rem; border: 3px solid var(--blue);
}

/* ── Page Hero (non-home) ── */
.page-hero {
  background: linear-gradient(180deg, #001022 0%, var(--bg) 100%);
  padding: 60px 20px 48px; border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a0a; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { max-width: 200px; margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Key Takeaways Box ── */
.key-takeaways {
  background: var(--bg2);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.key-takeaways h3 {
  color: var(--amber-light);
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { margin-bottom: 6px; color: var(--text-muted); font-size: 0.95rem; }

/* ── FAQ Accordion ── */
.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-section summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-light);
  background: var(--bg2);
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before { content: '+ '; color: var(--amber); }
.faq-section details[open] summary::before { content: '− '; }
.faq-section details[open] summary { border-bottom: 1px solid var(--border); }
.faq-section .faq-answer { padding: 14px 18px; color: var(--text-muted); line-height: 1.7; }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.data-table th { background: var(--bg3); color: var(--amber-light); padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table tr:hover td { background: var(--bg2); }

/* ── Subscribe Bar (Task 3) ── */
#subscribe-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #0d1a2e, #0a2240);
  border-top: 2px solid var(--blue);
  z-index: 9999;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
}
.sub-bar-text { color: #ddd; font-size: 0.9rem; flex: 1; min-width: 200px; }
.sub-bar-text strong { color: white; }
.sub-bar-btn {
  background: var(--blue);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.sub-bar-btn:hover { background: var(--blue-light); }
.sub-bar-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.sub-bar-close:hover { color: white; }

/* ── Email Capture (Task 5) ── */
.email-capture {
  background: linear-gradient(135deg, #0a1628, #0d2040);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.email-capture h3 { color: var(--amber-light); font-size: 1.3rem; margin-bottom: 12px; }
.email-capture p { color: var(--text-muted); margin-bottom: 20px; }
.email-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.email-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: white;
  font-size: 0.95rem;
  min-width: 260px;
}
.email-note { font-size: 0.78rem; color: #666; margin-top: 10px; margin-bottom: 0; }

/* ── Learning Path Cards (Task 6) ── */
.learning-path-card {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.learning-path-card .lp-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 8px;
}
.learning-path-card .lp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.learning-path-card .lp-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.video-nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.video-nav-links a { color: var(--blue-light); text-decoration: none; font-size: 0.9rem; }
.video-nav-links a:hover { text-decoration: underline; }
