/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-dark: #0a0a0a;
  --bg-dark-soft: #131313;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-soft: #4a4a4a;
  --muted: #6e6e6e;
  --muted-2: #9a9a9a;
  --muted-3: #c4c4c4;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);
  --line-soft: rgba(10, 10, 10, 0.04);

  --line-on-dark: rgba(255, 255, 255, 0.08);
  --line-on-dark-strong: rgba(255, 255, 255, 0.16);
  --ink-on-dark: #fafafa;
  --muted-on-dark: #9a9a9a;
  --muted-on-dark-2: #6e6e6e;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);

  --shadow-soft: 0 1px 0 rgba(10, 10, 10, 0.04),
    0 4px 12px -2px rgba(10, 10, 10, 0.06),
    0 24px 48px -16px rgba(10, 10, 10, 0.08);
  --shadow-strong: 0 1px 0 rgba(10, 10, 10, 0.06),
    0 8px 24px -4px rgba(10, 10, 10, 0.10),
    0 40px 80px -24px rgba(10, 10, 10, 0.18);
  --shadow-on-dark: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -16px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Brand accent — used sparingly */
  --brand: hsl(347 77% 50%);
  --brand-soft: hsl(347 77% 50% / 0.5);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection {
  background: var(--ink);
  color: #fff;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: clamp(60px, 8vw, 104px) 0;
  position: relative;
}

.section--tight { padding: clamp(44px, 6vw, 72px) 0; }

.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.section__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section--dark .section__eyebrow {
  color: var(--muted-on-dark);
}

.section__eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section__title {
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.section__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
}

.section--dark .section__lede {
  color: var(--muted-on-dark);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav--scrolled {
  border-bottom-color: var(--line);
}

/* Adapts to dark sections passing beneath the nav */
.nav--over-dark {
  background: rgba(12, 12, 12, 0.55);
}
.nav--over-dark.nav--scrolled {
  border-bottom-color: var(--line-on-dark);
}
.nav--over-dark .nav__link {
  color: rgba(255, 255, 255, 0.72);
}
.nav--over-dark .nav__link:hover {
  color: #fff;
}
.nav--over-dark .nav__badge {
  color: var(--muted-on-dark);
  border-color: var(--line-on-dark-strong);
}
.nav--over-dark a.nav__badge:hover {
  color: #fff;
  border-color: var(--brand);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Nav logo uses the Get started button's gradient red so the two brand
   moments match. Scoped to .nav so the footer wordmark stays black. */
.nav .wordmark {
  background: linear-gradient(
    180deg,
    hsl(347 94% 67%) 0%,
    hsl(347 86% 58%) 52%,
    hsl(347 88% 52%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}

.nav__link:hover { color: var(--ink); }

.nav__badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

a.nav__badge:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.nav__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); }
  50% { box-shadow: 0 0 0 5px hsl(347 77% 50% / 0); }
}

/* Hamburger button — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin: -8px -8px -8px 0;
  padding: 0 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav--over-dark .nav__burger span { background: #fff; }
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   Mobile slide-out menu
   ============================================================ */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden; /* keep the parked (closed) panel from widening the page */
}
.nav-menu--open {
  visibility: visible;
  pointer-events: auto;
}

.nav-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-menu--open .nav-menu__scrim { opacity: 1; }

.nav-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -24px rgba(10, 10, 10, 0.4);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu--open .nav-menu__panel { transform: translateX(0); }

.nav-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.nav-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
}
.nav-menu__close:hover { background: var(--bg-soft); color: var(--ink); }

.nav-menu__link {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  transition: background 0.15s ease;
}
.nav-menu__link:hover { background: var(--bg-soft); }

.nav-menu__link--badge {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.nav-menu__link--badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.nav-menu__cta {
  margin-top: 16px;
  width: 100%;
}

body.no-scroll { overflow: hidden; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 16px -6px rgba(10, 10, 10, 0.4);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 12px 28px -8px rgba(10, 10, 10, 0.5);
}

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

.section--dark .btn--ghost {
  color: var(--ink-on-dark);
  border-color: var(--line-on-dark-strong);
}
.section--dark .btn--ghost:hover {
  background: var(--bg-dark-soft);
  border-color: var(--ink-on-dark);
}

.btn--lg { padding: 14px 22px; font-size: 15px; font-weight: 600; }

.btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ============================================================
   Liquid-glass brand CTA (hero)
   Translucent red "glass" with a specular top sheen, a slow
   light sweep, and a soft brand-coloured halo. Subtle pull,
   not a shout.
   ============================================================ */
.btn--glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  /* A touch wider and roomier than a standard CTA */
  padding: 15px 38px;
  font-size: 15.5px;
  border-radius: 999px;
  border: 1px solid hsl(347 92% 80% / 0.6);
  background: linear-gradient(
    180deg,
    hsl(347 94% 67%) 0%,
    hsl(347 86% 58%) 52%,
    hsl(347 88% 52%) 100%
  );
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1.5px 0 hsl(0 0% 100% / 0.55),
    inset 0 -10px 18px -10px hsl(347 72% 32% / 0.6),
    0 1px 2px hsl(347 60% 34% / 0.32),
    0 8px 24px -6px hsl(347 82% 58% / 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glossy top curve */
.btn--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    hsl(0 0% 100% / 0.5) 0%,
    hsl(0 0% 100% / 0.1) 36%,
    transparent 62%
  );
  pointer-events: none;
}

/* Slow specular sweep — fires every few seconds for a subtle pull */
.btn--glass::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -75%;
  width: 55%;
  z-index: 2;
  background: linear-gradient(
    100deg,
    transparent,
    hsl(0 0% 100% / 0.38),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
  animation: glassSheen 6s ease-in-out infinite;
}

/* Keep the label and arrow above the glass layers */
.btn--glass .btn__label,
.btn--glass .btn__arrow {
  position: relative;
  z-index: 3;
}

.btn--glass:hover {
  transform: translateY(-2px);
  border-color: hsl(347 92% 84% / 0.75);
  box-shadow:
    inset 0 1.5px 0 hsl(0 0% 100% / 0.65),
    inset 0 -10px 18px -10px hsl(347 72% 32% / 0.6),
    0 2px 4px hsl(347 60% 34% / 0.36),
    0 16px 38px -6px hsl(347 82% 60% / 0.65);
}

.btn--glass:active { transform: translateY(0); }

@keyframes glassSheen {
  0% { left: -75%; }
  18%, 100% { left: 135%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 80px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeUp 0.7s 0.05s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__pill__tag {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0;
}

.hero__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: clamp(22px, 2.5vw, 28px);
  color: var(--ink);
}

.hero__title__line {
  display: block;
  /* Break the long line into even halves instead of a lopsided wrap.
     Falls back to normal wrapping where unsupported. */
  text-wrap: balance;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.85s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__title__line:nth-child(1) { animation-delay: 0.12s; }
.hero__title__line:nth-child(2) { animation-delay: 0.22s; }

.hero__title__quiet {
  color: var(--muted);
}

.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto clamp(32px, 4vw, 40px);
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 0.85s 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.85s 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Hero mockup
   ============================================================ */
.mockup-wrap {
  margin-top: clamp(60px, 8vw, 100px);
  padding: 0 var(--pad);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s 0.7s forwards cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mockup-wrap::before {
  content: "";
  position: absolute;
  inset: 5% 10% -10% 10%;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.12), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.mockup {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  text-align: left;
}

.mockup__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.mockup__dots {
  display: flex;
  gap: 6px;
}
.mockup__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted-3);
}

/* Hamburger in the mockup chrome — only surfaces in the mobile mockup */
.mockup__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
  flex-shrink: 0;
}
.mockup__menu span {
  display: block;
  height: 2px;
  width: 16px;
  background: var(--muted);
  border-radius: 2px;
}

.mockup__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.mockup__sep { color: var(--muted-3); }
.mockup__current {
  color: var(--ink);
  font-weight: 600;
}

.mockup__save {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mockup__save::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a8a3f;
  animation: saveGlow 2s ease-in-out infinite;
}

@keyframes saveGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mockup__avatars {
  margin-left: auto;
  display: flex;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
  letter-spacing: 0.02em;
}
.avatar:first-child { margin-left: 0; }
.avatar--a { background: #0a0a0a; }
.avatar--b { background: #4a4a4a; }
.avatar--c { background: #8a8a8a; }

.mockup__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 460px;
}

/* Sidebar */
.mock-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  font-size: 13.5px;
}

.mock-sidebar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--sans);
}
.mock-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mock-sidebar__brand__org {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mock-sidebar__kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
}

.mock-sidebar__group {
  margin-bottom: 6px;
}

.mock-sidebar__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.005em;
}

.mock-sidebar__caret {
  font-size: 9px;
  color: var(--muted);
  width: 10px;
  display: inline-flex;
  justify-content: center;
}

.mock-sidebar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 22px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.mock-sidebar__item:hover { background: rgba(10, 10, 10, 0.04); }
.mock-sidebar__item--active {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.mock-sidebar__item__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Doc */
.mock-doc {
  padding: 36px 44px 40px;
  position: relative;
}

.mock-doc h1 {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--ink);
}

.mock-doc__meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mock-doc p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.6;
}

.mock-doc h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 24px 0 10px;
  color: var(--ink);
}

.mock-doc ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.mock-doc li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 4px 0 4px 22px;
  position: relative;
  line-height: 1.6;
}

.mock-doc li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.6;
}

.mock-doc__hl {
  background: rgba(10, 10, 10, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--ink);
}

.mock-doc__code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.mermaid-block {
  margin: 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.mermaid-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.mermaid-block__lang {
  font-weight: 500;
  color: var(--ink-soft);
}

.mermaid-block__caret {
  color: var(--muted-2);
}

.mermaid-block__actions {
  display: flex;
  gap: 16px;
}

.mermaid-block__canvas {
  padding: 22px 18px;
  text-align: center;
}

.mermaid-block__canvas svg {
  display: inline-block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Mermaid default ("forest"/neutral) theme palette */
.dgm-node {
  fill: #ececff;
  stroke: #9370db;
  stroke-width: 1;
}

.dgm-edge {
  fill: none;
  stroke: #333840;
  stroke-width: 1.2;
}

.dgm-arrowhead {
  fill: #333840;
}

.dgm-label {
  font-family: "Trebuchet MS", var(--sans);
  font-size: 13px;
  fill: #1f2430;
  text-anchor: middle;
  dominant-baseline: middle;
}

.dgm-edge-label {
  font-family: "Trebuchet MS", var(--sans);
  font-size: 11px;
  fill: #2a2f3a;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.mock-cursor {
  position: absolute;
  bottom: 60px;
  right: 80px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  animation: cursorFloat 4.5s ease-in-out infinite;
}
.mock-cursor__caret {
  width: 2px;
  height: 18px;
  background: var(--ink);
  border-radius: 1px;
}
.mock-cursor__label {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 14px;
  margin-left: -1px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes cursorFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -3px); }
}

/* ============================================================
   Marquee strip
   ============================================================ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.strip__inner {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strip__dot {
  width: 4px;
  height: 4px;
  background: var(--muted-3);
  border-radius: 50%;
}

/* ============================================================
   Feature blocks (split: text + visual)
   ============================================================ */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.feature-block--reversed .feature-block__copy { order: 2; }
.feature-block--reversed .feature-block__visual { order: 1; }

.feature-block__copy h3 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.feature-block__copy p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.section--dark .feature-block__copy p {
  color: var(--muted-on-dark);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.section--dark .feature-list li { color: var(--ink-on-dark); }

.feature-list__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.section--dark .feature-list__check { background: var(--ink-on-dark); }

.feature-list__check svg { width: 10px; height: 10px; }
.feature-list__check svg path {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.section--dark .feature-list__check svg path { stroke: var(--bg-dark); }

@media (max-width: 860px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-block--reversed .feature-block__copy { order: 1; }
  .feature-block--reversed .feature-block__visual { order: 2; }
}

/* ============================================================
   Editor demo (markdown live)
   ============================================================ */
.demo-frame {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.section--dark .demo-frame {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark-strong);
  box-shadow: var(--shadow-on-dark);
}

.demo-frame__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.section--dark .demo-frame__chrome {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: var(--line-on-dark);
}

.demo-frame__chrome__dots {
  display: flex;
  gap: 5px;
}
.demo-frame__chrome__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted-3);
}

.section--dark .demo-frame__chrome__dots span {
  background: rgba(255, 255, 255, 0.18);
}

.demo-frame__title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.section--dark .demo-frame__title { color: var(--muted-on-dark); }

/* Live markdown demo */
.md-demo {
  padding: 40px 56px 72px;
  font-family: var(--sans);
  position: relative;
}

.md-demo > * + * { margin-top: 14px; }
.md-demo h1.md-h1 { margin-bottom: 4px; }
.md-demo h1.md-h1 + p { margin-top: 18px; }
.md-demo blockquote.md-quote { margin: 22px 0 22px; }
.md-demo blockquote.md-quote + p { margin-top: 22px; }

.md-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 28px;
}

.md-line__src {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted-2);
  display: inline-block;
  width: 22px;
  flex-shrink: 0;
}

.section--dark .md-line__src { color: var(--muted-on-dark-2); }

.md-line__rendered { flex: 1; }

.md-h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
}
.section--dark .md-h1 { color: var(--ink-on-dark); }

.md-h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.section--dark .md-h2 { color: var(--ink-on-dark); }

.md-p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.section--dark .md-p { color: var(--muted-on-dark); }

.md-bold { font-weight: 700; color: var(--ink); }
.section--dark .md-bold { color: var(--ink-on-dark); }

.md-italic { font-style: italic; }

.md-code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}

.section--dark .md-code {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-on-dark);
  color: var(--ink-on-dark);
}

.md-quote {
  border-left: 3px solid var(--ink);
  padding-left: 14px;
  font-style: italic;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.section--dark .md-quote {
  border-left-color: var(--ink-on-dark);
  color: var(--muted-on-dark);
}

.md-task {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.md-task__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.section--dark .md-task__box { border-color: var(--muted-on-dark); }

.md-task__box--checked { background: var(--ink); border-color: var(--ink); }
.section--dark .md-task__box--checked { background: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.md-task__box--checked svg { width: 10px; height: 10px; }
.md-task__box--checked svg path {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.section--dark .md-task__box--checked svg path { stroke: var(--bg-dark); }

.md-task--done { color: var(--muted); text-decoration: line-through; }
.section--dark .md-task--done { color: var(--muted-on-dark-2); }

.md-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--ink);
  vertical-align: -0.18em;
  margin-left: 1px;
  animation: blink 1.05s step-end infinite;
}
.section--dark .md-blink { background: var(--ink-on-dark); }

/* Slash command menu */
.slash-anchor { position: relative; }

.slash-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 250px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  padding: 6px;
  z-index: 5;
  text-align: left;
}

.slash-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
}

.slash-menu__item--active { background: var(--bg-soft); }

.slash-menu__ico {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
}
.slash-menu__ico svg { width: 15px; height: 15px; }

.slash-menu__label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.slash-menu__label b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.slash-menu__label i {
  font-size: 11.5px;
  font-style: normal;
  color: var(--muted);
}

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

/* ============================================================
   Workspace tree demo
   ============================================================ */
.tree-demo {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 420px;
}

.section--dark .tree-demo {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark-strong);
  box-shadow: var(--shadow-on-dark);
}

.tree-demo__sidebar {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.section--dark .tree-demo__sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right-color: var(--line-on-dark);
}

.tree-demo__title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section--dark .tree-demo__title { color: var(--muted-on-dark); }

.tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.section--dark .tree-row { color: var(--muted-on-dark); }

.tree-row:hover { background: rgba(10, 10, 10, 0.04); }
.section--dark .tree-row:hover { background: rgba(255, 255, 255, 0.04); }

.tree-row--active {
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 500;
}
.section--dark .tree-row--active {
  background: var(--ink-on-dark) !important;
  color: var(--bg-dark) !important;
}

.tree-row__caret {
  font-size: 9px;
  color: var(--muted);
  width: 10px;
  display: inline-flex;
  justify-content: center;
}
.tree-row--active .tree-row__caret { color: rgba(255, 255, 255, 0.7); }
.section--dark .tree-row--active .tree-row__caret { color: rgba(10, 10, 10, 0.6); }

.tree-row__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}

.tree-indent-1 { padding-left: 24px; }
.tree-indent-2 { padding-left: 40px; }
.tree-indent-3 { padding-left: 56px; }

.tree-demo__doc {
  padding: 28px 36px;
}

.tree-demo__doc h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.section--dark .tree-demo__doc h2 { color: var(--ink-on-dark); }

.tree-demo__doc__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.section--dark .tree-demo__doc__meta { color: var(--muted-on-dark); }

.tree-demo__doc p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.section--dark .tree-demo__doc p { color: var(--muted-on-dark); }

@media (max-width: 720px) {
  .tree-demo {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tree-demo__sidebar { border-right: none; }
  /* On mobile the doc preview is dropped — the tree is the story here */
  .tree-demo__doc { display: none; }
}

/* ============================================================
   Capability grid (built features)
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section--dark .cap-grid {
  background: var(--line-on-dark);
  border-color: var(--line-on-dark);
}

.cap {
  background: #fff;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.18s ease;
}
.cap:hover { background: var(--bg-soft); }

.section--dark .cap { background: var(--bg-dark); }
.section--dark .cap:hover { background: var(--bg-dark-soft); }

.cap__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.section--dark .cap__icon { background: var(--ink-on-dark); }

.cap__icon svg { width: 16px; height: 16px; }
.cap__icon svg path,
.cap__icon svg circle,
.cap__icon svg rect,
.cap__icon svg line {
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.section--dark .cap__icon svg path,
.section--dark .cap__icon svg circle,
.section--dark .cap__icon svg rect,
.section--dark .cap__icon svg line {
  stroke: var(--bg-dark);
}

.cap h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section--dark .cap h4 { color: var(--ink-on-dark); }

.cap p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.section--dark .cap p { color: var(--muted-on-dark); }

@media (max-width: 860px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.roadmap__col {
  background: var(--bg-dark-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}

.roadmap__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-on-dark);
}

.roadmap__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-on-dark);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.roadmap__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-on-dark);
  letter-spacing: -0.015em;
}

.roadmap ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.roadmap li {
  font-size: 14px;
  color: var(--muted-on-dark);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.roadmap li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--muted-on-dark-2);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

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

/* ============================================================
   Pricing — two-plan grid
   ============================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 4vw, 48px) clamp(28px, 3.5vw, 40px);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.plan--pro {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.plan__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(347 77% 50% / 0.18);
  color: hsl(347 90% 78%);
  border: 1px solid hsl(347 77% 50% / 0.38);
}

.plan__name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.plan--pro .plan__name { color: rgba(255, 255, 255, 0.6); }

.plan__amount {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
  line-height: 1;
}

.plan__currency {
  font-size: 24px;
  font-weight: 600;
  margin-top: 12px;
  color: var(--ink-2);
}

.plan--pro .plan__currency { color: rgba(255, 255, 255, 0.7); }

.plan__num {
  font-family: var(--sans);
  font-size: clamp(60px, 7.5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.plan--pro .plan__num { color: #fff; }

.plan__unit {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.plan--pro .plan__unit { color: rgba(255, 255, 255, 0.6); }

.plan__features {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 32px;
  flex: 1;
}

.plan__features li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.plan--pro .plan__features li { color: rgba(255, 255, 255, 0.86); }

.plan__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.plan__check svg { width: 16px; height: 16px; }
.plan__check svg path {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.plan--pro .plan__check svg path { stroke: #fff; }

.plan__cta { width: 100%; }

.plan--pro .btn--primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06) inset,
    0 8px 22px -8px rgba(0, 0, 0, 0.55);
}
.plan--pro .btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

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

/* ============================================================
   Pricing (legacy single card — kept for compatibility)
   ============================================================ */
.pricing {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 48px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.pricing__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.pricing__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.pricing__amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
  line-height: 1;
}

.pricing__currency {
  font-size: 32px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink-2);
}

.pricing__num {
  font-size: clamp(72px, 9vw, 96px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.pricing__unit {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.pricing__features {
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 340px;
  margin: 0 auto 32px;
}

.pricing__features li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.pricing__features__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.pricing__features__check svg { width: 16px; height: 16px; }
.pricing__features__check svg path {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

/* Footer wordmark is plain black — the red is reserved for the nav */
footer .wordmark { color: var(--ink); }

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__copy a:hover { color: var(--ink); }

.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a:hover { color: var(--ink); }

@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   AI / MCP — agent chat mockup
   ============================================================ */
.agent-frame {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.section--dark .agent-frame {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark-strong);
  box-shadow: var(--shadow-on-dark);
}

.agent-chat {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.agent-msg { display: flex; gap: 10px; align-items: flex-start; }

.agent-msg__role {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.agent-msg__role--user {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.section--dark .agent-msg__role {
  background: rgba(255,255,255,0.04);
  color: var(--muted-on-dark);
  border-color: var(--line-on-dark);
}
.section--dark .agent-msg__role--user {
  background: var(--ink-on-dark);
  color: var(--bg-dark);
  border-color: var(--ink-on-dark);
}

.agent-msg__body { color: var(--ink-2); flex: 1; }
.section--dark .agent-msg__body { color: var(--muted-on-dark); }

.agent-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  padding: 3px 0;
  flex-wrap: wrap;
}
.section--dark .agent-tool { color: var(--ink-on-dark); }

.agent-tool__arrow { color: var(--muted); font-weight: 600; }
.section--dark .agent-tool__arrow { color: var(--muted-on-dark); }

.agent-tool__name {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section--dark .agent-tool__name {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-on-dark);
}

.agent-tool__args { color: var(--muted); font-size: 12px; }
.section--dark .agent-tool__args { color: var(--muted-on-dark); }

/* ============================================================
   Code block (for MCP config)
   ============================================================ */
.code-block {
  background: var(--bg-dark);
  color: #e9e9e9;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line-on-dark);
  margin-bottom: 0;
}
.section--dark .code-block {
  background: rgba(0,0,0,0.45);
}

.code-block__line { display: block; white-space: pre; }
.code-key { color: #cfcfcf; }
.code-string { color: #9ad4a9; }
.code-punct { color: #777; }
.code-comment { color: #707070; font-style: italic; }

/* ============================================================
   Agents split (two cards side-by-side)
   ============================================================ */
.agents-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 5vw, 60px);
}
@media (max-width: 860px) {
  .agents-split { grid-template-columns: 1fr; }
}

.agents-split--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

/* ============================================================
   Tool grid (Read / Write / Organise)
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.tool-column {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.section--dark .tool-column {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark-strong);
  box-shadow: var(--shadow-on-dark);
}

.tool-column__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section--dark .tool-column__head { border-bottom-color: var(--line-on-dark); }

.tool-column__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.section--dark .tool-column__num {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-on-dark);
  color: var(--muted-on-dark);
}

.tool-column__idx {
  color: var(--brand);
  font-weight: 700;
}

.tool-column__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section--dark .tool-column__title { color: var(--ink-on-dark); }

.tool-list { list-style: none; display: grid; gap: 14px; }

.tool-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tool-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.section--dark .tool-name { color: var(--ink-on-dark); }

.tool-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.section--dark .tool-desc { color: var(--muted-on-dark); }

/* ============================================================
   Client strip (supported MCP clients)
   ============================================================ */
.client-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 48px);
}
.section--dark .client-strip {
  background: var(--line-on-dark);
  border-color: var(--line-on-dark);
}

.client-item {
  background: #fff;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section--dark .client-item { background: var(--bg-dark); }

.client-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section--dark .client-item__name { color: var(--ink-on-dark); }

.client-item__type {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section--dark .client-item__type { color: var(--muted-on-dark); }

@media (max-width: 720px) {
  .client-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Metadata pills
   ============================================================ */
.meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.section--dark .meta-pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-on-dark);
  color: var(--muted-on-dark);
}
.meta-pill__k { color: var(--muted); }
.section--dark .meta-pill__k { color: var(--muted-on-dark-2); }
.meta-pill__v { color: var(--ink); font-weight: 600; }
.section--dark .meta-pill__v { color: var(--ink-on-dark); }

/* ============================================================
   Wikilink (cross-doc) — appears inside mock docs
   ============================================================ */
.wikilink {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px dashed var(--muted-2);
  padding-bottom: 1px;
}
.section--dark .wikilink {
  color: var(--ink-on-dark);
  border-bottom-color: var(--muted-on-dark-2);
}
.wikilink::before {
  content: "↗";
  font-size: 0.8em;
  margin-right: 2px;
  color: var(--muted);
}
.section--dark .wikilink::before { color: var(--muted-on-dark); }

/* ============================================================
   Reload toast — used inside doc mockups for live AI writes
   ============================================================ */
.reload-toast {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -4px rgba(10,10,10,0.4);
  animation: reloadPulse 4s ease-in-out infinite;
}
.reload-toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fffa8;
  box-shadow: 0 0 0 0 rgba(111,255,168,0.6);
  animation: saveGlow 1.6s ease-in-out infinite;
}
.section--dark .reload-toast {
  background: var(--ink-on-dark);
  color: var(--bg-dark);
}
.section--dark .reload-toast::before { background: #0f9b3f; }

@keyframes reloadPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-2px); opacity: 0.94; }
}

/* ============================================================
   Bot avatar variant
   ============================================================ */
.avatar--bot {
  background: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%);
  position: relative;
  font-size: 11px;
}
.avatar--bot::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fffa8;
  border: 2px solid #fff;
}

/* ============================================================
   AI activity chip (in mockup chrome)
   ============================================================ */
.activity-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.activity-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a8a3f;
  animation: saveGlow 1.6s ease-in-out infinite;
}
.activity-chip strong {
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title__line,
  .hero__sub,
  .hero__cta,
  .hero__pill,
  .mockup-wrap,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Mobile tweaks
   ============================================================ */
@media (max-width: 760px) {
  /* ----- Hero mockup: slim workspace drawer beside a readable doc ----- */
  .mockup { max-width: 460px; }
  .mockup__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    min-height: 0;
  }
  .mock-sidebar {
    padding: 14px 10px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .mock-sidebar::-webkit-scrollbar { display: none; }
  .mock-sidebar__group { margin-bottom: 6px; }
  .mock-sidebar__brand { padding: 2px 6px 10px; margin-bottom: 10px; }
  .mock-sidebar__search { font-size: 11.5px; padding: 7px 8px; }
  .mock-sidebar__item { padding-left: 18px; font-size: 12.5px; }
  /* Compact the doc pane so the heading and diagram both read at this width */
  .mockup__menu { display: inline-flex; }
  .mock-doc { padding: 18px 16px 20px; }
  .mock-doc h1 { font-size: 17px; margin-bottom: 6px; }
  .mock-doc__meta { margin-bottom: 14px; }
  .mock-doc p { font-size: 12px; margin-bottom: 10px; }
  .mock-doc h2 { font-size: 14px; margin: 14px 0 8px; }
  .mermaid-block__bar { padding: 5px 9px; font-size: 10px; }
  .mermaid-block__canvas { padding: 12px 10px; }
  .mock-cursor { display: none; }
  .reload-toast { bottom: 10px; right: 10px; font-size: 10px; padding: 5px 9px 5px 8px; }
  .mockup__breadcrumb { font-size: 12px; }
  .mockup__breadcrumb > span:not(.mockup__current):not(.mockup__sep) { display: none; }
  .mockup__breadcrumb > .mockup__sep { display: none; }
  .mockup__save { display: none; }
  .mockup__avatars { display: none; }

  /* ----- Editor demo: keep the slash menu fully inside the frame ----- */
  .md-demo { padding: 24px 22px 130px; }
  .md-slash-line { position: relative; }
  .slash-anchor { position: static; }
  .slash-menu {
    left: 0;
    right: 0;
    width: auto;
    top: calc(100% + 6px);
  }

  /* ----- MCP agent chat -----
     Stack the role label above the message so the body gets the full frame
     width — the tool args then sit on a single line instead of wrapping the
     braces (e.g. query_docs { status: "draft", topic: "auth" }). */
  .agent-chat { padding: 18px 16px 22px; gap: 16px; }
  .agent-msg { flex-direction: column; gap: 7px; }
  .agent-msg__role { align-self: flex-start; }
  .agent-tool__args {
    flex-basis: 100%;
    margin-left: 24px;
  }

  .tree-demo__doc { padding: 20px 22px; }
}

/* ============================================================
   Connect page — steps
   ============================================================ */
.steps {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  max-width: 880px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: hsl(347 77% 50% / 0.10);
  border: 1px solid hsl(347 77% 50% / 0.28);
  letter-spacing: 0;
}
.section--dark .step__num {
  background: hsl(347 77% 50% / 0.14);
  border-color: hsl(347 77% 50% / 0.36);
}

.step__title {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.section--dark .step__title { color: var(--ink-on-dark); }

.step__body {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.section--dark .step__body { color: var(--muted-on-dark); }

.step__inline-code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.section--dark .step__inline-code {
  background: rgba(255,255,255,0.06);
  border-color: var(--line-on-dark);
  color: var(--ink-on-dark);
}

/* ============================================================
   Client configs (stacked frames per client)
   ============================================================ */
.client-configs {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
}

.config-card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
@media (max-width: 560px) {
  .config-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.section--dark .config-card__head {
  background: rgba(255,255,255,0.02);
  border-bottom-color: var(--line-on-dark);
}

.config-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section--dark .config-card__name { color: var(--ink-on-dark); }

.config-card__hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.section--dark .config-card__hint { color: var(--muted-on-dark); }

.config-card__body {
  padding: 0;
}

.config-card__body .code-block {
  border: 0;
  border-radius: 0;
  margin: 0;
}

/* ============================================================
   Reference rows (flat tool list, 2-col)
   ============================================================ */
.reference {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.section--dark .reference {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark);
  box-shadow: var(--shadow-on-dark);
}

.reference__group {
  border-bottom: 1px solid var(--line);
}
.reference__group:last-child { border-bottom: 0; }
.section--dark .reference__group { border-bottom-color: var(--line-on-dark); }

.reference__group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.section--dark .reference__group-head {
  background: rgba(255,255,255,0.02);
  border-bottom-color: var(--line-on-dark);
}

.reference__group-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.section--dark .reference__group-num {
  background: var(--bg-dark);
  border-color: var(--line-on-dark);
  color: var(--muted-on-dark);
}
.reference__group-num strong { color: var(--brand); font-weight: 700; }

.reference__group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.section--dark .reference__group-title { color: var(--ink-on-dark); }

.reference__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.reference__group .reference__row:first-of-type { border-top: 0; }
.section--dark .reference__row { border-top-color: var(--line-on-dark); }

.reference__name {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.section--dark .reference__name { color: var(--ink-on-dark); }

.reference__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.section--dark .reference__desc { color: var(--muted-on-dark); }

@media (max-width: 720px) {
  .reference__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ============================================================
   Notes blocks (content format / metadata / etc.)
   ============================================================ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 32px);
}
@media (max-width: 720px) {
  .notes-grid { grid-template-columns: 1fr; }
}

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px 28px;
}
.section--dark .note-card {
  background: var(--bg-dark-soft);
  border-color: var(--line-on-dark);
}

.note-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.section--dark .note-card h4 { color: var(--ink-on-dark); }

.note-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}
.section--dark .note-card p { color: var(--muted-on-dark); }

.note-card code,
.note-card .step__inline-code {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ============================================================
   Docs layout — used on connect.html
   Compact, reference-style. Subdued vs marketing pages.
   ============================================================ */
.docs {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad) clamp(80px, 10vw, 120px);
}

.docs__header {
  margin-bottom: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.docs__crumb {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.docs__title {
  font-family: var(--sans);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.docs__lede {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
}

.docs__section {
  margin-top: clamp(48px, 6vw, 72px);
}

.docs__section:first-of-type { margin-top: 0; }

.docs__h2 {
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}

.docs__intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: clamp(24px, 3vw, 32px);
  max-width: 640px;
}

/* Compact step layout for docs */
.docs .steps { max-width: none; }
.docs .step__title { font-size: 18px; }
.docs .step__body { font-size: 14.5px; }

.docs__inline-link {
  color: var(--brand);
  border-bottom: 1px solid hsl(347 77% 50% / 0.3);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
.docs__inline-link:hover { border-bottom-color: var(--brand); }

/* Long mono strings (file paths, identifiers) wrap instead of forcing
   horizontal overflow on narrow screens. Only breaks when it has to. */
.step__inline-code,
.md-code,
.config-card__hint,
.reference__name,
.reference__desc code {
  overflow-wrap: anywhere;
}

/* Grid cells must be allowed to shrink below their content's intrinsic width */
.notes-grid > *,
.note-card,
.reference__row {
  min-width: 0;
}
