/* =========================================================
   WorkCanvas — A+C official theme
   Canvas / connections / technical whitespace.
   Loaded after theme-white.css. Desktop-first.
   ========================================================= */

:root {
  --ink: #15161a;
  --ink-2: #33363d;
  --muted: #65696f;
  --faint: #979b9f;
  --paper: #f0f0ec;
  --sheet: #fafaf7;
  --white: #ffffff;
  --line: #dbdbd4;
  --line-soft: #e9e9e2;
  --accent: #2b59ff;
  --accent-ink: #1f46d8;
  --accent-soft: rgba(43, 89, 255, 0.09);
  --blue: #2b59ff;
  --coral: #f05a3c;
  --pink: #e85d8a;
  --violet: #7a5af8;
  --green: #28a85b;
  --teal: #0fa98c;
  --amber: #c78a2a;
  --font-display: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "SFMono-Regular", "Menlo", ui-monospace, monospace;
  --header-h: 52px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  min-width: 1280px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

::selection { background: rgba(43, 89, 255, 0.2); }

.container { width: min(1200px, calc(100% - 64px)); }

main { padding-top: var(--header-h); }

.grain,
.hero-atmosphere,
.scroll-cue { display: none; }

.scroll-progress span { background: var(--accent); }

/* type ---------------------------------------------------- */

h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 3.7vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow-dot,
.port-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 89, 255, 0.1);
}

.eyebrow-light { color: #7f9bff; }
.eyebrow-light .eyebrow-dot { background: #7f9bff; box-shadow: 0 0 0 3px rgba(127, 155, 255, 0.12); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 48px;
  max-width: none;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.section-head > div { min-width: 0; }
.section-head .eyebrow { justify-content: flex-start; }

.section-head h2 {
  margin-top: 15px;
  font-size: 46px;
}

.section-lede {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: left;
}

.section-head-dark { border-color: #2b2d32; }
.section-head-dark h2 { color: #f5f5f1; }
.section-head-dark .section-lede { color: #90959b; }

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.82em;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
}

/* header -------------------------------------------------- */

.site-header {
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--white);
}

.header-inner {
  width: min(1200px, calc(100% - 64px));
  height: 52px;
}

.brand { gap: 9px; }
.brand-icon { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.05); }
.brand-name { color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.04em; }

.nav-links { gap: 25px; }
.nav-links a {
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a::after { bottom: 0; height: 1px; background: var(--accent); }

.header-actions { gap: 13px; }
.version-pill {
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  gap: 6px;
}
.version-pill i { width: 4px; height: 4px; background: var(--accent); box-shadow: none; }

.menu-toggle, .mobile-menu { display: none !important; }

/* buttons ------------------------------------------------- */

.btn {
  position: relative;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: none;
  translate: var(--mx, 0) var(--my, 0);
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease-out), translate .25s var(--ease-out);
}

.btn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(43, 89, 255, .18);
  flex: none;
}

.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); box-shadow: none; transform: none; }
.btn:active { transform: scale(.985); }
.btn .icon { width: 14px; height: 14px; margin-left: 2px; }

.btn-small { height: 30px; padding: 0 11px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em; }
.btn-small::before { width: 4px; height: 4px; }
.btn-primary { height: 44px; padding: 0 17px; font-size: 13px; }
.btn-download { height: 46px; padding: 0 17px; font-size: 13px; }
.btn-download .btn-sub { border-left-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: 8px; }

.text-link {
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .02em;
}
.text-link:hover { color: var(--accent-ink); border-color: rgba(43,89,255,.35); }

/* hero ---------------------------------------------------- */

.ac-hero {
  padding: 24px 0 0;
  background: var(--paper);
}

.ac-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(to right, rgba(21,22,26,.043) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,22,26,.043) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: 0 30px 70px -58px rgba(0,0,0,.35);
}

.ac-hero-stage {
  width: 1200px;
  height: 720px;
  margin: 0 auto;
}

.ac-stage-meta {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .055em;
  pointer-events: none;
}
.ac-stage-title, .ac-stage-spec { display: inline-flex; align-items: center; gap: 10px; }
.ac-stage-title { color: var(--ink-2); }
.ac-slash { color: #b9bbb5; }
.ac-mono { color: var(--faint); }
.ac-stage-spec { gap: 13px; color: var(--faint); }
.ac-stage-spec span + span { padding-left: 13px; border-left: 1px solid var(--line-soft); }

.ac-hero-copy {
  position: absolute;
  top: 92px;
  left: 56px;
  z-index: 5;
  width: 590px;
}

.ac-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
}
.ac-port-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(43,89,255,.1); }

.ac-wordmark {
  margin: 23px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 600;
  line-height: .96;
  letter-spacing: -0.065em;
}

.ac-tagline {
  margin: 15px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.ac-tagline span { color: var(--accent); }

.ac-lede {
  max-width: 470px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: -0.012em;
}

.ac-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.ac-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .055em;
}
.ac-hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }


/* hero graph --------------------------------------------- */

.ac-world, .ac-workflow-world {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ac-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ac-edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: .55;
  transition: opacity .22s ease, stroke-width .22s ease;
}
.ac-edge.is-related { opacity: .98; stroke-width: 1.75; }
.ac-edge.is-muted { opacity: .07; }

.ac-edge-port {
  fill: var(--accent);
  stroke: var(--sheet);
  stroke-width: 1.5;
  opacity: .9;
  transition: opacity .2s ease;
}
.ac-world.is-focus .ac-edge-port { opacity: .15; }
.ac-edge-port.is-related { opacity: .95; }

.ac-node {
  position: absolute;
  z-index: 3;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px -21px rgba(0,0,0,.3);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ac-node::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--tone);
}
.ac-node[data-tone="coral"] { --tone: var(--coral); }
.ac-node[data-tone="pink"] { --tone: var(--pink); }
.ac-node[data-tone="green"] { --tone: var(--green); }
.ac-node[data-tone="teal"] { --tone: var(--teal); }
.ac-node[data-tone="violet"] { --tone: var(--violet); }

.ac-node:hover, .ac-node.is-related { border-color: rgba(43,89,255,.55); box-shadow: 0 14px 30px -24px rgba(43,89,255,.28); }
.ac-node.is-dragging { z-index: 20; cursor: grabbing; border-color: var(--accent); box-shadow: 0 24px 44px -24px rgba(0,0,0,.35); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

.ac-node-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-family: var(--font-mono); font-size: 7px; letter-spacing: .05em; }
.ac-node-type { display: inline-flex; align-items: center; gap: 5px; color: var(--tone); }
.ac-node-type i { width: 4px; height: 4px; border-radius: 50%; background: var(--tone); }
.ac-node-time { color: #a5a8a9; }
.ac-node h3 { margin-top: 7px; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-node-path { margin-top: 3px; color: var(--faint); font-family: var(--font-mono); font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-node-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); color: var(--faint); font-family: var(--font-mono); font-size: 6.5px; }
.ac-node-state { color: var(--green); }
.ac-node-state::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: 1px; }

.ac-node-thumb { height: 88px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #f1eee4; }
.ac-node-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-node-image { padding: 9px; }
.ac-node-image h3 { margin-top: 7px; }
.ac-node-note { margin-top: 7px; color: var(--ink-2); font-size: 9.5px; line-height: 1.55; }

.ac-world.is-focus .ac-node { opacity: .3; }
.ac-world.is-focus .ac-node.is-related { opacity: 1; }

.ac-group {
  position: absolute;
  z-index: 0;
  border: 1px dashed rgba(43,89,255,.6);
  border-radius: 10px;
  background: rgba(43,89,255,.035);
  pointer-events: none;
  opacity: 0;
}
.ac-group-label {
  position: absolute;
  top: -9px;
  left: 11px;
  padding: 0 6px;
  background: var(--sheet);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.ac-group-label em { margin-left: 5px; color: var(--faint); font-style: normal; }

.ac-hero-stage .ac-edge {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.1s var(--ease-out), opacity .3s ease;
}
.ac-hero-stage.is-drawn .ac-edge { stroke-dashoffset: 0; }
.ac-hero-stage .ac-edge-port { opacity: .9; }
.ac-hero-stage .ac-group { transition: opacity .6s ease .5s; }
.ac-hero-stage.is-drawn .ac-group { opacity: 1; }

/* spec strip --------------------------------------------- */

.spec-strip {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}
.spec-inner { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); max-width: none; }
.spec-item {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 60px;
  padding: 4px 0 4px 22px;
  border-left: 1px solid var(--line);
  text-align: left;
  gap: 5px;
}
.spec-item:first-child { padding-left: 0; border-left: 0; }
.spec-item strong { color: var(--ink); font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.spec-item strong em { font-size: 19px; }
.spec-item > span:last-child { color: var(--faint); font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }

/* workflow ----------------------------------------------- */

.ac-workflow {
  height: 180vh;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.ac-workflow-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ac-workflow-inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.ac-workflow-copy h2 { margin-top: 19px; font-size: 40px; line-height: 1.12; letter-spacing: -.048em; }
.ac-workflow-lede { max-width: 300px; margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ac-steps { margin-top: 28px; border-top: 1px solid var(--line); }
.ac-step { display: grid; grid-template-columns: 28px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); opacity: .32; transition: opacity .3s ease; }
.ac-step.is-active { opacity: 1; }
.ac-step-index { padding-top: 1px; color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.ac-step.is-active .ac-step-index { color: var(--accent); }
.ac-step h3 { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.ac-step p { max-width: 258px; margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.ac-workflow-progress { height: 2px; margin-top: 24px; background: var(--line); overflow: hidden; }
.ac-workflow-progress span { display: block; width: 0; height: 100%; background: var(--accent); }

.ac-workflow-stage { width: 100%; height: 560px; }
.ac-workflow-world { will-change: transform; transform-origin: 50% 50%; }
.ac-workflow-stage .ac-group { opacity: 0; }
.ac-workflow-stage .ac-node { cursor: default; }

.ac-search {
  position: absolute;
  top: 51px;
  right: 24px;
  z-index: 8;
  width: 232px;
  height: 31px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.96);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .3s ease, transform .3s var(--ease-out);
  pointer-events: none;
}
.ac-workflow-stage.is-searching .ac-search { opacity: 1; transform: translateY(0); }
.ac-search svg { width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.ac-search-query { color: var(--ink); font-family: var(--font-mono); font-size: 8px; }
.ac-search-query::after { content: ""; display: inline-block; width: 1px; height: 10px; margin-left: 2px; background: var(--accent); vertical-align: -1px; }
.ac-search-meta { margin-left: auto; color: var(--faint); font-family: var(--font-mono); font-size: 7px; }
.ac-workflow-stage.is-searching .ac-node[data-node="wf-brief"] { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,89,255,.11), 0 14px 30px -24px rgba(43,89,255,.3); }

/* features ----------------------------------------------- */

.features {
  padding: 94px 0 104px;
  border-top: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(21,22,26,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,22,26,.032) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bento-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
  isolation: isolate;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}
.bento-card::after { display: none !important; }
.bento-card:hover { border-color: rgba(43,89,255,.5); box-shadow: 0 18px 34px -30px rgba(0,0,0,.2); transform: none; }
.card-file, .card-folder, .card-link, .card-image, .card-note { background: var(--white); }
.card-tag { color: var(--accent); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
.bento-card h3 { margin-top: 8px; color: var(--ink); font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.bento-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

.mini-node { border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: 0 10px 22px -20px rgba(0,0,0,.22); }
.mini-title { color: var(--ink); }
.mini-path, .mini-meta { color: var(--faint); }
.mini-badge { background: rgba(40,168,91,.09); color: var(--green); }
.folder-sheet { border-color: var(--line); background: var(--white); }
.image-card { border-color: var(--line); background: var(--white); box-shadow: 0 12px 24px -20px rgba(0,0,0,.2); }
.visual-note img { box-shadow: 0 12px 24px -20px rgba(0,0,0,.2); }
.visual-cursor { border-color: var(--line); background: var(--white); color: var(--accent); box-shadow: 0 8px 18px -14px rgba(0,0,0,.2); }
.link-ring { border-color: rgba(43,89,255,.13); }
.link-ring::after { border-color: rgba(43,89,255,.18); }

.card-relations {
  border-color: #25272b;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(43,89,255,.2), transparent 48%),
    #111214;
  color: #f2f2ee;
}
.card-relations:hover { border-color: #3a3d44; box-shadow: 0 24px 54px -38px rgba(0,0,0,.6); }
.relations-copy h3 { color: #f2f2ee; font-family: var(--font-display); font-size: 25px; }
.relations-copy p { color: #9a9fa5; }
.card-tag-light { color: #8ea7ff; }
.relations-chips > span { border-color: rgba(255,255,255,.14); color: #9a9fa5; }
.relations-chips kbd, .relations-copy kbd { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #f2f2ee; }
.rel-group { border-color: rgba(142,167,255,.5); background: rgba(43,89,255,.07); }
.rel-group-title { color: #8ea7ff; }
.rel-group-note, .rel-group-pill { color: #8d9298; }
.rel-group-pill { background: rgba(255,255,255,.07); }
.rel-node { border-color: rgba(255,255,255,.15); background: var(--white); }
.rel-node b { color: var(--ink); }
.rel-node i { color: var(--faint); }
.rel-line { stroke: #8ea7ff; filter: drop-shadow(0 0 4px rgba(142,167,255,.22)); }
.rel-end { fill: #8ea7ff; }
.rel-pulse { fill: #fff; }
.rel-target { border-color: rgba(255,255,255,.14); background: #1b1d21; }
.rel-target-title { color: #f2f2ee; }
.rel-badge { border-color: rgba(255,255,255,.13); background: #f2f2ee; color: var(--ink); }

/* search -------------------------------------------------- */

.search-section {
  padding: 84px 0 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.search-copy h2 { color: var(--ink); font-family: var(--font-display); font-size: 44px; line-height: 1.08; letter-spacing: -.05em; }
.search-fields span { border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink-2); font-family: var(--font-mono); font-size: 8px; }
.key-combo { color: var(--faint); }
.search-window { transform: none; border-radius: 7px; box-shadow: 0 22px 50px -38px rgba(0,0,0,.3); }
.search-visual:hover .search-window { transform: translateY(-2px); }
.floating-key { border-color: var(--line); background: var(--white); border-radius: 4px; box-shadow: 0 8px 18px -16px rgba(0,0,0,.25); }
.search-caption { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }

/* vault --------------------------------------------------- */

.vault {
  padding: 94px 0 100px;
  border-top: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(21,22,26,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,22,26,.032) 1px, transparent 1px);
  background-size: 32px 32px;
}
.vault-copy h2 { color: var(--ink); font-family: var(--font-display); font-size: 44px; line-height: 1.08; letter-spacing: -.05em; }
.vault-points li { border-top-color: var(--line); color: var(--ink-2); font-size: 13px; }
.vault-points li::before { background: var(--accent); }
.vault-board { border-color: var(--line); background: var(--sheet); border-radius: 7px; box-shadow: 0 24px 60px -54px rgba(0,0,0,.3); }
.vault-board-head { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.vault-board-node { border-color: var(--line); background: var(--white); border-radius: 6px; box-shadow: 0 8px 18px -18px rgba(0,0,0,.2); }
.vault-panel { border-color: var(--line); border-radius: 7px; background: rgba(255,255,255,.97); box-shadow: 0 22px 45px -32px rgba(0,0,0,.28); -webkit-backdrop-filter: none; backdrop-filter: none; }
.vault-panel-title { color: var(--ink); }
.vault-panel-sub, .vault-count, .vault-more { color: var(--faint); }
.vault-count { background: var(--paper); }
.vault-row:hover { background: var(--paper); }
.vault-row.is-active { background: #edf2ff; }
.vault-row-text b { color: var(--ink); }
.vault-row-text small { color: var(--faint); font-family: var(--font-mono); }
.vault-check { background: var(--accent); }
.vault-foot { border-top-color: var(--line); background: var(--white); color: var(--muted); }
.vault-caption { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }

/* local --------------------------------------------------- */

.local {
  padding: 98px 0 100px;
  background-color: #101113;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.036) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.036) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #f2f2ee;
}
.local-glow { display: none; }
.local .section-head { border-color: #2b2d32; }
.local-card { border-color: #292b30; border-radius: 8px; background: #17181b; }
.local-card::after { display: none; }
.local-card:hover { border-color: #41444b; background: #1a1c20; }
.local-kicker { color: #8c9198; font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; }
.local-path { color: #9aa0a6; font-family: var(--font-mono); }
.local-mini-node { border-color: #34373d; background: var(--white); border-radius: 7px; }
.local-status { border-color: #34373d; color: #c8cbd0; }
.local-status i, .autosave-status i { background: var(--green); }
.package-title { color: #f2f2ee; }
.package-title .icon { color: #8ea7ff; }
.package-row { border-color: #2a2d32; background: #1b1d21; }
.package-row b { color: #f2f2ee; }
.package-row small { color: #8c9198; }
.package-chip { border-color: #34373d; color: #9a9fa5; }
.autosave-status, .autosave-note { color: #8c9198; }
.autosave-options { border-color: #30333a; background: #1b1d21; }
.autosave-options button { color: #8c9198; }
.autosave-options button.is-active { background: var(--accent); color: #fff; }
.local-chips span { border-color: #34373d; color: #9a9fa5; }
.local code { border-color: #34373d; background: #1b1d21; color: #c8cbd0; }

/* personalize --------------------------------------------- */

.personalize {
  padding: 94px 0 100px;
  border-top: 1px solid var(--line);
  background: var(--white);
  --accent: #2b59ff;
}
.compare-window { border-radius: 7px; }
.compare { background: var(--paper); }
.compare-handle { color: var(--accent); border-color: var(--line); background: var(--white); box-shadow: 0 8px 22px -12px rgba(0,0,0,.25); }
.compare-tag { border-color: rgba(255,255,255,.2); background: rgba(0,0,0,.3); font-family: var(--font-mono); font-size: 8px; }
.control-block, .lang-sample { border-color: var(--line); border-radius: 7px; background: var(--paper); }
.control-head { color: var(--ink-2); }
.control-value { color: var(--accent); font-family: var(--font-mono); font-size: 8px; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent); }
.lang { border-color: var(--line); background: var(--white); color: var(--muted); font-size: 10px; }
.lang:hover { border-color: var(--faint); }
.lang.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.lang-sample { background: var(--white); }
.sample-text { color: var(--ink); }
.sample-meta { color: var(--faint); }
.sample-stripe { background: var(--accent); }

/* shortcuts ---------------------------------------------- */

.shortcuts {
  padding: 92px 0 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(21,22,26,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,22,26,.032) 1px, transparent 1px);
  background-size: 32px 32px;
}
.shortcuts-mark { display: none; }
.shortcut-group { border-top-color: var(--line); }
.shortcut-group h3 { color: var(--faint); font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; }
.shortcut-group li { border-bottom-color: var(--line); color: var(--ink); font-size: 12px; }
.shortcut-group li:hover { color: var(--accent); }
.keys kbd, .wide-key { border-color: var(--line); background: var(--white); color: var(--ink-2); }
.shortcut-footnote { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }

/* details ------------------------------------------------ */

.details {
  padding: 94px 0 100px;
  background: var(--white);
}
.detail-item { border-top-color: var(--line); }
.detail-index { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.detail-item:hover .detail-index { color: var(--accent); }
.detail-item h3 { color: var(--ink); font-size: 13px; }
.detail-item p { color: var(--muted); font-size: 12px; }
.detail-window { border-color: var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 18px 40px -34px rgba(0,0,0,.2); transform: none; }
.detail-visual:hover .detail-window { transform: translateY(-2px); }
.detail-window-bar { border-bottom-color: var(--line); background: var(--paper); color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.detail-window img { background: var(--white); }
.detail-caption { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }

/* download ----------------------------------------------- */

.download {
  position: relative;
  padding: 94px 0 96px;
  border-top: 1px solid #2a2c31;
  background: #101113;
  color: #f2f2ee;
  overflow: hidden;
}
.download-sky, .download-grid, .download-orb, .download-node { display: none; }
.download-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-auto-rows: auto;
  align-items: start;
  gap: 0 72px;
  text-align: left;
}
.download .eyebrow { grid-column: 1; grid-row: 1; color: #8ea7ff; }
.download .eyebrow .eyebrow-dot { background: #8ea7ff; box-shadow: 0 0 0 3px rgba(142,167,255,.1); }
.download h2 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 20px;
  color: #f2f2ee;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.download-meta { grid-column: 1; grid-row: 3; margin-top: 22px; color: #969ca2; font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }
.download-actions { grid-column: 1; grid-row: 4; margin-top: 28px; justify-content: flex-start; }
.btn-download { background: var(--accent); border-color: var(--accent); }
.btn-download:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-download:hover::before { background: var(--accent); }
.btn-download:hover .btn-sub { color: rgba(21,22,26,.6); border-left-color: rgba(21,22,26,.2); }
.install-line { grid-column: 1; grid-row: 5; justify-self: start; margin-top: 14px; padding: 6px 9px; border: 1px solid #2b2d32; border-radius: 3px; background: #17181b; color: #969ca2; font-family: var(--font-mono); font-size: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }

.download-icon-wrap {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  justify-self: end;
  width: 270px;
  height: 286px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b2d32;
  border-radius: 9px;
  background: #17181b;
  box-shadow: none;
  transform: none;
}
.download-icon-wrap::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,89,255,.16);
}
.download-icon-wrap:hover { transform: none; }
.download-icon-wrap img { width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 18px 36px -24px rgba(0,0,0,.7); }

/* footer ------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 50px 0 26px;
}
.footer-brand .brand-name { color: var(--ink); }
.footer-brand p { color: var(--faint); font-size: 12px; }
.footer-heading { color: var(--faint); font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; }
.footer-nav a { color: var(--ink-2); font-size: 12px; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { border-top-color: var(--line); color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.back-top { color: var(--muted); }
.back-top:hover { color: var(--accent); }

/* windows / misc ----------------------------------------- */

.window { border-color: var(--line); border-radius: 7px; background: var(--white); box-shadow: 0 22px 48px -38px rgba(0,0,0,.3); }
.window::after { box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.window-bar { border-bottom-color: var(--line); background: var(--paper); }
.window-title { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }

.skip-link { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html.js body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: none;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
html.js body.reveal-ready [data-reveal].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ac-hero-stage .ac-edge { transition: none; }
  .ac-group { transition: none; }
}

/* =========================================================
   Real-app hero + workflow (replaces the earlier graph demo)
   ========================================================= */

.ac-hero-stage { height: 1020px; }

.ac-hero-copy {
  top: 86px;
  width: 680px;
}

.ac-hero-side {
  position: absolute;
  top: 96px;
  right: 56px;
  z-index: 5;
  width: 360px;
}

.ac-hero-side .ac-lede {
  max-width: none;
  margin-top: 0;
}

.ac-hero-side .ac-hero-actions { margin-top: 24px; }
.ac-hero-side .ac-hero-meta { margin-top: 22px; }

.ac-real-frame {
  position: absolute;
  top: 300px;
  right: 56px;
  left: 56px;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 24px 60px -54px rgba(0, 0, 0, 0.28);
}

.ac-real-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ac-workflow-view {
  position: absolute;
  top: 44px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6f1e7;
}

.ac-workflow-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .45s ease;
  will-change: transform;
}

.ac-search-shot { opacity: 0; }
.ac-workflow-stage.is-searching .ac-search-shot { opacity: 1; }
.ac-workflow-stage.is-searching .ac-canvas-shot { opacity: 0; }

/* Real screen recordings ----------------------------------- */

.ac-real-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 872;
  object-fit: cover;
  background: var(--sheet);
}

.ac-workflow-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f6f1e7;
}

.ac-relations-video {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #0d0f13;
}

.ac-relations-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-workflow-video { opacity: 0; pointer-events: none; }
.ac-workflow-video.is-active { opacity: 1; }

/* =========================================================
   1:1 SVG node system (no screen recordings)
   ========================================================= */

.ac-node-frame {
  position: absolute;
  top: 300px;
  right: 56px;
  left: 56px;
  z-index: 3;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px -54px rgba(0, 0, 0, 0.28);
}

.ac-svg-canvas {
  position: absolute;
  inset: 0;
}

.ac-canvas-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ac-canvas-edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}
.ac-canvas-edge.is-related { opacity: 0.95; stroke-width: 1.9; }

.ac-svg-node {
  position: absolute;
  z-index: 3;
  width: 300px;
  line-height: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition:
    left 0.55s var(--ease-out),
    top 0.55s var(--ease-out),
    transform 0.6s var(--ease-out),
    opacity 0.4s ease;
  will-change: left, top, transform;
}
.ac-svg-node img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ac-svg-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-svg-node:hover::after { border-color: rgba(43, 89, 255, 0.4); }
.ac-svg-node.is-dragging {
  z-index: 12;
  cursor: grabbing;
  transition: none;
}
.ac-svg-node.is-dragging::after {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.12);
}

.ac-svg-canvas.is-focus .ac-svg-node { opacity: 0.3; }
.ac-svg-canvas.is-focus .ac-svg-node.is-related { opacity: 1; }

.ac-canvas-group {
  position: absolute;
  z-index: 0;
  border: 1px dashed rgba(43, 89, 255, 0.55);
  border-radius: 12px;
  background: rgba(43, 89, 255, 0.045);
  opacity: 0;
  transform: scale(0.98);
  transform-origin: 50% 50%;
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.ac-canvas-group-label {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 0 6px;
  background: var(--sheet);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ac-canvas-group-label em { margin-left: 5px; color: var(--faint); font-style: normal; }

/* Hero: real node media, composed as a live canvas. */
.ac-hero-stage .ac-svg-node {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}
.ac-hero-stage.is-drawn .ac-svg-node { opacity: 1; transform: none; }
.ac-hero-stage .ac-svg-node:nth-of-type(2) { transition-delay: 0.03s; }
.ac-hero-stage .ac-svg-node:nth-of-type(3) { transition-delay: 0.06s; }
.ac-hero-stage .ac-svg-node:nth-of-type(4) { transition-delay: 0.09s; }
.ac-hero-stage .ac-svg-node:nth-of-type(5) { transition-delay: 0.12s; }

.ac-hero-stage .ac-canvas-edge {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.15s var(--ease-out), opacity 0.3s ease, stroke-width 0.25s ease;
}
.ac-hero-stage.is-drawn .ac-canvas-edge { stroke-dashoffset: 0; }
.ac-hero-stage.is-drawn .ac-canvas-group { opacity: 1; transform: scale(1); }

/* Workflow: the node layout is the animation. */
.ac-flow-canvas .ac-svg-node { cursor: default; }
.ac-flow-canvas .ac-canvas-edge {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0;
  transition: stroke-dashoffset 1.1s var(--ease-out), opacity 0.3s ease;
}
.ac-workflow-stage.is-step-1 .ac-flow-canvas .ac-canvas-edge,
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-canvas-edge {
  opacity: 0.55;
  stroke-dashoffset: 0;
}
.ac-workflow-stage.is-step-1 .ac-flow-canvas .ac-canvas-group,
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-canvas-group {
  opacity: 1;
  transform: scale(1);
}

.ac-flow-canvas .ac-svg-node {
  opacity: 0.55;
  transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.97);
}
.ac-flow-canvas .ac-svg-node[data-key="file"] { --sx: 34px; --sy: -18px; }
.ac-flow-canvas .ac-svg-node[data-key="folder"] { --sx: -26px; --sy: 22px; }
.ac-flow-canvas .ac-svg-node[data-key="link"] { --sx: 26px; --sy: 34px; }
.ac-flow-canvas .ac-svg-node[data-key="image"] { --sx: -32px; --sy: 26px; }
.ac-flow-canvas .ac-svg-node[data-key="note"] { --sx: 30px; --sy: -20px; }

.ac-workflow-stage.is-step-1 .ac-flow-canvas .ac-svg-node,
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-svg-node {
  opacity: 1;
  transform: none;
}
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-svg-node { opacity: 0.28; }
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-svg-node[data-key="file"] { opacity: 1; }
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-svg-node[data-key="file"]::after {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(43, 89, 255, 0.12);
}
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-canvas-edge { opacity: 0.12; }
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-canvas-edge[data-from="file"],
.ac-workflow-stage.is-step-2 .ac-flow-canvas .ac-canvas-edge[data-to="file"] { opacity: 0.85; }

/* 1:1 node art in the feature tiles */
.node-visual {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 174px;
  margin-top: 22px;
}
.node-visual .node-art {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.visual-image.node-visual { min-height: 286px; }
.visual-note.node-visual { min-height: 174px; }

/* Relations: a live group-to-node composition built from the same nodes. */
.rel-live {
  overflow: visible;
}
.rel-live-group {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 192px;
  padding: 13px 12px 12px;
  border: 1px dashed rgba(142, 167, 255, 0.62);
  border-radius: 12px;
  background: rgba(43, 89, 255, 0.08);
  z-index: 2;
}
.rel-live-label {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 0 6px;
  background: #111214;
  color: #8ea7ff;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 15px;
  white-space: nowrap;
}
.rel-live-label em { margin-left: 5px; color: #7d8289; font-style: normal; }
.rel-live .rel-art {
  display: block;
  width: 168px;
  height: auto;
}
.rel-live .rel-art + .rel-art { margin-top: 8px; }
.rel-live-target {
  position: absolute;
  top: 74px;
  right: 0;
  width: 168px;
  z-index: 2;
}
.rel-live-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rel-live-line {
  fill: none;
  stroke: #8ea7ff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.rel-live.is-drawn .rel-live-line { stroke-dashoffset: 0; }
.rel-live-end { fill: #8ea7ff; }
.rel-live-dot { fill: #f2f2ee; opacity: 0; }
.rel-live-pill {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #9a9fa5;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.3;
}

.ac-svg-node.is-ambient { transition: none; }

.node-visual .node-art { transition: transform .5s var(--ease-out); }
.bento-card:hover .node-visual .node-art { transform: translateY(-3px); }

/* work-type switcher --------------------------------------- */
.ac-worktabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}
.ac-worktab {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.ac-worktab span { color: var(--faint); font-size: 7px; }
.ac-worktab:hover { border-color: rgba(43,89,255,.4); color: var(--ink-2); }
.ac-worktab.is-active {
  border-color: rgba(43,89,255,.45);
  background: rgba(43,89,255,.055);
  color: var(--accent);
}
.ac-worktab.is-active span { color: var(--accent); }
.ac-workflow-lede { min-height: 44px; }

/* FIND live demo ------------------------------------------ */
.find-demo { padding: 18px 18px 0; }
.find-stage {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(to right, rgba(21,22,26,.043) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,22,26,.043) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: 0 22px 50px -44px rgba(0,0,0,.3);
}
.find-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 790px;
  height: 500px;
  transform: translate(0, 0) scale(1);
  transform-origin: 0 0;
  transition: transform .95s var(--ease-out);
  will-change: transform;
}
.find-world .ac-svg-node { cursor: default; }
.find-world .ac-svg-node.is-match::after {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(43,89,255,.12);
}
.find-world.is-searching .ac-svg-node { opacity: .25; }
.find-world.is-searching .ac-svg-node.is-match { opacity: 1; }
.find-world.is-searching .ac-canvas-edge { opacity: .06; }
.find-world.is-searching .ac-canvas-edge.is-related { opacity: .5; }

.find-bar {
  position: absolute;
  z-index: 8;
  top: 13px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(390px, calc(100% - 28px));
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 30px -26px rgba(0,0,0,.35);
}
.find-glass { display: inline-flex; width: 12px; height: 12px; flex: none; }
.find-glass svg { width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.find-query {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: pre;
}
.find-caret {
  width: 1px;
  height: 12px;
  margin-left: -4px;
  background: var(--accent);
  animation: find-caret 1s steps(2, end) infinite;
}
@keyframes find-caret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
.find-count {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
}
.find-nav { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; color: #a5a8a9; font-family: var(--font-mono); font-size: 8px; font-style: normal; }
.find-nav i { font-style: normal; }
.find-caption { min-height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .find-world { transition: none; }
  .find-caret { animation: none; opacity: 1; }
}

.ac-worktab { font-size: 9px; padding: 6px 9px; }
.ac-worktab span { font-size: 7.5px; }

/* Tightened hero/workflow after removing the technical stage headers */
.ac-hero-stage { height: 880px; }
.ac-hero-copy { top: 48px; }
.ac-hero-side { top: 56px; }
.ac-node-frame { top: 250px; }
.ac-workflow-view { top: 16px; }

.find-world { width: 1620px; height: 1120px; }
.find-world.is-searching .ac-canvas-group { opacity: .25; }
.find-world.is-searching .ac-canvas-group-label { opacity: .35; }

/* Compact node index -------------------------------------- */
.features { padding: 72px 0 82px; }
.features .section-head { margin-bottom: 36px; }
.bento { gap: 14px; }
.bento-card { padding: 22px; }
.card-file, .card-folder, .card-link { grid-column: span 4; min-height: 300px; }
.card-image, .card-note {
  grid-column: span 6;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 20px;
}
.card-relations { min-height: 280px; }
.card-image .card-copy, .card-note .card-copy { max-width: none; }
.card-image .card-visual, .card-note .card-visual {
  width: 300px;
  margin-top: 0;
  min-height: 0;
}
.card-image .node-art, .card-note .node-art { width: 300px; }
.node-visual { min-height: 0; margin-top: 14px; }
.card-image .node-art, .card-note .node-art { max-width: 100%; }

/* FIND now precedes NODES; avoid a doubled rule between sections */
.search-section + .features { border-top: 0; }

/* Personal preview: a note that belongs to the user, not a language sample */
.personal-controls {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}
.personal-preview {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: visible;
}
.personal-tape {
  position: absolute;
  top: -7px;
  left: 30px;
  width: 54px;
  height: 13px;
  border-radius: 1px;
  background: rgba(232, 102, 63, 0.28);
  transform: rotate(-2.5deg);
  pointer-events: none;
}
.personal-stripe {
  width: 3px;
  flex: none;
  border-radius: 3px;
  background: var(--accent);
  transition: background-color 0.35s ease;
}
.personal-note { flex: 1; min-width: 0; }
.personal-head { display: flex; align-items: center; gap: 9px; }
.personal-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background-color 0.35s ease;
}
.personal-avatar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.personal-id { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.personal-id b { color: var(--ink); font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.personal-id small { color: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.personal-badge {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
}
.personal-title {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.personal-body { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.personal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.personal-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
}
.personal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.personal-controls { align-items: start; }

/* PERSONAL: a life canvas, not a profile card */
.personal-preview {
  display: block;
  padding: 18px;
  overflow: hidden;
}
.personal-canvas-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .06em;
}
.personal-world {
  position: relative;
  width: 620px;
  height: 286px;
  margin-top: 16px;
}
.personal-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.personal-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: .55;
  transition: stroke .35s ease;
}
.personal-node {
  position: absolute;
  z-index: 1;
  display: block;
  width: 300px;
  height: auto;
}
.personal-node-note { left: 0; top: 0; }
.personal-node-link { left: 0; top: 170px; }
.personal-node-image { left: 320px; top: 0; }
@media (max-width: 1180px) {
  .personal-controls { grid-template-columns: 1fr; }
  .personal-world { max-width: 100%; }
}

/* Accent controls now live in the life-canvas toolbar, so there is no empty column */
.personal-controls { display: block; }
.personal-board { padding: 22px; }
.personal-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.personal-accent { min-width: 0; }
.personal-accent .control-head { font-size: 12px; }
.personal-accent .swatches { margin-top: 14px; gap: 13px; }
.personal-board-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.personal-world {
  width: 980px;
  max-width: 100%;
  height: 286px;
  margin: 20px auto 0;
}
.personal-node-note { left: 0; top: 68px; }
.personal-node-image { left: 340px; top: 0; }
.personal-node-link { left: 680px; top: 91px; }
.personal-lines path { stroke-width: 1.4; opacity: .65; }
