/* The home page, third test copy (/home-v3.html, 21.10): simpler, in the order
   of the visitor's path, motion that shows a real step of the product (n8n as
   the reference: a dotted grid, mono labels, one accent). Built over the page's
   own tokens (picker.html) and the agent scene (picker-next.css). */

:root { --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; }

.v3-label { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.v3-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 220, 124, 0.15); }
.v3-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px;
  border: 1px solid rgba(196, 220, 124, 0.4); color: var(--accent); }

/* ---------------------------------------------------------------- 1. hero */
.v3-hero { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 80% at 85% 20%, rgba(196, 220, 124, 0.10), transparent 60%), #0d0d0e; }
.v3-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(90% 90% at 40% 50%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(90% 90% at 40% 50%, #000 40%, transparent 85%); }
.v3-hero > * { position: relative; }
.v3-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 70px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 22px 0 20px; }
.v3-hero h1 em { display: block; font-style: italic; color: var(--accent); }
.v3-lede { margin: 0; max-width: 500px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-mid); }
.v3-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.v3-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 30px;
  margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.v3-facts div { min-width: 0; }
.v3-facts dt { font: 500 26px/1 var(--serif); color: var(--ink); }
.v3-facts dd { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-dim); max-width: 150px; line-height: 1.35; }
.v3-hero-demo { display: grid; gap: 12px; }
.v3-hero .agentmock#agentDemo { min-height: 500px; border-radius: 22px; }
.v3-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-ideas a { font-size: 12.5px; text-decoration: none; color: var(--ink-mid); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02);
  transition: color .15s, border-color .15s, background .15s; }
.v3-ideas a:hover { color: var(--ink); border-color: rgba(196, 220, 124, 0.45); background: rgba(196, 220, 124, 0.06); }

/* ---------------------------------------------------------------- 3. personas */
.v3-head { display: grid; gap: 14px; margin-bottom: 28px; }
.v3-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06;
  letter-spacing: -0.015em; margin: 0; }
.v3-head h2 em { font-style: italic; color: var(--accent); }
.v3-personas { border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, #131315, #0e0e0f); }
.v3-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.v3-tabs button { flex: none; border: 0; background: none; color: var(--ink-mid); cursor: pointer;
  font: 500 13.5px var(--sans); padding: 10px 16px; border-radius: 12px; transition: background .15s, color .15s; }
.v3-tabs button:hover { color: var(--ink); }
.v3-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.v3-persona { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; min-height: 420px; }
.v3-story { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px;
  border-right: 1px solid var(--line); }
.v3-quote { margin: 0; font: 500 clamp(22px, 2vw, 28px)/1.3 var(--serif); color: var(--ink); }
.v3-note { margin: 0; font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
.v3-story .btn { align-self: flex-start; margin-top: auto; }
.v3-quote, .v3-note { transition: opacity .3s ease; }
.v3-persona.swap .v3-quote, .v3-persona.swap .v3-note { opacity: 0; }

/* the pipeline: a node a step, lit one after another */
.v3-flow { position: relative; padding: clamp(20px, 3vw, 40px); display: grid; align-content: center;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); background-size: 20px 20px; }
.v3-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px; }
.v3-node { position: relative; padding: 12px 12px 13px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: #161618; min-height: 92px; opacity: .38; transform: translateY(4px);
  transition: opacity .35s ease, transform .35s cubic-bezier(0.23, 1, 0.32, 1), border-color .35s, box-shadow .35s; }
.v3-node.on { opacity: 1; transform: none; }
.v3-node.now { border-color: rgba(196, 220, 124, 0.6); box-shadow: 0 0 0 4px rgba(196, 220, 124, 0.08); }
.v3-node b { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); }
.v3-node.on b { color: var(--accent); }
.v3-node span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); line-height: 1.35; }
.v3-node small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-dim); line-height: 1.3; }
.v3-node .ok { color: #3ccf7a; }
/* the link to the next node: a line that fills as the step passes */
.v3-node::after { content: ""; position: absolute; top: 50%; right: -18px; width: 18px; height: 1px;
  background: var(--line-strong); }
.v3-node:nth-child(4n)::after, .v3-node:last-child::after { display: none; }
.v3-node.on::after { background: var(--accent); }

@media (max-width: 960px) {
  .v3-hero { grid-template-columns: 1fr; }
  .v3-hero .agentmock#agentDemo { min-height: 440px; }
  .v3-persona { grid-template-columns: 1fr; }
  .v3-story { border-right: 0; border-bottom: 1px solid var(--line); }
  .v3-flow ol { grid-template-columns: repeat(2, 1fr); }
  .v3-node:nth-child(4n)::after { display: block; }
  .v3-node:nth-child(2n)::after { display: none; }
}
@media (max-width: 560px) {
  .v3-facts { grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
  .v3-facts dt { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-node { opacity: 1; transform: none; transition: none; }
}
