:root {
  --md-primary-fg-color:        #0a0a0f;
  --md-primary-fg-color--light: #151520;
  --md-primary-fg-color--dark:  #050508;
  --md-accent-fg-color:         #ff2d95;
  --md-accent-fg-color--transparent: rgba(255,45,149,0.1);
  --fire-pink:   #ff2d95;
  --fire-purple: #b967ff;
  --fire-cyan:   #00d4ff;
  --fire-dark:   #0f0f13;
  --fire-glass:  rgba(255,255,255,0.03);
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0d1117;
  --md-default-fg-color: #e6edf3;
  --md-code-bg-color:    #161b22;
}

.md-header {
  background: linear-gradient(90deg, #0a0a0f 0%, #151520 100%) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  border-bottom: 1px solid rgba(255,45,149,0.15);
}

.md-tabs { background: #050508 !important; }
.md-tabs__link--active,
.md-tabs__link:hover { color: #ff2d95 !important; }

.md-nav__title {
  background: linear-gradient(90deg, #0a0a0f, #151520) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.md-nav__link--active { color: #ff2d95 !important; font-weight: 600; }
.md-nav__link:hover   { color: #ff2d95 !important; }

.md-nav__item--section > .md-nav__link {
  background: linear-gradient(90deg, #0a0a0f, #151520);
  color: #ff2d95 !important;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  border-left: 3px solid #ff2d95;
}

.md-nav__link {
  border-radius: 6px;
  transition: all 0.2s;
  padding: 0.35rem 0.8rem !important;
}

.md-nav__link:hover {
  background: rgba(255,45,149,0.08);
  padding-left: 1.1rem !important;
}

.hero {
  background: linear-gradient(135deg, #0a0a0f 0%, #151520 60%, #0f0f13 100%);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  margin: 1.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,45,149,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,45,149,0.08) 0%, rgba(185,103,255,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,45,149,0.12);
  border: 1px solid rgba(255,45,149,0.35);
  color: #ff2d95;
  padding: 0.35rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(135deg, #ff2d95, #b967ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  color: #a0b4c8 !important;
  font-style: italic;
  font-size: 1.05rem !important;
  max-width: 560px;
  margin: 0 auto 0.8rem !important;
  position: relative;
  z-index: 1;
}

.hero p {
  color: #7a9ab5;
  font-size: 1rem;
  max-width: 520px;
  margin: 0.5rem auto;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: #7a9ab5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  display: block;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  color: white !important;
  padding: 0.9rem 2.5rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none !important;
  margin-top: 0.5rem;
  transition: all 0.25s;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(255,45,149,0.35);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255,45,149,0.5);
}

.terminal {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.8rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 1px solid #30363d;
}

.terminal-header {
  background: #161b22;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #30363d;
}

.terminal-dot { width: 13px; height: 13px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #27c93f; }

.terminal-title {
  color: #6e7681;
  font-size: 0.78rem;
  margin-left: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 1.4rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.75;
  color: #e6edf3;
}

.terminal-body .prompt { color: #27c93f; font-weight: 700; }
.terminal-body .cmd    { color: #79c0ff; }
.terminal-body .ok     { color: #3fb950; }
.terminal-body .warn   { color: #d29922; }
.terminal-body .info   { color: #58a6ff; }
.terminal-body .path   { color: #ff2d95; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.module-card {
  background: linear-gradient(145deg, #0f0f13, #151520);
  border: 1px solid rgba(255,45,149,0.15);
  border-radius: 12px;
  padding: 1.4rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2d95, #b967ff, #00d4ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.module-card:hover {
  border-color: rgba(255,45,149,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,45,149,0.15);
}

.module-card:hover::before { transform: scaleX(1); }

.module-number {
  font-size: 0.68rem;
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.module-card h3 { color: #e6edf3; margin: 0.3rem 0 0.5rem; font-size: 1rem; font-weight: 700; }
.module-card p  { color: #7a9ab5; font-size: 0.85rem; margin: 0; line-height: 1.5; }

.output-box {
  border: 1px solid rgba(255,45,149,0.2);
  border-left: 4px solid #ff2d95;
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.6rem;
  margin: 1.8rem 0;
  background: rgba(255,45,149,0.04);
}

.output-box-title {
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0a0a0f, #151520);
  border: 1px solid rgba(255,45,149,0.15);
  border-radius: 14px;
  padding: 1.6rem;
  margin: 2.5rem 0;
}

.author-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255,45,149,0.35);
}

.author-info h3 { color: #ffffff; margin: 0 0 0.4rem; font-size: 1.1rem; }
.author-info p  { color: #7a9ab5; margin: 0; font-size: 0.88rem; line-height: 1.5; }
.author-info a  { color: #ff2d95 !important; }

.md-content h1 {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff2d95, #b967ff) 1;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.md-content h2 {
  color: #e6edf3;
  border-left: 4px solid #ff2d95;
  padding-left: 0.8rem;
  margin-top: 2rem;
}

[data-md-color-scheme="slate"] .md-content h2 { color: #e6edf3; }

.highlight { border-radius: 8px !important; border: 1px solid #30363d; }

.md-footer      { background: #0a0a0f !important; }
.md-footer-meta { background: #050508 !important; }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff2d95, #b967ff); border-radius: 3px; }

@media screen and (max-width: 600px) {
  .hero h1    { font-size: 1.9rem; }
  .hero       { padding: 2rem 1.2rem; }
  .hero-stats { gap: 1.2rem; }
  .module-grid   { grid-template-columns: 1fr; }
  .author-card   { flex-direction: column; text-align: center; }
}

/* ── Module cards as links ── */
a.module-card {
  text-decoration: none !important;
  display: block;
  color: inherit !important;
}

a.module-card h3 {
  color: #e6edf3 !important;
}

a.module-card:hover h3 {
  background: linear-gradient(135deg, #ff2d95, #b967ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Fix hero CTA z-index on mobile ── */
.hero-cta {
  position: relative;
  z-index: 10 !important;
  display: inline-block !important;
  pointer-events: all !important;
}

.hero::before,
.hero::after {
  pointer-events: none !important;
  z-index: 0 !important;
}
