:root {
    --background: #0d0e12;
    --background-dark: #121317;
    --card: #1a1b1f;
    --muted: #22242a;
    --foreground: #cfd6e4;
    --muted-foreground: #878c99;
    --primary: #A8FF53;       /* lime */
    --primary-soft: #55aa69;
    --accent: #826dff;        /* purple — AI */
    --aqua: #479DEC;
    --destructive: #f85149;
    --amber: #f2b84a;
    --orange: #f08a4a;
    --cyan: #4acfd9;
    --border: #2a2c33;
    --border-subtle: rgba(255,255,255,0.06);

    /* category stripes */
    --cat-core: var(--aqua);
    --cat-ai: var(--accent);
    --cat-logic: var(--primary);
    --cat-data: var(--orange);
    --cat-trigger: var(--amber);
    --cat-integration: var(--cyan);

    /* code highlight */
    --hl-fn: #D9F07C;
    --hl-str: #AFEC73;
    --hl-kw: #E888F8;
    --hl-type: #F770C6;
    --hl-var: #CCCBFF;
    --hl-com: #6F736D;

    --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
    --font-wordmark: "Syne", ui-sans-serif, system-ui, sans-serif;

    --maxw: 1240px;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--background); color: var(--foreground); }
  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
  }
  ::selection { background: color-mix(in oklab, var(--primary) 40%, transparent); color: var(--foreground); }

  a { color: inherit; text-decoration: none; }
  p { margin: 0; }

  /* ---- Layout ---- */
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  section { padding: 112px 0; border-top: 1px solid var(--border-subtle); position: relative; }
  section:first-of-type { border-top: 0; }

  /* ---- Type ---- */
  h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--foreground); letter-spacing: -0.01em; }
  h1 { font-size: clamp(48px, 7vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
  h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
  h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    display: inline-flex; align-items: center; gap: 10px;
  }
  .eyebrow .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 8px color-mix(in oklab, var(--primary) 70%, transparent); }
  .muted { color: var(--muted-foreground); }
  .lead { font-size: 18px; line-height: 1.6; color: var(--muted-foreground); max-width: 58ch; text-wrap: pretty; }
  .mono { font-family: var(--font-mono); }
  code.inline {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255,255,255,0.05);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--foreground);
  }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
    border: 1px solid transparent;
    white-space: nowrap;
  }
  .btn-primary { background: var(--primary); color: #0a0b0e; font-weight: 600; }
  .btn-primary:hover { background: color-mix(in oklab, var(--primary) 85%, white); }
  .btn-ghost { color: var(--foreground); border-color: rgba(255,255,255,0.12); background: transparent; }
  .btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
  .btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 6px; }

  /* ---- Nav ---- */
  .nav-wrap {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: color-mix(in oklab, var(--background) 72%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background 200ms ease;
  }
  .nav-wrap.scrolled { border-bottom-color: var(--border-subtle); }
  .nav {
    display: flex; align-items: center; gap: 32px;
    height: 64px;
  }
  .wordmark {
    font-family: var(--font-wordmark);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--foreground);
    display: inline-flex; align-items: center; gap: 10px;
  }
  .wordmark .mark {
    width: 22px; height: 22px;
    background: var(--primary);
    border-radius: 5px;
    position: relative;
    display: inline-block;
    transform: rotate(-8deg);
  }
  .wordmark .mark::before, .wordmark .mark::after {
    content: ""; position: absolute; background: #0a0b0e;
  }
  .wordmark .mark::before { left: 4px; top: 4px; width: 3px; height: 14px; }
  .wordmark .mark::after { left: 7px; top: 10px; width: 11px; height: 3px; transform: rotate(-40deg); transform-origin: 0 50%; }

  .nav-links { display: flex; gap: 4px; margin-left: 16px; }
  .nav-links a {
    font-size: 14px; color: var(--muted-foreground);
    padding: 6px 10px; border-radius: 6px;
    transition: color 150ms, background 150ms;
  }
  .nav-links a:hover { color: var(--foreground); background: rgba(255,255,255,0.04); }
  .nav-spacer { flex: 1; }
  .nav-right { display: flex; align-items: center; gap: 8px; }

  /* ---- Hero ---- */
  .hero { padding: 100px 0 128px; min-height: 85vh; display: flex; align-items: center; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    width: 100%;
  }
  @media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { min-height: unset; padding: 72px 0 96px;} }

  .hero h1 .accent { color: var(--primary); }
  .hero .sub { margin-top: 24px; max-width: 56ch; }
  .hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .play-icon {
    width: 18px; height: 18px; border-radius: 999px; border: 1px solid currentColor;
    display: inline-grid; place-items: center; font-size: 10px;
  }
  .play-icon::before { content: ""; border-left: 5px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; margin-left: 1px; }

  /* ---- Canvas illustration ---- */
  .canvas-frame {
    position: relative;
    background: linear-gradient(180deg, #101115 0%, #0b0c10 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  }
  .canvas-frame::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 22px 22px;
    background-position: -1px -1px;
    opacity: 0.7;
    pointer-events: none;
  }
  .canvas-frame .titlebar {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12,13,17,0.6);
    backdrop-filter: blur(6px);
    font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-foreground);
  }
  .canvas-frame .dots { display: flex; gap: 6px; }
  .canvas-frame .dots span { width: 10px; height: 10px; border-radius: 999px; background: #2a2c33; }
  .canvas-frame .crumbs { margin-left: 6px; display: flex; align-items: center; gap: 8px; }
  .canvas-frame .crumbs .sep { opacity: 0.4; }
  .canvas-frame .crumbs .weave { color: var(--foreground); }
  .canvas-frame .run-chip {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 12%, transparent);
    color: var(--primary); font-size: 10.5px;
    border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
  .run-chip .pulse {
    width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 70%, transparent);
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 55%, transparent); }
    70% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--primary) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 0%, transparent); }
  }

  .canvas-scroll { overflow-x: auto; overflow-y: hidden; position: relative; }
  .canvas-scroll::-webkit-scrollbar { height: 8px; }
  .canvas-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .canvas-stage { position: relative; height: 460px; }
  .canvas-stage.hero-stage { min-width: 700px; }
  .canvas-stage.product-stage { width: 842px; height: 460px; transform-origin: top left; }
  .product-canvas-inner .canvas-scroll { overflow: hidden; }
  .canvas-stage.demo-stage { min-width: 1200px; height: 520px; }

  .product-canvas-inner { display: grid; grid-template-columns: minmax(0,1fr) 340px; min-height: 460px; }
  @media (max-width: 760px) { .product-canvas-inner { grid-template-columns: 1fr; } .product-canvas-inner > aside { border-left: 0 !important; border-top: 1px solid var(--border-subtle); } }

  /* nodes */
  .node {
    position: absolute;
    width: 200px;
    background: rgba(18,19,23,0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 12.5px;
    box-shadow: 0 10px 24px -12px rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
  }
  .node .stripe { height: 3px; width: 100%; background: var(--cat-core); }
  .node .n-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .node .n-head {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 11px 6px;
  }
  .node .n-head .ico {
    width: 18px; height: 18px; border-radius: 5px;
    display: inline-grid; place-items: center;
    background: rgba(255,255,255,0.05);
    font-family: var(--font-mono); font-size: 10px; color: var(--foreground);
  }
  .node .n-title { font-weight: 500; font-size: 12.5px; color: var(--foreground); }
  .node .n-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground); padding: 0 11px 10px; }
  .node .n-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 11px; border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground);
  }
  .node .n-row .v { color: var(--foreground); }
  .node .handle {
    position: absolute; width: 9px; height: 9px; border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 80%, transparent);
    border: 1.5px solid color-mix(in oklab, var(--primary) 50%, transparent);
    top: 50%; transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(168,255,83,0.08);
  }
  .node .handle.in { left: -5px; }
  .node .handle.out { right: -5px; }
  .node.ai .stripe { background: var(--cat-ai); }
  .node.logic .stripe { background: var(--cat-logic); }
  .node.data .stripe { background: var(--cat-data); }
  .node.trigger .stripe { background: var(--cat-trigger); }
  .node.integration .stripe { background: var(--cat-integration); }

  .node.ai .n-head .ico { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); }
  .node.data .n-head .ico { background: color-mix(in oklab, var(--orange) 22%, transparent); color: var(--orange); }
  .node.trigger .n-head .ico { background: color-mix(in oklab, var(--amber) 22%, transparent); color: var(--amber); }
  .node.integration .n-head .ico { background: color-mix(in oklab, var(--cyan) 22%, transparent); color: var(--cyan); }

  .retry-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 7px; border-radius: 999px;
    background: color-mix(in oklab, var(--amber) 15%, transparent);
    color: var(--amber); font-family: var(--font-mono); font-size: 10px;
    border: 1px solid color-mix(in oklab, var(--amber) 30%, transparent);
  }

  .cost-chip {
    position: absolute;
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--muted-foreground);
    background: rgba(13,14,18,0.9);
    padding: 2px 7px; border-radius: 6px;
    border: 1px solid var(--border-subtle);
  }

  /* edges */
  .edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .edge-path { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
  .edge-pulse { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: 14 200;
    filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 70%, transparent));
    animation: flow 2.6s linear infinite;
  }
  @keyframes flow { to { stroke-dashoffset: -214; } }

  /* ---- Proof strip ---- */
  .proof {
    padding: 28px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(255,255,255,0.012) 0%, transparent 100%);
  }
  .proof-row {
    display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; color: var(--muted-foreground);
  }
  .proof-row .bullet { width: 3px; height: 3px; border-radius: 999px; background: var(--muted-foreground); opacity: 0.6; }
  .proof-row .fig { color: var(--foreground); }

  /* ---- Cards ---- */
  .grid { display: grid; gap: 20px; }
  .features {
    grid-template-columns: repeat(6, 1fr);
  }
  .features .card:nth-child(1) { grid-column: span 2; }
  .features .card:nth-child(2) { grid-column: span 2; }
  .features .card:nth-child(3) { grid-column: span 2; }
  .features .card:nth-child(4) { grid-column: span 3; }
  .features .card:nth-child(5) { grid-column: span 3; }
  @media (max-width: 900px) {
    .features { grid-template-columns: 1fr; }
    .features .card { grid-column: span 1 !important; }
  }

  .card {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 26px;
    position: relative;
    transition: border-color 150ms;
  }
  .card:hover { border-color: rgba(255,255,255,0.12); }
  .card .ico-tile {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-grid; place-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    margin-bottom: 18px;
    color: var(--foreground);
  }
  .card h3 { margin-bottom: 10px; font-size: 20px; }
  .card p { color: var(--muted-foreground); font-size: 14.5px; line-height: 1.55; }
  .card .inline-code-demo {
    margin-top: 18px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--muted-foreground);
    background: var(--background-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex; gap: 10px; flex-wrap: wrap;
  }

  /* ---- Section two-col ---- */
  .two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
  }
  @media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

  /* ---- Problem illustration ---- */
  .problem-illo {
    height: 320px;
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--background-dark);
    overflow: hidden;
  }

  /* ---- Three ways ---- */
  .three-col {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  }
  @media (max-width: 900px) { .three-col { grid-template-columns: 1fr; } }
  .way-card {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px;
  }
  .way-card .mini-canvas {
    height: 140px; margin-bottom: 22px;
    background: var(--background-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    position: relative;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 18px 18px;
  }
  .way-card h3 { margin-bottom: 8px; }
  .way-card p { color: var(--muted-foreground); font-size: 14.5px; }

  /* ---- Comparison table ---- */
  .cmp {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14.5px;
    margin-top: 48px;
  }
  .cmp th, .cmp td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-subtle);
  }
  .cmp thead th {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-foreground);
    font-weight: 400;
    padding-top: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .cmp tbody th {
    color: var(--muted-foreground);
    font-weight: 400;
    width: 22%;
  }
  .cmp td { color: var(--foreground); }
  .cmp .muted-cell { color: var(--muted-foreground); }
  .cmp .knitch-col {
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 8%, transparent) 0%, color-mix(in oklab, var(--primary) 2%, transparent) 100%);
    border-left: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
    border-right: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  }
  .cmp thead .knitch-col {
    border-top: 2px solid var(--primary);
    color: var(--foreground);
  }
  .cmp .knitch-col strong { color: var(--foreground); font-weight: 600; }

  /* ---- Observability screen ---- */
  .obs {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    background: var(--background-dark);
    min-height: 420px;
  }
  @media (max-width: 900px) { .obs { grid-template-columns: 1fr; } }
  .obs .left {
    padding: 18px;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 20px 20px;
    position: relative;
    border-right: 1px solid var(--border-subtle);
    min-height: 380px;
  }
  .obs .right {
    padding: 22px;
    background: var(--card);
    font-family: var(--font-mono);
    font-size: 12.5px;
  }
  .obs .right h4 {
    font-family: var(--font-display);
    font-size: 13px; color: var(--muted-foreground); font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 14px;
  }
  .metric-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-subtle);
  }
  .metric-row:last-child { border-bottom: 0; }
  .metric-row .k { color: var(--muted-foreground); }
  .metric-row .v { color: var(--foreground); }
  .metric-row .v.green { color: var(--primary); }
  .metric-row .v.purple { color: var(--accent); }

  .trace { margin-top: 20px; }
  .trace-item {
    display: grid; grid-template-columns: 14px 1fr auto; gap: 10px;
    padding: 7px 0; font-size: 11.5px; color: var(--muted-foreground);
    align-items: center;
  }
  .trace-item .dot {
    width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
    margin: 0 auto;
  }
  .trace-item .dot.purple { background: var(--accent); }
  .trace-item .dot.orange { background: var(--orange); }
  .trace-item .dot.cyan { background: var(--cyan); }
  .trace-item .name { color: var(--foreground); }
  .trace-item .dur { color: var(--muted-foreground); }

  /* ---- Dev specifics ---- */
  .spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
    background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden;
  }
  @media (max-width: 700px) { .spec-grid { grid-template-columns: 1fr; } }
  .spec {
    background: var(--card);
    padding: 28px 26px;
  }
  .spec h3 { font-size: 17px; margin-bottom: 8px; font-weight: 500; }
  .spec p { color: var(--muted-foreground); font-size: 14px; }

  /* ---- Pricing ---- */
  .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
  .tier {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .tier.featured { border-color: color-mix(in oklab, var(--primary) 35%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 5%, var(--card)) 0%, var(--card) 100%); }
  .tier h3 { font-size: 18px; display: flex; align-items: center; gap: 10px;}
  .tier .tag {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--primary);
    padding: 2px 8px; border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
  .tier p { color: var(--muted-foreground); font-size: 14px; }

  /* ---- Final CTA ---- */
  .final {
    text-align: center;
    padding: 140px 0;
    position: relative;
    border-top: 1px solid var(--border-subtle);
  }
  .final h2 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1.02; }
  .final .sub { margin: 20px auto 32px; font-size: 18px; color: var(--muted-foreground); max-width: 44ch; }

  /* ---- Footer ---- */
  footer {
    padding: 72px 0 40px;
    border-top: 1px solid var(--border-subtle);
    background: var(--background-dark);
  }
  .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
  @media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }
  .foot-col h4 {
    font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted-foreground); font-weight: 400;
    margin-bottom: 14px;
  }
  .foot-col a {
    display: block;
    font-size: 14px;
    color: var(--foreground);
    padding: 5px 0;
    transition: color 150ms;
  }
  .foot-col a:hover { color: var(--primary); }
  .foot-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted-foreground);
  }
  .foot-brand-bio { margin-top: 16px; color: var(--muted-foreground); font-size: 14px; max-width: 38ch; }

  /* ---- Section title helpers ---- */
  .sect-eyebrow { margin-bottom: 18px; }
  .sect-title { max-width: 22ch; }
  .sect-lead { margin-top: 20px; max-width: 58ch; color: var(--muted-foreground); font-size: 17px; line-height: 1.55; }

  /* ---- Tweaks panel ---- */
  #tweaks-panel {
    position: fixed; right: 20px; bottom: 20px; z-index: 200;
    width: 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,0.8);
    display: none;
  }
  #tweaks-panel.open { display: block; }
  #tweaks-panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground); font-weight: 500; margin-bottom: 14px; font-family: var(--font-mono);}
  #tweaks-panel label { display: block; margin-bottom: 10px; color: var(--foreground); }
  #tweaks-panel label span { display: block; color: var(--muted-foreground); font-size: 11.5px; margin-bottom: 4px; font-family: var(--font-mono);}
  #tweaks-panel select, #tweaks-panel input[type=checkbox] {
    width: 100%; background: var(--background-dark); color: var(--foreground);
    border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font: inherit;
  }
  #tweaks-panel input[type=checkbox] { width: auto; transform: translateY(1px); }

  /* Hero layout variant: stacked */
  body[data-hero="stacked"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  body[data-hero="stacked"] .hero .sub { margin-left: auto; margin-right: auto; }
  body[data-hero="stacked"] .hero .cta-row { justify-content: center; }
  body[data-hero="stacked"] .canvas-frame { width: 100%; max-width: 820px; margin-top: 56px; }

  body[data-proof="false"] #proof-strip { display: none; }
  body[data-metaphor="false"] #problem-illo { display: none; }
  body[data-metaphor="false"] #problem-section .two-col { grid-template-columns: 1fr; }

  body[data-green="soft"] { --primary: #55aa69; }

/* ===================== Workflow Copilot section ===================== */
.eyebrow .dot.ai { background: var(--accent); box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 70%, transparent); }

.cop-frame { min-height: 600px; }
.cop-stage { position: relative; width: 760px; height: 560px; }

/* selected/active node gets a violet focus ring */
.node.cop-focus {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 60%, transparent),
    0 0 28px -4px color-mix(in oklab, var(--accent) 65%, transparent),
    0 10px 24px -12px rgba(0,0,0,0.8);
}

/* glass chat modal — mirrors the product's CopilotChatModalV2 chrome */
.cop-modal {
  position: absolute; right: 24px; bottom: 24px; z-index: 6;
  width: clamp(360px, 44%, 470px);
  background: rgba(25,21,21,0.85);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.06),
    0 30px 60px -20px rgba(0,0,0,0.85),
    0 0 70px -24px rgba(130,109,255,0.5);
}
.cop-shimmer { position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent); }

.cop-head { display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cop-title { font-size: 13px; color: color-mix(in oklab, var(--foreground) 75%, transparent); }
.cop-title .cop-sesh { color: var(--muted-foreground); }
.cop-head-right { display: flex; align-items: center; gap: 8px; }
.cop-activenode { font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.cop-activenode .at { opacity: 0.55; }
.cop-iconbtn { color: var(--muted-foreground); font-size: 13px; opacity: 0.55; }

.cop-thread { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cop-msg { line-height: 1.55; }
.cop-msg.user { align-self: flex-end; max-width: 86%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 8px 12px; color: var(--foreground); }
.cop-msg.assistant { color: var(--muted-foreground); }
.cop-msg.assistant strong { color: var(--foreground); font-weight: 600; }
.cop-followup { display: block; margin-top: 8px; color: color-mix(in oklab, var(--foreground) 80%, transparent); }

/* node-reference chip — the product's purple CopilotNodeRefChip */
.cop-chip { display: inline-flex; align-items: center; gap: 3px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  color: #c5bcff; border-radius: 6px; padding: 0 6px;
  font-size: 12px; line-height: 1.6; white-space: nowrap; }
.cop-chip .at { opacity: 0.7; }

/* tool-call card */
.cop-tool { display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-foreground);
  background: rgba(13,14,18,0.55); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 7px 10px; align-self: flex-start; }
.cop-tool .run { width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s infinite; }

/* context strip */
.cop-ctx { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.cop-ctxchip { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 2px 8px; }

/* composer */
.cop-composer { display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.cop-input { flex: 1; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); font-size: 13px; }
.cop-meter { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground); white-space: nowrap; }
.cop-send { width: 24px; height: 24px; flex: none; border-radius: 7px;
  background: var(--accent); color: #0a0b0e; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* three supporting points under the visual */
.cop-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.cop-point-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--foreground); margin-bottom: 8px; }
.cop-point p { color: var(--muted-foreground); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 860px) {
  .cop-frame { min-height: 0; }
  .cop-stage { width: 100%; height: 360px; }
  .cop-modal { position: static; width: auto; margin: 0 16px 16px;
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(25,21,21,0.96); }
  .cop-points { grid-template-columns: 1fr; gap: 22px; }
}

/* ===================== Hero jump chips + smooth anchor scroll ===================== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

.hero-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hero-jumps .jump {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted-foreground);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.hero-jumps .jump:hover {
  color: var(--foreground);
  border-color: var(--border);
  background: rgba(255,255,255,0.05);
}
.hero-jumps .jump .spark { color: var(--accent); font-size: 12px; line-height: 1; }

/* the Copilot chip is the featured one — faint violet glow, animated sparkle */
.hero-jumps .jump.feat {
  color: #cbc2ff;
  border-color: color-mix(in oklab, var(--accent) 42%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  animation: jump-glow 3.2s ease-in-out infinite;
}
.hero-jumps .jump.feat:hover {
  color: #e6e1ff;
  border-color: color-mix(in oklab, var(--accent) 62%, transparent);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}
.hero-jumps .jump.feat .spark { animation: spark-pulse 3.2s ease-in-out infinite; }

@keyframes jump-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
  50%      { box-shadow: 0 0 18px -2px color-mix(in oklab, var(--accent) 45%, transparent); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-jumps .jump.feat { animation: none; }
  .hero-jumps .jump.feat .spark { animation: none; }
}
/* ===================== Back to top ===================== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  background: color-mix(in oklab, var(--card) 82%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.8);
  cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, color 150ms ease, border-color 150ms ease, box-shadow 220ms ease;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover {
  color: var(--foreground);
  border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 22%, transparent), 0 12px 30px -12px rgba(0,0,0,0.85);
}
.to-top:focus-visible {
  outline: none;
  border-color: color-mix(in oklab, var(--primary) 60%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 40%, transparent);
}
.to-top svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 200ms ease; transform: none; }
  .to-top.show { transform: none; }
}

/* ===================== Hero canvas: scale-to-fit (no clipping) ===================== */
.hero-stage { width: 700px; height: 460px; transform-origin: top left; will-change: transform; }
.hero-grid .canvas-frame { min-height: 0; }
.hero-grid .canvas-scroll { overflow: hidden; }
