/* =========================================================
   Argus — MkDocs Material custom styles
   ========================================================= */

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

[data-md-color-scheme="slate"] .hero   { background: #06070f; }
[data-md-color-scheme="default"] .hero { background: #f5f3ff; }

/* Version pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Dark mode badge */
[data-md-color-scheme="slate"] .hero-badge {
  color: #a5b4fc;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(165,180,252,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-md-color-scheme="slate"] .hero-badge::before { background: #a5b4fc; }

/* Light mode badge */
[data-md-color-scheme="default"] .hero-badge {
  color: #4338ca;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-md-color-scheme="default"] .hero-badge::before { background: #4338ca; }

/* Hide ¶ permalink in hero */
.hero h1 .headerlink { display: none; }

/* Gradient h1 — scheme-aware */
.hero h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-md-color-scheme="slate"] .hero h1 {
  background-image: linear-gradient(135deg, #ffffff 20%, #c4b5fd 60%, #818cf8 100%);
}

[data-md-color-scheme="default"] .hero h1 {
  background-image: linear-gradient(135deg, #1e1b4b 10%, #4338ca 55%, #7c3aed 100%);
}

/* Tagline — scheme-aware */
.hero > p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

[data-md-color-scheme="slate"] .hero p,
[data-md-color-scheme="slate"] .hero-sub { color: rgba(255,255,255,0.55); }
[data-md-color-scheme="default"] .hero p,
[data-md-color-scheme="default"] .hero-sub { color: rgba(0,0,0,0.55); }

.hero-tagline {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
[data-md-color-scheme="slate"] .hero-tagline { color: #a5b4fc; }
[data-md-color-scheme="default"] .hero-tagline { color: #4f46e5; }

.hero-h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}
[data-md-color-scheme="slate"] .hero-h1 { color: #fff; }
[data-md-color-scheme="default"] .hero-h1 { color: #1e1b4b; }

.hero-sub {
  font-size: 1.0rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Cloud badges */
.cloud-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  justify-content: flex-start;
}

.cloud-badge {
  display: inline-flex;
  align-items: stretch;
  border-radius: 7px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cloud-badge .cb-icon {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.cloud-badge .cb-label {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
}

/* Dark mode */
[data-md-color-scheme="slate"] .cloud-badge--aws .cb-icon   { background: #c17000; }
[data-md-color-scheme="slate"] .cloud-badge--gcp .cb-icon   { background: #1a56db; }
[data-md-color-scheme="slate"] .cloud-badge--azure .cb-icon { background: #0063b0; }
[data-md-color-scheme="slate"] .cloud-badge--aws   { background: rgba(255,153,0,0.1);  color: #fbbf24; border: 1px solid rgba(255,153,0,0.2); }
[data-md-color-scheme="slate"] .cloud-badge--gcp   { background: rgba(66,133,244,0.1); color: #93c5fd; border: 1px solid rgba(66,133,244,0.2); }
[data-md-color-scheme="slate"] .cloud-badge--azure { background: rgba(0,120,212,0.1);  color: #7dd3fc; border: 1px solid rgba(0,120,212,0.2); }

/* Light mode */
[data-md-color-scheme="default"] .cloud-badge--aws .cb-icon   { background: #e07b00; }
[data-md-color-scheme="default"] .cloud-badge--gcp .cb-icon   { background: #1557d0; }
[data-md-color-scheme="default"] .cloud-badge--azure .cb-icon { background: #005ba1; }
[data-md-color-scheme="default"] .cloud-badge--aws   { background: rgba(255,153,0,0.08);  color: #92400e; border: 1px solid rgba(255,153,0,0.25); }
[data-md-color-scheme="default"] .cloud-badge--gcp   { background: rgba(66,133,244,0.08); color: #1e40af; border: 1px solid rgba(66,133,244,0.25); }
[data-md-color-scheme="default"] .cloud-badge--azure { background: rgba(0,120,212,0.08);  color: #1e4f8c; border: 1px solid rgba(0,120,212,0.25); }

/* Stats panel */
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  border-radius: 12px;
  max-width: 100%;
  width: fit-content;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .hero-stats {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
[data-md-color-scheme="default"] .hero-stats {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(99,102,241,0.18);
  box-shadow: 0 4px 24px rgba(99,102,241,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.5rem;
}

[data-md-color-scheme="slate"] .hero-stat { border-right: 1px solid rgba(255,255,255,0.08); }
[data-md-color-scheme="default"] .hero-stat { border-right: 1px solid rgba(0,0,0,0.08); }
.hero-stat:last-child { border-right: none; }

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

[data-md-color-scheme="slate"] .hero-stat strong { color: #a5b4fc; }
[data-md-color-scheme="default"] .hero-stat strong { color: var(--md-primary-fg-color); }

.hero-stat span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

[data-md-color-scheme="slate"] .hero-stat span { color: rgba(255,255,255,0.35); }
[data-md-color-scheme="default"] .hero-stat span { color: rgba(0,0,0,0.4); }

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

.feature-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.12), 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-3px);
  background: rgba(99,102,241,0.04);
}

/* Icon: colored rounded square */
.feature-card .icon {
  width: 42px;
  height: 42px;
  background: rgba(99,102,241,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card .icon .twemoji,
.feature-card .icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: var(--md-primary-fg-color);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

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

/* Slim announcement banner */
.md-banner {
  font-size: 0.85rem;
}

/* Tighten up nav tabs */
.md-tabs__link {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Code block filename label */
.md-code__title {
  font-family: var(--md-code-font);
  font-size: 0.75rem;
}

/* ── Code color palette — One Dark (both light + dark mode) ─ */
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-code-bg-color:              #0d0f14;
  --md-code-fg-color:              #abb2bf;
  --md-code-hl-color:              rgba(97, 175, 239, 0.1);
  --md-code-hl-keyword-color:      #c678dd;
  --md-code-hl-string-color:       #98c379;
  --md-code-hl-comment-color:      #5c6370;
  --md-code-hl-number-color:       #d19a66;
  --md-code-hl-operator-color:     #56b6c2;
  --md-code-hl-punctuation-color:  #abb2bf;
  --md-code-hl-name-color:         #61afef;
  --md-code-hl-constant-color:     #e06c75;
  --md-code-hl-special-color:      #56b6c2;
  --md-code-hl-function-color:     #61afef;
  --md-code-hl-generic-color:      #abb2bf;
  /* nv / Name.Variable — env var names in bash blocks */
  --md-code-hl-variable-color:     #e5c07b;
}

/* ── Mac-style traffic-light dots on every code block ────── */
.md-typeset .highlight {
  position: relative;
  padding-top: 36px;
  background: #3a3a3c;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.md-typeset .highlight::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840;
  position: absolute;
  top: 12px;
  left: 14px;
}

/* Hide filename bar — we don't want the title header */
.md-typeset .highlight .filename {
  display: none;
}

/* ── Code block tweaks ───────────────────────────────────── */

/* Match pre background to the wrapper */
.md-typeset .highlight > pre {
  background: var(--md-code-bg-color);
  border-radius: 0 0 10px 10px;
  margin: 0;
}

/* Slightly larger line-height for readability */
.md-typeset pre code {
  line-height: 1.6;
}

/* Nav container: clear the grey box, fade in on hover */
.md-typeset .highlight .md-code__nav {
  background: transparent !important;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.md-typeset .highlight:hover .md-code__nav {
  opacity: 1;
}

/* Individual buttons: transparent bg, white icon */
.md-typeset .highlight .md-code__button {
  background: transparent;
}
.md-typeset .highlight .md-code__button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.md-typeset .highlight .md-code__button::after {
  background-color: rgba(255, 255, 255, 0.55);
}
.md-typeset .highlight .md-code__button:hover::after {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Fix ini/env key tokens — Material hardcodes a dark color for .na */
.md-typeset .highlight code .na {
  color: #61afef;
}

/* Content tabs */
.md-typeset .tabbed-labels {
  gap: 0;
}
.md-typeset .tabbed-labels > label {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  white-space: nowrap;
}
.md-typeset .tabbed-labels > label:hover {
  color: var(--md-primary-fg-color);
}

/* ── Header layout ───────────────────────────────────────── */

/* Constrain search — must clip the inner element which has a hardcoded
   23.4rem width set by MkDocs Material that overflows the container */
.md-search {
  width: 220px !important;
  max-width: 220px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  margin-left: 0.75rem !important;
}
/* The inner container and form must be fully clipped to the parent */
.md-search__inner {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}
.md-search__form {
  width: 100% !important;
  border-radius: 24px !important;
  height: 36px !important;
}

/* Header flex gap and padding */
.md-header__inner {
  gap: 0.5rem;
  padding: 0 1rem;
}

/* Palette form — zero out any residual width/background */
.md-header__option {
  overflow: visible !important;
  flex-shrink: 0;
}

/* GitHub social chip — subtle sizing */
.md-source {
  flex-shrink: 0;
}

/* Primary and secondary buttons */
.md-button {
  border-radius: 8px !important;
}

/* ── Inline code: keep dark only for block code, not inline ─ */

/* Restore readable inline code background in light mode */
[data-md-color-scheme="default"] .md-typeset :not(pre) > code {
  background: rgba(67,56,202,0.07);
  color: #3730a3;
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* Dark mode inline code stays consistent */
[data-md-color-scheme="slate"] .md-typeset :not(pre) > code {
  background: rgba(165,180,252,0.1);
  color: #c4b5fd;
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* ── Architecture diagram ────────────────────────────────── */

.arch-wrap {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Light mode tokens */
[data-md-color-scheme="default"] .arch-svg {
  background: #f8f9ff;
  --c-src:   #dde1f8; --c-src-s:   #3949ab;
  --c-tool:  #e0f4f1; --c-tool-s:  #00796b;
  --c-agent: #ece8fb; --c-agent-s: #6200ea;
  --c-user:  #fff8e6; --c-user-s:  #e65100;
  --c-out:   #e8f5e9; --c-out-s:   #2e7d32;
  --c-div:   rgba(98,0,234,0.15);
  --c-e:     #64748b; --c-e-r:  rgba(100,116,139,0.4);
  --c-e-u:   #e65100; --c-e-o:  #2e7d32;
  --c-txt:   #1a1a2e; --c-dim:  #64748b;
}

/* Dark mode tokens */
[data-md-color-scheme="slate"] .arch-svg {
  background: #0d1117;
  --c-src:   #1c2a5e; --c-src-s:   #7986cb;
  --c-tool:  #0b2626; --c-tool-s:  #4db6ac;
  --c-agent: #180e40; --c-agent-s: #9c6dff;
  --c-user:  #2c1a04; --c-user-s:  #fb8c00;
  --c-out:   #0a2210; --c-out-s:   #66bb6a;
  --c-div:   rgba(156,109,255,0.3);
  --c-e:     #7c8fa6; --c-e-r:  rgba(124,143,166,0.38);
  --c-e-u:   #fb8c00; --c-e-o:  #66bb6a;
  --c-txt:   #e2e8f0; --c-dim:  #8899b0;
}

/* Node fills */
.arch-svg .n-src   { fill: var(--c-src);   stroke: var(--c-src-s);   stroke-width: 1.5; }
.arch-svg .n-tool  { fill: var(--c-tool);  stroke: var(--c-tool-s);  stroke-width: 1.5; }
.arch-svg .n-agent { fill: var(--c-agent); stroke: var(--c-agent-s); stroke-width: 2; }
.arch-svg .n-user  { fill: var(--c-user);  stroke: var(--c-user-s);  stroke-width: 1.5; }
.arch-svg .n-out   { fill: var(--c-out);   stroke: var(--c-out-s);   stroke-width: 1.5; }
.arch-svg .n-div   { stroke: var(--c-div); stroke-width: 1; fill: none; }

/* Node text */
.arch-svg .nt      { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; fill: var(--c-txt); }
.arch-svg .nt-b    { font-weight: 700; }
.arch-svg .nt-d    { fill: var(--c-dim); }

/* Arrowheads */
.arch-svg .ah    { fill: var(--c-e);   }
.arch-svg .ah-u  { fill: var(--c-e-u); }
.arch-svg .ah-o  { fill: var(--c-e-o); }
.arch-svg .ah-r  { fill: var(--c-e-r); }

/* Edges */
.arch-svg .e     { stroke: var(--c-e);   stroke-width: 1.5; fill: none; }
.arch-svg .e-r   { stroke: var(--c-e-r); stroke-width: 1.5; stroke-dasharray: 5,3; fill: none; }
.arch-svg .e-u   { stroke: var(--c-e-u); stroke-width: 1.5; fill: none; }
.arch-svg .e-o   { stroke: var(--c-e-o); stroke-width: 1.5; fill: none; }

/* ── Custom sun/moon pill toggle ─────────────────────────── */

/* ── Theme toggle pill ───────────────────────────────────── */
.tt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
  margin: 0 2px;
  flex-shrink: 0;
}

.tt-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: fill 0.2s;
}

.tt-track {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.tt-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.tt-pill.tt-dark .tt-thumb {
  transform: translateX(12px);
}

/* ── Dark mode toggle (dark header) ─────────────────────── */
[data-md-color-scheme="slate"] .tt-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
[data-md-color-scheme="slate"] .tt-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}
[data-md-color-scheme="slate"] .tt-icon {
  fill: rgba(255,255,255,0.4);
}
[data-md-color-scheme="slate"] .tt-pill.tt-dark .tt-moon,
[data-md-color-scheme="slate"] .tt-pill:not(.tt-dark) .tt-sun {
  fill: rgba(255,255,255,0.95);
}
[data-md-color-scheme="slate"] .tt-track {
  background: rgba(255,255,255,0.15);
}
[data-md-color-scheme="slate"] .tt-pill.tt-dark .tt-track {
  background: #6366f1;
}
[data-md-color-scheme="slate"] .tt-thumb {
  background: #fff;
}

/* ── Light mode toggle (white header) ───────────────────── */
[data-md-color-scheme="default"] .tt-pill {
  background: #ffffff;
  border: 1px solid #c7c9da;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
[data-md-color-scheme="default"] .tt-pill:hover {
  background: #f0f0f8;
  border-color: #9496b4;
}
[data-md-color-scheme="default"] .tt-icon {
  fill: #9094b0;
}
[data-md-color-scheme="default"] .tt-pill.tt-dark .tt-moon,
[data-md-color-scheme="default"] .tt-pill:not(.tt-dark) .tt-sun {
  fill: #4338ca;
}
[data-md-color-scheme="default"] .tt-track {
  background: #d1d3e0;
}
[data-md-color-scheme="default"] .tt-pill.tt-dark .tt-track {
  background: #6366f1;
}
[data-md-color-scheme="default"] .tt-thumb {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* ── Navbar ──────────────────────────────────────────────── */

/* ── Dark mode nav — blends into hero ────────────────────── */
[data-md-color-scheme="slate"] .md-header {
  background: #0d0e17 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-md-color-scheme="slate"] .md-header--shadow {
  box-shadow: 0 2px 24px rgba(0,0,0,0.5) !important;
}
[data-md-color-scheme="slate"] .md-tabs {
  background: #0d0e17 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-md-color-scheme="slate"] .md-tabs .md-tabs__link {
  color: rgba(255,255,255,0.6) !important;
}
[data-md-color-scheme="slate"] .md-tabs .md-tabs__link--active,
[data-md-color-scheme="slate"] .md-tabs .md-tabs__link:hover {
  color: #fff !important;
}

/* ── Light mode nav — clean white with indigo accent ─────── */
[data-md-color-scheme="default"] .md-header {
  background: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(99,102,241,0.12);
  color: #1e1b4b !important;
}
[data-md-color-scheme="default"] .md-header--shadow {
  box-shadow: 0 2px 16px rgba(99,102,241,0.08) !important;
}
[data-md-color-scheme="default"] .md-tabs {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
[data-md-color-scheme="default"] .md-tabs .md-tabs__link {
  color: rgba(30,27,75,0.55) !important;
}
[data-md-color-scheme="default"] .md-tabs .md-tabs__link--active,
[data-md-color-scheme="default"] .md-tabs .md-tabs__link:hover {
  color: #4338ca !important;
}
/* header icon buttons + search in light mode */
[data-md-color-scheme="default"] .md-header__button,
[data-md-color-scheme="default"] .md-search__input {
  color: #1e1b4b !important;
}
/* Hide site-name text — logo JS carries the wordmark */
.md-header__title {
  visibility: hidden;
}

/* Let logo.js render without MkDocs image constraints */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  filter: none !important;
  height: auto !important;
  width: auto !important;
}

/* ── Hero aurora blobs ───────────────────────────────────── */

/* eliminate the gap between sticky nav and hero */
.md-content__inner:has(.hero) { padding-top: 0 !important; }

/* zero the MkDocs grid so the hero can go full-bleed */
.md-content__inner:has(.hero) {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.md-content:has(.hero),
.md-main__inner:has(.hero) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

/* hero: true full-bleed across the viewport */
.hero {
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* restore centered, padded layout for sections that are not full-bleed */
.md-content__inner:has(.hero) > :not(.hero):not(.cta-strip) {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
/* fallback for browsers without :has() */
.hero { margin-top: -0.6rem; }

/* ── Hero two-column layout ──────────────────────────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 3rem 2.5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.hero-left {
  text-align: left;
}

.hero-right {
  position: relative;
  /* zero height — terminal is positioned absolutely so it can't push the grid row */
  height: 0;
  overflow: visible;
}

.hero-terminal {
  position: absolute;
  top: -160px;
  left: 1rem;
}

/* children float above blobs */
.hero > * { position: relative; z-index: 1; }

/* blob 1 — violet/purple, top-left */
[data-md-color-scheme="slate"] .hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.7) 0%, rgba(99,40,210,0.35) 40%, transparent 70%);
  filter: blur(72px);
  top: -180px; left: -80px;
  animation: blob-a 13s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
[data-md-color-scheme="default"] .hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(99,102,241,0.1) 45%, transparent 70%);
  filter: blur(80px);
  top: -160px; left: -60px;
  animation: blob-a 13s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}

/* blob 2 — blue/cyan, top-right */
[data-md-color-scheme="slate"] .hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,120,255,0.55) 0%, rgba(0,180,220,0.25) 45%, transparent 70%);
  filter: blur(80px);
  top: -60px; right: -100px;
  animation: blob-b 10s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
[data-md-color-scheme="default"] .hero::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, rgba(0,180,200,0.1) 45%, transparent 70%);
  filter: blur(80px);
  top: -40px; right: -80px;
  animation: blob-b 10s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}

@keyframes blob-a {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  33%  { transform: translate(60px,  90px)  scale(1.12); }
  66%  { transform: translate(-30px, 130px) scale(0.95); }
  100% { transform: translate(110px, 50px)  scale(1.18); }
}
@keyframes blob-b {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  50%  { transform: translate(-90px, 70px)  scale(1.15); }
  100% { transform: translate(-40px, -50px) scale(0.92); }
}

/* ── Hero terminal ───────────────────────────────────────── */
.hero-terminal {
  width: 620px;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1.6;
  /* dark mode shadow — heavy drop shadow looks great on dark bg */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 24px 64px rgba(0,0,0,0.65),
    0 4px 20px rgba(99,102,241,0.18);
}
/* light mode — softer shadow so dark terminal doesn't feel jarring */
[data-md-color-scheme="default"] .hero-terminal {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.10),
    0 8px 32px rgba(0,0,0,0.15),
    0 2px 8px rgba(99,102,241,0.12);
}

.ht-bar {
  background: #3a3a3c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.ht-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ht-dot:nth-child(2) { margin: 0 6px; }

.ht-bar-title {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding-right: 52px;
}

.ht-body {
  background: #0d0f14;
  padding: 14px 16px 22px;
  height: 360px;
  color: #abb2bf;
  overflow: hidden;
  white-space: nowrap;
}

/* Force terminal text color — MkDocs light mode injects rgba(0,0,0,0.87)
   on all elements which makes dark-on-dark text invisible in the terminal */
.ht-body,
.ht-body div,
.ht-body p { color: #abb2bf !important; }
.ht-body .ht-prompt-line        { color: #e5e7eb !important; }
.ht-body .ht-prompt-line .ht-ps { color: #61afef !important; font-weight: 600; }
.ht-body .ht-dim  { color: #5c6370 !important; }
.ht-body .ht-bold { color: #e5e9f0 !important; font-weight: 600; }
.ht-body .ht-high { color: #e06c75 !important; }
.ht-body .ht-med  { color: #e5c07b !important; }
.ht-body .ht-sub  { color: #98c379 !important; font-size: 0.725rem; }
.ht-body .ht-gap  { height: 0.5em; }

.ht-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #61afef;
  vertical-align: text-bottom;
  animation: ht-blink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes ht-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── How it works — 3 steps ──────────────────────────────── */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2rem 0;
}

.how-step {
  flex: 1;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
}

[data-md-color-scheme="slate"] .how-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
[data-md-color-scheme="default"] .how-step {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.07);
}

.how-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  border: 1.5px solid rgba(99,102,241,0.32);
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.how-step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.45rem; }

.how-step p { font-size: 0.86rem; line-height: 1.6; margin: 0; }

[data-md-color-scheme="slate"] .how-step p  { color: rgba(255,255,255,0.48); }
[data-md-color-scheme="default"] .how-step p { color: rgba(0,0,0,0.52); }

.how-connector {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  padding-top: 3rem;
  color: rgba(99,102,241,0.5);
  font-size: 1.4rem;
  flex-shrink: 0;
  user-select: none;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 2.5rem;
    gap: 0;
    text-align: center;
    min-height: unset;
  }
  .hero-left { text-align: center; }
  .hero-tagline { text-align: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .cloud-badges { justify-content: center; }
  .hero-stats { margin: 0 auto; width: fit-content; max-width: 100%; }
  .hero-right { display: none; }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 1.75rem 1rem 2rem;
    gap: 1.5rem;
  }
  .hero-h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-sub { font-size: 0.9rem; }
  /* stats: 2×2 grid on very small screens */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 10px;
  }
  .hero-stat { border-right: none !important; }
  [data-md-color-scheme="slate"] .hero-stat:nth-child(1),
  [data-md-color-scheme="slate"] .hero-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  [data-md-color-scheme="default"] .hero-stat:nth-child(1),
  [data-md-color-scheme="default"] .hero-stat:nth-child(2) {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  [data-md-color-scheme="slate"] .hero-stat:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08) !important;
  }
  [data-md-color-scheme="default"] .hero-stat:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.08) !important;
  }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-buttons .md-button { text-align: center; }
  .cloud-badges { gap: 0.4rem; }
  .how-steps { flex-direction: column; gap: 1rem; }
  .how-connector { padding: 0; justify-content: center; font-size: 1.1rem; }
  /* hide terminal on very small screens to save space */
  .hero-right { display: none; }
}

/* ── Slack mockup ─────────────────────────────────────────── */
.slack-mock {
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
}

[data-md-color-scheme="slate"] .slack-mock {
  background: #1a1d21;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}
[data-md-color-scheme="default"] .slack-mock {
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.slack-topbar {
  background: #350d36;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

.slack-topbar .s-hash { color: rgba(255,255,255,0.4); font-size: 1rem; font-weight: 400; }

.slack-body  { padding: 14px 16px; }
.slack-msg   { display: flex; gap: 12px; align-items: flex-start; }

.s-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  font-family: monospace;
  letter-spacing: -1px;
}

.s-meta  { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }

.s-name  { font-weight: 800; font-size: 0.9rem; }
[data-md-color-scheme="slate"] .s-name  { color: #e8e8e8; }
[data-md-color-scheme="default"] .s-name { color: #1d1c1d; }

.s-badge {
  background: #1264a3;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.s-time { font-size: 0.7rem; color: rgba(128,128,128,0.65); }

.s-text { font-size: 0.84rem; margin-bottom: 10px; line-height: 1.4; }
[data-md-color-scheme="slate"] .s-text  { color: #d1d2d3; }
[data-md-color-scheme="default"] .s-text { color: #1d1c1d; }

.s-attach {
  border-left: 4px solid #e01e5a;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
}
[data-md-color-scheme="slate"] .s-attach { background: rgba(255,255,255,0.04); }
[data-md-color-scheme="default"] .s-attach {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid #e01e5a;
}

.s-attach-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
[data-md-color-scheme="slate"] .s-attach-title  { color: #fff; }
[data-md-color-scheme="default"] .s-attach-title { color: #1d1c1d; }

.s-attach-sub { font-size: 0.77rem; margin-bottom: 10px; line-height: 1.4; }
[data-md-color-scheme="slate"] .s-attach-sub  { color: rgba(255,255,255,0.44); }
[data-md-color-scheme="default"] .s-attach-sub { color: rgba(0,0,0,0.45); }

.s-findings { border-top: 1px solid rgba(128,128,128,0.13); padding-top: 6px; }

.s-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 0.79rem; }

.s-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.s-dot-h { background: #e01e5a; }
.s-dot-m { background: #ecb22e; }
.s-dot-l { background: #aaa; }

.s-res { font-weight: 600; font-family: monospace; font-size: 0.77rem; }
[data-md-color-scheme="slate"] .s-res  { color: #61afef; }
[data-md-color-scheme="default"] .s-res { color: #0550ae; }

.s-type { font-size: 0.74rem; }
[data-md-color-scheme="slate"] .s-type  { color: rgba(255,255,255,0.35); }
[data-md-color-scheme="default"] .s-type { color: rgba(0,0,0,0.38); }

.s-cost { margin-left: auto; font-weight: 700; font-size: 0.77rem; color: #e01e5a; flex-shrink: 0; }

.s-more { font-size: 0.74rem; padding: 5px 0 0; }
[data-md-color-scheme="slate"] .s-more  { color: rgba(255,255,255,0.3); }
[data-md-color-scheme="default"] .s-more { color: rgba(0,0,0,0.35); }

.s-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.s-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.77rem;
  font-weight: 500;
  cursor: default;
  display: inline-block;
  text-decoration: none;
}

[data-md-color-scheme="slate"] .s-btn {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.1);
}
[data-md-color-scheme="default"] .s-btn {
  background: #f0f0f0;
  color: #1d1c1d;
  border: 1px solid #ddd;
}

.s-btn-p {
  background: #1264a3 !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ── CTA strip ────────────────────────────────────────────── */
/* CTA strip — full-bleed with fixed-background parallax */
.cta-strip {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  /* break out of md-content__inner centering → full viewport width */
  width: 100vw !important;
  left: 50%;
  transform: translateX(-50%);
  margin: 3rem 0 1rem;
  /* fixed background creates the parallax feel */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

[data-md-color-scheme="slate"] .cta-strip {
  background-image: linear-gradient(160deg, #0d0c1d 0%, #19103d 50%, #0d0c1d 100%);
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
[data-md-color-scheme="default"] .cta-strip {
  background-image: linear-gradient(160deg, #eef0ff 0%, #e2dcff 50%, #eef0ff 100%);
  border-top: 1px solid rgba(99,102,241,0.18);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}

.cta-strip::before {
  content: "";
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.32) 0%, transparent 68%);
  pointer-events: none;
}

.cta-strip h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  position: relative;
}
[data-md-color-scheme="slate"] .cta-strip h2  { color: #fff; }
[data-md-color-scheme="default"] .cta-strip h2 { color: #1e1b4b; }

.cta-strip > p {
  font-size: 1rem;
  max-width: 360px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  position: relative;
}
[data-md-color-scheme="slate"] .cta-strip > p  { color: rgba(255,255,255,0.5); }
[data-md-color-scheme="default"] .cta-strip > p { color: rgba(0,0,0,0.48); }

.cta-btns {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
