/* ============================================================
   mutant-ai. — Custom Theme
   DeepEval / Mintlify inspired aesthetic
   ============================================================ */

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

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* Brand colors */
  --mutant-purple: #8b5cf6;
  --mutant-purple-light: #a78bfa;
  --mutant-purple-dark: #7c3aed;
  --mutant-blue: #3b82f6;
  --mutant-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);

  /* Surfaces */
  --surface-card: rgba(255, 255, 255, 0.6);
  --surface-card-hover: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
}

[data-md-color-scheme="slate"] {
  --surface-card: rgba(255, 255, 255, 0.04);
  --surface-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);

  --md-default-bg-color: #0d1117;
  --md-default-bg-color--light: #161b22;
  --md-default-bg-color--lighter: #21262d;
  --md-default-fg-color: #e6edf3;
  --md-default-fg-color--light: #8b949e;
  --md-primary-fg-color: #0d1117;
  --md-primary-bg-color: #e6edf3;
  --md-accent-fg-color: var(--mutant-purple-light);
}

/* ── Hide empty logo & Add Title Dot ──────────────────────────── */
.md-header__button.md-logo,
.md-nav__button.md-logo {
  display: none !important;
}

.md-header__title .md-header__link::after,
.md-nav__title[for="__drawer"]::after {
  content: ".";
  color: var(--mutant-purple);
  font-weight: 900;
  font-size: 1.1em;
  margin-left: 1px;
}

/* ── Header ─────────────────────────────────────────────────── */
.md-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

[data-md-color-scheme="default"] .md-header {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
}

/* ── Navigation Tabs (DeepEval style) ───────────────────────── */
.md-tabs {
  border-bottom: 1px solid var(--border-subtle);
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: rgba(13, 17, 23, 0.6);
}

.md-tabs__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.md-sidebar {
  border-right: 1px solid var(--border-subtle);
}

.md-nav__link {
  font-size: 0.825rem;
  font-weight: 450;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.md-nav__link:hover {
  background-color: var(--surface-card);
}

.md-nav__item--active > .md-nav__link {
  color: var(--mutant-purple);
  font-weight: 600;
}

/* ── Typography ─────────────────────────────────────────────── */
.md-typeset {
  font-size: 0.85rem;
  line-height: 1.7;
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.md-typeset h2 {
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.md-typeset h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Hero Section (DeepEval Landing Style) ──────────────────── */
.hero-section {
  text-align: center;
  padding: 5rem 1rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50px; left: -50px; right: -50px; bottom: -50px;
  background-image: radial-gradient(var(--md-default-fg-color--light) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.1;
  z-index: -2;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}

[data-md-color-scheme="slate"] .hero-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 60%);
  z-index: -1;
  pointer-events: none;
}

/* ── Hero Badge ─────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-badge:hover {
  background: var(--surface-card-hover);
  border-color: var(--mutant-purple);
  transform: translateY(-1px);
}

.hero-badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--mutant-purple-light);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(167, 139, 250, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.hero-title {
  font-weight: 800;
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

[data-md-color-scheme="slate"] .hero-title {
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.05);
}

[data-md-color-scheme="default"] .hero-title {
  color: #111;
}

.hero-dot {
  color: var(--mutant-purple);
}

[data-md-color-scheme="slate"] .hero-dot {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  max-width: 580px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-btn--primary {
  background: var(--mutant-gradient);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.hero-btn--primary:hover {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.hero-btn--secondary {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--md-default-fg-color) !important;
}

.hero-btn--secondary:hover {
  background: var(--surface-card-hover);
  border-color: var(--mutant-purple-light);
  transform: translateY(-1px);
}

/* ── Feature Cards (DeepEval / Mintlify Grid) ───────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 28px;
  height: 28px;
  color: var(--mutant-purple);
  margin-bottom: 1rem;
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--md-default-fg-color);
}

.feature-card__title a {
  color: var(--md-default-fg-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.feature-card__title a:hover {
  color: var(--mutant-purple-light);
}

.feature-card__desc {
  font-size: 0.825rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.55;
  margin: 0;
}

/* ── Section Dividers & Headers ─────────────────────────────── */
.section-header {
  text-align: left;
  margin: 5rem 0 2rem;
  max-width: 100%;
}

.section-header h2 {
  border: none !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--mutant-purple);
}

.section-header p {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--md-default-fg-color);
  line-height: 1.4;
  max-width: 700px;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Code Blocks (Premium) ──────────────────────────────────── */
.md-typeset pre {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.md-typeset pre > code {
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.md-typeset .highlight {
  border-radius: var(--radius-md);
}

/* ── Admonitions (Rounded, modern) ──────────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--radius-md);
  border-width: 1px;
  box-shadow: none;
  font-size: 0.835rem;
}

.md-typeset .admonition-title,
.md-typeset summary {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: 600;
}

/* ── MkDocs Material Grid Cards override ────────────────────── */
.md-typeset .grid.cards > ul > li {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--surface-card);
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--mutant-purple-light);
}

/* ── Tables ─────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.825rem;
}

.md-typeset table:not([class]) th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.05em;
}

/* ── Footer ─────────────────────────────────────────────────── */
.md-footer {
  border-top: 1px solid var(--border-subtle);
}

/* ── Scrollbar (Webkit) ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }
}

/* ── Install Badge ──────────────────────────────────────────── */
.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
  font-family: var(--md-code-font);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  color: var(--md-default-fg-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-cmd:hover {
  border-color: var(--mutant-purple-light);
  background: var(--surface-card-hover);
  transform: translateY(-1px);
}

.install-cmd__prefix {
  color: var(--mutant-purple);
  font-weight: 600;
  user-select: none;
}

.install-cmd__icon {
  margin-left: 0.5rem;
  color: var(--md-default-fg-color--light);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.install-cmd:hover .install-cmd__icon {
  color: var(--mutant-purple);
}

.install-cmd.copied .icon-copy {
  display: none;
}

.install-cmd.copied .icon-check {
  display: block;
  color: #10b981; /* emerald-500 */
}

/* ── Instant loading progress bar ───────────────────────────── */
.md-progress {
  background-color: var(--mutant-purple) !important;
}

/* ── Images inside cards ────────────────────────────────────── */
.feature-card img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
  width: 100%;
  transition: transform 0.25s ease;
}

.feature-card img:hover {
  transform: scale(1.02);
}

/* ── Custom Fat Footer ──────────────────────────────────────── */
.mutant-fat-footer {
  font-size: 0.85rem;
  margin-top: 4rem;
}

.mutant-footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
}

.brand-col {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.footer-links-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  color: var(--md-footer-fg-color, #fff);
}

.footer-col h4 {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  color: var(--md-footer-fg-color, #fff);
}

.footer-col p {
  color: var(--md-footer-fg-color--light, #eee);
  line-height: 1.5;
  font-size: 0.8rem;
  max-width: 280px;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.25rem;
}

.footer-col ul li a {
  color: var(--md-footer-fg-color--light, #eee);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--mutant-purple-light);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  color: var(--md-footer-fg-color--light, #eee);
  transition: all 0.2s ease;
  display: inline-flex;
}

.footer-socials a:hover {
  color: var(--mutant-purple-light);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .mutant-footer-grid {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-links-wrapper {
    gap: 2.5rem;
    flex-direction: column;
  }
}
@media screen and (max-width: 480px) {
  .mutant-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Custom Light Theme Background (Warm Beige) ────────────── */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #faf8f5;
  --surface-card: #ffffff;
}

/* ── Section Dividers & Code Blocks ─────────────────────────── */
.md-typeset hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
  margin: 4rem 0;
}

/* Global MacOS Terminal Window Styling for ALL Code Blocks */
.md-typeset div.highlight:not(:has(.mermaid)),
.md-typeset .highlight:not(:has(.mermaid)) {
  position: relative;
  padding-top: 2.2rem !important;
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* MacOS Window Top Header Bar */
.md-typeset div.highlight:not(:has(.mermaid))::before,
.md-typeset .highlight:not(:has(.mermaid))::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: var(--surface-card, var(--md-code-bg-color));
  border-bottom: 1px solid var(--border-subtle);
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  z-index: 1;
}

/* MacOS Window Control Dots: Red, Yellow, Green */
.md-typeset div.highlight:not(:has(.mermaid))::after,
.md-typeset .highlight:not(:has(.mermaid))::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
  z-index: 2;
}

/* Exclude landing-code-card and mermaid highlights to avoid duplication / unwanted window decorations */
.landing-code-card .highlight,
.md-typeset div.highlight:has(.mermaid),
.md-typeset .highlight:has(.mermaid) {
  padding-top: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  background: transparent !important;
}
.landing-code-card .highlight::before,
.landing-code-card .highlight::after,
.md-typeset div.highlight:has(.mermaid)::before,
.md-typeset .highlight:has(.mermaid)::before,
.md-typeset div.highlight:has(.mermaid)::after,
.md-typeset .highlight:has(.mermaid)::after {
  display: none !important;
}

/* ── Scoped Landing Root System ────────────────────────────── */
.landing-root {
  width: 100%;
  color: var(--md-default-fg-color);
  font-family: var(--md-text-font-family);
  background-color: var(--md-default-bg-color);
  overflow-x: hidden;
}

.landing-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 2.25rem 0 1.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(var(--md-default-fg-color--light) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(157, 78, 221, 0.25) 0%, transparent 70%);
  background-size: 24px 24px, 100% 100%;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: rgba(157, 78, 221, 0.08);
  border: 1px solid rgba(157, 78, 221, 0.25);
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--mutant-purple) !important;
  text-decoration: none !important;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}
.landing-badge:hover {
  background: rgba(157, 78, 221, 0.15);
  border-color: var(--mutant-purple);
}
.landing-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--mutant-purple);
  box-shadow: 0 0 6px var(--mutant-purple);
}

.landing-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--md-default-fg-color);
}

.landing-subtitle {
  font-size: 0.925rem;
  color: var(--md-default-fg-color--light);
  max-width: 640px;
  margin: 0 auto 0.85rem;
  line-height: 1.45;
  font-weight: 400;
}

.landing-hero__engines {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
@media screen and (max-width: 768px) {
  .landing-hero__engines {
    flex-direction: column;
  }
}

.landing-hero__engine {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
.landing-hero__engine:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--border-subtle-hover);
}
[data-md-color-scheme="slate"] .landing-hero__engine:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUpAugment {
  0% { opacity: 0; transform: translateY(30px) rotate(-1.5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
}
@keyframes slideInUpRedteam {
  0% { opacity: 0; transform: translateY(30px) rotate(1.5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(1.5deg); }
}

.landing-hero__engine--augment {
  border-left: 4px solid var(--mutant-purple);
  border-bottom: 1px solid rgba(157, 78, 221, 0.15);
  border-right: 1px solid rgba(157, 78, 221, 0.15);
  border-top: 1px solid rgba(157, 78, 221, 0.15);
  background: rgba(157, 78, 221, 0.05);
  transform: rotate(-1.5deg);
  opacity: 0;
  animation: slideInUpAugment 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}
.landing-hero__engine--redteam {
  border-left: 4px solid #ff4d4d;
  border-bottom: 1px solid rgba(255, 77, 77, 0.15);
  border-right: 1px solid rgba(255, 77, 77, 0.15);
  border-top: 1px solid rgba(255, 77, 77, 0.15);
  background: rgba(255, 77, 77, 0.05);
  transform: rotate(1.5deg);
  opacity: 0;
  animation: slideInUpRedteam 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.engine-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.engine-icon {
  opacity: 0.9;
}
.landing-hero__engine--augment .engine-icon { color: var(--mutant-purple); }
.landing-hero__engine--redteam .engine-icon { color: #ff4d4d; }

.engine-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.engine-tag--augment {
  color: var(--mutant-purple);
}
.engine-tag--redteam {
  color: #ff4d4d;
}

.landing-hero__engine .engine-desc {
  font-size: 0.825rem;
  color: var(--md-default-fg-color);
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  flex-grow: 1;
}

.engine-code {
  background: var(--surface-card);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  font-family: var(--md-text-font-family-code), monospace;
  font-size: 0.725rem;
  color: var(--md-code-fg-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.2rem 0;
  border: 1px solid var(--border-subtle);
}
[data-md-color-scheme="slate"] .engine-code {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

.engine-link {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.2rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.landing-hero__engine--augment .engine-link { color: var(--mutant-purple); }
.landing-hero__engine--redteam .engine-link { color: #ff4d4d; }
.landing-hero__engine:hover .engine-link { opacity: 1; }

.landing-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.landing-btn--primary {
  background-color: var(--mutant-purple);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.25);
}
.landing-btn--primary:hover {
  background-color: #8b31d0;
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
}

.landing-btn--secondary {
  background: var(--surface-card);
  color: var(--md-default-fg-color) !important;
  border: 1px solid var(--border-subtle);
}
.landing-btn--secondary:hover {
  border-color: var(--mutant-purple);
  color: var(--mutant-purple) !important;
}

.landing-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  font-family: var(--md-code-font-family);
  font-size: 0.8rem;
  color: var(--md-default-fg-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.landing-cmd:hover {
  border-color: var(--mutant-purple);
}
.landing-cmd__prompt {
  color: var(--mutant-purple);
  font-weight: 700;
}
.landing-cmd code {
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}
.landing-cmd__copy {
  color: var(--md-default-fg-color--light);
  display: flex;
}
.landing-cmd.copied .landing-cmd__copy {
  color: #27c93f;
}

/* Node Graph Workflow */
.landing-node-graph {
  display: grid;
  grid-template-columns: 1fr 60px 1.5fr 60px 1fr;
  align-items: center;
  max-width: 900px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 1rem;
}

.node-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.node {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.node:hover {
  transform: translateY(-2px);
  border-color: var(--mutant-purple-light);
}

.node-icon {
  font-size: 1.1rem;
}

.node--mutant {
  background: rgba(157, 78, 221, 0.05);
  border: 1px solid rgba(157, 78, 221, 0.3);
  padding: 1rem 1.25rem;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
}
.node-glow {
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 9px;
  border: 1px solid rgba(157, 78, 221, 0.8);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
  z-index: -1;
  animation: pulseGlow 2s infinite alternate;
  pointer-events: none;
}
@keyframes pulseGlow {
  from { opacity: 0.4; box-shadow: 0 0 8px rgba(157, 78, 221, 0.3); }
  to { opacity: 1; box-shadow: 0 0 16px rgba(157, 78, 221, 0.6); }
}
.node--mutant .node-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.node--mutant .node-title {
  color: var(--mutant-purple);
  font-weight: 800;
  font-size: 0.95rem;
}
.node--mutant .node-sub {
  font-size: 0.65rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.node-path {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}

.node-path svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-line {
  stroke: var(--mutant-purple);
  stroke-width: 2px;
  fill: none;
  stroke-dasharray: 6, 6;
  opacity: 0.4;
  animation: flowAnim 1s linear infinite;
}

@keyframes flowAnim {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}

@media screen and (max-width: 768px) {
  .landing-node-graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
  }
  .node-group {
    width: 100%;
    align-items: center;
  }
  .node {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
  .node-path {
    width: 2px;
    height: 40px;
    background-image: linear-gradient(to bottom, var(--mutant-purple) 50%, transparent 50%);
    background-size: 100% 10px;
    opacity: 0.4;
    margin: 0.5rem 0;
  }
  .node-path svg {
    display: none;
  }
}

/* Landing Section General */
.landing-section {
  padding: 3rem 0;
}
.landing-section--alt {
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}
[data-md-color-scheme="slate"] .landing-section--alt {
  background-color: rgba(255, 255, 255, 0.015);
}

.landing-header {
  margin-bottom: 2rem;
}
.landing-header--center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.landing-eyebrow {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mutant-purple);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.landing-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  border: none !important;
  color: var(--md-default-fg-color);
}

/* Code Card */
.landing-code-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.landing-code-card__bar {
  padding: 0.6rem 0.85rem;
  background: var(--md-code-bg-color);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-code-card__dots {
  display: flex;
  gap: 5px;
}
.landing-code-card__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.landing-code-card__dots span:nth-child(1) { background: #ff5f56; }
.landing-code-card__dots span:nth-child(2) { background: #ffbd2e; }
.landing-code-card__dots span:nth-child(3) { background: #27c93f; }

.landing-code-card__title {
  font-size: 0.75rem;
  font-family: var(--md-code-font-family);
  color: var(--md-default-fg-color--light);
}

.landing-code-card.md-typeset .tabbed-set,
.landing-code-card .tabbed-set,
.landing-code-card .tabbed-content,
.landing-code-card .tabbed-block,
.landing-code-card p,
.landing-code-card pre,
.landing-code-card div.highlight,
.landing-code-card .highlight {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.landing-code-card div.highlight + div.highlight,
.landing-code-card .highlight + .highlight {
  border-top: 1px solid var(--border-subtle) !important;
}

/* Showcase Frames */
.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media screen and (max-width: 868px) {
  .landing-showcase-grid { grid-template-columns: 1fr; }
}

.landing-frame {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.landing-frame__bar {
  padding: 0.6rem 0.85rem;
  background: var(--md-code-bg-color);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-frame__dots {
  display: flex;
  gap: 5px;
}
.landing-frame__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.landing-frame__dots span:nth-child(1) { background: #ff5f56; }
.landing-frame__dots span:nth-child(2) { background: #ffbd2e; }
.landing-frame__dots span:nth-child(3) { background: #27c93f; }

.landing-frame__title {
  font-size: 0.75rem;
  font-family: var(--md-code-font-family);
  color: var(--md-default-fg-color--light);
}

.landing-frame__img img {
  width: 100%;
  display: block;
}

/* CTA Footer */
.landing-cta {
  padding: 3rem 0 4rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.landing-cta__inner {
  max-width: 650px;
  margin: 0 auto;
}
.landing-cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  border: none !important;
}
.landing-cta__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ── Clean Mermaid Overflow & Clipping Fix ─────────────────────── */
.md-typeset .highlight:has(.mermaid),
.md-typeset div.highlight:has(.mermaid),
.md-typeset pre.mermaid,
.md-typeset .mermaid,
.mermaid {
  position: static !important;
  padding: 1.5rem 1rem 3rem 1rem !important;
  margin: 1.5rem 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.md-typeset .mermaid svg,
.mermaid svg {
  display: block !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.md-typeset .mermaid svg *,
.mermaid svg * {
  overflow: visible !important;
}

.mermaid text,
.mermaid .label,
.mermaid .nodeLabel,
.mermaid .edgeLabel {
  font-family: var(--md-text-font) !important;
  font-size: 13px !important;
}
