/* ============================================
   MindBot Academy — Shared Design System
   ============================================ */

:root {
  --navy: #0D1B2A;
  --navy-2: #0A1522;
  --navy-3: #12263A;
  --navy-4: #1A2F47;
  --teal: #00B4D8;
  --teal-soft: #4CC9E2;
  --teal-dim: rgba(0,180,216,0.12);
  --gold: #F4A621;
  --gold-soft: #F7C163;
  --gold-dim: rgba(244,166,33,0.14);
  --slate: #4A5568;
  --slate-2: #7A8699;
  --slate-3: #9FACBE;
  --off: #F7F9FC;
  --white: #FFFFFF;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --border-3: rgba(255,255,255,0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --max-narrow: 880px;
  --shadow: 0 10px 40px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--off);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; letter-spacing: 0.02em; }

/* ===== NAV ===== */
nav.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav.topbar .inner {
  max-width: var(--max); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: var(--white);
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  color: var(--navy); font-weight: 900; font-size: 17px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 14.5px; color: var(--slate-2); }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; background: var(--teal);
  margin-top: 4px; border-radius: 2px;
}
.nav-cta {
  background: var(--teal); color: var(--navy) !important;
  padding: 9px 16px; border-radius: 8px;
  font-weight: 700 !important; font-size: 14px !important;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--teal-soft); transform: translateY(-1px); color: var(--navy) !important; }
.nav-cta.gold { background: var(--gold); }
.nav-cta.gold:hover { background: var(--gold-soft); }
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta):not(.home-link) { display: none; }
}
@media (max-width: 480px) {
  .nav-links a.home-link { display: none; }
  .brand span.tag-line { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  cursor: pointer; border: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-soft); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,180,216,0.3); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,166,33,0.3); color: var(--navy); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--border-3); color: var(--white); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero.compact { padding: 80px 0 60px; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(0,180,216,0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(244,166,33,0.12), transparent 55%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
  z-index: 0;
}
.hero .container, .hero .container-narrow { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.28);
  color: var(--teal);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
.eyebrow.gold { background: rgba(244,166,33,0.14); border-color: rgba(244,166,33,0.3); color: var(--gold); }
.eyebrow.gold .dot { background: var(--gold); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

h1.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 22px 0 24px;
  max-width: 880px;
}
h1.hero-headline.narrow { font-size: clamp(32px, 4.5vw, 54px); }
h1.hero-headline .accent {
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--slate-2);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ===== SIGNUP FORMS ===== */
.signup-form {
  display: flex; gap: 10px; max-width: 500px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  padding: 6px; border-radius: 12px;
  backdrop-filter: blur(8px);
}
.signup-form.centered { margin: 0 auto; }
.signup-form input[type="email"] {
  flex: 1; border: none; outline: none;
  background: transparent; color: var(--white);
  padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  min-width: 0;
}
.signup-form input::placeholder { color: var(--slate-2); }
.signup-form button {
  background: var(--teal); color: var(--navy);
  border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--teal-soft); transform: translateY(-1px); }
.form-msg { color: var(--gold); margin-top: 12px; font-size: 14.5px; display: none; }
.form-msg.show { display: block; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  margin-top: 28px; color: var(--slate-2); font-size: 14px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.tick {
  width: 16px; height: 16px; flex: 0 0 16px;
  border-radius: 50%;
  background: rgba(0,180,216,0.15);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
}

/* ===== SECTIONS ===== */
section { padding: 90px 0; position: relative; }
section.compact { padding: 60px 0; }
.section-head { margin-bottom: 48px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.centered .section-title, .section-head.centered .section-sub { margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 780px;
  color: var(--white);
}
.section-sub {
  margin-top: 16px;
  color: var(--slate-2);
  font-size: 17px;
  max-width: 680px;
}

.bg-alt { background: var(--navy-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ===== PULSE ===== */
.pulse-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  background: rgba(244,166,33,0.14); color: var(--gold);
  border: 1px solid rgba(244,166,33,0.3);
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.live-badge .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
.updated-stamp { color: var(--slate-2); font-size: 13.5px; }

.pulse-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.story {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.story::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent 70%);
  opacity: 0.5;
}
.story:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.story .cat {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px;
  background: rgba(0,180,216,0.12); color: var(--teal);
}
.story.feat .cat { background: rgba(244,166,33,0.14); color: var(--gold); }
.story h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.3; color: var(--white);
}
.story p { color: var(--slate-2); font-size: 14.5px; line-height: 1.55; }
.story .why {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  font-size: 13.5px; color: var(--off);
}
.story .why strong { color: var(--teal); font-weight: 700; }

.pulse-cta {
  margin-top: 42px;
  background: linear-gradient(135deg, rgba(0,180,216,0.10), rgba(244,166,33,0.08));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.pulse-cta h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; color: var(--white); }
.pulse-cta p { color: var(--slate-2); font-size: 14.5px; }

/* Archive dividers */
.archive-divider {
  display: flex; align-items: center; gap: 18px;
  margin: 56px 0 28px;
}
.archive-divider .line { flex: 1; height: 1px; background: var(--border-2); }
.archive-divider .label {
  color: var(--slate-3); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ===== COURSES ===== */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.course-grid.detail { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.course {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.course:hover { transform: translateY(-3px); border-color: var(--teal); }
.course .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,180,216,0.18), rgba(244,166,33,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.course .num {
  position: absolute; top: 24px; right: 26px;
  color: var(--slate); font-size: 13px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.course h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--white); }
.course p { color: var(--slate-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.course .status {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(244,166,33,0.12); color: var(--gold);
  align-self: flex-start;
}
.course.live .status { background: rgba(0,180,216,0.14); color: var(--teal); }

.course-detail .who,
.course-detail .outcome,
.course-detail .outline {
  margin-top: 16px;
}
.course-detail .mini-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.course-detail ul { list-style: none; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.course-detail ul li {
  font-size: 14px; color: var(--slate-3); padding-left: 18px; position: relative;
}
.course-detail ul li::before {
  content: '•'; position: absolute; left: 0; color: var(--teal); font-weight: 900;
}
.course-detail .notify-form {
  margin-top: 22px;
  display: flex; gap: 8px; align-items: stretch;
}
.course-detail .notify-form input {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.03);
  color: var(--white); font-size: 14px; font-family: inherit;
  min-width: 0; outline: none;
}
.course-detail .notify-form input:focus { border-color: var(--teal); }
.course-detail .notify-form input::placeholder { color: var(--slate); }
.course-detail .notify-form button {
  background: var(--teal); color: var(--navy); border: none; cursor: pointer;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; font-family: inherit;
  white-space: nowrap;
}
.course-detail .notify-form button:hover { background: var(--teal-soft); }
.course-detail .notify-msg { color: var(--gold); margin-top: 10px; font-size: 13px; display: none; }
.course-detail .notify-msg.show { display: block; }

/* ===== ABOUT ===== */
.about-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }
.about-wrap p.lead { font-size: 19px; color: var(--off); margin-bottom: 20px; line-height: 1.55; }
.about-wrap p { color: var(--slate-2); font-size: 15.5px; margin-bottom: 16px; }
.promise-card {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.promise-card h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.promise-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.promise-card li {
  display: flex; gap: 12px; font-size: 15px; color: var(--off);
}
.promise-card li::before {
  content: '→'; color: var(--gold); font-weight: 700; flex: 0 0 auto;
}

/* About page specific */
.bio-portrait {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(0,180,216,0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(244,166,33,0.22), transparent 60%),
    var(--navy-3);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-2); font-size: 13px; font-weight: 500;
  max-width: 380px;
  margin: 0 auto;
}
.bio-portrait .initial {
  font-size: 140px; font-weight: 900; color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.story-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.story-block .block {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.story-block .block h4 {
  font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.story-block .block p { color: var(--slate-2); font-size: 14.5px; }

/* Prose */
.prose { max-width: 720px; }
.prose p { color: var(--slate-2); font-size: 16px; margin-bottom: 18px; line-height: 1.7; }
.prose p.lead { color: var(--off); font-size: 19px; margin-bottom: 22px; }
.prose h3 {
  color: var(--white); font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; margin: 36px 0 14px;
}
.prose strong { color: var(--white); font-weight: 600; }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,180,216,0.15), transparent 60%);
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 760px; margin: 0 auto 18px;
  color: var(--white);
}
.final-cta p { color: var(--slate-2); font-size: 17px; max-width: 540px; margin: 0 auto 32px; }
.final-cta .signup-form { margin: 0 auto; }

/* ===== FOOTER ===== */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 40px;
  background: var(--navy-2);
}
footer.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between;
}
footer.site-footer .left { display: flex; align-items: center; gap: 12px; color: var(--slate-2); font-size: 14px; }
footer.site-footer .right { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
footer.site-footer a { color: var(--slate-2); }
footer.site-footer a:hover { color: var(--teal); }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,12,22,0.8);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  max-width: 480px; width: 100%;
  padding: 36px;
  position: relative;
  animation: slide-up 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal .close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent; color: var(--slate-2);
  cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal .close:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.modal .gift-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 26px;
  margin-bottom: 18px;
}
.modal h3 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--white); line-height: 1.2; margin-bottom: 10px;
}
.modal p {
  color: var(--slate-2); font-size: 15px; margin-bottom: 22px;
}
.modal .bullets { list-style: none; margin-bottom: 22px; }
.modal .bullets li {
  display: flex; gap: 10px; padding: 6px 0;
  color: var(--off); font-size: 14px;
}
.modal .bullets li::before {
  content: '✓'; color: var(--teal); font-weight: 900;
}
.modal .signup-form { max-width: none; }
.modal .success {
  display: none; text-align: center;
  padding: 12px 0;
}
.modal .success.show { display: block; }
.modal .success .check {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,180,216,0.15); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.modal .success h4 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal .success p { color: var(--slate-2); font-size: 14.5px; }
.modal .success a.dl {
  display: inline-block; margin-top: 14px;
  padding: 10px 20px; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 14.5px; border-radius: 8px;
}

/* ===== UTIL ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.show { opacity: 1; transform: none; }

/* Hide on mobile */
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .final-cta { padding: 70px 0; }
  .pulse-cta { padding: 24px; }
  .modal { padding: 26px; }
}
