:root {
  --page: #f4f4f4;
  --paper: #fffaf5;
  --paper-2: #f9f1e9;
  --ink: #2a2520;
  --ink-soft: #756a61;
  --muted: #9c9188;
  --line: #e2d8cf;
  --line-strong: #d0c2b8;
  --orange: #e97926;
  --orange-deep: #d56215;
  --orange-soft: #f6d0b2;
  --dark: #151515;
  --dark-2: #252525;
  --radius: 10px;
  --shadow: 0 14px 34px rgba(63, 43, 28, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --page: #101010;
  --paper: #211c18;
  --paper-2: #27201b;
  --ink: #fbf5ee;
  --ink-soft: #c9bdb2;
  --muted: #a8998d;
  --line: #3d332d;
  --line-strong: #57483e;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .28s ease, color .28s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-deep); }
code, pre, kbd { font-family: var(--mono); }

.shell {
  width: min(100% - 34px, 1060px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  transition: background-color .28s ease, border-color .28s ease;
}

.header-inner {
  width: min(100% - 48px, 1420px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5b5933;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-mark,
.mini-logo,
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark { width: 18px; height: 18px; }
.brand .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(180deg, #f3933f, #d96114);
}

.brand-name {
  margin-left: 2px;
}

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

[data-theme="dark"] .brand {
  color: #e9e0d4;
}
.mini-logo { width: 24px; height: 24px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; }
.mini-logo.muted { background: #c9bdb2; color: #5a514a; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger,
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  height: 36px;
  padding: 0 8px 0 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  color: #777;
  font-size: 13px;
  text-align: left;
}

.search-trigger kbd {
  min-width: 20px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  font-size: 11px;
  color: var(--muted);
  padding: 0 5px;
}

.search-trigger span:not(.search-icon) {
  margin-right: auto;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: .82;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.theme-toggle {
  min-width: 44px;
  width: 44px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fdf1df, #f7e7cf);
  font-size: 0;
  font-family: var(--mono);
  position: relative;
  transition: background .45s ease, border-color .45s ease;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(180deg, #20202a, #14141b);
  border-color: #3a3a44;
}

/* Invisible hit-area expansion: keeps the compact 44x24 visual while
   giving touch input a ~60x40 target. */
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -8px;
}

/* Sliding knob: a sun in light mode that glides across and
   morphs into a crescent moon in dark mode. */
.theme-icon-dark {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4a72b;
  box-shadow: 0 0 5px rgba(244, 167, 43, .5);
  color: transparent;
  transition:
    transform .5s cubic-bezier(.34, 1.45, .55, 1),
    background .4s ease,
    box-shadow .4s ease;
}

/* Sun rays — eight dots radiating just outside the disc (on-brand dither look) */
.theme-icon-dark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6px;
  height: 1.6px;
  margin: -0.8px;
  border-radius: 50%;
  background: #f4a72b;
  box-shadow:
    0 -10px 0 #f4a72b, 0 10px 0 #f4a72b,
    -10px 0 0 #f4a72b, 10px 0 0 #f4a72b,
    -7px -7px 0 #f4a72b, 7px 7px 0 #f4a72b,
    7px -7px 0 #f4a72b, -7px 7px 0 #f4a72b;
  opacity: 1;
  transition: opacity .3s ease, transform .5s ease;
}

/* Crescent "bite" — hidden until dark, then scales in over the moon */
.theme-icon-dark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #14141b;
  transform: scale(0);
  transition: transform .45s cubic-bezier(.34, 1.45, .55, 1);
}

[data-theme="dark"] .theme-icon-dark {
  transform: translateX(20px);
  background: #e9e7df;
  box-shadow: 0 0 6px rgba(233, 231, 223, .4);
}

[data-theme="dark"] .theme-icon-dark::before {
  opacity: 0;
  transform: scale(.3) rotate(40deg);
}

[data-theme="dark"] .theme-icon-dark::after {
  transform: scale(1);
}

.github-pill {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #65602f;
}

.github-pill svg {
  width: 19px;
  height: 19px;
  display: block;
}

[data-theme="dark"] .github-pill {
  color: #f0efe9;
}

.hero {
  position: relative;
  /* fill the first screen: only the panel + featured strip are
     visible above the fold (header is the 60px sticky bar) */
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--page);
  border-bottom: 0;
  padding: 14px 0 20px;
}

/* Animated dithered-wave canvas (rendered by dither.js) */
.hero-dither {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
}

/* Readability scrim above the waves so the headline stays legible */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    #fbf8f3 0 24%,
    rgba(251, 248, 243, .86) 40%,
    rgba(251, 248, 243, .32) 60%,
    rgba(251, 248, 243, 0) 78%);
  opacity: 1;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  transition: background .34s ease, opacity .34s ease;
  isolation: isolate;
}

.hero-field::before,
.hero-field::after {
  content: none; /* old CSS sphere + grain replaced by the dither canvas */
}

.hero-field::before {
  inset: -90px;
  z-index: 1;
  background:
    radial-gradient(circle, rgba(221, 118, 39, .38) 1.05px, transparent 1.28px),
    radial-gradient(circle, rgba(198, 187, 88, .26) 1px, transparent 1.3px);
  background-position: 0 0, 3px 3px;
  background-size: 5px 5px, 8px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, .08) 25%, rgba(0, 0, 0, .72) 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, .08) 25%, rgba(0, 0, 0, .72) 40%, #000 100%);
  mix-blend-mode: multiply;
  opacity: .82;
  transform: translate3d(0, 0, 0);
  animation: heroGrain 16s steps(4, end) infinite;
}

.hero-field::after {
  z-index: 2;
  top: -7%;
  right: -1%;
  width: min(576px, 42vw);
  aspect-ratio: 1;
  /* Halftone sun: soft fill disc + crisp dot-matrix grid on top */
  background:
    radial-gradient(circle, #f97d1f 1.55px, transparent 1.95px),
    radial-gradient(circle at 50% 50%, rgba(249, 125, 31, .42) 0, rgba(249, 125, 31, .14) 48%, transparent 68%);
  background-size: 6px 6px, 100% 100%;
  background-position: 0 0, 0 0;
  border-radius: 50%;
  opacity: .98;
  /* denser/solid toward centre, dithering out at the rim */
  -webkit-mask-image: radial-gradient(circle, #000 0 34%, rgba(0,0,0,.9) 50%, rgba(0,0,0,.5) 63%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0 34%, rgba(0,0,0,.9) 50%, rgba(0,0,0,.5) 63%, transparent 70%);
  filter: saturate(1.08);
  animation: heroSphereIn .42s ease-out both, heroSphereDrift 18s ease-in-out infinite;
}

[data-theme="dark"] .hero-field {
  background: linear-gradient(90deg,
    #171713 0 24%,
    rgba(23, 23, 19, .84) 42%,
    rgba(23, 23, 19, .30) 62%,
    rgba(23, 23, 19, 0) 80%);
}

[data-theme="dark"] .hero-field::before {
  background:
    radial-gradient(circle, rgba(223, 63, 0, .46) 1.05px, transparent 1.28px),
    radial-gradient(circle, rgba(198, 187, 88, .18) 1px, transparent 1.3px);
  mix-blend-mode: screen;
  opacity: .78;
}

[data-theme="dark"] .hero-field::after {
  background-image:
    radial-gradient(circle, #ff5410 1.6px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(223, 63, 0, .5) 0, rgba(223, 63, 0, .16) 50%, transparent 70%);
  opacity: .95;
}

.hero-inner {
  position: relative;
  width: min(100% - 154px, 1420px);
  min-height: 452px;
  flex: 1 1 auto;       /* grow to fill the hero / first screen */
  display: block;
  padding: 1px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(225, 213, 204, .9);
  background: #fbf8f3;
  transition: background .34s ease, border-color .34s ease;
}

[data-theme="dark"] .hero-inner {
  border-color: rgba(74, 61, 52, .9);
  background: #171713;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, 64%);
  padding: 60px 0 0 48px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(52px, 3.9vw, 70px);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 500;
  color: #5f6034;
  transition: color .34s ease;
}

[data-theme="dark"] .hero h1 { color: #f3ded0; }

.hero h1 span {
  color: var(--orange);
}

.hero p {
  max-width: 480px;
  margin: 36px 0 34px;
  color: #5e554d;
  font-size: 20px;
  line-height: 1.35;
  transition: color .34s ease;
}

[data-theme="dark"] .hero p { color: var(--ink-soft); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(233, 121, 38, .28);
}

.btn-primary::after {
  content: "";
  width: 4px;
  height: 14px;
  margin-left: 8px;
  background: #fff;
  display: inline-block;
  animation: caretBlink 1.06s steps(1, end) infinite;
}

.btn-primary:hover {
  color: #fff;
  background: var(--orange-deep);
}

.btn-ghost {
  color: var(--ink-soft);
  background: rgba(234,234,234,.92);
  border-color: rgba(210,210,210,.72);
  color: #232323;
}

[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: var(--line);
  color: #f4f1ec;
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* ---- CardSwap: tilted, cycling terminal-card stack ---- */
.card-swap {
  position: absolute;
  z-index: 3;
  right: 0;
  /* pushed just below the panel so the front card bleeds past the
     bottom edge (clipped by the panel) and connects flush despite
     the skew tilt */
  bottom: -28px;
  width: 500px;
  height: 320px;
  transform-origin: bottom right;
  perspective: 1200px;
}

.swap-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid #2c333d;
  background: #0d1117;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  overflow: hidden;
  /* JS positions each card; this is the pre-hydration fallback */
  transform: translate(-50%, -50%);
}

.swap-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  background: #161b22;
  border-bottom: 1px solid #2c333d;
}

.swap-card__bar .d { width: 10px; height: 10px; border-radius: 50%; }
.swap-card__bar .d.r { background: #ff5f56; }
.swap-card__bar .d.y { background: #ffbd2e; }
.swap-card__bar .d.g { background: #27c93f; }
.swap-card__bar em {
  margin-left: auto;
  font-family: var(--serif);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  color: #f3ded0;
}

.swap-card__body {
  padding: 15px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.58;
  font-weight: 800;
  color: #f3ded0;
}

.swap-card__body p { margin: 0; white-space: nowrap; }
.swap-card__body .c { color: var(--orange); }      /* command / prompt */
.swap-card__body .ok { color: #56d364; }            /* success line */
.swap-card__body .dim { color: #768491; }           /* secondary / comment */
.swap-card__body .key { color: #79c0ff; }           /* keys / identifiers */
.swap-card__body .tag {
  font-style: normal;
  color: #ffbd2e;
  border: 1px solid #3a3320;
  background: rgba(255, 189, 46, .1);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
  font-size: 11px;
}

.swap-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  color: #768491;
  font-size: 11.5px;
}
.swap-progress span {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #21262d;
  overflow: hidden;
}
.swap-progress i {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: 4px;
  background: var(--orange);
}

/* Light-mode terminal cards (dark stays as the base above for dark mode).
   Traffic-light dots stay colored in both themes. */
[data-theme="light"] .swap-card {
  border-color: var(--line);
  background: #fdf8f1;
  box-shadow: 0 20px 48px rgba(80, 55, 30, .18);
}
[data-theme="light"] .swap-card__bar {
  background: #f3ebe0;
  border-bottom-color: var(--line);
}
[data-theme="light"] .swap-card__bar em { color: #5f6034; }
[data-theme="light"] .swap-card__body { color: #5e554d; }
[data-theme="light"] .swap-card__body .c { color: #c25e15; }
[data-theme="light"] .swap-card__body .ok { color: #1a7f37; }
[data-theme="light"] .swap-card__body .dim { color: #9c9188; }
[data-theme="light"] .swap-card__body .key { color: #0a63c9; }
[data-theme="light"] .swap-card__body .tag {
  color: #946400;
  border-color: #e6d3a0;
  background: rgba(214, 160, 30, .14);
}
[data-theme="light"] .swap-progress { color: #9c9188; }
[data-theme="light"] .swap-progress span { background: #e7ddd0; }

/* "Featured workflow" strip — now sits inside the hero section,
   below the animation panel */
.featured-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 26px auto 4px;
}

.featured-inner span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.featured-inner ul,
.stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.featured-inner ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.featured-inner li {
  color: #8a817a;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.quote-band {
  padding: 18px 0 46px;
  background: var(--paper);
  text-align: center;
}

.quote-dots {
  display: inline-flex;
  gap: 12px;
  margin: 0 0 38px;
}

.quote-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8bdb3;
}

.quote-band blockquote,
.pull-quote p {
  margin: 0 auto;
  max-width: 680px;
  font-family: var(--serif);
  color: #776554;
  font-size: clamp(24px, 4vw, 38px);
  font-style: italic;
  line-height: 1.16;
}

.quote-band cite {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.what,
.roles,
.faq {
  padding: 62px 0;
  background: color-mix(in srgb, var(--page) 80%, #fff 20%);
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 28px;
  text-align: center;
  color: #5f6034;
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 500;
}

.section-kicker em {
  font-style: italic;
  color: var(--orange);
}

/* "What is EduOrchestrate?" describe card — terminal style,
   matching the hero terminal cards */
.describe-card {
  max-width: 840px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.describe-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.describe-bar .d {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.describe-bar code {
  margin-left: 10px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  color: #5f6034;
  background: none;
  border: 0;
  padding: 0;
}

.describe-body {
  padding: 30px 36px;
}

.describe-body p {
  margin: 0;
  color: #5e554d;
  font-size: 17px;
  line-height: 1.42;
}

[data-theme="dark"] .describe-bar code,
[data-theme="dark"] .browser-bar code {
  color: #f3ded0;
}

[data-theme="dark"] .describe-body p,
[data-theme="dark"] .demo-browser pre {
  color: var(--ink-soft);
}

.describe-body strong { color: var(--ink); font-weight: 600; }
.describe-body .hl { color: var(--orange); }

.describe-meta {
  margin-top: 22px !important;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.describe-meta span { color: var(--orange); }

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7d7c8;
}

.browser-bar code {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.feature-card code,
.faq code,
.stats code {
  color: var(--orange-deep);
  background: rgba(233, 121, 38, .08);
  border-radius: 5px;
  padding: .05em .35em;
}

.command-center {
  padding: 62px 0 50px;
  background: var(--paper);
  text-align: center;
}

.try-label {
  margin: 26px 0 0;
  color: var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

.command-center h2,
.stats h2,
.compare h2,
.faq h2,
.cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: 0;
  color: #5f6034;
}

[data-theme="dark"] .section-kicker,
[data-theme="dark"] .command-center h2,
[data-theme="dark"] .stats h2,
[data-theme="dark"] .compare h2,
[data-theme="dark"] .faq h2,
[data-theme="dark"] .cta h2 {
  color: #f3ded0;
}

.install-row {
  display: inline-flex;
  margin: 14px 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(72, 46, 24, .08);
}

.install-row code {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.install-row code::before {
  content: "$ ";
  color: var(--orange);
}

.copy-btn,
.signup button {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn {
  padding: 0 15px;
  font-size: 12px;
}

.copy-btn.copied {
  background: var(--dark);
}

.demo-card {
  max-width: 930px;
  margin: 20px auto 0;
  padding: 18px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.35), transparent 16%),
    radial-gradient(circle, rgba(142, 74, 24, .45) 1.1px, transparent 1.5px),
    #8d4d24;
  background-size: auto, 7px 7px, auto;
  box-shadow: var(--shadow);
}

.demo-browser {
  max-width: 840px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  background: var(--line-strong);
}

.browser-bar code {
  margin-left: 10px;
  color: #5f6034;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
}

.demo-browser pre {
  margin: 0;
  min-height: 214px;
  padding: 30px 36px 8px;
  color: #5e554d;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.8;
  white-space: pre-wrap;
}

.demo-browser pre code {
  display: block;
  font-weight: 800;
}

.demo-browser pre span,
.demo-browser .typing-prompt {
  color: var(--orange);
  font-weight: 900;
}

.demo-browser .typing-line {
  display: block;
  min-height: 1.9em;
  color: var(--ink);
  font-weight: 800;
  white-space: pre-wrap;
  opacity: 0;
  transform: translate3d(0, 9px, 0);
  transition:
    opacity .24s ease,
    transform .48s cubic-bezier(.18, 1.34, .28, 1);
}

.demo-browser .typing-line.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.demo-browser .typing-line.is-active {
  animation: demoLineSettle .42s cubic-bezier(.18, 1.34, .28, 1) both;
}

.demo-browser .typing-line.is-done .typing-command {
  animation: demoLineCommit .34s ease-out both;
}

.demo-browser .typing-command {
  color: var(--ink);
  font-weight: 800;
}

.demo-browser .typing-caret {
  display: inline-block;
  width: 7px;
  height: 1.12em;
  margin-left: 3px;
  background: var(--orange);
  vertical-align: -.18em;
  transform-origin: center bottom;
  animation:
    demoCaretBlink .86s steps(1, end) infinite,
    demoCaretSettle .34s cubic-bezier(.18, 1.34, .28, 1) both;
}

.demo-browser .typing-caret[hidden],
.demo-browser .typing-line.is-done .typing-caret {
  display: none;
}

.demo-card p {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 6px;
  background: #171717;
  color: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.pull-quote {
  padding: 46px 0 34px;
  background: var(--paper);
  text-align: center;
}

.pull-quote span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.feature-stack {
  padding: 56px 0 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-sub {
  margin: -14px auto 34px;
  max-width: 520px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.bento-full {
  grid-column: 1 / -1;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(63, 43, 28, .05);
  overflow: hidden;
  transition: border-color .2s ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--orange) 26%, var(--line));
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.card-kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  color: var(--orange-deep);
  font-weight: 800;
  letter-spacing: 0;
}

.feature-card h3,
.role-grid h3,
.compare-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.feature-stack .feature-card h3 {
  margin: 0 0 12px;
  color: #5f6034;
  font-family: var(--serif);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 500;
}

[data-theme="dark"] .feature-stack .feature-card h3 {
  color: #f3ded0;
}

.feature-card p,
.role-grid p,
.compare p,
.faq p {
  color: var(--ink-soft);
}

.feature-stack .feature-card > p:not(.card-kicker),
.feature-split__copy > p:not(.card-kicker) {
  margin: 0 0 22px;
  max-width: 640px;
  color: #5e554d;
  font-size: 17px;
  line-height: 1.42;
}

[data-theme="dark"] .feature-stack .feature-card > p:not(.card-kicker),
[data-theme="dark"] .feature-split__copy > p:not(.card-kicker) {
  color: var(--ink-soft);
}

/* Agent card keeps the dithered halftone field, themed for dark too */
.agent-card {
  min-height: 250px;
  background:
    radial-gradient(circle at 82% 30%, rgba(226, 192, 58, .35), transparent 26%),
    radial-gradient(circle, rgba(181, 147, 38, .32) 1px, transparent 1.4px),
    linear-gradient(180deg, #fcf8dc, #f7f0bf);
  background-size: auto, 8px 8px, auto;
}

.feature-stack .agent-card h3 { color: #55592c; }
.feature-stack .agent-card > p:not(.card-kicker) { color: #5e5a3c; }
.agent-card .card-kicker { color: #8a8350; }
.agent-card .card-kicker span {
  border-color: rgba(116, 98, 36, .22);
  background: rgba(255, 255, 255, .5);
}

[data-theme="dark"] .agent-card {
  background:
    radial-gradient(circle at 82% 30%, rgba(226, 192, 58, .14), transparent 26%),
    radial-gradient(circle, rgba(181, 147, 38, .2) 1px, transparent 1.4px),
    linear-gradient(180deg, #26241a, #211f15);
  background-size: auto, 8px 8px, auto;
}

[data-theme="dark"] .feature-stack .agent-card h3 { color: #ece4b8; }
[data-theme="dark"] .feature-stack .agent-card > p:not(.card-kicker) { color: #b7b08c; }
[data-theme="dark"] .agent-card .card-kicker { color: #989257; }
[data-theme="dark"] .agent-card .card-kicker span {
  border-color: rgba(226, 192, 58, .22);
  background: rgba(0, 0, 0, .25);
}

.agent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  align-items: center;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(116, 98, 36, .16);
  box-shadow: 0 1px 3px rgba(92, 77, 31, .08);
  color: #6a6132;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: background-color .18s ease;
}

.agent-chip:hover {
  background: rgba(255, 255, 255, .8);
}

.agent-chip img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

[data-theme="dark"] .agent-chip {
  background: rgba(0, 0, 0, .3);
  border-color: rgba(226, 192, 58, .2);
  box-shadow: none;
  color: #cfc89a;
}

[data-theme="dark"] .agent-chip:hover {
  background: rgba(0, 0, 0, .45);
}

/* Inline proof visuals inside the bento cards */
.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 22px;
}

.proof-chips code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
}

.proof-chips b {
  color: #1a7f37;
  font-weight: 800;
}

.proof-chips code:last-child b { color: var(--muted); }

[data-theme="dark"] .proof-chips b { color: #56d364; }
[data-theme="dark"] .proof-chips code:last-child b { color: var(--muted); }

.mail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: auto 0 22px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.mail-cron {
  color: var(--orange-deep);
  font-weight: 700;
}

.mail-step::before {
  content: "▸ ";
  color: var(--muted);
}

.mail-ok {
  margin-left: auto;
  color: #1a7f37;
  font-weight: 700;
}

[data-theme="dark"] .mail-ok { color: #56d364; }

.card-link,
.text-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.card-link:hover,
.text-link:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.card-link i {
  font-style: normal;
  font-family: var(--mono);
}

/* Split card: copy on the left, mini progress terminal on the right */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.feature-split__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mini-term {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fdf8f1;
  box-shadow: 0 3px 10px rgba(80, 55, 30, .07);
  overflow: hidden;
}

.mini-term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  background: #f3ebe0;
  border-bottom: 1px solid var(--line);
}

.mini-term__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mini-term__bar span:nth-child(1) { background: #ff5f56; }
.mini-term__bar span:nth-child(2) { background: #ffbd2e; }
.mini-term__bar span:nth-child(3) { background: #27c93f; }

.mini-term__bar em {
  margin-left: auto;
  font-family: var(--serif);
  font-style: normal;
  font-size: 13px;
  color: #5f6034;
}

.mini-term__body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  color: #5e554d;
}

.mini-term__body p {
  margin: 0;
  white-space: pre;
}

.mini-term__body .key { color: #0a63c9; }
.mini-term__body b { color: #1a7f37; }

.mini-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.mini-progress span {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: #e7ddd0;
  overflow: hidden;
}

.mini-progress i {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: 4px;
  background: var(--orange);
}

[data-theme="dark"] .mini-term {
  border-color: #2c333d;
  background: #0d1117;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

[data-theme="dark"] .mini-term__bar {
  background: #161b22;
  border-bottom-color: #2c333d;
}

[data-theme="dark"] .mini-term__bar em { color: #f3ded0; }
[data-theme="dark"] .mini-term__body { color: #f3ded0; }
[data-theme="dark"] .mini-term__body .key { color: #79c0ff; }
[data-theme="dark"] .mini-term__body b { color: #56d364; }
[data-theme="dark"] .mini-progress span { background: #21262d; }

.stats {
  padding: 58px 0 66px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.stats h2 span {
  color: var(--orange);
}

.stats-lede {
  max-width: 540px;
  margin: 14px auto 30px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* Seamed tile grid: 1px gaps over the line color read as ruled dividers */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(63, 43, 28, .04);
}

.stat-tile {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 26px 16px;
  background: var(--paper);
}

.stat-tile strong {
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.stat-tile span {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .04em;
}

.avatar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 26px 0 12px;
}

.avatar-row span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -5px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: #e97926;
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.avatar-row span:nth-child(2n) { background: #2f2c29; }
.avatar-row span:nth-child(3n) { background: #65b9c3; }

.chart-card {
  max-width: 880px;
  margin: 34px auto 0;
  padding: 20px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(63, 43, 28, .04);
}

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

.chart-card .chart-grid { stroke: var(--line); }
.chart-card .chart-line { stroke: var(--orange); stroke-width: 3; }
.chart-card .chart-dot { fill: var(--orange); r: 5; }
.chart-card .chart-label { fill: var(--muted); }
.chart-card .chart-label-hi { fill: var(--orange-deep); }

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.role-grid article,
.compare-grid article {
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(63, 43, 28, .05);
}

.role-grid article {
  position: relative;
  transition: border-color .2s ease;
}

.role-grid article:hover {
  border-color: color-mix(in srgb, var(--orange) 26%, var(--line));
}

.role-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}


.roles .role-grid h3 {
  margin: 0 0 12px;
  padding-right: 38px;
  color: #5f6034;
  font-family: var(--serif);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 500;
}

[data-theme="dark"] .roles .role-grid h3 {
  color: #f3ded0;
}

.roles .role-grid p {
  color: #5e554d;
  font-size: 17px;
  line-height: 1.42;
}

[data-theme="dark"] .roles .role-grid p {
  color: var(--ink-soft);
}

.role-grid p,
.compare-grid p {
  margin: 0;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.role-tags span {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.roles-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

.compare {
  padding: 58px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.compare-lede {
  max-width: 560px;
  margin: 10px auto 28px;
}

.compare-grid {
  max-width: 820px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.compare-grid article {
  border-radius: 14px;
}

.compare-grid .compare-eo {
  border-color: color-mix(in srgb, var(--orange) 32%, var(--line));
  box-shadow: 0 3px 10px rgba(233, 121, 38, .07);
}

.compare-grid h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #5f6034;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

[data-theme="dark"] .compare-grid h3 {
  color: #f3ded0;
}

.compare-thumb {
  height: 148px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.compare-thumb span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--orange);
  font-family: var(--mono);
  font-weight: 800;
}

.compare-thumb strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 23px;
}

.eo-thumb {
  background:
    radial-gradient(circle at 84% 20%, rgba(233, 121, 38, .42), transparent 36%),
    radial-gradient(circle, rgba(233, 121, 38, .2) 1px, transparent 1.4px),
    #171717;
  background-size: auto, 7px 7px, auto;
}

.eo-thumb strong { color: #fff; }

.lms-thumb {
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), transparent),
    #f7f1ec;
}

.lms-thumb span { background: #c9bdb2; color: #5a514a; }

[data-theme="dark"] .lms-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent),
    #2a241f;
}

[data-theme="dark"] .lms-thumb strong { color: var(--ink-soft); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.check-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.check-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.check-list li::before {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.check-list .yes::before {
  content: "✓";
  color: #1a7f37;
}

[data-theme="dark"] .check-list .yes::before {
  color: #56d364;
}

.check-list .no {
  color: var(--muted);
}

.check-list .no::before {
  content: "—";
  color: var(--line-strong);
}

.faq h2 {
  margin-bottom: 24px;
  text-align: center;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 4px;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding-right: 44px;
  cursor: pointer;
  color: #5f6034;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 500;
  list-style: none;
  transition: color .18s ease;
}

.faq summary:hover {
  color: var(--orange-deep);
}

[data-theme="dark"] .faq summary {
  color: #f3ded0;
}

[data-theme="dark"] .faq summary:hover {
  color: var(--orange);
}

.faq summary::-webkit-details-marker { display: none; }

/* Mono plus marker that rotates to an x when the answer is open */
.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  transition: transform .26s ease, color .18s ease, border-color .18s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--orange);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
}

.faq p {
  margin: 12px 0 4px;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.55;
}

.cta {
  padding: 58px 0 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* Dark dithered closer panel — echoes the hero terminal field */
.cta-panel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 28px 56px;
  border-radius: 18px;
  border: 1px solid #2c2c2c;
  background:
    radial-gradient(circle at 86% 8%, rgba(233, 121, 38, .4), transparent 34%),
    radial-gradient(circle, rgba(233, 121, 38, .16) 1px, transparent 1.4px),
    #171717;
  background-size: auto, 7px 7px, auto;
  box-shadow: 0 8px 26px rgba(40, 24, 12, .16);
  overflow: hidden;
}

.cta-kicker {
  margin: 0 0 18px;
  color: #9b9188;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.cta-kicker span {
  color: var(--orange);
}

.cta .cta-panel h2 {
  color: #f3ded0;
}

.cta-panel h2 em {
  font-style: italic;
  color: var(--orange);
}

@keyframes heroGrain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-6px, 4px, 0); }
  50% { transform: translate3d(5px, -5px, 0); }
  75% { transform: translate3d(-3px, -2px, 0); }
}

@keyframes heroSphereIn {
  from { opacity: 0; transform: translate3d(18px, -16px, 0) scale(.985); }
  to { opacity: .96; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes heroSphereDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: -10px 8px; }
}

@keyframes demoLineSettle {
  0% { transform: translate3d(0, 10px, 0); }
  58% { transform: translate3d(0, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes demoLineCommit {
  0% { text-shadow: 0 0 0 rgba(233, 121, 38, 0); }
  44% { text-shadow: 0 0 12px rgba(233, 121, 38, .22); }
  100% { text-shadow: 0 0 0 rgba(233, 121, 38, 0); }
}

@keyframes demoCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes demoCaretSettle {
  0% { transform: scaleY(.68) translateY(3px); }
  64% { transform: scaleY(1.08) translateY(-1px); }
  100% { transform: scaleY(1) translateY(0); }
}

/* Blinking text caret inside the "Run it now" button (matches reference) */
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-field::before,
  .hero-field::after,
  .btn-primary::after,
  .typing-caret,
  .card-swap { animation: none !important; }
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 0;
}

.cta-actions .btn:hover {
  transform: none;
}

.cta-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #f4f1ec;
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.cta-sub {
  margin: 30px 0 0;
  color: #9b9188;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.signup {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.signup input[type="email"] {
  width: min(280px, 60vw);
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #f3ded0;
  padding: 0 16px;
  font-size: 13px;
  transition: border-color .18s ease, background-color .18s ease;
}

.signup input[type="email"]::placeholder {
  color: #877d74;
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, .09);
}

.signup button {
  min-width: 100px;
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
  transition: background-color .18s ease;
}

.signup button:hover {
  background: var(--orange-deep);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cta-note {
  display: block;
  margin-top: 14px;
  color: #877d74;
  font-size: 11px;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 44px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-brand p {
  max-width: 300px;
  margin: 14px 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.footer-cmd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-cmd span {
  color: var(--orange);
}

.footer-col {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.footer-col strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--orange-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-author {
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 35%, transparent);
}

.footer-author:hover {
  color: var(--orange-deep);
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding-top: 15vh;
  background: rgba(20, 15, 12, .36);
}

.palette[hidden] { display: none; }

.palette-box {
  width: min(560px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(49, 31, 21, .28);
}

.palette-box input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 16px;
  color: var(--ink);
}

.palette-box input:focus { outline: none; }
.palette-box ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.palette-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink-soft);
  cursor: pointer;
}

.palette-box li.active,
.palette-box li:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.palette-box .hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 820px) {
  .header-inner,
  .hero-inner {
    width: min(100% - 32px, 100%);
  }

  .hero-inner {
    min-height: 600px;
  }

  .card-swap {
    width: min(400px, 55vw);
    height: auto;
    aspect-ratio: 25 / 16;
    right: 0;
    bottom: -22px;
  }

  .hero-copy {
    width: 92%;
    padding: 62px 26px 0;
  }

  .hero h1 {
    font-size: clamp(44px, 10vw, 62px);
  }

  .hero p {
    margin-top: 28px;
    font-size: 18px;
  }

  .role-grid,
  .compare-grid,
  .bento,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split {
    gap: 24px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ============================================================
   Docs page (docs.html) — MNC-style reference layout
   ============================================================ */

.docs-page {
  background: var(--paper);
}

.docs-page .site-header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.docs-shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 52px;
  padding: 38px 0 80px;
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}

.docs-sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.docs-sidebar nav {
  display: grid;
  gap: 2px;
}

.docs-group {
  margin: 18px 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.docs-group:first-child {
  margin-top: 0;
}

.docs-sidebar a {
  display: block;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.4;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.docs-sidebar a:hover {
  color: var(--orange-deep);
}

.docs-sidebar a.active {
  border-left-color: var(--orange);
  background: color-mix(in srgb, var(--paper-2) 75%, transparent);
  color: var(--orange-deep);
  font-weight: 700;
}

[data-theme="dark"] .docs-sidebar a.active {
  color: var(--orange);
}

/* Content column */
.docs-content {
  max-width: 780px;
  min-width: 0;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.docs-breadcrumb a:hover {
  color: var(--orange-deep);
}

.docs-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.docs-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-content h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 500;
  color: #5f6034;
}

.docs-content h1 em {
  font-style: italic;
  color: var(--orange);
}

.docs-content h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.06;
  font-weight: 500;
  color: #5f6034;
  scroll-margin-top: 84px;
}

.docs-content h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: #6b6240;
}

[data-theme="dark"] .docs-content h1,
[data-theme="dark"] .docs-content h2 {
  color: #f3ded0;
}

[data-theme="dark"] .docs-content h3 {
  color: #ddc8a8;
}

.docs-content p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
}

.docs-lede {
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: #5e554d !important;
}

[data-theme="dark"] .docs-lede {
  color: var(--ink-soft) !important;
}

.docs-content :not(pre) > code {
  color: var(--orange-deep);
  background: rgba(233, 121, 38, .08);
  border-radius: 5px;
  padding: .05em .35em;
  font-size: .92em;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.docs-meta span {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

/* Code blocks — terminal chrome matching the brand cards */
.doc-code {
  margin: 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(63, 43, 28, .04);
  overflow: hidden;
}

.doc-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 8px 0 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.doc-code__bar > code {
  color: var(--muted);
  font-size: 11.5px;
  background: none;
  border: 0;
  padding: 0;
}

.doc-code .copy-btn {
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 11px;
  line-height: 1.4;
}

.doc-code pre {
  margin: 0;
  padding: 15px 17px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}

.doc-code pre code {
  display: block;
  font-weight: 700;
}

.doc-code pre span {
  color: var(--orange);
  font-weight: 800;
}

/* Tables */
.doc-table-wrap {
  margin: 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(63, 43, 28, .04);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.doc-table th {
  padding: 10px 15px;
  text-align: left;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}

.doc-table td {
  padding: 11px 15px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--ink-soft);
  line-height: 1.5;
  vertical-align: top;
}

.doc-table tbody tr:first-child td {
  border-top: 0;
}

.doc-table td:first-child {
  white-space: nowrap;
}

.doc-table--cli td:first-child {
  font-weight: 600;
}

/* Callouts */
.callout {
  margin: 18px 0;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.callout strong {
  color: var(--ink);
}

.callout.warn {
  border-left-color: var(--orange-deep);
  background: color-mix(in srgb, rgba(233, 121, 38, .09) 100%, var(--paper-2));
}

/* Lists */
.docs-list {
  margin: 0 0 16px;
  padding-left: 4px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.docs-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.docs-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
}

.docs-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
  display: grid;
  gap: 12px;
}

.docs-steps li {
  position: relative;
  counter-increment: docs-step;
  padding-left: 40px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.docs-steps li::before {
  content: counter(docs-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
}

.docs-steps strong,
.docs-list strong {
  color: var(--ink);
}

.docs-inline-link {
  color: var(--orange-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
}

.docs-inline-link:hover {
  border-bottom-color: var(--orange-deep);
}

.docs-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Docs responsive */
@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(100% - 34px, 100%);
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  }

  .docs-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
  }

  .docs-group {
    display: none;
  }

  .docs-sidebar a {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 12.5px;
  }

  .docs-sidebar a.active {
    border-color: var(--orange);
    background: var(--paper);
  }
}

@media (max-width: 620px) {
  .docs-shell {
    width: min(100% - 22px, 100%);
    padding-top: 22px;
  }

  .doc-code pre {
    padding: 13px 14px;
    font-size: 12px;
  }

  .doc-table td:first-child {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 50px;
    width: min(100% - 22px, 100%);
  }

  .brand {
    font-size: 17px;
    gap: 6px;
  }

  .brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .brand-accent {
    display: none;
  }

  .brand-name {
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .search-trigger span:not(.search-icon) {
    display: none;
  }

  .search-trigger {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .search-trigger kbd {
    display: none;
  }

  /* Theme toggle keeps its desktop 44x24 geometry — the knob, rays,
     and crescent are tuned to it. Only the hit area is expanded. */

  .hero {
    min-height: 590px;
    padding-top: 10px;
  }

  .hero-copy {
    width: 100%;
    /* bottom padding reserves the card-stack zone so the action
       buttons always sit above the terminals, never under them */
    padding: 42px 22px 240px;
  }

  .hero-inner {
    width: min(100% - 22px, 100%);
    min-height: 550px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .hero p {
    margin: 22px 0 24px;
    font-size: 16px;
  }

  .card-swap {
    /* fluid: shrinks with the viewport instead of a fixed 300px */
    width: min(300px, 78vw);
    height: auto;
    aspect-ratio: 25 / 16;
    right: 0;
    bottom: -16px;
    transform: none;
  }

  .swap-card__body {
    padding: 12px 14px;
    font-size: 12px;
  }

  .swap-card__bar {
    height: 32px;
    padding: 0 13px;
  }

  .swap-card__bar em {
    font-size: 13px;
  }

  .hero-actions,
  .signup,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .cta-panel {
    padding: 48px 20px 44px;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 220px;
  }

  .signup input[type="email"] {
    width: min(280px, 80vw);
  }

  .signup button {
    width: 100%;
    max-width: 280px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .role-grid article {
    padding: 24px 20px;
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
  }

  .footer-col {
    justify-items: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .btn {
    width: 100%;
    max-width: 220px;
  }

  .demo-browser pre {
    padding: 24px 22px 8px;
    font-size: 12px;
  }
}
