@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/jbm.woff2?v=2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
        U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
        U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2500-2503,
        U+2514, U+2580-259F, U+25C9, U+25CF, U+2713, U+276F,
        U+FEFF, U+FFFD;
}

:root {
    --bg: #f0eee9;
    --bg-elevated: #f5f3ee;
    --ink: #1a1a18;
    --ink-soft: #3a3a36;
    --muted: #6b6b66;
    --muted-2: #8a8a84;
    --line: #d8d6d0;
    --line-strong: #c4c2bb;
    --terminal: #0c0c0b;
    --terminal-2: #131312;
    --accent: #4a9eff;
    --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
    --green: #2d9f52;
    --yellow: #b8860b;
    --red: #c73e3e;
    --radius-lg: 6px;
    --radius-md: 4px;
    --radius-sm: 2px;
    --max: 1160px;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --term-bg: #1a1d22;
    --term-sidebar-bg: #15181d;
    --term-active-bg: #20242c;
    --term-tab-bg: #20242c;
    --term-tab-active-bg: #4a9eff;
    --term-tab-active-text: #0c0c0b;
    --term-border: #2b3038;
    --term-text: #c8cdd4;
    --term-muted: #5a6068;
    --term-prompt: #4a9eff;
    --term-cmd: #8ecf7a;
    --term-str: #e6c060;
    --term-dim: #6a7078;
    --term-blue: #4a9eff;
    --term-green-bright: #7ecf8a;
    --logo-filter: none;
    --logo-opacity: 0.72;
}

[data-palette="herdr"] {
  --bg: #0c0c0b; --bg-elevated: #131312; --ink: #f0ece0; --ink-soft: #dedad0;
  --muted: #8a8a80; --muted-2: #5c5c55; --line: #252522; --line-strong: #2e2e2b;
  --terminal: #0c0c0b; --terminal-2: #131312; --accent: #4a9eff;
  --green: #52c97a; --yellow: #e6b84a; --red: #e05a5a;
  --term-bg: #0c0c0b; --term-sidebar-bg: #131312; --term-active-bg: #191918;
  --term-tab-bg: #191918; --term-tab-active-bg: #4a9eff; --term-tab-active-text: #0c0c0b;
  --term-border: #252522; --term-text: #dedad0; --term-muted: #5c5c55;
  --term-prompt: #4a9eff; --term-cmd: #52c97a; --term-str: #e6b84a;
  --term-dim: #8a8a80; --term-blue: #4a9eff; --term-green-bright: #52c97a;
}
[data-palette="taat"] {
  --bg: #0c0c0b; --bg-elevated: #111110; --ink: #f0ece0; --ink-soft: #e2ddd0;
  --muted: #6a6a62; --muted-2: #4a4a44; --line: #252522; --line-strong: #2a2a26;
  --terminal: #0c0c0b; --terminal-2: #111110; --accent: #4a9eff;
  --green: #4a9e6a; --yellow: #c4a84a; --red: #c46a6a;
  --term-bg: #0c0c0b; --term-sidebar-bg: #111110; --term-active-bg: #161614;
  --term-tab-bg: #161614; --term-tab-active-bg: #4a9eff; --term-tab-active-text: #0c0c0b;
  --term-border: #252522; --term-text: #e2ddd0; --term-muted: #4a4a44;
  --term-prompt: #4a9eff; --term-cmd: #4a9e6a; --term-str: #c4a84a;
  --term-dim: #6a6a62; --term-blue: #4a9eff; --term-green-bright: #4a9e6a;
}
[data-palette="catppuccin"] {
  --bg: #11111b; --bg-elevated: #181825; --ink: #f5e0dc; --ink-soft: #cdd6f4;
  --muted: #9399b2; --muted-2: #6c7086; --line: #313244; --line-strong: #45475a;
  --terminal: #11111b; --terminal-2: #181825; --accent: #89b4fa;
  --green: #a6e3a1; --yellow: #f9e2af; --red: #f38ba8;
  --term-bg: #11111b; --term-sidebar-bg: #181825; --term-active-bg: #1e1e2e;
  --term-tab-bg: #1e1e2e; --term-tab-active-bg: #89b4fa; --term-tab-active-text: #11111b;
  --term-border: #313244; --term-text: #cdd6f4; --term-muted: #6c7086;
  --term-prompt: #89b4fa; --term-cmd: #a6e3a1; --term-str: #f9e2af;
  --term-dim: #9399b2; --term-blue: #89b4fa; --term-green-bright: #a6e3a1;
}
[data-palette="catppuccin-latte"] {
  --bg: #eff1f5; --bg-elevated: #e6e9ef; --ink: #1e1e2e; --ink-soft: #4c4f69;
  --muted: #6c6f85; --muted-2: #9ca0b0; --line: #ccd0da; --line-strong: #bcc0cc;
  --terminal: #eff1f5; --terminal-2: #e6e9ef; --accent: #1e66f5;
  --green: #40a02b; --yellow: #df8e1d; --red: #d20f39;
  --term-bg: #eff1f5; --term-sidebar-bg: #e6e9ef; --term-active-bg: #dce0e8;
  --term-tab-bg: #dce0e8; --term-tab-active-bg: #1e66f5; --term-tab-active-text: #eff1f5;
  --term-border: #ccd0da; --term-text: #4c4f69; --term-muted: #9ca0b0;
  --term-prompt: #1e66f5; --term-cmd: #40a02b; --term-str: #df8e1d;
  --term-dim: #6c6f85; --term-blue: #1e66f5; --term-green-bright: #40a02b;
}
[data-palette="terminal"] {
  --bg: #000000; --bg-elevated: #080808; --ink: #ffffff; --ink-soft: #d8d8d8;
  --muted: #888888; --muted-2: #555555; --line: #1a1a1a; --line-strong: #2a2a2a;
  --terminal: #000000; --terminal-2: #080808; --accent: #4a9eff;
  --green: #55d66b; --yellow: #e6d55a; --red: #ff6b6b;
  --term-bg: #000000; --term-sidebar-bg: #080808; --term-active-bg: #101010;
  --term-tab-bg: #101010; --term-tab-active-bg: #4a9eff; --term-tab-active-text: #000000;
  --term-border: #1a1a1a; --term-text: #d8d8d8; --term-muted: #555555;
  --term-prompt: #4a9eff; --term-cmd: #55d66b; --term-str: #e6d55a;
  --term-dim: #888888; --term-blue: #4a9eff; --term-green-bright: #55d66b;
}
[data-palette="tokyo-night"] {
  --bg: #1a1b26; --bg-elevated: #202331; --ink: #d5dcff; --ink-soft: #c0caf5;
  --muted: #737aa2; --muted-2: #565f89; --line: #2f3549; --line-strong: #414868;
  --terminal: #1a1b26; --terminal-2: #202331; --accent: #7aa2f7;
  --green: #9ece6a; --yellow: #e0af68; --red: #f7768e;
  --term-bg: #1a1b26; --term-sidebar-bg: #202331; --term-active-bg: #24283b;
  --term-tab-bg: #24283b; --term-tab-active-bg: #7aa2f7; --term-tab-active-text: #1a1b26;
  --term-border: #2f3549; --term-text: #c0caf5; --term-muted: #565f89;
  --term-prompt: #7aa2f7; --term-cmd: #9ece6a; --term-str: #e0af68;
  --term-dim: #737aa2; --term-blue: #7aa2f7; --term-green-bright: #9ece6a;
}
[data-palette="tokyo-night-day"] {
  --bg: #e1e2e7; --bg-elevated: #d8d9e0; --ink: #1f2f66; --ink-soft: #3760bf;
  --muted: #68709a; --muted-2: #8990b3; --line: #b6bbd1; --line-strong: #a8aecb;
  --terminal: #e1e2e7; --terminal-2: #d8d9e0; --accent: #2e7de9;
  --green: #587539; --yellow: #8c6c3e; --red: #f52a65;
  --term-bg: #e1e2e7; --term-sidebar-bg: #d8d9e0; --term-active-bg: #c4c8da;
  --term-tab-bg: #c4c8da; --term-tab-active-bg: #2e7de9; --term-tab-active-text: #e1e2e7;
  --term-border: #b6bbd1; --term-text: #3760bf; --term-muted: #8990b3;
  --term-prompt: #2e7de9; --term-cmd: #587539; --term-str: #8c6c3e;
  --term-dim: #68709a; --term-blue: #2e7de9; --term-green-bright: #587539;
}
[data-palette="dracula"] {
  --bg: #282a36; --bg-elevated: #303241; --ink: #ffffff; --ink-soft: #f8f8f2;
  --muted: #8a91b4; --muted-2: #6272a4; --line: #44475a; --line-strong: #6272a4;
  --terminal: #282a36; --terminal-2: #303241; --accent: #bd93f9;
  --green: #50fa7b; --yellow: #f1fa8c; --red: #ff5555;
  --term-bg: #282a36; --term-sidebar-bg: #303241; --term-active-bg: #383a4a;
  --term-tab-bg: #383a4a; --term-tab-active-bg: #bd93f9; --term-tab-active-text: #282a36;
  --term-border: #44475a; --term-text: #f8f8f2; --term-muted: #6272a4;
  --term-prompt: #bd93f9; --term-cmd: #50fa7b; --term-str: #f1fa8c;
  --term-dim: #8a91b4; --term-blue: #bd93f9; --term-green-bright: #50fa7b;
}
[data-palette="nord"] {
  --bg: #2e3440; --bg-elevated: #343b49; --ink: #ffffff; --ink-soft: #eceff4;
  --muted: #8792a8; --muted-2: #5f6a80; --line: #434c5e; --line-strong: #4c566a;
  --terminal: #2e3440; --terminal-2: #343b49; --accent: #88c0d0;
  --green: #a3be8c; --yellow: #ebcb8b; --red: #bf616a;
  --term-bg: #2e3440; --term-sidebar-bg: #343b49; --term-active-bg: #3b4252;
  --term-tab-bg: #3b4252; --term-tab-active-bg: #88c0d0; --term-tab-active-text: #2e3440;
  --term-border: #434c5e; --term-text: #eceff4; --term-muted: #5f6a80;
  --term-prompt: #88c0d0; --term-cmd: #a3be8c; --term-str: #ebcb8b;
  --term-dim: #8792a8; --term-blue: #88c0d0; --term-green-bright: #a3be8c;
}
[data-palette="gruvbox"] {
  --bg: #282828; --bg-elevated: #32302f; --ink: #fbf1c7; --ink-soft: #ebdbb2;
  --muted: #a89984; --muted-2: #928374; --line: #504945; --line-strong: #665c54;
  --terminal: #282828; --terminal-2: #32302f; --accent: #d79921;
  --green: #b8bb26; --yellow: #fabd2f; --red: #fb4934;
  --term-bg: #282828; --term-sidebar-bg: #32302f; --term-active-bg: #3c3836;
  --term-tab-bg: #3c3836; --term-tab-active-bg: #d79921; --term-tab-active-text: #282828;
  --term-border: #504945; --term-text: #ebdbb2; --term-muted: #928374;
  --term-prompt: #d79921; --term-cmd: #b8bb26; --term-str: #fabd2f;
  --term-dim: #a89984; --term-blue: #d79921; --term-green-bright: #b8bb26;
}
[data-palette="gruvbox-light"] {
  --bg: #fbf1c7; --bg-elevated: #f2e5bc; --ink: #282828; --ink-soft: #3c3836;
  --muted: #665c54; --muted-2: #928374; --line: #d5c4a1; --line-strong: #bdae93;
  --terminal: #fbf1c7; --terminal-2: #f2e5bc; --accent: #076678;
  --green: #79740e; --yellow: #b57614; --red: #9d0006;
  --term-bg: #fbf1c7; --term-sidebar-bg: #f2e5bc; --term-active-bg: #ebdbb2;
  --term-tab-bg: #ebdbb2; --term-tab-active-bg: #076678; --term-tab-active-text: #fbf1c7;
  --term-border: #d5c4a1; --term-text: #3c3836; --term-muted: #928374;
  --term-prompt: #076678; --term-cmd: #79740e; --term-str: #b57614;
  --term-dim: #665c54; --term-blue: #076678; --term-green-bright: #79740e;
}
[data-palette="one-dark"] {
  --bg: #282c34; --bg-elevated: #2c313a; --ink: #d7dae0; --ink-soft: #abb2bf;
  --muted: #7f848e; --muted-2: #5c6370; --line: #3e4451; --line-strong: #4b5263;
  --terminal: #282c34; --terminal-2: #2c313a; --accent: #61afef;
  --green: #98c379; --yellow: #e5c07b; --red: #e06c75;
  --term-bg: #282c34; --term-sidebar-bg: #2c313a; --term-active-bg: #323842;
  --term-tab-bg: #323842; --term-tab-active-bg: #61afef; --term-tab-active-text: #282c34;
  --term-border: #3e4451; --term-text: #abb2bf; --term-muted: #5c6370;
  --term-prompt: #61afef; --term-cmd: #98c379; --term-str: #e5c07b;
  --term-dim: #7f848e; --term-blue: #61afef; --term-green-bright: #98c379;
}
[data-palette="one-light"] {
  --bg: #fafafa; --bg-elevated: #f5f5f6; --ink: #202228; --ink-soft: #383a42;
  --muted: #686b77; --muted-2: #a0a1a7; --line: #e5e5e6; --line-strong: #d5d7de;
  --terminal: #fafafa; --terminal-2: #f5f5f6; --accent: #4078f2;
  --green: #50a14f; --yellow: #c18401; --red: #e45649;
  --term-bg: #fafafa; --term-sidebar-bg: #f5f5f6; --term-active-bg: #f0f0f1;
  --term-tab-bg: #f0f0f1; --term-tab-active-bg: #4078f2; --term-tab-active-text: #fafafa;
  --term-border: #e5e5e6; --term-text: #383a42; --term-muted: #a0a1a7;
  --term-prompt: #4078f2; --term-cmd: #50a14f; --term-str: #c18401;
  --term-dim: #686b77; --term-blue: #4078f2; --term-green-bright: #50a14f;
}
[data-palette="solarized"] {
  --bg: #002b36; --bg-elevated: #073642; --ink: #eee8d5; --ink-soft: #93a1a1;
  --muted: #839496; --muted-2: #586e75; --line: #164a57; --line-strong: #586e75;
  --terminal: #002b36; --terminal-2: #073642; --accent: #268bd2;
  --green: #859900; --yellow: #b58900; --red: #dc322f;
  --term-bg: #002b36; --term-sidebar-bg: #073642; --term-active-bg: #0b3d4a;
  --term-tab-bg: #0b3d4a; --term-tab-active-bg: #268bd2; --term-tab-active-text: #002b36;
  --term-border: #164a57; --term-text: #93a1a1; --term-muted: #586e75;
  --term-prompt: #268bd2; --term-cmd: #859900; --term-str: #b58900;
  --term-dim: #839496; --term-blue: #268bd2; --term-green-bright: #859900;
}
[data-palette="solarized-light"] {
  --bg: #fdf6e3; --bg-elevated: #eee8d5; --ink: #073642; --ink-soft: #657b83;
  --muted: #586e75; --muted-2: #93a1a1; --line: #d6ceb8; --line-strong: #93a1a1;
  --terminal: #fdf6e3; --terminal-2: #eee8d5; --accent: #268bd2;
  --green: #859900; --yellow: #b58900; --red: #dc322f;
  --term-bg: #fdf6e3; --term-sidebar-bg: #eee8d5; --term-active-bg: #e6dec8;
  --term-tab-bg: #e6dec8; --term-tab-active-bg: #268bd2; --term-tab-active-text: #fdf6e3;
  --term-border: #d6ceb8; --term-text: #657b83; --term-muted: #93a1a1;
  --term-prompt: #268bd2; --term-cmd: #859900; --term-str: #b58900;
  --term-dim: #586e75; --term-blue: #268bd2; --term-green-bright: #859900;
}
[data-palette="kanagawa"] {
  --bg: #1f1f28; --bg-elevated: #252532; --ink: #f3ead3; --ink-soft: #dcd7ba;
  --muted: #8f8d80; --muted-2: #727169; --line: #363646; --line-strong: #54546d;
  --terminal: #1f1f28; --terminal-2: #252532; --accent: #7e9cd8;
  --green: #76946a; --yellow: #c0a36e; --red: #c34043;
  --term-bg: #1f1f28; --term-sidebar-bg: #252532; --term-active-bg: #2a2a37;
  --term-tab-bg: #2a2a37; --term-tab-active-bg: #7e9cd8; --term-tab-active-text: #1f1f28;
  --term-border: #363646; --term-text: #dcd7ba; --term-muted: #727169;
  --term-prompt: #7e9cd8; --term-cmd: #76946a; --term-str: #c0a36e;
  --term-dim: #8f8d80; --term-blue: #7e9cd8; --term-green-bright: #76946a;
}
[data-palette="kanagawa-lotus"] {
  --bg: #f2ecbc; --bg-elevated: #e5ddb0; --ink: #2a2a37; --ink-soft: #545464;
  --muted: #77736a; --muted-2: #a09cac; --line: #cbcbd1; --line-strong: #b7b2a0;
  --terminal: #f2ecbc; --terminal-2: #e5ddb0; --accent: #4d699b;
  --green: #6f894e; --yellow: #77713f; --red: #c84053;
  --term-bg: #f2ecbc; --term-sidebar-bg: #e5ddb0; --term-active-bg: #dcd5ac;
  --term-tab-bg: #dcd5ac; --term-tab-active-bg: #4d699b; --term-tab-active-text: #f2ecbc;
  --term-border: #cbcbd1; --term-text: #545464; --term-muted: #a09cac;
  --term-prompt: #4d699b; --term-cmd: #6f894e; --term-str: #77713f;
  --term-dim: #77736a; --term-blue: #4d699b; --term-green-bright: #6f894e;
}
[data-palette="rose-pine"] {
  --bg: #191724; --bg-elevated: #1f1d2e; --ink: #f4f0ff; --ink-soft: #e0def4;
  --muted: #908caa; --muted-2: #6e6a86; --line: #312f45; --line-strong: #403d52;
  --terminal: #191724; --terminal-2: #1f1d2e; --accent: #c4a7e7;
  --green: #9ccfd8; --yellow: #f6c177; --red: #eb6f92;
  --term-bg: #191724; --term-sidebar-bg: #1f1d2e; --term-active-bg: #26233a;
  --term-tab-bg: #26233a; --term-tab-active-bg: #c4a7e7; --term-tab-active-text: #191724;
  --term-border: #312f45; --term-text: #e0def4; --term-muted: #6e6a86;
  --term-prompt: #c4a7e7; --term-cmd: #9ccfd8; --term-str: #f6c177;
  --term-dim: #908caa; --term-blue: #c4a7e7; --term-green-bright: #9ccfd8;
}
[data-palette="rose-pine-dawn"] {
  --bg: #faf4ed; --bg-elevated: #f2e9e1; --ink: #191724; --ink-soft: #464261;
  --muted: #797593; --muted-2: #9893a5; --line: #e6ded7; --line-strong: #d8d0ca;
  --terminal: #faf4ed; --terminal-2: #f2e9e1; --accent: #907aa9;
  --green: #56949f; --yellow: #ea9d34; --red: #b4637a;
  --term-bg: #faf4ed; --term-sidebar-bg: #f2e9e1; --term-active-bg: #fffaf3;
  --term-tab-bg: #fffaf3; --term-tab-active-bg: #907aa9; --term-tab-active-text: #faf4ed;
  --term-border: #e6ded7; --term-text: #464261; --term-muted: #9893a5;
  --term-prompt: #907aa9; --term-cmd: #56949f; --term-str: #ea9d34;
  --term-dim: #797593; --term-blue: #907aa9; --term-green-bright: #56949f;
}
[data-palette="vesper"] {
  --bg: #101010; --bg-elevated: #1a1a1a; --ink: #ffffff; --ink-soft: #ffffff;
  --muted: #7e7e7e; --muted-2: #5c5c5c; --line: #282828; --line-strong: #343434;
  --terminal: #101010; --terminal-2: #1a1a1a; --accent: #ffc799;
  --green: #99ffe4; --yellow: #ffc799; --red: #ff8080;
  --term-bg: #101010; --term-sidebar-bg: #1a1a1a; --term-active-bg: #232323;
  --term-tab-bg: #232323; --term-tab-active-bg: #ffc799; --term-tab-active-text: #101010;
  --term-border: #282828; --term-text: #ffffff; --term-muted: #5c5c5c;
  --term-prompt: #ffc799; --term-cmd: #99ffe4; --term-str: #ffc799;
  --term-dim: #7e7e7e; --term-blue: #ffc799; --term-green-bright: #99ffe4;
}

[data-palette="herdr"],
[data-palette="taat"],
[data-palette="catppuccin"],
[data-palette="terminal"],
[data-palette="tokyo-night"],
[data-palette="dracula"],
[data-palette="nord"],
[data-palette="gruvbox"],
[data-palette="one-dark"],
[data-palette="solarized"],
[data-palette="kanagawa"],
[data-palette="rose-pine"],
[data-palette="vesper"] {
  --logo-filter: invert(1) hue-rotate(180deg) brightness(1.08) contrast(0.9) saturate(1.05);
  --logo-opacity: 0.72;
}

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

html {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
a {
    font: inherit;
}

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

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

code,
pre,
kbd,
samp {
    font-family: var(--mono);
}

::selection {
    background: var(--accent-soft);
}

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

.nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.brand-logo {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    cursor: context-menu;
}

.brand-logo::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--ink);
    -webkit-mask: url("/assets/agent-icons/herdr-mask.svg") center / contain no-repeat;
    mask: url("/assets/agent-icons/herdr-mask.svg") center / contain no-repeat;
}

.logo-menu {
    position: fixed;
    z-index: 1000;
    min-width: 170px;
    padding: 0.35rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.logo-menu a,
.logo-menu button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-soft);
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.logo-menu a:hover,
.logo-menu button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--mono);
}

.nav-menu {
    position: relative;
    display: none;
    margin-left: auto;
}

.nav-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.22rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink-soft);
    cursor: pointer;
    list-style: none;
    transition:
        color 120ms ease,
        border-color 120ms ease,
        background 120ms ease;
}

.nav-menu-button::-webkit-details-marker {
    display: none;
}

.nav-menu-button::marker {
    content: "";
}

.nav-menu-button span {
    display: block;
    width: 0.92rem;
    height: 1px;
    background: currentColor;
}

.nav-menu-button:hover,
.nav-menu[open] .nav-menu-button {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    background: var(--accent-soft);
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: min(18rem, calc(100vw - 2rem));
    padding: 0.35rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.nav-menu-panel a {
    border-radius: var(--radius-sm);
    padding: 0.62rem 0.7rem;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.86rem;
    font-weight: 600;
}

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

.nav-links a,
.footer a,
.inline-links a {
    transition: color 0.15s ease;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
    transition:
        color 120ms ease,
        border-color 120ms ease,
        background 120ms ease;
}

.nav-icon-link:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    background: var(--accent-soft);
}

.nav-icon-link svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.1rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.theme-hint {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s ease, color 0.12s ease;
}

.theme-hint::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid var(--accent);
    border-radius: calc(var(--radius-md) + 4px);
    opacity: 0;
    pointer-events: none;
}

.theme-hint:not(.is-seen)::after {
    animation: theme-hint-pulse 3.6s ease-in-out infinite;
}

.theme-hint:not(.is-seen) .theme-hint-dot {
    animation: theme-hint-dot 3.6s ease-in-out infinite;
}

.theme-hint:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.theme-hint-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75%);
    flex: 0 0 auto;
}

.theme-hint-key {
    color: var(--muted-2);
    font-size: 0.65rem;
}

.theme-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(1px);
}

.theme-overlay[hidden] {
    display: none;
}

.theme-overlay-panel {
    width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 2px;
    background: var(--term-bg);
    font-family: var(--mono);
    color: var(--term-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.theme-overlay-title {
    padding: 0.7rem 1rem 0.2rem;
    color: var(--term-text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.theme-overlay-tabs {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem 1rem 0.6rem;
    border-bottom: 1px solid var(--term-border);
    color: var(--term-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.theme-overlay-tabs span {
    padding: 0.2rem 0.5rem;
    border-radius: 1px;
}

.theme-overlay-tabs span.active {
    background: var(--accent);
    color: var(--term-tab-active-text);
}

.theme-overlay-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--term-border) transparent;
}

.theme-overlay-list::-webkit-scrollbar {
    width: 5px;
}

.theme-overlay-list::-webkit-scrollbar-thumb {
    background: var(--term-border);
    border-radius: 1px;
}

.theme-sep {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    margin-top: 0.3rem;
    color: var(--term-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    pointer-events: none;
    user-select: none;
}

.theme-sep:first-child {
    margin-top: 0;
}

.theme-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--term-border);
    opacity: 0.6;
}

.theme-overlay-list button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0.8rem;
    border: 0;
    border-radius: 1px;
    background: transparent;
    color: var(--term-text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.5;
}

.theme-overlay-list button::before {
    content: "";
    display: inline-block;
    width: 0.9rem;
    flex: 0 0 auto;
    text-align: center;
}

.theme-overlay-list button:hover,
.theme-overlay-list button:focus-visible {
    outline: none;
    background: var(--term-active-bg);
    color: var(--term-text);
}

.theme-overlay-list button[aria-selected="true"] {
    background: var(--term-active-bg);
    color: var(--term-text);
    font-weight: 700;
}

.theme-overlay-list button[aria-selected="true"]::before {
    content: "▸";
    color: var(--term-text);
    font-size: 0.7rem;
}

.theme-overlay-list button[aria-selected="true"]::after {
    content: "✓";
    margin-left: auto;
    color: var(--term-text);
    font-size: 0.78rem;
    font-weight: 400;
}

.theme-overlay-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--term-border);
    color: var(--term-muted);
    font-size: 0.72rem;
    font-weight: 400;
}

.theme-overlay-actions {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.theme-overlay-footer .key {
    color: var(--term-muted);
    font-weight: 700;
}

.theme-apply-btn {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--accent);
    color: var(--term-tab-active-text);
    font-weight: 700;
    border-radius: 1px;
}

.theme-close-btn {
    border: 0;
    border-radius: 1px;
    background: var(--term-active-bg);
    color: var(--term-muted);
    padding: 0.15rem 0.5rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
}

.theme-close-btn:hover,
.theme-close-btn:focus-visible {
    outline: none;
    color: var(--term-text);
    background: var(--term-border);
}

.section,
.demo-section,
.footer,
.final-cta {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 56px);
    border-bottom: 1px solid var(--line);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 2.5rem;
    border-right: 1px solid var(--line);
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--bg-elevated);
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, var(--bg-elevated) 80%);
    pointer-events: none;
}

.hero-copy,
.hero-product-shot {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.hero h1,
.section h2,
.final-cta h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-family: var(--mono);
    font-weight: 400;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    text-wrap: balance;
}

.hero-lede {
    max-width: 560px;
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.state {
    font-weight: 600;
    font-family: var(--mono);
}

.state.blocked {
    color: var(--red);
}

.state.working {
    color: var(--yellow);
}

.state.done {
    color: var(--green);
}

.status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.dot-blocked {
    background: var(--red);
}

.dot-working {
    background: var(--yellow);
}

.dot-done {
    background: var(--green);
}

.dot-idle {
    background: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.hero-actions.center {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.12s ease;
}

.button-primary {
    background: var(--ink);
    color: var(--bg);
}

.button-primary:hover {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.install-panel {
    max-width: 520px;
    margin-top: 1.25rem;
}

.install-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.install-label {
    width: 100%;
    color: var(--muted);
}

.install-method {
    border: 1px solid var(--term-border);
    border-radius: var(--radius-sm);
    background: var(--term-bg);
    color: var(--muted);
    cursor: pointer;
    min-height: 2rem;
    padding: 0.4rem 0.7rem;
    font-family: var(--mono);
    font-weight: 600;
}

.install-method:hover,
.install-method:focus-visible {
    color: var(--ink);
    outline: none;
}

.install-method.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.install-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--term-bg);
    color: var(--term-text);
    border: 1px solid var(--term-border);
}

.install-card code {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 0.82rem;
}

.install-card code.is-compact {
    font-size: clamp(0.65rem, 1.1vw, 0.78rem);
}

.install-card code::-webkit-scrollbar {
    display: none;
}

.prompt {
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
}

.install-card button {
    border: 1px solid var(--term-border);
    border-radius: var(--radius-sm);
    background: var(--term-active-bg);
    color: var(--term-text);
    cursor: pointer;
    padding: 0.3rem 0.65rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.install-card button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.windows-install {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.windows-install-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.windows-install-heading span {
    color: var(--ink-soft);
}

.windows-install-heading a {
    color: var(--accent);
    text-decoration: none;
}

.windows-install-heading a:hover {
    text-decoration: underline;
}

.install-card-secondary {
    margin-top: 0.45rem;
    background: color-mix(in srgb, var(--term-bg) 82%, transparent);
}

.install-card-secondary .prompt {
    font-size: 0.72rem;
}

.install-card-secondary code {
    font-size: 0.68rem;
}

.install-card-secondary button {
    padding: 0.24rem 0.55rem;
    font-size: 0.68rem;
}

.hero-note {
    margin: 0.75rem 0 0;
    color: var(--muted-2);
    font-size: 0.82rem;
    font-family: var(--mono);
}

.hero-product-shot {
    margin: 0;
    width: 100%;
    container-type: inline-size;
}

.hero-product-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--terminal);
    border: 1px solid var(--line-strong);
}

.hero-product-shell img {
    width: 100%;
    aspect-ratio: 2560 / 1401;
    object-fit: cover;
}

.hero-product-shot figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
    font-family: var(--mono);
}

.herdr-ui-mock {
    display: grid;
    grid-template-columns: minmax(120px, 17%) minmax(0, 1fr);
    overflow: hidden;
    aspect-ratio: 2560 / 1401;
    border-radius: var(--radius-lg);
    background: var(--term-bg);
    color: var(--term-muted);
    font-family: var(--mono);
    font-size: clamp(0.44rem, 0.72vw, 0.64rem);
    font-size: clamp(0.4rem, 1.36cqw, 0.64rem);
    line-height: 1.38;
    user-select: none;
    border: 1px solid var(--term-border);
}

.mock-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--term-border);
    background: var(--term-sidebar-bg);
}

.mock-sidebar-title {
    padding: 0.5rem 0.7rem;
    color: var(--term-muted);
    font-weight: 700;
    font-family: var(--mono);
}

.mock-space {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    padding: 0.55rem 0.7rem;
    color: var(--term-dim);
}

.mock-space.active {
    background: var(--term-active-bg);
}

.mock-space strong,
.mock-agent strong {
    display: block;
    overflow: hidden;
    color: var(--term-text);
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mock-space small,
.mock-agent small {
    display: block;
    overflow: hidden;
    margin-top: 0.16rem;
    color: var(--term-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mock-space.active small {
    color: var(--accent);
}

.mock-dot {
    width: 0.38rem;
    height: 0.38rem;
    margin-top: 0.25rem;
    border-radius: 50%;
}

/* Two equal halves, like the TUI's default sidebar_section_split of 0.5. */
.mock-sidebar-half {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mock-sidebar-agents {
    border-top: 1px solid var(--term-border);
}

.mock-sidebar-row,
.mock-agent-title {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    color: var(--term-muted);
    font-weight: 700;
    font-family: var(--mono);
}

.mock-sidebar-row {
    border-bottom: 1px solid var(--term-border);
}

.mock-agent-title {
    text-transform: lowercase;
}

.mock-agent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
}

.mock-agent.active {
    background: var(--term-active-bg);
}

.mock-agent > span {
    color: var(--term-green-bright);
    line-height: 1.1;
}

.mock-agent > div {
    min-width: 0;
}

.mock-agent.working > span,
.mock-agent.working small {
    color: var(--term-str);
}

.mock-agent.blocked > span,
.mock-agent.blocked small {
    color: var(--red);
}

.mock-agent.done > span,
.mock-agent.done small {
    color: var(--accent);
}

.mock-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
}

.mock-tabs {
    display: flex;
    align-items: center;
    height: 1.35rem;
    background: var(--term-tab-bg);
    color: var(--term-muted);
}

.mock-tabs span {
    min-width: 4.6rem;
    padding: 0.24rem 0.7rem;
    border-right: 1px solid var(--term-border);
}

.mock-tabs span.active {
    background: var(--term-tab-active-bg);
    color: var(--term-tab-active-text);
    font-weight: 800;
}

.mock-tabs span:last-child {
    min-width: 2rem;
}

.mock-panes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1ch;
    min-height: 0;
    padding: 0;
}

.mock-pane {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--term-bg);
    padding: 1lh 1.4ch;
}

/* Border line runs through the middle of the edge cell, like a box-drawing glyph. */
.mock-pane::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: calc(100% - 1ch);
    height: calc(100% - 1lh);
    border: 1px solid var(--term-border);
    pointer-events: none;
}

.mock-pane.focused::before {
    border-color: var(--accent);
}

/* Pane title embedded in the top border, one cell in from the left. */
.mock-pane[data-title]::after {
    content: attr(data-title);
    position: absolute;
    top: 0.5lh;
    left: 2ch;
    translate: 0 -50%;
    padding: 0 0.6ch;
    background: var(--term-bg);
    color: var(--term-muted);
    line-height: 1.1;
    pointer-events: none;
}

.mock-pane.focused[data-title]::after {
    color: var(--accent);
    font-weight: 700;
}

/* Single-pane tabs draw no pane chrome, matching the TUI's multi-pane gate. */
.mock-panes.single .mock-pane::before,
.mock-panes.single .mock-pane::after {
    content: none;
}

.mock-panes.single .mock-pane {
    padding: 0.5lh 1.4ch;
}

.mock-prompt {
    margin-bottom: 0.25rem;
    color: var(--term-prompt);
    font-size: 1.08em;
    font-weight: 700;
}

.mock-prompt em {
    color: var(--term-dim);
    font-style: normal;
    font-weight: 500;
}

.mock-pane b {
    color: var(--accent);
}

.herdr-ui-mock .cmd {
    color: var(--term-cmd);
}

.herdr-ui-mock .str {
    color: var(--term-str);
}

.herdr-ui-mock pre {
    margin: 0.55rem 0 0.75rem;
    color: var(--term-text);
    white-space: pre;
}

.herdr-ui-mock .dim,
.herdr-ui-mock .time {
    color: var(--term-dim);
}

.herdr-ui-mock .blue,
.herdr-ui-mock .url-line span {
    color: var(--term-blue);
}

.herdr-ui-mock .green {
    color: var(--term-green-bright);
}

.herdr-ui-mock .badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    background: var(--term-green-bright);
    color: var(--term-bg);
    font-weight: 800;
}

.cursor {
    display: inline-block;
    width: 0.4rem;
    height: 0.85rem;
    background: var(--term-text);
    vertical-align: -0.14rem;
}

.demo-section {
    padding-top: 0;
    padding-bottom: 5rem;
}

.demo-video {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: var(--terminal);
    object-fit: cover;
    border: 1px solid var(--line-strong);
}

.nav-icon-link.has-count {
    width: auto;
    padding-inline: 0.55rem;
    gap: 0.35rem;
}

.nav-icon-link.has-count:has(.nav-star-count:empty) {
    width: 2.1rem;
    padding-inline: 0;
    gap: 0;
}

.nav-star-count {
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1;
}

.hero-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.12s ease;
}

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

.community-section {
    padding-top: 4.25rem;
}

.section.community-section {
    border-top: none;
}

.community-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.community-video-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--ink-soft);
    transition:
        border-color 120ms ease,
        transform 120ms ease,
        background 120ms ease;
}

.community-video-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent-soft));
    color: var(--ink-soft);
}

.community-video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--term-bg);
    border-bottom: 1px solid var(--line);
}

.community-video-image {
    display: block;
    width: 100%;
    height: 100%;
    background-image: var(--thumbnail);
    background-position: center;
    background-size: cover;
    transition: transform 180ms ease;
}

.community-video-card:hover .community-video-image {
    transform: scale(1.025);
}

.play-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid color-mix(in srgb, #fff 45%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--term-bg) 78%, transparent);
    backdrop-filter: blur(8px);
}

.play-badge::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.16rem;
    border-top: 0.42rem solid transparent;
    border-bottom: 0.42rem solid transparent;
    border-left: 0.68rem solid #fff;
}

.community-video-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
}

.community-video-meta {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.community-video-title {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.community-video-desc {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

@keyframes theme-hint-pulse {
    0%, 70%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    78% {
        opacity: 0.45;
        transform: scale(1.06);
    }
    88% {
        opacity: 0;
        transform: scale(1.13);
    }
}

@keyframes theme-hint-dot {
    0%, 70%, 100% {
        transform: translateX(0);
    }
    78% {
        transform: translateX(2px);
    }
    86% {
        transform: translateX(0);
    }
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-top: 1px solid var(--line);
}

.contrast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.contrast-grid article {
    min-height: 140px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.contrast-grid span {
    display: block;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contrast-grid p {
    margin: 0.7rem 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 0.95rem;
}

.section-heading,
.section-heading-wide {
    margin-bottom: 1.75rem;
}

.section-heading h2,
.section-heading-wide h2,
.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    max-width: 800px;
    font-family: var(--mono);
    font-weight: 400;
}

.section-heading-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: 2.5rem;
    align-items: end;
}

.why-section .section-heading-wide {
    align-items: start;
}

.why-section .section-heading-wide p {
    margin-top: 0.5rem;
}

.section-heading-wide p,
.final-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.pillar-card,
.access-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.pillar-card {
    min-height: 220px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.card-index {
    width: fit-content;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.pillar-card h3,
.access-card h3 {
    margin: 1rem 0 0;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: 1.2rem;
    font-family: var(--mono);
    font-weight: 400;
}

.pillar-card p,
.access-card p {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.access-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
    padding: 1.1rem;
    background: var(--bg-elevated);
}

.access-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--accent);
}

.access-card:nth-child(2)::before {
    background: var(--green);
}

.access-card:nth-child(3)::before {
    background: var(--yellow);
}

.access-label {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.access-card h3 {
    margin-top: 0.85rem;
}

.access-card p {
    margin-top: 0.7rem;
}

.access-card pre {
    margin: auto 0 0;
    padding: 0.85rem;
    overflow: auto;
    border-radius: var(--radius-sm);
    background: var(--term-bg);
    color: var(--term-text);
    font-size: 0.78rem;
    line-height: 1.5;
    border: 1px solid var(--term-border);
}

.mobile-proof {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    align-items: center;
    gap: 2rem;
    margin-top: 2.4rem;
}

.mobile-copy h3 {
    margin: 0;
    max-width: 620px;
    color: var(--ink);
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-family: var(--mono);
    font-weight: 400;
}

.mobile-copy p:not(.section-kicker) {
    margin: 1rem 0 0;
    max-width: 480px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.mobile-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}

.mobile-proof figure {
    margin: 0;
    text-align: center;
}

.mobile-proof img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-md);
    border: 5px solid var(--term-bg);
    background: var(--term-bg);
}

.mobile-proof figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-family: var(--mono);
}

.mobile-shout {
    grid-column: 1 / -1;
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.mobile-shout a {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.mobile-shout a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.inline-links a {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.inline-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.code-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--term-bg);
    border: 1px solid var(--line-strong);
    overflow: hidden;
}

.code-card pre {
    margin: 0;
    padding: 1.15rem;
    color: var(--term-text);
    overflow: auto;
    font-size: 0.82rem;
    line-height: 1.75;
}

.code-card .comment {
    color: var(--term-muted);
}

.code-card .cmd {
    color: var(--term-prompt);
    font-weight: 700;
}

.code-card .flag {
    color: var(--term-str);
}

.code-card .str {
    color: var(--term-cmd);
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.68rem;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

td {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

tr:last-child td {
    border-bottom: 0;
}

th:last-child,
td:last-child {
    color: var(--accent);
    font-weight: 700;
    background: var(--accent-soft);
}

.compare-cards {
    display: none;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.6rem;
}

.agent-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.agent-card .agent-icon {
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    background-color: currentColor;
    opacity: 0.9;
    -webkit-mask-image: var(--agent-icon);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: var(--agent-icon);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.agent-more {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}


.integration-note {
    max-width: 680px;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.integration-note a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.final-cta {
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid var(--line);
}

.final-cta .section-kicker {
    justify-content: center;
}

.final-cta h2 {
    margin-inline: auto;
    max-width: 680px;
}

.final-cta p {
    max-width: 560px;
    margin: 1rem auto 0;
}

.footer {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--mono);
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
    transition:
        color 120ms ease,
        border-color 120ms ease,
        background 120ms ease;
}

.footer-social a:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    background: var(--accent-soft);
}

.footer-social svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.compare-hero {
    max-width: var(--max);
    min-height: auto;
    margin: 0 auto;
    padding: 5rem 1.25rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 2rem;
    align-items: center;
    border-bottom: 0;
}

.compare-hero .hero-copy {
    max-width: 640px;
}

.compare-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.compare-claim-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: transparent;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.compare-claim-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: var(--mono);
    font-weight: 400;
}

.compare-checks {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.compare-checks li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

.compare-checks li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
}

.compare-section .section-heading-wide a,
.compare-stack-section .section-heading-wide a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.comparison-matrix table {
    min-width: 900px;
}

.comparison-matrix th:last-child,
.comparison-matrix td:last-child {
    color: var(--ink-soft);
    font-weight: inherit;
    background: transparent;
}

.comparison-matrix th:nth-child(2),
.comparison-matrix td:nth-child(2) {
    color: var(--accent);
    font-weight: 700;
    background: var(--accent-soft);
}

.comparison-matrix td:first-child {
    color: var(--ink);
    font-weight: 600;
}

.differ-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
    gap: 0.75rem;
    align-items: stretch;
}

.intersection-card,
.differ-list article {
    border: 1px solid var(--line);
    background: transparent;
}

.intersection-card {
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.intersection-card h3 {
    margin: 1rem 0 0;
    color: var(--ink);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: var(--mono);
    font-weight: 400;
}

.intersection-card p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.intersection-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.intersection-pills span {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent);
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    font-family: var(--mono);
    font-weight: 700;
}

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

.differ-list article {
    min-height: 190px;
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.differ-list article span {
    display: block;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.differ-list article h3 {
    margin: 0.85rem 0 0;
    color: var(--ink);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-family: var(--mono);
    font-weight: 400;
}

.differ-list article p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.one-liner-list {
    display: grid;
    gap: 0.6rem;
}

.one-liner-list article {
    display: grid;
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.one-liner-list strong {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.one-liner-list span {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.compare-final-cta {
    margin-top: 0;
}

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

    .hero-left {
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .hero-right {
        padding: 3rem 2rem;
    }

    .hero-product-shot {
        max-width: 720px;
    }

    .section-heading-wide {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .mobile-proof,
    .differ-grid {
        grid-template-columns: 1fr;
    }

    .mobile-shots {
        max-width: 720px;
        margin-inline: auto;
    }

    .intersection-card {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .nav {
        padding-inline: 1rem;
    }

    .nav-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-tools {
        display: none;
    }

    .section,
    .demo-section,
    .footer,
    .final-cta {
        padding-inline: 1rem;
    }

    .hero-left {
        padding: 2.5rem 1.25rem;
    }

    .hero-right {
        padding: 2rem 1.25rem;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-lede {
        font-size: 0.95rem;
    }

    .install-card {
        border-radius: var(--radius-md);
        grid-template-columns: auto minmax(0, 1fr);
    }

    .install-card button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .demo-section {
        padding-bottom: 3rem;
    }

    .demo-video {
        border-radius: var(--radius-md);
    }

    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-heading h2,
    .section-heading-wide h2,
    .final-cta h2 {
        font-size: clamp(1.6rem, 10vw, 2.4rem);
    }

    .pillar-grid,
    .contrast-grid,
    .community-video-grid,
    .access-grid,
    .differ-list {
        grid-template-columns: 1fr;
    }

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

    .compare-section .table-wrap {
        display: none;
    }

    .compare-cards {
        display: grid;
        gap: 0.6rem;
    }

    .compare-cards article {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.85rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: transparent;
    }

    .compare-cards h3 {
        grid-column: 1 / -1;
        margin: 0 0 0.2rem;
        color: var(--ink);
        font-size: 0.95rem;
        letter-spacing: -0.02em;
        font-family: var(--mono);
    }

    .compare-cards span {
        display: grid;
        gap: 0.2rem;
        padding: 0.55rem 0.45rem;
        border-radius: var(--radius-sm);
        background: var(--bg-elevated);
        color: var(--muted);
        font-size: 0.65rem;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        font-family: var(--mono);
    }

    .compare-cards b {
        color: var(--ink-soft);
        font-size: 0.82rem;
        text-transform: none;
        font-weight: 600;
    }

    .compare-cards .herdr {
        background: var(--accent-soft);
        color: var(--accent);
    }

    .compare-cards .herdr b {
        color: var(--accent);
    }

    .one-liner-list article {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        min-height: auto;
    }

    .pillar-card p {
        margin-top: 0.85rem;
    }

    .access-card {
        min-height: auto;
    }

    .mobile-shots {
        grid-template-columns: 1fr;
    }

    .mobile-proof img {
        height: 300px;
    }

    .final-cta {
        border-radius: var(--radius-md);
        margin-bottom: 2.5rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 4.5rem;
    }

    .footer div {
        justify-content: flex-start;
    }

    .footer .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 440px) {
    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-right {
        order: -1;
        display: flex;
        padding: 1.25rem 1rem 1.5rem;
        border-bottom: 1px solid var(--line);
        border-top: 0;
    }

    .hero-left {
        border-bottom: none;
    }

    .hero-product-shot {
        width: 100%;
    }

    .hero-product-shot figcaption {
        display: block;
        margin-top: 0.45rem;
        font-size: 0.68rem;
    }

    .herdr-ui-mock {
        grid-template-columns: 96px minmax(0, 1fr);
        aspect-ratio: 16 / 10;
        font-size: 0.38rem;
        border-radius: var(--radius-md);
    }

    .mock-sidebar-title,
    .mock-sidebar-row,
    .mock-agent-title {
        padding: 0.28rem 0.45rem;
    }

    .mock-space {
        gap: 0.3rem;
        padding: 0.3rem 0.45rem;
    }

    .mock-agent {
        gap: 0.3rem;
        padding: 0.24rem 0.45rem;
    }

    .mock-tabs {
        height: 1.05rem;
    }

    .mock-tabs span {
        min-width: 2.8rem;
        padding: 0.15rem 0.4rem;
    }

    .mock-panes {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .mock-pane:nth-child(2) {
        display: none;
    }

    .mock-pane pre {
        margin: 0.35rem 0 0.45rem;
    }

    .mobile-proof,
    .mobile-shots {
        gap: 0.55rem;
    }

    .mobile-proof img {
        height: 260px;
        border-width: 4px;
    }
}

.content-shell {
    padding-bottom: 5rem;
}

.page-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 5rem 1.25rem 2.25rem;
}

.page-hero-compact {
    max-width: 860px;
}

.page-hero h1 {
    max-width: 14ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.article-header h1 {
    max-width: 22ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.page-hero .hero-lede {
    max-width: 680px;
    color: var(--muted);
}

.section-narrow {
    max-width: 860px;
}

.post-list {
    display: grid;
}

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

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

.post-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 0;
    text-decoration: none;
}

.post-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1;
    letter-spacing: -0.055em;
    transition: color 0.16s ease;
}

.post-card p {
    max-width: 680px;
    margin: 0.55rem 0 0;
    color: color-mix(in srgb, var(--ink) 62%, var(--muted));
    line-height: 1.55;
}

.release-card-version {
    margin: 0 0 0.42rem !important;
    color: var(--accent) !important;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card span {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 800;
    opacity: 0.55;
    transition:
        color 0.16s ease,
        opacity 0.16s ease,
        transform 0.16s ease;
}

.post-card:hover h2 {
    color: var(--accent);
}

.post-card:hover span {
    color: var(--accent);
    opacity: 1;
    transform: translateX(4px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 0.85rem;
    color: color-mix(in srgb, var(--ink) 58%, var(--muted));
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.post-meta > * + *::before {
    content: "/";
    margin-right: 0.55rem;
    color: var(--line-strong);
}

.article-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 860px);
    gap: clamp(2rem, 6vw, 4rem);
    align-items: start;
    padding-top: 4rem;
}

.article-shell {
    min-width: 0;
}

.article-toc {
    position: sticky;
    top: 6rem;
    padding-top: 0.35rem;
    color: color-mix(in srgb, var(--ink) 58%, var(--muted));
    font-family: var(--mono);
    font-size: 0.78rem;
}

.article-toc p {
    margin: 0 0 0.7rem;
    color: color-mix(in srgb, var(--ink) 42%, var(--muted));
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-toc nav {
    display: grid;
    gap: 0.55rem;
}

.article-toc a {
    color: color-mix(in srgb, var(--ink) 58%, var(--muted));
    line-height: 1.35;
    text-decoration: none;
}

.article-toc a:hover,
.article-toc a[aria-current="true"] {
    color: var(--accent);
}

.article-header {
    margin-bottom: 2.35rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.article-header p:last-child {
    max-width: 680px;
    margin: 1.2rem 0 0;
    color: color-mix(in srgb, var(--ink) 68%, var(--muted));
    font-size: 1.18rem;
    line-height: 1.7;
}

.article-prose {
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.82;
}

.article-prose > *:first-child {
    margin-top: 0;
}

.article-prose h1,
.article-prose h2,
.article-prose h3 {
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.article-prose h1 {
    margin: 2.3rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-prose h2 {
    margin: 2.2rem 0 0.75rem;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.article-prose h3 {
    margin: 1.7rem 0 0.65rem;
    font-size: 1.25rem;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
    margin: 1rem 0;
}

.article-prose ul,
.article-prose ol {
    padding-left: 1.35rem;
}

.article-prose li + li {
    margin-top: 0.42rem;
}

.article-prose blockquote {
    margin: 1.2rem 0;
    border-left: 2px solid color-mix(in srgb, var(--accent) 72%, var(--line));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-elevated) 46%, transparent);
    padding: 0.72rem 0.95rem;
    color: color-mix(in srgb, var(--ink) 76%, var(--muted));
    font-size: 1.06rem;
    font-weight: 560;
    line-height: 1.7;
}

.article-prose blockquote p {
    margin: 0;
}

.article-prose a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.article-prose code {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--ink);
    padding: 0.08rem 0.28rem;
    font-size: 0.9em;
}

.article-prose pre {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--ink);
    padding: 1rem;
}

.article-prose pre code {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-prose .expressive-code .frame {
    border-color: var(--line) !important;
    background: var(--bg-elevated) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.article-prose .expressive-code .frame figcaption.header {
    display: none !important;
}

.article-prose .expressive-code pre {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bg-elevated) !important;
    color: var(--ink) !important;
}

.article-prose .expressive-code .code,
.article-prose .expressive-code .code span {
    color: var(--ink) !important;
}

.release-shell {
    max-width: 900px;
}

.release-header h1 {
    max-width: 820px;
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
    line-height: 1.04;
}

.release-prose h2 {
    margin-top: 3rem;
}

.release-prose h3 {
    margin-top: 1.9rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.release-media {
    margin: 1.6rem 0 2.4rem;
}

.release-media video {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.release-media figcaption {
    margin-top: 0.75rem;
    color: color-mix(in srgb, var(--ink) 52%, var(--muted));
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.5;
}

.release-video-placeholder {
    display: grid;
    min-height: 19rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
        var(--bg-elevated);
    color: var(--ink);
    padding: 2rem;
    text-align: center;
}

.release-video-placeholder span {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.release-video-placeholder strong {
    display: block;
    margin-top: 0.6rem;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.release-video-placeholder code {
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 3.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
}

.author-photo {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.author-body {
    min-width: 0;
}

.author-name {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.author-role {
    margin: 0.1rem 0 0;
    color: color-mix(in srgb, var(--ink) 56%, var(--muted));
    font-family: var(--mono);
    font-size: 0.8rem;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: color-mix(in srgb, var(--ink) 78%, var(--muted));
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.author-links a:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.author-links svg {
    flex: none;
}

@media (max-width: 1040px) {
    .article-layout {
        display: block;
        max-width: 860px;
    }

    .article-toc {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .theme-hint::after {
        display: none;
    }
}

/* ===== herd mock: interactive views, agent panes, attach animation ===== */

.mock-view {
    display: none;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
}

.mock-view.active {
    display: grid;
}

.herdr-ui-mock .mock-main {
    grid-template-rows: minmax(0, 1fr);
}

.mock-panes.single {
    grid-template-columns: minmax(0, 1fr);
}

/* TUI panes pin their prompt/status area to the bottom, like the real thing */
.mock-pane.tui {
    display: flex;
    flex-direction: column;
}

.mock-pane.tui .tui-bottom {
    margin-top: auto;
}

.herdr-ui-mock .mock-space,
.herdr-ui-mock .mock-agent,
.herdr-ui-mock .mock-tabs span {
    cursor: pointer;
}

.herdr-ui-mock .mock-space:hover,
.herdr-ui-mock .mock-agent:hover {
    background: var(--term-active-bg);
}

.mock-view .mock-panes {
    display: none;
}

.mock-view .mock-panes.active {
    display: grid;
}

.cc-head b {
    color: var(--term-text);
}

.cc-mark,
.cc-working {
    color: #d97757;
}

.cc-bullet {
    color: #d97757;
}

/* Claude Code header logo + status footer — colors hardcoded to match the
   real agent UI, not the site theme (the pane renders the agent, not herdr) */
.cc-header {
    display: flex;
    gap: 0.6em;
    align-items: center;
}

.herdr-ui-mock .cc-logo-art {
    margin: 0;
    color: #d97757;
    line-height: 1;
    white-space: pre;
    font-family: var(--mono);
}

.cc-header-text {
    min-width: 0;
}

.cc-header-text > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-status {
    white-space: nowrap;
    overflow: hidden;
}

.cc-file {
    color: #b1b9f9;
}

.cc-cyan {
    color: #4ec9d4;
}

.cc-yellow {
    color: #d7ba7d;
}

.cc-coral {
    color: #ff6b80;
}

.cc-gy {
    color: var(--term-dim);
}

.cx-bullet {
    color: var(--accent);
}

.cc-rule {
    margin: 0.5rem 0;
    border-top: 1px solid var(--term-border);
}

.cc-permission {
    margin-top: 0.55rem;
    border: 1px solid var(--red);
    padding: 0.5rem 0.6rem;
}

/* opencode pane: brand gold/purple, outline badge, walled input box */
.oc-y {
    color: #d9b66b;
}

.oc-purple {
    color: #b481d4;
}

.oc-badge {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    vertical-align: -0.05em;
    border: 1px solid var(--term-muted);
}

.oc-input {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 4.6em;
    margin-top: 0.3em;
    border-left: 0.28em solid #b481d4;
    border-bottom: 0.18em solid var(--term-border);
    background: var(--term-active-bg);
    padding: 0.4em 0.6em;
}

.oc-status {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35em;
}

.cc-permission .sel {
    color: var(--accent);
    font-weight: 700;
}

.herdr-ui-mock .dim {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* sidebar rows must scale with the mock's clamped font size */
.herdr-ui-mock .mock-sidebar-title {
    padding: 0.55em 1.1em;
}

.herdr-ui-mock .mock-space {
    padding: 0.55em 1.1em;
    gap: 0.7em;
}

.herdr-ui-mock .mock-sidebar-row,
.herdr-ui-mock .mock-agent-title {
    padding: 0.45em 1.1em;
}

.herdr-ui-mock .mock-agent {
    padding: 0.38em 1.1em;
    gap: 0.6em;
}

.herdr-ui-mock .mock-space small,
.herdr-ui-mock .mock-agent small {
    margin-top: 0.18em;
}

/* attach: sidebar populates once on load; view switches fade without movement */
@keyframes mock-attach {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mock-swap {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.herdr-ui-mock .mock-sidebar > * {
    animation: mock-attach 0.3s ease backwards;
}

.herdr-ui-mock .mock-sidebar > *:nth-child(1) { animation-delay: 0.05s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(2) { animation-delay: 0.12s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(3) { animation-delay: 0.19s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(4) { animation-delay: 0.26s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(6) { animation-delay: 0.33s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(7) { animation-delay: 0.4s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(8) { animation-delay: 0.47s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(9) { animation-delay: 0.54s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(10) { animation-delay: 0.61s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(11) { animation-delay: 0.68s; }
.herdr-ui-mock .mock-sidebar > *:nth-child(12) { animation-delay: 0.75s; }

.mock-view.active .mock-panes.active .mock-pane {
    animation: mock-swap 0.18s ease backwards;
}

@media (prefers-reduced-motion: reduce) {
    .herdr-ui-mock .mock-sidebar > *,
    .mock-view.active .mock-tabs,
    .mock-view.active .mock-pane {
        animation: none;
    }
}

/* Homepage marketplace teaser */
.marketplace-teaser {
    display: block;
    padding-block: 4.5rem;
    border-bottom: 1px solid var(--line);
}

.marketplace-teaser-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.marketplace-teaser-install {
    display: grid;
    gap: 0.55rem;
    align-content: center;
}

.marketplace-install-output {
    margin: 0;
    padding-inline: 0.9rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.marketplace-install-note {
    margin: 0;
    padding-inline: 0.9rem;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.75rem;
}

@media (max-width: 50rem) {
    .marketplace-teaser-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.marketplace-teaser-copy h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.marketplace-teaser-lede {
    max-width: 30rem;
    margin: 1.1rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.6;
}

.marketplace-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2.5rem;
}

@media (max-width: 68rem) {
    .marketplace-teaser-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mp-chip {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color 0.12s ease, transform 0.12s ease;
}

.mp-chip:hover {
    border-color: var(--accent);
    transform: translateX(2px);
}

.mp-chip-name {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 600;
}

.mp-chip-desc {
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.45;
}

.mp-chip-meta {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
}

@media (max-width: 50rem) {
    .marketplace-teaser {
        padding-block: 3.5rem;
    }

    .marketplace-teaser-grid {
        grid-template-columns: 1fr;
    }
}

/* What you get: balanced capability grid + code card */
.capability-section .section-heading-wide {
    align-items: end;
}

.capability-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2.25rem;
}

.capability-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.capability-cards article {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.capability-cards h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.92rem;
}

.capability-cards p {
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 50rem) {
    .capability-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
