/* Vaakly GitHub Pages — VaagaTech Unified Theme */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #10243F;
  --bg-elev: #1A3560;
  --ink: #F2F4F7;
  --muted: #C7D2FE;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #3B82F6;
  --accent-ink: #0B1220;
  --code-bg: #0B1220;
  --max: 72rem;
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, #1e3a2f 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #243528 0%, transparent 50%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #dff58a;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.75rem;
  }

  .site-nav.open .nav-links {
    display: flex;
  }

  .site-nav .inner {
    flex-wrap: wrap;
  }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #dff58a;
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--accent);
}

/* Layout */
.page {
  padding: 2.5rem 0 4rem;
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static !important;
  }
}

.side-nav {
  position: sticky;
  top: 4.5rem;
  font-size: 0.9rem;
}

.side-nav h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  color: var(--accent);
}

.content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.content p,
.content li {
  color: color-mix(in srgb, var(--ink) 92%, var(--muted));
}

.content ul,
.content ol {
  padding-left: 1.25rem;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.content th {
  background: var(--bg-elev);
  font-weight: 600;
}

pre,
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

code {
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 0 3rem;
}

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.feature h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.doc-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.doc-list a:hover {
  color: var(--accent);
}

.doc-list small {
  color: var(--muted);
  font-weight: 400;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.pipeline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  margin: 1.25rem 0;
  color: var(--muted);
}
