/* ============================================
   Dev Orchestrator — Unified Styles
   ============================================ */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.top-0 {
  top: 0px;
}

.z-50 {
  z-index: 50;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-auto {
  margin-left: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.max-w-5xl {
  max-width: 64rem;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-pointer {
  cursor: pointer;
}

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

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-12 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(3rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.border-b {
  border-bottom-width: 1px;
}

.border-\[\#242424\] {
  --tw-border-opacity: 1;
  border-color: rgb(36 36 36 / var(--tw-border-opacity, 1));
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.pb-14 {
  padding-bottom: 3.5rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pt-28 {
  padding-top: 7rem;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ─── Design Tokens ─── */

:root {
  --bg: #090909;
  --panel: #151515;
  --panel-2: #111111;
  --line: #2a2a2a;
  --line-soft: #333333;
  --text: #efefef;
  --text-dim: #a0a0a0;
  --muted: #6f6f6f;
  --accent: #ffffff;
}

/* ─── Base ─── */

html {
  background: var(--bg);
}

body {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  background: var(--bg);
}

body.page-index {
  background: radial-gradient(125% 85% at 50% -12%, #1b1b1b 0%, #0a0a0a 52%, #080808 100%);
}

body.page-docs {
  background:
        radial-gradient(circle at 14% -6%, #1a1a1a 0%, transparent 34%),
        radial-gradient(circle at 88% 0, #141414 0%, transparent 30%),
        var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Noise Overlay ─── */

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Sheen (index) ─── */

body.page-index::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.015) 34%, transparent 66%);
  animation: sheen 14s ease-in-out infinite;
  z-index: 0;
}

/* ─── Skip Link ─── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--panel);
  color: var(--accent);
  padding: .5rem 1rem;
  border-radius: .3rem;
  font-size: .78rem;
  z-index: 200;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ─── Header ─── */

.top-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(9, 9, 9, 0.86);
}

/* ─── Hero (index) ─── */

.hero-shell {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: min(700px, 90vw);
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
}

.hero-inner {
  width: min(760px, 100%);
  position: relative;
  z-index: 1;
}

.hero-badge {
  letter-spacing: .24em;
  font-size: .64rem;
  color: var(--muted);
  opacity: .8;
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: .015em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .42);
}

.hero-divider {
  width: min(420px, 74%);
  margin: .8rem auto .9rem;
  border-top: 1px dashed var(--line-soft);
  opacity: .6;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(.84rem, 1.1vw, .94rem);
  line-height: 1.5;
  color: var(--text-dim);
  letter-spacing: .01em;
}

.hero-command-inline {
  margin: 1.6rem auto 0;
  width: min(600px, 74vw);
  padding: .18rem 0;
  text-align: center;
}

.hero-command-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .34rem;
  width: 100%;
  font-size: clamp(.7rem, 1.2vw, .92rem);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  color: #ededed;
}

.cmd-text {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

/* ─── Reveal Animations (hero) ─── */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: revealUp .72s cubic-bezier(.18, .68, .28, 1) forwards;
}

.reveal-1 {
  animation-delay: .04s;
}

.reveal-2 {
  animation-delay: .12s;
}

.reveal-3 {
  animation-delay: .18s;
}

.reveal-4 {
  animation-delay: .26s;
}

.reveal-5 {
  animation-delay: .34s;
}

/* ─── Scroll Reveal ─── */

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.18, .68, .28, 1),
                transform .65s cubic-bezier(.18, .68, .28, 1);
}

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

.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.scroll-reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0s;
}

.scroll-reveal-stagger.visible > *:nth-child(2) {
  transition-delay: .08s;
}

.scroll-reveal-stagger.visible > *:nth-child(3) {
  transition-delay: .16s;
}

.scroll-reveal-stagger.visible > *:nth-child(4) {
  transition-delay: .24s;
}

.scroll-reveal-stagger.visible > *:nth-child(5) {
  transition-delay: .32s;
}

.scroll-reveal-stagger.visible > *:nth-child(6) {
  transition-delay: .40s;
}

.scroll-reveal-stagger.visible > *:nth-child(7) {
  transition-delay: .48s;
}

.scroll-reveal-stagger.visible > *:nth-child(8) {
  transition-delay: .56s;
}

.scroll-reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */

.btn-secondary {
  border-radius: .28rem;
  padding: .5rem .86rem;
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  font-size: .75rem;
  transition: all .2s ease;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: #4b4b4b;
  color: var(--accent);
  background: #121212;
}

/* ─── Terminal Window ─── */

.terminal-window {
  background: linear-gradient(180deg, #171717 0%, #121212 100%);
  border: 1px solid var(--line);
  border-radius: .42rem;
  padding: .96rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.terminal-window:hover {
  border-color: #3a3a3a;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .72rem;
  margin-bottom: .72rem;
}

.terminal-dots {
  display: flex;
  gap: .22rem;
}

.terminal-dots span {
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
  background: #5a5a5a;
}

.terminal-dots span:nth-child(2) {
  background: #4a4a4a;
}

.terminal-dots span:nth-child(3) {
  background: #3a3a3a;
}

/* ─── Cards ─── */

.subtle-card {
  border: 1px solid var(--line);
  border-radius: .34rem;
  background: linear-gradient(180deg, #1b1b1b 0%, #151515 100%);
  padding: .84rem;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.subtle-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.command-item,
.rule-item,
.value-item,
.arch-note {
  border: 1px solid var(--line);
  border-radius: .32rem;
  padding: .66rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%);
  transition: border-color .22s ease, transform .22s ease;
}

.command-item:hover,
.rule-item:hover,
.value-item:hover {
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

/* ─── Cursor ─── */

.cursor {
  display: inline-block;
  width: .44rem;
  height: .88em;
  background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
  vertical-align: middle;
  margin-left: .08rem;
}

/* ─── Section Title (docs) ─── */

.section-title {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: .66rem;
  color: var(--accent);
  letter-spacing: .01em;
}

/* ─── Language Switcher ─── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: .24rem;
}

.lang-switcher button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  transition: color .2s ease;
}

.lang-switcher button:hover {
  color: var(--accent);
}

.lang-switcher button.active {
  color: var(--text);
  font-weight: 700;
}

.lang-switcher .separator {
  color: var(--muted);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ─── TOC (docs) ─── */

.toc {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  width: 188px;
  border-left: 1px solid var(--line);
  padding-left: .68rem;
}

.toc-title {
  color: var(--text-dim);
  font-size: .72rem;
  margin-bottom: .36rem;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  margin-bottom: .34rem;
  transition: color .2s ease;
}

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

.toc a.active {
  color: var(--accent);
}

/* ─── Workflow ─── */

.workflow-switcher {
  display: flex;
  gap: 0;
  margin-bottom: .8rem;
  border: 1px solid var(--line);
  border-radius: .26rem;
  overflow: hidden;
  width: -moz-fit-content;
  width: fit-content;
}

.wf-tab {
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  padding: .58rem 1rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  min-width: 106px;
}

.wf-tab:last-child {
  border-right: none;
}

.wf-tab-label {
  font-size: .74rem;
  line-height: 1;
}

.wf-tab-score {
  font-size: .66rem;
  color: var(--muted);
  line-height: 1;
}

.wf-tab:hover .wf-tab-label {
  color: var(--text);
}

.wf-tab.active {
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.wf-tab.active .wf-tab-label {
  color: var(--accent);
  font-weight: 700;
}

.wf-tab.active .wf-tab-score {
  color: var(--text-dim);
}

.replay-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: .24rem;
  padding: .16rem .56rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  cursor: pointer;
  transition: all .2s ease;
}

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

/* ─── Workflow Output ─── */

.wf-output {
  border: 1px solid var(--line);
  border-radius: .26rem;
  background: #101010;
  padding: .76rem;
  min-height: 300px;
  max-height: 430px;
  overflow-y: auto;
  line-height: 1.72;
  font-size: .72rem;
  scroll-behavior: smooth;
}

.page-index .wf-output {
  min-height: auto;
  max-height: none;
  overflow-y: visible;
}

.wf-output::-webkit-scrollbar {
  width: 4px;
}

.wf-output::-webkit-scrollbar-track {
  background: transparent;
}

.wf-output::-webkit-scrollbar-thumb {
  background: #313131;
  border-radius: 2px;
}

.wf-output::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

.wf-line {
  opacity: 0;
  transform: translateY(3px);
  animation: wfFade .24s ease forwards;
  margin-bottom: .08rem;
}

.wf-line.wf-pending {
  visibility: hidden;
  animation: none !important;
}

.wf-cmd {
  color: #efefef;
}

.wf-router {
  color: #cacaca;
}

.wf-phase {
  color: #f0f0f0;
  letter-spacing: .05em;
  font-weight: 700;
}

.wf-agent {
  color: #d7d7d7;
  font-weight: 600;
}

.wf-progress {
  color: #b2b2b2;
}

.wf-tree {
  color: #8f8f8f;
}

.wf-success {
  color: #fff;
  font-weight: 700;
}

.wf-summary {
  color: #9d9d9d;
  opacity: .82;
}

.wf-note {
  color: #8a8a8a;
  font-style: italic;
}

.wf-divider {
  color: #5f5f5f;
  opacity: .42;
}

.wf-progress-bar {
  display: inline-block;
  width: 24px;
  height: .4rem;
  border: 1px solid #4a4a4a;
  margin-left: .4rem;
  position: relative;
  vertical-align: text-bottom;
}

.wf-progress-bar::after {
  content: '';
  position: absolute;
  inset: 1px;
  width: 0;
  background: #9f9f9f;
  animation: wfProgress 1.2s ease forwards;
}

/* ─── Architecture Diagram (docs) ─── */

.architecture-diagram {
  border: 1px solid var(--line);
  border-radius: .26rem;
  background: #101010;
  min-height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .65rem;
  overflow-x: auto;
}

.architecture-diagram svg {
  max-width: 100%;
  height: auto;
}

.arch-note-grid {
  margin-top: .84rem;
  display: grid;
  gap: .58rem;
  grid-template-columns: 1fr;
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .58rem;
}

/* ─── Divider ─── */

.divider {
  border-top: 1px solid var(--line);
}

/* ─── Copy Toast ─── */

.copy-toast {
  position: fixed;
  bottom: 1.22rem;
  right: 1.22rem;
  background: #141414;
  border: 1px solid #3b3b3b;
  padding: .4rem .74rem;
  font-size: .68rem;
  border-radius: .26rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .2s ease;
  z-index: 200;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Text Utilities ─── */

.text-primary {
  color: var(--accent);
  font-weight: 700;
}

.text-dim {
  color: var(--text-dim);
}

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

.text-accent {
  color: var(--accent);
}

/* ─── Keyframes ─── */

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

  50% {
    opacity: 0;
  }
}

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

@keyframes sheen {
  0%, 100% {
    opacity: .34;
    transform: translateX(-3%);
  }

  50% {
    opacity: .1;
    transform: translateX(3%);
  }
}

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

@keyframes wfProgress {
  to {
    width: calc(100% - 2px);
  }
}

/* ─── Responsive ─── */

@media (min-width: 900px) {
  .pill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1280px) {
  .toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .terminal-window {
    padding: .88rem;
  }

  .hero-command-inline {
    width: min(90vw, 600px);
  }

  .wf-tab {
    min-width: 94px;
    padding: .5rem .74rem;
  }

  .wf-output {
    max-height: 360px;
  }
}

/* ─── Accessibility ─── */

@media (prefers-reduced-motion: reduce) {
  .reveal,
    .scroll-reveal,
    .scroll-reveal-stagger > *,
    .wf-line {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-index::before {
    animation: none !important;
  }

  .cursor {
    animation: none !important;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
