/* VIBE TOOLS — shared stylesheet. Dark graphite + electric lime, cyan secondary, amber = planned. */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0c0f;
  --bg-2: #0d1014;
  --surface: #12151a;
  --raised: #1a1e25;
  --raised-2: #20252d;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .2);
  --text: #e8ece6;
  --text-2: #b7bdb8;
  --muted: #8a919a;
  --dim: #5f666f;
  --lime: #c6ff3d;
  --lime-ink: #c6ff3d;          /* lime used as text */
  --lime-soft: rgba(198, 255, 61, .12);
  --lime-glow: rgba(198, 255, 61, .35);
  --on-lime: #0a0c0f;
  --cyan: #2ee6ff;
  --cyan-ink: #2ee6ff;
  --cyan-soft: rgba(46, 230, 255, .1);
  --amber: #ffb547;
  --amber-ink: #ffb547;
  --amber-soft: rgba(255, 181, 71, .1);
  --danger: #ff6b5a;
  --grid-line: rgba(255, 255, 255, .028);
  --glow: rgba(198, 255, 61, .07);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -24px rgba(0,0,0,.8);
  --code-bg: #07090b;
  --header-bg: rgba(10, 12, 15, .72);
  --grain-opacity: .035;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --f-code: 'Courier New', Courier, ui-monospace, monospace; /* commands + code read like real code */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 60px;
  color-scheme: dark;
}

/* light palette (explicit, or system when no explicit choice) */
:root[data-theme="light"] {
  --bg: #f6f7f4; --bg-2: #eef0ea; --surface: #ffffff; --raised: #f1f3ee; --raised-2: #e8ebe4;
  --line: rgba(13, 16, 20, .08); --line-2: rgba(13, 16, 20, .14); --line-3: rgba(13, 16, 20, .24);
  --text: #0d1014; --text-2: #2c333a; --muted: #5b636c; --dim: #8a9199;
  --lime: #c6ff3d; --lime-ink: #4f7a00; --lime-soft: rgba(110, 160, 0, .12); --lime-glow: rgba(110, 170, 0, .3);
  --on-lime: #0d1014;
  --cyan: #00b8d9; --cyan-ink: #00788f; --cyan-soft: rgba(0, 160, 200, .1);
  --amber: #e08a00; --amber-ink: #9a5c00; --amber-soft: rgba(224, 138, 0, .12);
  --grid-line: rgba(13, 16, 20, .045); --glow: rgba(140, 200, 0, .1);
  --shadow: 0 1px 2px rgba(13,16,20,.04), 0 18px 40px -26px rgba(13,16,20,.25);
  --code-bg: #0f1216; --header-bg: rgba(246, 247, 244, .78); --grain-opacity: .025;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f4; --bg-2: #eef0ea; --surface: #ffffff; --raised: #f1f3ee; --raised-2: #e8ebe4;
    --line: rgba(13, 16, 20, .08); --line-2: rgba(13, 16, 20, .14); --line-3: rgba(13, 16, 20, .24);
    --text: #0d1014; --text-2: #2c333a; --muted: #5b636c; --dim: #8a9199;
    --lime: #c6ff3d; --lime-ink: #4f7a00; --lime-soft: rgba(110, 160, 0, .12); --lime-glow: rgba(110, 170, 0, .3);
    --on-lime: #0d1014;
    --cyan: #00b8d9; --cyan-ink: #00788f; --cyan-soft: rgba(0, 160, 200, .1);
    --amber: #e08a00; --amber-ink: #9a5c00; --amber-soft: rgba(224, 138, 0, .12);
    --grid-line: rgba(13, 16, 20, .045); --glow: rgba(140, 200, 0, .1);
    --shadow: 0 1px 2px rgba(13,16,20,.04), 0 18px 40px -26px rgba(13,16,20,.25);
    --code-bg: #0f1216; --header-bg: rgba(246, 247, 244, .78); --grain-opacity: .025;
    color-scheme: light;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--f-ui); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* grid paper + cursor glow */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, -10%), var(--glow), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
}
/* film grain */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
main a:where(:not([class])) { color: var(--lime-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lime-ink) 35%, transparent); text-underline-offset: 3px; }
main a:where(:not([class])):hover { text-decoration-color: var(--lime-ink); }
button { font: inherit; color: inherit; }
code, kbd, pre, .mono { font-family: var(--f-mono); }
:not(pre) > code { overflow-wrap: anywhere; font-size: .86em; padding: .12em .4em; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.03em; line-height: 1.08; margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 980px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.eyebrow { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 1px; box-shadow: 0 0 10px var(--lime-glow); }
.eyebrow.cyan::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.eyebrow.amber::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.h-xl { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.045em; line-height: .98; }
.h-lg { font-size: clamp(30px, 3.6vw, 44px); }
.h-md { font-size: clamp(22px, 2.2vw, 28px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); line-height: 1.5; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.lime { color: var(--lime-ink); }
.cyan { color: var(--cyan-ink); }
.amber { color: var(--amber-ink); }
.grad-text { background: linear-gradient(100deg, var(--lime) 0%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad-text { background-image: linear-gradient(100deg, #4f7a00, #00788f); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .grad-text { background-image: linear-gradient(100deg, #4f7a00, #00788f); } }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin-top: 12px; }
.sec-head p { max-width: 520px; margin-top: 10px; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-display); letter-spacing: .02em; white-space: nowrap; }
.wordmark .mark { width: 28px; height: 28px; flex: none; }
.wordmark .w-vibe { color: var(--text); }
.wordmark .w-tools { color: transparent; -webkit-text-stroke: 1px var(--text); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a { font: 500 12.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--muted); padding: 9px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ''; display: block; height: 2px; margin-top: 5px; margin-bottom: -7px; background: var(--lime); border-radius: 2px; box-shadow: 0 0 8px var(--lime-glow); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { border-color: var(--line-3); color: var(--text); background: var(--raised); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme-toggle .i-sun { display: block; } :root:not([data-theme]) .theme-toggle .i-moon { display: none; } }

.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s; overflow-y: auto; }
.drawer.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.drawer a { font: 600 22px/1 var(--f-display); letter-spacing: -.02em; padding: 16px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer a::after { content: '→'; font-family: var(--f-mono); color: var(--dim); font-size: 16px; }
.drawer a[aria-current="page"] { color: var(--lime-ink); }
.drawer a:last-child { color: var(--lime-ink); }
body.drawer-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font: 600 14px/1 var(--f-ui); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), border-color .2s, background .2s, box-shadow .25s, color .2s; text-decoration: none; }
.btn:hover { border-color: var(--line-3); background: var(--raised-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--lime); color: var(--on-lime); border-color: transparent; box-shadow: 0 0 0 1px rgba(198,255,61,.4), 0 8px 30px -10px var(--lime-glow); }
.btn-primary:hover { background: #d4ff66; border-color: transparent; box-shadow: 0 0 0 1px rgba(198,255,61,.6), 0 10px 36px -8px var(--lime-glow); }
.btn-ghost { background: transparent; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 6px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-arrow { font: 500 13px/1 var(--f-mono); letter-spacing: .02em; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: color .2s, gap .2s; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--lime-ink); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- pills, tags, chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.pill-live { color: var(--lime-ink); border-color: color-mix(in srgb, var(--lime-ink) 35%, transparent); background: var(--lime-soft); }
.pill-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 2s ease-in-out infinite; }
.pill-planned { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 32%, transparent); background: var(--amber-soft); }
.pill-planned::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--amber); }
.pill-preview { color: var(--cyan-ink); border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent); background: var(--cyan-soft); }
.pill-preview::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pill-beta { color: var(--cyan-ink); border-color: color-mix(in srgb, var(--cyan-ink) 55%, transparent); background: transparent; }
.pill-beta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--cyan); }
.pill-roadmap { color: var(--dim); border-color: var(--line-2); background: transparent; }
.pill-roadmap::before { content: ''; width: 6px; height: 1.5px; border-radius: 1px; background: var(--dim); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--raised); border: 1px solid var(--line); white-space: nowrap; }
.tag-pro { color: var(--cyan-ink); border-color: color-mix(in srgb, var(--cyan-ink) 25%, transparent); background: var(--cyan-soft); }
.tag svg { width: 11px; height: 11px; }
@keyframes pulse { 50% { opacity: .45; } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 12.5px/1 var(--f-mono); letter-spacing: .04em; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { color: var(--on-lime); background: var(--lime); border-color: transparent; }
.chip .count { font-size: 10.5px; opacity: .6; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-pad { padding: 28px; }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.kbd { font: 500 11px/1 var(--f-mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--muted); }

/* ---------- hero (home) ---------- */
.hero { padding: 96px 0 28px; position: relative; }
.grid-note { font-size: 11px; margin-top: 14px; letter-spacing: .06em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { margin-top: 0; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero .lead { margin-top: 18px; max-width: 620px; }
.hero .support { margin-top: 10px; font: 500 13px/1.5 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.hero .support b { color: var(--text); font-weight: 500; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.hero-meta div { padding: 14px 20px; border-left: 1px solid var(--line); }
.hero-meta div:first-child { border-left: 0; }
.hero-meta b { display: block; font: 600 22px/1 var(--f-display); letter-spacing: -.02em; }
.hero-meta span { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 7px; }

/* ---------- toolbar (filters + search) ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 2; padding: 9px 10px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 82%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cyan) 14%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 4%, transparent), 0 10px 34px -22px color-mix(in srgb, var(--cyan) 55%, transparent); }
.search { position: relative; flex: 0 1 300px; }
.search input { width: 100%; height: 38px; display: block; padding: 0 64px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 14px var(--f-ui); transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); box-shadow: 0 0 0 3px var(--lime-soft); }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* ---------- tool grid + cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; cursor: pointer; isolation: isolate; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 14px 30px -22px rgba(0,0,0,.8); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -26px rgba(0,0,0,.9), 0 0 40px -18px color-mix(in srgb, var(--accent, var(--lime)) 40%, transparent); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(118deg, var(--lime), var(--cyan)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 3; }
.tile:hover::after, .tile:focus-within::after { opacity: .9; }
.tile .cover { position: relative; height: 112px; overflow: hidden; background: #0d1015; }
.tile .cover .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.tile:hover .cover .cover-art { transform: scale(1.05); }
.tile .body { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.tile .head { display: flex; gap: 11px; align-items: flex-end; min-width: 0; }
.tile .t-icon { flex: none; width: 50px; height: 50px; margin-top: -26px; position: relative; z-index: 2; border-radius: 15px; background: var(--surface); padding: 2px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); transition: transform .35s var(--ease); }
.tile .t-icon svg { width: 46px; height: 46px; display: block; }
.tile:hover .t-icon { transform: translateY(-2px) rotate(-4deg); }
.tile .ttl { font: 700 16px/1.2 var(--f-display); letter-spacing: .01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 3px; }
.tile .tagline { font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.tile .pills { display: flex; gap: 5px; flex-wrap: wrap; }
.tile .pills .pill, .tile .pills .tag { height: 20px; font-size: 9.5px; padding: 0 7px; }
.tile .pills .tag svg { width: 10px; height: 10px; }
.tile .foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font: 500 11.5px/1 var(--f-mono); color: var(--dim); min-width: 0; }
.tile .foot-note { letter-spacing: .06em; }
.tile .foot-link { margin-left: auto; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; transition: color .2s; }
.tile .foot-link::after { content: '→'; transition: transform .2s var(--ease); }
.tile:hover .foot-link { color: var(--text); }
.tile .foot-link:hover { color: var(--lime-ink); }
.tile .foot-link:hover::after { transform: translateX(2px); }
.tile.planned { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.tile.planned .cover .cover-art { filter: saturate(.5) brightness(.92); }
.tile.planned:hover .cover .cover-art { filter: saturate(.8) brightness(.95); opacity: 1; }
.tile.planned .t-icon svg { filter: saturate(.6); opacity: .85; transition: filter .25s, opacity .25s; }
.tile.planned:hover .t-icon svg { filter: none; opacity: 1; }
.tile.planned .ttl { color: var(--text-2); }

/* featured tile: Vibe Accounts, cover = live avatar strip */
.tile.feat { grid-column: span 2; border-color: var(--line-2); background: radial-gradient(500px 200px at 100% 100%, rgba(46,230,255,.05), transparent 60%), var(--surface); }
.tile.feat .cover { background: radial-gradient(420px 160px at 20% 0%, rgba(198,255,61,.14), transparent 70%), radial-gradient(360px 160px at 100% 100%, rgba(46,230,255,.1), transparent 70%), #0b0e12; }
.tile.feat .cover::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(198,255,61,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(198,255,61,.07) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(90deg, #000, transparent 85%); pointer-events: none; }
.tile.feat .tagline { min-height: 0; }
.mini-copy { position: relative; overflow: hidden; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font: 600 12px/1 var(--f-ui); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.mini-copy:hover { border-color: color-mix(in srgb, var(--lime-ink) 55%, transparent); color: var(--lime-ink); background: var(--lime-soft); }
.mini-copy:active { transform: scale(.96); }
.mini-copy svg { width: 14px; height: 14px; flex: none; }
.mini-copy .i-check { display: none; }
.mini-copy.copied { background: var(--lime); border-color: transparent; color: var(--on-lime); }
.mini-copy.copied .i-copy { display: none; }
.mini-copy.copied .i-check { display: block; animation: pop .35s var(--ease); }
.mini-copy::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%); transform: translateX(-110%); }
.mini-copy.flash::after { animation: sweep .7s var(--ease); }
.mini-copy:first-of-type { border-color: color-mix(in srgb, var(--lime-ink) 40%, transparent); }

.avatar-strip { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px 16px; }
.avatar-strip .av:nth-child(n+6) { display: none; }
.avatar-strip .avs { display: flex; gap: 8px; flex: none; }
.avatar-strip .av { width: 50px; height: 50px; border-radius: 13px; overflow: hidden; background: var(--raised); box-shadow: 0 10px 20px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); transition: transform .5s var(--ease), opacity .4s; }
.avatar-strip .av svg { width: 100%; height: 100%; display: block; }
.avatar-strip .av.out { opacity: 0; transform: translateY(6px) scale(.9); }
.avatar-strip .av-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.avatar-strip .av-name span { white-space: nowrap; font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6f7780; }
.avatar-strip .av-name b { font: 600 17px/1.15 var(--f-display); color: #e8ece6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.reroll { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #b7bdb8; display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.reroll:hover { color: #c6ff3d; border-color: rgba(198,255,61,.45); transform: rotate(90deg); }
.reroll svg { width: 16px; height: 16px; }
.vt-mark { display: block; }


/* ---------- copy rows ---------- */
.copy-stack { display: flex; flex-direction: column; gap: 8px; }
.copy-row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 0; border-radius: 11px; border: 1px solid var(--line-2); background: var(--code-bg); overflow: hidden; cursor: default; transition: border-color .2s; }
.copy-row:hover { border-color: var(--line-3); }
.copy-label { white-space: nowrap; align-self: stretch; display: flex; align-items: center; gap: 6px; padding: 0 12px; font: 600 10px/1 var(--f-mono); letter-spacing: .12em; color: #8a919a; border-right: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.copy-label svg { width: 12px; height: 12px; flex: none; }
.copy-value { padding: 11px 12px; font: 400 12.5px/1.45 var(--f-mono); color: #dfe5dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-value .ps { color: #c6ff3d; user-select: none; margin-right: 8px; }
.copy-value .faint { color: #7d858e; }
.copy-value.multiline { white-space: pre; overflow-x: auto; text-overflow: clip; max-height: 140px; }
.copy-btn { margin: 5px; height: 32px; min-width: 82px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #e8ece6; font: 600 12px/1 var(--f-ui); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.copy-btn:hover { background: rgba(198,255,61,.12); border-color: rgba(198,255,61,.4); color: #c6ff3d; }
.copy-btn:active { transform: scale(.96); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn .i-check { display: none; }
.copy-btn.copied { background: #c6ff3d; color: #0a0c0f; border-color: transparent; }
.copy-btn.copied .i-copy { display: none; }
.copy-btn.copied .i-check { display: block; animation: pop .35s var(--ease); }
.copy-row::after, .code-block::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(198,255,61,.22) 50%, transparent 80%); transform: translateX(-110%); }
.copy-row.flash::after, .code-block.flash::after { animation: sweep .75s var(--ease); }
.copy-row.flash { border-color: rgba(198,255,61,.55); box-shadow: 0 0 0 3px rgba(198,255,61,.1); }
@keyframes sweep { to { transform: translateX(110%); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.after-publish { font: 400 11px/1.4 var(--f-mono); color: var(--dim); padding-left: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.after-publish code { background: none; border: 0; padding: 0; color: var(--muted); font-size: 11px; }

/* ---------- code blocks ---------- */
.code-block { position: relative; border-radius: var(--r); border: 1px solid rgba(255,255,255,.09); background: var(--code-bg); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 0 14px; height: 40px; border-bottom: 1px solid rgba(255,255,255,.07); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: #8a919a; text-transform: uppercase; }
.code-head .copy-btn { margin: 0; height: 28px; min-width: 74px; }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 12.8px/1.65 var(--f-mono); color: #dfe5dc; tab-size: 2; }
.code-block pre .c { color: #6c757e; }
.code-block pre .k { color: #2ee6ff; }
.code-block pre .s { color: #c6ff3d; }
.code-block pre .n { color: #ffb547; }

/* ---------- toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 12px; background: #15191f; color: #e8ece6; border: 1px solid rgba(198,255,61,.35); box-shadow: 0 16px 40px -12px rgba(0,0,0,.7), 0 0 30px -8px rgba(198,255,61,.25); font: 500 13px/1.3 var(--f-ui); animation: toast-in .35s var(--ease); max-width: calc(100vw - 32px); }
.toast .t-ico { width: 22px; height: 22px; border-radius: 6px; background: #c6ff3d; color: #0a0c0f; display: grid; place-items: center; flex: none; }
.toast .t-ico svg { width: 14px; height: 14px; }
.toast.err { border-color: rgba(255,107,90,.45); }
.toast.err .t-ico { background: var(--danger); }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.step { padding: 26px 26px 28px; position: relative; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-n { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--lime-ink); }
.step h3 { font-size: 22px; margin: 14px 0 8px; }
.step p { color: var(--text-2); font-size: 14px; }
.step .step-ico { position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.step .step-ico svg { width: 17px; height: 17px; }
.step:not(:last-child)::after { content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: var(--surface); transform: translateY(-50%) rotate(45deg); z-index: 2; }

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.feature .f-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--lime-ink); background: var(--lime-soft); margin-bottom: 14px; }
.feature .f-ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.list-check li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--text-2); }
.list-check li::before { content: ''; width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c6ff3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/11px no-repeat; border: 1px solid color-mix(in srgb, var(--lime-ink) 30%, transparent); }
.list-x li::before { background: rgba(255,107,90,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff6b5a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E") center/11px no-repeat; border-color: rgba(255,107,90,.3); }
:root[data-theme="light"] .list-check li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234f7a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .list-x li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d0402e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E"); }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .list-check li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234f7a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); }
  :root:not([data-theme="dark"]) .list-x li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d0402e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E"); }
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: 500 12.5px/1 var(--f-mono); letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--raised-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 0 0 1px var(--line-2); }
.tab-panel { margin-top: 16px; }
.tab-panel[hidden] { display: none; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--text-2); }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.callout.lime { border-color: color-mix(in srgb, var(--lime-ink) 30%, transparent); background: var(--lime-soft); }
.callout.lime svg { color: var(--lime-ink); }
.callout.amber { border-color: color-mix(in srgb, var(--amber-ink) 30%, transparent); background: var(--amber-soft); }
.callout.amber svg { color: var(--amber-ink); }
.callout.cyan { border-color: color-mix(in srgb, var(--cyan-ink) 28%, transparent); background: var(--cyan-soft); }
.callout.cyan svg { color: var(--cyan-ink); }
.callout b { color: var(--text); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { margin-top: 16px; }
.page-hero .lead { margin-top: 14px; max-width: 680px; }
.crumbs { font: 500 12px/1 var(--f-mono); color: var(--dim); display: flex; gap: 8px; align-items: center; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field .hint { font: 400 12px/1.4 var(--f-ui); color: var(--dim); text-transform: none; letter-spacing: 0; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 14px var(--f-ui); transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a919a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); box-shadow: 0 0 0 3px var(--lime-soft); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); gap: 2px; flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 11px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); font: 500 12px/1 var(--f-mono); cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--raised-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.range { width: 100%; accent-color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .wordmark { color: var(--text); }
.site-footer .fine { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11.5px/1.5 var(--f-mono); color: var(--dim); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tool-grid .tile { animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); font: 400 14px var(--f-ui); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { justify-self: start; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 20px; }
  .hero .cta-row .btn { flex: 1 1 auto; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .hero-meta div { padding: 12px 14px; }
  .hero-meta b { font-size: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
  .search { flex: 1 1 auto; }
  .search .kbd { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 5px; }
  .chips .chip { flex: 1 1 auto; justify-content: center; height: 36px; padding: 0 9px; gap: 5px; font-size: 11.5px; letter-spacing: .02em; }
  .chips::-webkit-scrollbar { display: none; }
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .copy-label { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 8px 12px; }
  .copy-value { white-space: normal; word-break: break-all; text-overflow: clip; }
  .copy-value.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step:not(:last-child)::after { right: auto; left: 32px; top: auto; bottom: -7px; transform: rotate(135deg); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .panel-pad { padding: 20px; }
  .page-hero { padding: 36px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* compact tiles on phones: two columns when they fit */
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .cover { height: 76px; }
  .tile .body { padding: 0 10px 10px; gap: 6px; }
  .tile .head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tile .t-icon { width: 42px; height: 42px; margin-top: -22px; border-radius: 13px; }
  .tile .t-icon svg { width: 38px; height: 38px; }
  .tile .ttl { font-size: 14px; padding: 0; }
  .tile .tagline { font-size: 12px; }
  .tile .pills .tag { display: none; }
  .tile.feat { grid-column: 1 / -1; }
  .tile.feat .cover { height: 104px; }
  .tile.feat .head { flex-direction: row; align-items: flex-end; }
  .tile.feat .pills .tag { display: inline-flex; }
  .tile.feat .foot { flex-wrap: wrap; }
  .avatar-strip { padding: 0 12px 12px; gap: 10px; }
  .avatar-strip .av { width: 44px; height: 44px; border-radius: 11px; }
  .avatar-strip .av:nth-child(n+4) { display: none; }
  .avatar-strip .av-name { overflow: hidden; }
  .avatar-strip .av-name span { display: none; }
  .avatar-strip .av-name b { font-size: 14px; }
  .tile.feat .foot-link { display: none; }
  .tile.feat .mini-copy { flex: 1 1 0; justify-content: center; padding: 0 8px; }
}
@media (max-width: 359px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- visible code lines on tiles (Courier New + copy icon) ---------- */
.tile .code-lines { display: grid; gap: 6px; margin-top: 2px; }
.code-line { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; height: 36px; padding: 0 6px 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--code-bg); color: var(--text); font: 700 13.5px/1 var(--f-code); letter-spacing: -.01em; text-align: left; cursor: copy; transition: border-color .2s, box-shadow .2s; }
.code-line:hover { border-color: color-mix(in srgb, var(--lime-ink) 45%, transparent); }
.code-line .cl-pill { font: 600 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; color: var(--lime-ink); background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--lime-ink) 35%, transparent); }
.code-line.prompt .cl-pill { color: #2ee6ff; background: rgba(46,230,255,.1); border-color: rgba(46,230,255,.35); }
.code-line .cl-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: rtl; /* keep the END of long commands visible ("…vibe-tools.mjs add accounts") */ }
.code-line.prompt .cl-text { direction: ltr; color: var(--muted); font-weight: 400; } /* prompt reads from the start */
.code-line .cl-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.code-line:hover .cl-icon { background: var(--lime-soft); color: var(--lime-ink); }
.code-line .cl-icon svg { width: 14px; height: 14px; }
.code-line .i-check { display: none; }
.code-line.copied .i-copy { display: none; }
.code-line.copied .i-check { display: block; color: var(--lime-ink); }
.code-line::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(198,255,61,.22) 50%, transparent 80%); transform: translateX(-110%); }
.code-line.flash::after { animation: sweep .75s var(--ease); }
.code-line.flash { border-color: rgba(198,255,61,.55); box-shadow: 0 0 0 3px rgba(198,255,61,.1); }
.copy-value, .code-block code, pre code { font-family: var(--f-code); font-weight: 700; }

/* ---------- Vibe Accounts tile: 4 generated identities + name in one row, right of the overlapping mark ---------- */
.tile.feat .avatar-strip { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 16px 0 92px; }
.tile.feat .avatar-strip .avs { gap: 8px; margin: 0; }
.tile.feat .avatar-strip .av { display: block; width: 48px; height: 48px; border-radius: 13px; }
.tile.feat .avatar-strip .av:nth-child(n+5) { display: none; } /* 4 on desktop */
.tile.feat .avatar-strip .av-name { flex: 0 1 auto; min-width: 0; max-width: 240px; }
.tile.feat .avatar-strip .av-name b { font-size: 17px; }
.tile.feat .t-icon { overflow: hidden; }
.tile.feat .t-icon::after { content: ''; position: absolute; left: 8%; right: 8%; height: 2px; top: 20%; border-radius: 2px; background: linear-gradient(90deg, transparent, #c6ff3d, #2ee6ff, transparent); box-shadow: 0 0 10px #2ee6ff; opacity: 0; pointer-events: none; }
.tile.feat:hover .t-icon::after { animation: vid-scan 1.3s var(--ease) 1; }
@keyframes vid-scan { 0% { top: 20%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 78%; opacity: 0; } }
@media (max-width: 720px) {
  .tile.feat .avatar-strip { padding: 0 12px 0 72px; gap: 9px; }
  .tile.feat .avatar-strip .avs { gap: 6px; }
  .tile.feat .avatar-strip .av { width: 40px; height: 40px; border-radius: 11px; }
  .tile.feat .avatar-strip .av:nth-child(n+3) { display: none; } /* 2 on phones, name still beside them */
  .tile.feat .avatar-strip .av-name span { display: none; }
  .tile.feat .avatar-strip .av-name b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tile.feat:hover .t-icon::after { animation: none; } }
@media (max-width: 520px) {
  /* phones: pill on its own line so the whole command stays readable */
  .code-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pill icon" "text text"; height: auto; padding: 9px 8px 10px 12px; row-gap: 7px; font-size: 13px; }
  .code-line .cl-pill { grid-area: pill; justify-self: start; }
  .code-line .cl-icon { grid-area: icon; }
  .code-line .cl-text { grid-area: text; }
  .code-line.term .cl-text { direction: ltr; white-space: normal; word-break: break-all; }
}

/* ---------- Vibe Accounts tile: two clean copy rows (lightly tinted code); status pills top-right of the body ---------- */
@media (min-width: 1100px) { .tile.feat { grid-column: span 3; } }
.tile.feat .body { position: relative; }
.tile.feat .pills { position: absolute; top: 12px; right: 14px; }
.tile.feat .tagline { min-height: 0; }
.tile.feat .code-lines { gap: 10px; margin-top: 8px; }
.tile.feat .code-line { height: 56px; padding: 0 10px 0 14px; gap: 16px; border-radius: 13px; font-size: 17px; font-weight: 400; }
.tile.feat .code-line .cl-pill { font-size: 10px; padding: 6px 10px; }
.tile.feat .code-line .cl-icon { width: 36px; height: 36px; border-radius: 10px; }
.tile.feat .code-line .cl-icon svg { width: 17px; height: 17px; }
.tile.feat .code-line .cl-text { direction: ltr; white-space: nowrap; font-weight: 400; color: color-mix(in srgb, #c6ff3d 62%, #eef2f5); }
.tile.feat .code-line.prompt { height: auto; min-height: 56px; padding-top: 11px; padding-bottom: 11px; }
.tile.feat .code-line.prompt .cl-text { font-size: 15.5px; white-space: normal; line-height: 1.4; color: color-mix(in srgb, #2ee6ff 55%, #eef2f5); }
:root[data-theme="light"] .tile.feat .code-line .cl-text { color: color-mix(in srgb, #4f7a00 70%, #0d1014); }
:root[data-theme="light"] .tile.feat .code-line.prompt .cl-text { color: color-mix(in srgb, #00788a 70%, #0d1014); }
@media (max-width: 720px) {
  .tile.feat .head { flex-direction: row; align-items: flex-end; }
  .tile.feat .pills { top: 10px; right: 10px; }
  .tile.feat .pills .tag:not(.tag-pro) { display: none; }
}
@media (max-width: 520px) {
  /* phones: terminal stays one line (trims from the left; the copy is always complete), prompt wraps at "/" */
  .tile.feat .code-line { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: none; height: 48px; padding: 0 6px 0 10px; gap: 9px; font-size: 13.5px; }
  .tile.feat .code-line .cl-pill, .tile.feat .code-line .cl-icon, .tile.feat .code-line .cl-text { grid-area: auto; }
  .tile.feat .code-line .cl-pill { font-size: 9px; padding: 5px 8px; letter-spacing: .1em; }
  .tile.feat .code-line .cl-icon { width: 32px; height: 32px; }
  .tile.feat .code-line.term .cl-text { white-space: nowrap; word-break: normal; overflow-wrap: normal; direction: rtl; }
  .tile.feat .code-line.prompt { height: auto; min-height: 48px; padding-top: 9px; padding-bottom: 9px; }
  .tile.feat .code-line.prompt .cl-text { font-size: 12.5px; direction: ltr; white-space: normal; word-break: normal; overflow-wrap: anywhere; text-overflow: clip; }
}

/* ---------- autonomous flow strip (Install → Detect → Configure → Verify → Maintain) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.flow li { list-style: none; position: relative; padding: 14px 16px 15px; border-left: 1px solid var(--line); min-width: 0; }
.flow li:first-child { border-left: 0; }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -5px; top: 50%; width: 8px; height: 8px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: var(--surface); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow { padding: 0; }
.flow b { display: flex; align-items: baseline; gap: 8px; font: 600 14px/1.2 var(--f-display); letter-spacing: .01em; color: var(--text); }
.flow b i { font: 600 10px/1 var(--f-mono); font-style: normal; letter-spacing: .12em; color: var(--lime-ink); }
.flow span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 14px; }
  .flow li:first-child { border-top: 0; }
  .flow li::after { display: none; }
  .flow span { margin-top: 0; }
}

/* ---------- preview tiles: one real command ---------- */
.tile.preview .code-line .cl-pill { color: var(--cyan-ink); background: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent); }

/* ---------- roadmap section: smaller, dimmed tiles ---------- */
.grid-sec { margin-top: 34px; }
.grid-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.grid-sec-head h3 { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.grid-sec-head h3::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--dim); }
.grid-sec-head p { font: 400 11.5px/1.4 var(--f-mono); color: var(--dim); letter-spacing: .04em; }
.tool-grid.mini-grid { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 10px; }
.tile.mini .ttl { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tile.mini .m-tag { font: 600 9px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; color: var(--cyan-ink); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); background: var(--cyan-soft); }
.tile.mini.preview-mini { border-color: color-mix(in srgb, var(--cyan) 22%, var(--line)); }
.tile.mini { flex-direction: row; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 13px; background: color-mix(in srgb, var(--surface) 55%, var(--bg)); box-shadow: none; }
.tile.mini:hover { transform: translateY(-2px); }
.tile.mini .t-icon { width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 10px; background: none; box-shadow: none; }
.tile.mini .t-icon svg { width: 36px; height: 36px; filter: saturate(.45); opacity: .72; transition: filter .25s, opacity .25s; }
.tile.mini:hover .t-icon svg { filter: none; opacity: 1; }
.tile.mini:hover .t-icon { transform: none; }
.tile.mini .m-body { min-width: 0; flex: 1; }
.tile.mini .ttl { font: 700 13px/1.2 var(--f-display); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.mini .tagline { font-size: 12px; color: var(--dim); min-height: 0; -webkit-line-clamp: 1; margin-top: 2px; }
.tile.mini .pill { height: 18px; font-size: 8.5px; padding: 0 6px; flex: none; }
.tile.mini.planned-mini { background: var(--surface); }
@media (max-width: 600px) {
  .tool-grid.mini-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ---------- tool pages: status, compatibility, safety levels ---------- */
.status-box { border-left: 3px solid var(--cyan); }
.status-box.is-live { border-left-color: var(--lime); }
.status-box.is-planned { border-left-color: var(--amber); }
.status-box.is-roadmap { border-left-color: var(--dim); }
.status-box dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; font-size: 13.5px; }
.status-box dt { font: 600 10.5px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.status-box dd { margin: 0; color: var(--text-2); }
.compat { display: grid; gap: 6px; margin-top: 14px; }
.compat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13.5px; }
.compat-row b { font-weight: 600; color: var(--text); }
.compat-row small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.compat-badge { font: 600 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.compat-badge.e2e { color: var(--lime-ink); background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime-ink) 35%, transparent); }
.compat-badge.installer { color: var(--amber-ink); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber-ink) 32%, transparent); }
.compat-empty { margin-top: 14px; padding: 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.levels { display: grid; gap: 8px; margin-top: 14px; }
.level { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.level b { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; text-align: center; border: 1px solid; }
.level.automatic b { color: var(--lime-ink); background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime-ink) 30%, transparent); }
.level.recommended b { color: var(--cyan-ink); background: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan-ink) 30%, transparent); }
.level.restricted b { color: var(--amber-ink); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber-ink) 30%, transparent); }
.level.off { opacity: .45; }
.disclaimer { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--amber-ink) 45%, transparent); background: var(--amber-soft); font-size: 14.5px; color: var(--text); max-width: 720px; }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--amber-ink); }
.disclaimer b { color: var(--amber-ink); font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.tp-cmd { margin-top: 22px; max-width: 760px; }
@media (max-width: 520px) { .level { grid-template-columns: 1fr; gap: 6px; } .level b { justify-self: start; } }
.tool-grid[hidden], .grid-sec[hidden] { display: none; }
.grid-sec.flush { margin-top: 18px; }

/* Interactive canvas grid (js/grid-bg.js) replaces the static lines; keep the soft glow + grain. */
html.vt-grid body::before { background-image: none; } /* the grid's own small warp-glow is enough */
@media (max-width: 600px) {
  .tile.preview .code-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; height: 34px; padding: 0 4px 0 8px; gap: 6px; font-size: 11.5px; }
  .tile.preview .code-line .cl-pill, .tile.preview .code-line .cl-icon, .tile.preview .code-line .cl-text { grid-area: auto; }
  .tile.preview .code-line .cl-pill { display: none; }
  .tile.preview .code-line .cl-icon { width: 24px; height: 24px; }
  .tile.preview .code-line.term .cl-text { white-space: nowrap; word-break: normal; direction: rtl; text-overflow: ellipsis; }
  .tile:not(.feat) .foot-note { display: none; }
}

/* Tool marks at 2× on tiles (founder request). Overlap the cover by half, title sits beside. */
.tile .t-icon { width: 96px; height: 96px; margin-top: -50px; border-radius: 26px; padding: 2px; }
.tile .t-icon svg { width: 92px; height: 92px; }
.tile .head { gap: 14px; align-items: flex-end; }
.tile .head .ttl { padding-bottom: 6px; }
@media (max-width: 720px) {
  .tile .t-icon { width: 76px; height: 76px; margin-top: -40px; border-radius: 21px; }
  .tile .t-icon svg { width: 72px; height: 72px; }
}
/* Lower tiles: smaller marks than the Vibe Accounts feature tile; stacked headers stay left-aligned. */
.tile:not(.feat) .t-icon { width: 76px; height: 76px; margin-top: -40px; border-radius: 21px; }
.tile:not(.feat) .t-icon svg { width: 72px; height: 72px; }
@media (max-width: 720px) {
  .tile .head { align-items: flex-start; }
  .tile.feat .head { align-items: flex-end; }
  .tile:not(.feat) .t-icon { width: 60px; height: 60px; margin-top: -32px; border-radius: 17px; }
  .tile:not(.feat) .t-icon svg { width: 56px; height: 56px; }
  .tile:not(.feat) .head .ttl { padding-bottom: 0; text-align: left; }
}

/* ---------- Vibe Accounts cover: passkey → profile mini diagram ---------- */
.pdiag { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 0; padding: 0 16px 6px 120px; }
.pd-key { display: flex; align-items: center; gap: 10px; flex: none; }
.pd-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #c6ff3d; background: rgba(198,255,61,.08); border: 1px solid rgba(198,255,61,.35); box-shadow: 0 0 24px -6px rgba(198,255,61,.5); }
.pd-ic svg { width: 26px; height: 26px; }
.pd-kt { display: flex; flex-direction: column; line-height: 1.2; }
.pd-kt b { font: 600 13px var(--f-display); color: #e8ece6; }
.pd-kt small { font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .06em; color: #7c858e; max-width: 120px; }
.pd-link { position: relative; flex: 1 1 60px; min-width: 50px; max-width: 150px; height: 2px; margin: 0 12px; background: repeating-linear-gradient(90deg, rgba(46,230,255,.75) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: pd-flow 1.2s linear infinite; }
.pd-link::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid rgba(46,230,255,.85); border-right: 0; }
.pd-link span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font: 500 9.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6fd9e8; }
@keyframes pd-flow { to { background-position: 22px 0; } }
.pd-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(10,13,17,.82); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 36px -14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); backdrop-filter: blur(6px); flex: none; transition: opacity .25s, transform .25s; }
.pd-card.out { opacity: 0; transform: translateY(4px) scale(.98); }
.pd-av { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: #1a1e25; }
.pd-av svg { width: 100%; height: 100%; display: block; }
.pd-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-name { font: 600 16px/1.15 var(--f-display); color: #eef2f5; white-space: nowrap; }
.pd-id { font: 500 11px var(--f-mono); color: #8fe8f2; letter-spacing: .02em; }
.pd-tags { display: flex; gap: 4px; margin-top: 2px; }
.pd-tags i { font: 500 9px/1 var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; color: #9aa3ad; border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.pd-tags i.ok { color: #c6ff3d; border-color: rgba(198,255,61,.35); }
.pdiag .reroll { margin-left: 12px; flex: none; }
:root[data-theme="light"] .pd-card { background: rgba(255,255,255,.9); border-color: rgba(13,16,20,.1); }
:root[data-theme="light"] .pd-name { color: #0d1014; } :root[data-theme="light"] .pd-kt b { color: #0d1014; }
@media (max-width: 1180px) {
  .pd-key, .pd-link { display: none; }
  .tile.feat .code-line { font-size: 15px; }
  .tile.feat .code-line.prompt .cl-text { font-size: 14px; }
}
@media (max-width: 720px) {
  .pdiag { padding: 0 10px 34px 112px; }
  .pdiag .reroll { margin-left: 8px; width: 30px; height: 30px; }
  .pd-card { padding: 8px 10px 8px 8px; gap: 9px; }
  .pd-av { width: 44px; height: 44px; border-radius: 11px; }
  .pd-name { font-size: 13.5px; } .pd-tags i:nth-child(n+2) { display: none; }
}

/* Profile pill (founder: round pill, circular avatar + name, stands out more) */
.pd-card {
  border-radius: 999px; padding: 7px 18px 7px 7px; gap: 13px; border: 1.5px solid transparent;
  background: linear-gradient(#0c1015, #0c1015) padding-box, linear-gradient(110deg, #c6ff3d, #2ee6ff 60%, rgba(46,230,255,.35)) border-box;
  box-shadow: 0 0 0 4px rgba(198,255,61,.06), 0 0 34px -6px rgba(198,255,61,.45), 0 18px 40px -16px rgba(0,0,0,.9);
}
.pd-av { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 2px #0c1015, 0 0 0 3.5px rgba(198,255,61,.7), 0 0 18px -2px rgba(198,255,61,.55); }
.pd-name { font-size: 18px; letter-spacing: -.01em; }
.pd-id { font: 500 11px var(--f-mono); color: #8fe8f2; letter-spacing: .03em; background: none; padding: 0; }
.pd-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 6px 10px 6px 8px; border-radius: 999px; font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #0b0e05; background: #c6ff3d; box-shadow: 0 0 16px -2px rgba(198,255,61,.6); white-space: nowrap; }
.pd-badge svg { width: 11px; height: 11px; stroke-width: 3; }
:root[data-theme="light"] .pd-card { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #6fa800, #00a5bd) border-box; }
@media (max-width: 720px) {
  .pd-card { padding: 5px 12px 5px 5px; gap: 9px; }
  .pd-av { width: 46px; height: 46px; }
  .pd-name { font-size: 14px; }
  .pd-badge { padding: 5px 7px; font-size: 0; gap: 0; } .pd-badge svg { width: 12px; height: 12px; }
}

/* ---------- p6 polish ---------- */
/* Roadmap rows: the 2× tile-mark rules above must not reach the small row tiles (icons were clipped). */
.tool-grid .tile.mini .t-icon { width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 10px; background: none; box-shadow: none; }
.tool-grid .tile.mini .t-icon svg { width: 36px; height: 36px; }

/* Home grid section + trust strip */
.tools-sec { padding-top: 8px; }
.trust { list-style: none; margin: 16px 0 0; padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 65%, transparent); font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; }
.trust li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--lime-ink); box-shadow: 0 0 8px var(--lime-glow); flex: none; }
.trust li + li { border-left: 1px solid var(--line-2); }

/* Live (non-feature) and preview tiles share the compact command line */
.tile.compact .code-lines { margin-top: 2px; }
.tile.compact .code-line.prompt .cl-pill { color: var(--cyan-ink); background: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent); }
.tile.compact .code-line.prompt .cl-text { font-size: 12.5px; }
:root[data-theme="light"] .code-line.prompt .cl-pill { color: var(--cyan-ink); background: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent); }

/* Micro-interactions + focus */
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .code-line:focus-visible, .copy-btn:focus-visible, .mini-copy:focus-visible, .tab:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; }
.tile:focus-within { border-color: var(--line-2); }
.tile .tc-link:focus-visible { outline: none; }
.tile:has(.tc-link:focus-visible) { outline: 2px solid var(--lime-ink); outline-offset: 3px; }
.code-line:active { transform: scale(.995); }
.chip:active, .icon-btn:active { transform: scale(.96); }
.chip, .icon-btn { transition: color .2s, border-color .2s, background .2s, transform .12s var(--ease); }
.nav a:focus-visible { outline-offset: 0; }

/* Phones: tap targets ≥ 40px, compact tiles keep one clean command line */
@media (max-width: 720px) {
  .icon-btn { width: 40px; height: 40px; }
  .chip { height: 40px; }
  .btn-sm { --h: 40px; }
  .tab { height: 40px; }
  .site-footer ul { gap: 2px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
  .crumbs { flex-wrap: wrap; row-gap: 6px; }
  .trust { justify-content: flex-start; padding: 10px 12px; }
  .trust li { padding: 2px 10px 2px 0; width: 50%; }
  .trust li + li { border-left: 0; }
}
@media (max-width: 600px) {
  .tile.compact .code-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; height: 40px; padding: 0 4px 0 8px; gap: 6px; font-size: 11.5px; }
  .tile.compact .code-line .cl-pill, .tile.compact .code-line .cl-icon, .tile.compact .code-line .cl-text { grid-area: auto; }
  .tile.compact .code-line .cl-pill { display: none; }
  .tile.compact .code-line .cl-icon { width: 28px; height: 28px; }
  .tile.compact .code-line.term .cl-text { white-space: nowrap; word-break: normal; direction: rtl; text-overflow: ellipsis; }
  .tile.compact .code-line.prompt .cl-text { font-size: 11px; white-space: nowrap; }
  .tile .foot { min-height: 30px; }
}
@media (max-width: 720px) { .trust { font-size: 10.5px; letter-spacing: .02em; } .trust li::before { width: 5px; height: 5px; } }
@media (max-width: 340px) { .trust li { width: 100%; } }
.site-footer .foot-tag { margin-top: 14px; max-width: 300px; }
/* Check lists: inline <code>/<b> inside an item must flow with the text, not become grid cells. */
.list-check li { display: block; position: relative; padding-left: 28px; }
.list-check li::before { position: absolute; left: 0; top: 3px; margin-top: 0; box-sizing: border-box; }
/* 404 */
.nf { padding: 96px 0 40px; }
.nf-code { display: inline-block; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: var(--code-bg); color: #dfe5dc; font-size: 13px; line-height: 1.7; margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.nf-code .lime { color: #c6ff3d; } .nf-code .amber { color: #ffb547; } .nf-code .dim { color: #6c757e; }
.nf .h-xl { margin-top: 0; }
@media (max-width: 720px) { .nf { padding: 56px 0 24px; } .nf-code { font-size: 11.5px; } }
/* Phones: never leave a lone half-width tile at the end of the 2-column grid */
@media (max-width: 600px) and (min-width: 360px) {
  .tool-grid .tile.feat ~ .tile:not(.mini):last-child:nth-child(even),
  .tool-grid .tile:first-child:not(.feat):not(.mini) ~ .tile:not(.mini):last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* compact tiles: the whole line is the copy button; drop the icon so "vibe-tools pulse on" fits */
  .tile.compact .code-line { padding: 0 10px; grid-template-columns: minmax(0, 1fr); font-size: 11px; letter-spacing: -.02em; }
  .tile.compact .code-line .cl-icon { display: none; }
  .tile.compact .code-line.term .cl-text { direction: ltr; text-overflow: clip; }
  .tile.compact .code-line.term.sh .cl-text { direction: rtl; text-overflow: ellipsis; } /* curl … | sh: keep the end ("…/report | sh") */
  .tile.compact .code-line.copied { border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); }
  .tile.compact .code-line.prompt { display: none; }
}
/* Light theme: code surfaces stay dark (code-bg is dark in both themes), so everything ON them uses the dark palette. */
:root[data-theme="light"] :is(.code-line, .term, .code-block, .copy-row, .nf-code, .bug-item, .tp-steps > li > code) {
  --text: #e8ece6; --text-2: #c9d0c6; --muted: #8a919a; --dim: #5f666f;
  --lime-ink: #c6ff3d; --lime-soft: rgba(198, 255, 61, .12); --cyan-ink: #2ee6ff; --cyan-soft: rgba(46, 230, 255, .1);
  --amber-ink: #ffb547; --line-2: rgba(255, 255, 255, .12); --line-3: rgba(255, 255, 255, .2); --raised: #1a1e25;
  color: var(--text);
}
:root[data-theme="light"] .tile.feat .code-line .cl-text { color: color-mix(in srgb, #c6ff3d 62%, #eef2f5); }
:root[data-theme="light"] .tile.feat .code-line.prompt .cl-text { color: color-mix(in srgb, #2ee6ff 55%, #eef2f5); }
:root[data-theme="light"] .code-line.prompt .cl-pill { color: #2ee6ff; background: rgba(46,230,255,.1); border-color: rgba(46,230,255,.35); }
:root[data-theme="light"] .tile .cover { background-color: #0d1015; }
:root[data-theme="light"] .pd-kt b { color: #e8ece6; }
:root[data-theme="light"] .pd-id { color: #00788f; }
@media (max-width: 720px) {
  .code-head { height: 46px; }
  .code-head .copy-btn { height: 40px; min-width: 84px; }
  .seg button { height: 40px; }
  .btn-xs { --h: 40px; }
  .copy-btn { height: 40px; }
}
/* Light theme: stronger pills/tags (lime-soft on near-white read washed out) */
:root[data-theme="light"] .pill-live { color: #3d6200; background: rgba(120, 175, 0, .16); border-color: rgba(79, 122, 0, .45); }
:root[data-theme="light"] .pill-preview, :root[data-theme="light"] .pill-beta { color: #006577; border-color: rgba(0, 120, 143, .45); }
:root[data-theme="light"] .pill-planned { color: #7f4b00; border-color: rgba(154, 92, 0, .45); }
:root[data-theme="light"] .tag { color: #3f464e; background: #eef0ea; border-color: rgba(13, 16, 20, .14); }
:root[data-theme="light"] .tag-pro { color: #006577; background: rgba(0, 160, 200, .1); border-color: rgba(0, 120, 143, .35); }

/* ── Home: how it works in 3 steps (replaces the 5-row list) ── */
.how { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 0; padding: 0; counter-reset: how; }
.how::before { /* the flowing connector behind the cards */
  content: ''; position: absolute; left: 8%; right: 8%; top: 38px; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--lime) 20%, var(--cyan) 50%, var(--lime) 80%, transparent) 0 0 / 200% 100%;
  opacity: .45; animation: how-flow 4s linear infinite;
}
@keyframes how-flow { to { background-position: -200% 0; } }
.how-step { position: relative; z-index: 1; list-style: none; min-width: 0; padding: 22px 20px 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); box-shadow: 0 20px 50px -30px rgba(0,0,0,.8);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.how-step:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--lime) 40%, var(--line)); box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--lime) 35%, transparent); }
.how-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 14px/1 'JetBrains Mono', ui-monospace, monospace; color: var(--on-lime); background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 14%, transparent), 0 0 24px var(--lime-glow); }
.how-step:nth-child(2) .how-n { background: var(--cyan); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cyan) 14%, transparent), 0 0 24px color-mix(in srgb, var(--cyan) 35%, transparent); }
.how-step h3 { margin: 14px 0 6px; font: 600 19px/1.2 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.01em; color: var(--text); }
.how-step p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.how-art { margin: 0; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, #000); min-height: 92px; padding: 12px 12px; font: 500 12px/1.4 'JetBrains Mono', ui-monospace, monospace; }
/* 1 · terminal pill with a blinking caret */
.how-term { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; color: var(--lime-ink); }
.how-term code { color: var(--text); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.how-pill, .how-caret { flex: none; }
button.how-term { width: 100%; text-align: left; cursor: pointer; position: relative; transition: border-color .2s, box-shadow .2s; flex-wrap: wrap; row-gap: 10px; align-content: center; }
button.how-term code { order: 3; flex: 1 1 100%; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 11.5px; letter-spacing: -.01em; color: var(--text); opacity: 1; }
button.how-term code::-webkit-scrollbar { display: none; }
button.how-term code::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--lime); animation: how-blink 1.05s steps(1) infinite; }
button.how-term .how-caret { display: none; }
button.how-term:hover, button.how-term:focus-visible { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); box-shadow: 0 0 0 3px var(--lime-soft); outline: none; }
.how-copy { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 8px; font-size: 11px; letter-spacing: .04em; color: var(--on-lime); background: var(--lime); }
button.how-term.copied { border-color: var(--lime); }
.how-pill { padding: 3px 9px; border-radius: 99px; background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.how-caret { width: 8px; height: 15px; background: var(--lime); border-radius: 1px; animation: how-blink 1.05s steps(1) infinite; }
@keyframes how-blink { 50% { opacity: 0; } }
/* 2 · checks tick in one by one, on a loop */
.how-checks { list-style: none; display: grid; gap: 7px; color: var(--text); }
.how-checks li { display: flex; align-items: center; gap: 8px; opacity: .25; animation: how-tick 6s ease-in-out infinite; }
.how-checks li:nth-child(2) { animation-delay: .7s; } .how-checks li:nth-child(3) { animation-delay: 1.4s; }
.how-checks i { width: 15px; height: 15px; border-radius: 50%; flex: none; border: 1.5px solid var(--cyan); position: relative; }
.how-checks i::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid var(--bg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
@keyframes how-tick { 0%, 8% { opacity: .25; } 14%, 80% { opacity: 1; } 14%, 80% { opacity: 1; } 100% { opacity: .25; } }
.how-checks li { --done: 0; }
.how-checks li i { animation: how-fill 6s ease-in-out infinite; animation-delay: inherit; }
@keyframes how-fill { 0%, 8% { background: transparent; } 14%, 80% { background: var(--cyan); } 100% { background: transparent; } }
/* 3 · heartbeat */
.how-pulse { display: grid; align-content: space-between; gap: 6px; }
.how-pulse svg { width: 100%; height: 44px; overflow: visible; }
.how-base { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linejoin: round; opacity: .22; }
.how-line { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 22 100; stroke-dashoffset: 22; filter: drop-shadow(0 0 6px var(--lime-glow)); animation: how-beat 2.4s linear infinite; }
@keyframes how-beat { to { stroke-dashoffset: -100; } }
.how-ok { color: var(--lime-ink); font-size: 11px; letter-spacing: .04em; }
@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .how::before { left: 35px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--lime), var(--cyan), var(--lime)); }
}
@media (prefers-reduced-motion: reduce) {
  .how::before, .how-caret, .how-checks li, .how-checks li i, .how-line { animation: none; }
  .how-checks li { opacity: 1; } .how-checks i { background: var(--cyan); } .how-line { stroke-dasharray: none; }
}
@media (max-width: 1200px) { button.how-term code { font-size: 10.5px; white-space: normal; overflow: visible; overflow-wrap: anywhere; } }
@media (max-width: 1200px) { button.how-term code::after { display: none; } button.how-term code { letter-spacing: -.02em; } }

/* Home tagline: Vibe it. Install it. SHIP IT. */
.vis-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em .6em; margin: 22px 0 28px; font: 600 clamp(20px, 2.6vw, 30px)/1.1 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.01em; }
.vis-tag span { color: var(--muted); opacity: 0; transform: translateY(8px); animation: vis-in .5s ease-out forwards; }
.vis-tag span:nth-child(2) { animation-delay: .25s; }
.vis-tag b { font-weight: 800; letter-spacing: .02em; color: var(--on-lime); background: var(--lime); padding: .08em .38em .1em; border-radius: .22em; box-shadow: 0 0 0 1px var(--lime-glow), 0 10px 40px -8px var(--lime-glow);
  opacity: 0; transform: translateY(8px) scale(.94); animation: vis-in .5s .55s cubic-bezier(.3,1.5,.5,1) forwards, vis-glow 3.2s 1.2s ease-in-out infinite; }
@keyframes vis-in { to { opacity: 1; transform: none; } }
@keyframes vis-glow { 50% { box-shadow: 0 0 0 1px var(--lime-glow), 0 10px 60px -4px var(--lime-glow); } }
@media (prefers-reduced-motion: reduce) { .vis-tag span, .vis-tag b { opacity: 1; transform: none; animation: none; } }
.lead.lead-one { white-space: normal; max-width: none; margin-top: 12px; width: fit-content;
  font-family: 'Courier New', Courier, ui-monospace, monospace; font-weight: 400; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.6; letter-spacing: .01em; color: #c5ccd4; }
.vis-tag span:first-child { color: var(--cyan); text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 30%, transparent); }
@media (max-width: 640px) { .lead.lead-one { white-space: normal; } }
@media (max-width: 520px) { .br-lg { display: none; } }

/* ── Home hero: the logo, alive. Tilts toward the cursor, traces itself, floats. ── */
.hero-wrap { position: relative; }
.hero-art { position: absolute; right: calc(7.5% + 1.5vw); top: 6px; width: clamp(236px, 23vw, 336px); aspect-ratio: 1; pointer-events: none; z-index: 0; --rx: 0deg; --ry: 0deg; --lx: 30%; --ly: 20%; }
.hero-wrap > :not(.hero-art) { position: relative; z-index: 1; }
.ha-tilt { position: absolute; inset: 0; perspective: 600px; animation: ha-float 6s ease-in-out infinite; }
.ha-tile { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate(var(--tx, 0), var(--ty, 0)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .08s linear; }
.ha-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ha-glyph { transform: translateZ(46px); overflow: visible; filter: drop-shadow(0 26px 22px rgba(0,0,0,.85)) drop-shadow(0 8px 10px rgba(0,0,0,.6)) drop-shadow(0 0 14px color-mix(in srgb, var(--lime) 30%, transparent)); }
.ha-light { position: absolute; inset: 0; border-radius: 27%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(198,255,61,.22), rgba(46,230,255,.08) 30%, transparent 58%); transform: translateZ(1px); }
.ha-trace { stroke-dasharray: 26 74; stroke-dashoffset: 0; animation: ha-trace 3.2s linear infinite; filter: drop-shadow(0 0 3px rgba(198,255,61,.9)); }
@keyframes ha-trace { to { stroke-dashoffset: -100; } }
.ha-core { animation: ha-core 3.2s ease-in-out infinite; transform-origin: 12px 14px; }
@keyframes ha-core { 50% { opacity: .65; } }
.ha-glow { opacity: .55; animation: ha-core 3.2s ease-in-out infinite reverse; }
@keyframes ha-float { 50% { transform: translateY(-12px); } }
.ha-shadow { position: absolute; left: 4%; right: 4%; bottom: -18%; height: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(18px); animation: ha-shadow 6s ease-in-out infinite; }
@keyframes ha-shadow { 50% { transform: scaleX(.86); opacity: .7; } }
.ha-orbit { position: absolute; inset: -16%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--cyan) 30%, transparent); animation: ha-spin 26s linear infinite; }
.ha-o2 { inset: -30%; border-style: solid; border-color: color-mix(in srgb, var(--lime) 12%, transparent); animation-duration: 40s; animation-direction: reverse; }
.ha-orbit i { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.ha-o2 i { background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.ha-o2 i + i { top: auto; bottom: -4px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes ha-spin { to { transform: rotate(1turn); } }
.hero-art.pop .ha-tile { animation: ha-pop .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes ha-pop { 30% { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)) scale(1.06); } 100% { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 360deg)); } }
@media (max-width: 1100px) { .hero-art { width: 140px; right: 0; top: 0; opacity: .9; } }
@media (max-width: 860px) { .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .ha-tilt, .ha-trace, .ha-core, .ha-glow, .ha-orbit, .ha-shadow { animation: none; } .ha-trace { stroke-dasharray: none; } }
.hero { overflow-x: clip; }

/* hexagonal outer ring + a round, edge-free halo (replaces the clipped blur) */
.ha-hex { position: absolute; inset: -19%; animation: ha-spin 48s linear infinite reverse; }
.ha-hex svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ha-hex polygon { fill: none; stroke: color-mix(in srgb, var(--lime) 22%, transparent); stroke-width: 1; stroke-linejoin: round; }
.ha-hex .v1 { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.ha-hex .v2 { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.ha-halo { position: absolute; inset: -12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 16%, transparent), color-mix(in srgb, var(--cyan) 6%, transparent) 55%, transparent 100%);
  filter: blur(18px); animation: ha-core 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ha-hex, .ha-halo { animation: none; } }

/* Circuit: traces carry pulses of energy into the triangle; corner nodes flash as it arrives. */
.ha-circuit { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; max-width: none; max-height: none; overflow: visible; pointer-events: none; --speed: 3.6s; }
.hero-art:hover .ha-circuit, .hero-art.charged .ha-circuit { --speed: 1.6s; }
.ha-circuit .tr { fill: none; stroke: color-mix(in srgb, var(--lime) 11%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.ha-circuit .pad { r: 2.5px; fill: var(--bg); stroke: color-mix(in srgb, var(--cyan) 30%, transparent); stroke-width: 1.4; }
.ha-circuit .pl { fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 91; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--lime)); animation: ha-pulse var(--speed) linear infinite; animation-delay: var(--d); }
.ha-circuit .pl:nth-of-type(2n) { stroke: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
@keyframes ha-pulse { 0% { stroke-dashoffset: 100; opacity: 0; } 10% { opacity: .7; } 92% { opacity: .7; } 100% { stroke-dashoffset: 9; opacity: 0; } }
.ha-circuit .node { fill: var(--lime); opacity: .25; animation: ha-node var(--speed) ease-out infinite; animation-delay: calc(var(--d) + var(--speed) * .9); transform-box: fill-box; transform-origin: center; }
@keyframes ha-node { 0% { opacity: 1; transform: scale(1.8); filter: drop-shadow(0 0 6px var(--lime)); } 35%, 100% { opacity: .25; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ha-circuit .pl { animation: none; opacity: 0; } .ha-circuit .node { animation: none; } }


/* PCB look: the triangle is the CPU — pins at its edges, a faint socket outline, vias at the trace ends. */
.ha-circuit .pin { fill: color-mix(in srgb, var(--lime) 55%, transparent); }
.ha-circuit .sock { fill: none; stroke: color-mix(in srgb, var(--cyan) 14%, transparent); stroke-width: 1; stroke-dasharray: 3 4; stroke-linejoin: round; }
.ha-circuit .tr { stroke-linecap: round; }

/* HUD reticle (stationary): truncated triangular frames, accent bars, corner ladders, a scan light, pulsing. */
.ha-hud { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; max-width: none; max-height: none; overflow: visible; pointer-events: none; animation: hud-breathe 4.5s ease-in-out infinite; }
@keyframes hud-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.ha-hud polygon, .ha-hud line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ha-hud .fr-out { stroke: color-mix(in srgb, var(--cyan) 34%, transparent); stroke-width: 1.1; }
.ha-hud .fr-mid { stroke: color-mix(in srgb, var(--cyan) 22%, transparent); stroke-width: 1; stroke-dasharray: 2 5; }
.ha-hud .fr-in { stroke: color-mix(in srgb, var(--lime) 22%, transparent); stroke-width: 1; }
.ha-hud .bar { stroke: color-mix(in srgb, var(--cyan) 55%, transparent); stroke-width: 4.5; stroke-linecap: butt; }
.ha-hud .fr-scan { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 7 93; filter: drop-shadow(0 0 4px var(--cyan)); animation: hud-scan 6s linear infinite; }
@keyframes hud-scan { to { stroke-dashoffset: -100; } }
.ha-hud .lad { stroke: color-mix(in srgb, var(--cyan) 40%, transparent); stroke-width: 1; }
.ha-hud .tick { stroke: var(--cyan); stroke-width: 1; opacity: .25; animation: hud-tick 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes hud-tick { 0%, 60%, 100% { opacity: .2; } 30% { opacity: .9; } }
.ha-hud .dot { fill: var(--lime); opacity: .3; animation: hud-tick 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
.ha-hud .nd { fill: var(--bg); stroke: var(--lime); stroke-opacity: .6; stroke-width: 1.2; animation: hud-node 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hud-node { 50% { transform: scale(1.5); stroke-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ha-hud, .ha-hud * { animation: none !important; } .ha-hud .fr-scan { display: none; } }

/* ── Light mode for the home hero art + 3 steps ── */
[data-theme="light"] .how-art { background: color-mix(in srgb, var(--bg) 60%, #fff); border-color: var(--line-2); }
[data-theme="light"] .how-term code, [data-theme="light"] .how-checks { color: var(--text); }
[data-theme="light"] .how-checks i::after { border-color: #fff; }
[data-theme="light"] .ha-glyph { filter: drop-shadow(0 18px 18px rgba(20,30,20,.28)) drop-shadow(0 4px 6px rgba(20,30,20,.18)); }
[data-theme="light"] .ha-trace { filter: none; }
[data-theme="light"] .ha-shadow { background: radial-gradient(closest-side, rgba(20,30,20,.28), transparent); }
[data-theme="light"] .ha-hud .fr-out { stroke: rgba(0,120,140,.45); }
[data-theme="light"] .ha-hud .fr-mid { stroke: rgba(0,120,140,.35); }
[data-theme="light"] .ha-hud .fr-in { stroke: rgba(79,122,0,.4); }
[data-theme="light"] .ha-hud .bar { stroke: rgba(0,120,140,.55); }
[data-theme="light"] .ha-hud .lad, [data-theme="light"] .ha-hud .tick { stroke: #00788a; }
[data-theme="light"] .ha-hud .fr-scan { stroke: #00a3bb; filter: none; }
[data-theme="light"] .ha-hud .dot { fill: #4f7a00; }
[data-theme="light"] .ha-hud .nd { fill: #fff; stroke: #4f7a00; }
[data-theme="light"] .how-step { background: #fff; box-shadow: 0 18px 40px -26px rgba(0,0,0,.25); }
[data-theme="light"] #haG stop:first-child { stop-color: #7cc400; }
[data-theme="light"] #haG stop:last-child { stop-color: #00a8c4; }
[data-theme="light"] .ha-base { opacity: .55; }

/* Home hero background: builders lighting up on the grid and linking up (same effect as About). */
.hero-fx { position: absolute; left: 0; top: 0; width: 100%; height: 420px; z-index: 0; pointer-events: none; }

/* Tool card names: larger, with a soft glowing highlight in the tool's own color (gentle shimmer, not flashy). */
.tile .ttl { font-size: 19px; letter-spacing: .015em; }
.tile.feat .ttl { font-size: 22px; }
.tile .ttl .tc-link { color: var(--text); text-shadow: 0 0 18px color-mix(in srgb, var(--accent, var(--lime)) 38%, transparent), 0 0 2px color-mix(in srgb, var(--accent, var(--lime)) 30%, transparent);
  background: linear-gradient(100deg, var(--text) 0 40%, color-mix(in srgb, var(--accent, var(--lime)) 70%, #fff) 50%, var(--text) 60% 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ttl-shine 7s ease-in-out infinite; }
.tile:hover .ttl .tc-link { animation-duration: 2.8s; }
@keyframes ttl-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
:root[data-theme="light"] .tile .ttl .tc-link { text-shadow: none; }
@media (max-width: 720px) { .tile .ttl { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .tile .ttl .tc-link { animation: none; background-position: 100% 0; } }
.hero .how { margin-top: 64px; } @media (max-width: 860px) { .hero .how { margin-top: 36px; } }

/* Outlined words (home "Install", About "Everyone"): a soft blue light travels along the outline. */
.hero h1 .stroke, .ab-stroke { position: relative; display: inline-block; }
.hero h1 .stroke::after, .ab-stroke::after {
  content: attr(data-text); position: absolute; inset: 0; color: transparent; pointer-events: none;
  -webkit-text-stroke: inherit; -webkit-text-stroke-color: var(--cyan);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 55%, transparent));
  -webkit-mask: linear-gradient(100deg, transparent 0 42%, #000 50%, transparent 58% 100%) 0 0 / 320% 100% no-repeat;
          mask: linear-gradient(100deg, transparent 0 42%, #000 50%, transparent 58% 100%) 0 0 / 320% 100% no-repeat;
  animation: outline-run 7s ease-in-out infinite;
}
@keyframes outline-run { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 70%, 100% { -webkit-mask-position: 0 0; mask-position: 0 0; } }
:root[data-theme="light"] .hero h1 .stroke::after, :root[data-theme="light"] .ab-stroke::after { -webkit-text-stroke-color: #0096b0; filter: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .stroke::after, .ab-stroke::after { animation: none; opacity: 0; } }
/* Step 2 is the cyan step: its hover outline + glow match its number. */
.how-step:nth-child(2):hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--cyan) 40%, transparent); }

/* "VIBE" on tool page titles: outlined, with the same soft blue light running along it. */
.vibe-word { color: transparent; -webkit-text-stroke: 2px var(--text); position: relative; display: inline-block; }
.vibe-word::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; pointer-events: none;
  -webkit-text-stroke: 2px var(--cyan); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 55%, transparent));
  -webkit-mask: linear-gradient(100deg, transparent 0 42%, #000 50%, transparent 58% 100%) 0 0 / 320% 100% no-repeat;
          mask: linear-gradient(100deg, transparent 0 42%, #000 50%, transparent 58% 100%) 0 0 / 320% 100% no-repeat;
  animation: outline-run 7s ease-in-out infinite; }
:root[data-theme="light"] .vibe-word::after { -webkit-text-stroke-color: #0096b0; filter: none; }
@media (prefers-reduced-motion: reduce) { .vibe-word::after { animation: none; opacity: 0; } }

/* Tool-card prompt rows: always two clipped lines, phrase on top, the end of the URL below (every card matches). */
.tile .code-line.prompt .cl-text > bdi { display: block; min-width: 0; }
.tile .code-line.prompt .clp-a, .tile .code-line.prompt .clp-b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile .code-line.prompt .clp-b { direction: rtl; text-align: left; }
.tile .code-line.prompt .clp-b wbr { display: none; }
.tile.mini.preview-mini .t-icon svg { filter: none; opacity: .92; }
