  :root{
    --bg:#0A0908;
    --panel:#141210;
    --panel-2:#1B1815;
    --line:#2C2721;
    --text:#F4EFE3;
    --text-dim:#8F887A;
    --accent:#EDEDED;
    --accent-dim:rgba(237,237,237,0.14);
    --mono:'JetBrains Mono', ui-monospace, monospace;
    --display:'Space Grotesk', sans-serif;
    --glass-fill: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    --glass-border: rgba(255,255,255,0.20);
    --glass-shadow: 0 20px 50px -20px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(0,0,0,0.25);
    --glass-frost: 0.35;
    --glass-saturation: 1.4;
    --glass-blur: 26px;
    --filter-id: url(#zeyno-glass-filter);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; scrollbar-gutter:stable; overflow-y:scroll;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--display);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  a{color:inherit; text-decoration:none;}
  :focus-visible{outline:2px solid var(--accent); outline-offset:3px;}

  .bg-orbs{position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;}
  .orb{position:absolute; border-radius:50%; filter:blur(90px);}
  .orb.a{width:560px; height:560px; top:-160px; left:-120px; background:var(--accent); opacity:0.14;}
  .orb.b{width:480px; height:480px; top:20%; right:-160px; background:#3E7C86; opacity:0.28;}
  .orb.c{width:420px; height:420px; bottom:-180px; left:30%; background:#6B5FA0; opacity:0.22;}
  .page{position:relative; z-index:1;}

  .wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
  @media (max-width:640px){.wrap{padding:0 20px;}}

  .eyebrow{
    font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:0.02em;
    color:var(--accent); display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{content:"//"; color:var(--text-dim);}

  h1,h2,h3{font-family:var(--display); font-weight:700; letter-spacing:-0.02em; color:var(--text);}

  /* ---------- NAV : liquid glass (SVG refraction) ---------- */
  @keyframes blink{50%{opacity:0;}}
  header{position:fixed; top:0; left:0; right:0; z-index:50;}

  .glass-pill{
    position:fixed; top:18px; left:50%;
    transform:translateX(-50%);
    z-index:50;
    display:flex; align-items:center; gap:2px;
    height:50px;
    padding:0 7px 0 22px;
    border-radius:999px;
    background:hsl(0 0% 0% / 0);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    box-shadow:none;
    overflow:hidden;
    transition:background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
  }
  body.scrolled .glass-pill{
    background:hsl(0 0% 0% / var(--glass-frost, 0.35));
    -webkit-backdrop-filter:blur(var(--glass-blur, 14px)) saturate(var(--glass-saturation, 1.4));
    backdrop-filter:blur(var(--glass-blur, 14px)) saturate(var(--glass-saturation, 1.4));
    box-shadow:
      inset 0 0 2px 1px #ffffff59,
      inset 0 0 10px 4px #ffffff26,
      inset 0 4px 16px #11111a0d,
      inset 0 8px 24px #11111a0d,
      inset 0 6px 56px #11111a0d,
      0 20px 50px -20px rgba(0,0,0,0.65);
  }

  .logo{
    position:relative; z-index:1;
    display:flex; align-items:center; gap:8px;
    font-family:var(--display); font-weight:700; font-size:19px; letter-spacing:0.04em; color:var(--text);
    text-transform:uppercase;
    white-space:nowrap; line-height:normal;
    padding-right:4px;
  }
  .logo-mark{
    width:22px; height:22px; flex-shrink:0; display:block;
  }

  /* ---------- PIXEL MASCOT ---------- */
  /* `rotate` and `translate` are independent CSS properties (not the
     `transform` shorthand), so the idle bob keyframe and the click-spin
     transition can run at once without one clobbering the other - the spin
     is driven by JS setting `rotate` directly (see PixelMascot.reactClick),
     which is why only `rotate` gets a transition here. */
  .pixel-mascot{display:block; image-rendering:pixelated; cursor:pointer; transition:rotate 3.2s cubic-bezier(.19,1,.22,1); visibility:hidden;}
  .pixel-mascot-bob{animation:mascotBob 3.6s ease-in-out infinite;}
  @keyframes mascotBob{0%,100%{translate:0 0;} 50%{translate:0 -6px;}}
  .logo-text{
    max-width:100px; opacity:1; overflow:hidden;
    transition:max-width 0.5s cubic-bezier(.16,1,.3,1), opacity 0.35s ease;
  }
  body.scrolled .logo-text{max-width:0; opacity:0;}

  .nav-tab{
    position:relative; z-index:1;
    display:flex; align-items:center;
    max-width:0; opacity:0; overflow:hidden; pointer-events:none;
    height:36px;
    padding:0; border-radius:999px;
    font-family:var(--display); font-weight:500; font-size:14px; line-height:normal; color:var(--text-dim); white-space:nowrap;
    transition:max-width 0.5s cubic-bezier(.16,1,.3,1), opacity 0.35s ease, padding 0.5s ease, background 0.2s, color 0.2s;
  }
  body.scrolled .nav-tab{max-width:160px; opacity:1; pointer-events:auto; padding:0 16px;}
  .nav-tab:hover{background:rgba(255,255,255,0.10); color:var(--text);}
  @media (max-width:760px){body.scrolled .nav-tab{display:none;}}

  .btn.nav-cta{
    max-width:0; opacity:0; overflow:hidden; pointer-events:none; flex-shrink:0;
    height:36px; line-height:34px;
    padding:0; margin:0; border:1px solid transparent;
    transition:max-width 0.5s cubic-bezier(.16,1,.3,1), opacity 0.35s ease, padding 0.5s ease, margin 0.5s ease, border-color 0.3s ease;
  }
  body.scrolled .btn.nav-cta{max-width:220px; opacity:1; pointer-events:auto; padding:0 22px; margin-left:6px; border-color:var(--accent);}
  @media (max-width:400px){body.scrolled .btn.nav-cta{padding:0 16px;}}

  .btn{
    display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:#12100D;
    padding:12px 22px; border-radius:999px; font-family:var(--display); font-size:13.5px; font-weight:700;
    border:1px solid var(--accent); cursor:pointer; white-space:nowrap; transition:transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
  }
  .btn:hover{transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(237,237,237,0.45);}
  .btn-ghost{background:rgba(255,255,255,0.05); color:var(--text); border:1px solid var(--glass-border); backdrop-filter:blur(10px); padding:12px 22px;}
  .btn-ghost:hover{border-color:rgba(255,255,255,0.35); box-shadow:none; transform:none;}

  /* ---------- TERMINAL WINDOW ---------- */
  .terminal{
    display:flex; flex-direction:column;
    background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:16px; overflow:hidden;
    backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%);
    box-shadow:0 40px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.14);
  }
  .terminal-bar{
    display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--glass-border);
    background:rgba(255,255,255,0.04);
  }
  .dot{width:10px; height:10px; border-radius:50%;}
  .dot.r{background:#FF5F57;} .dot.y{background:#FEBC2E;} .dot.g{background:#28C840;}
  .terminal-path{
    margin-left:12px; font-family:var(--mono); font-size:12px; color:var(--text-dim);
  }
  .terminal-body{padding:0; flex:1; min-height:0;}
  .ascii-canvas{
    display:block; width:100%; font-family:var(--mono); color:var(--accent);
    white-space:pre; line-height:1; letter-spacing:0; user-select:none;
    text-shadow:0 0 14px rgba(237,237,237,0.25);
  }

  /* ---------- HERO ---------- */
  .hero{
    position:relative; overflow:hidden;
    min-height:72vh; display:flex; align-items:center;
    padding:120px 0 60px;
  }
  .hero-plasma-bg{position:absolute; inset:0; z-index:0; background:var(--bg);}
  .hero-plasma-bg pre{
    position:absolute; inset:0; width:100%; height:100%;
    font-family:var(--mono); white-space:pre; line-height:1; letter-spacing:0; user-select:none;
    background-image:linear-gradient(120deg, #6E82C2, #93A8E0, #7FC2C2, #A38FC7, #6E82C2);
    background-size:320% 320%;
    -webkit-background-clip:text; background-clip:text; color:transparent;
    animation:plasmaDrift 26s ease-in-out infinite;
    opacity:0.72;
  }
  @keyframes plasmaDrift{
    0%{background-position:0% 40%;}
    50%{background-position:100% 60%;}
    100%{background-position:0% 40%;}
  }
  .hero-scrim{
    position:absolute; inset:0; z-index:1; pointer-events:none;
    background:
      radial-gradient(ellipse 70% 55% at 30% 40%, rgba(10,9,8,0.15), rgba(10,9,8,0.72) 65%),
      linear-gradient(180deg, rgba(10,9,8,0.25) 0%, rgba(10,9,8,0.55) 70%, var(--bg) 100%);
  }
  .hero-content{position:relative; z-index:2;}
  .hero h1{
    font-size:clamp(40px, 6.4vw, 100px); line-height:1.02; max-width:1150px; text-transform:none;
  }
  .hero h1 .accent{color:var(--accent);}
  .hero-title{display:flex; align-items:center; gap:0.16em;}
  .hero-title-mascot{display:block; flex-shrink:0; line-height:0;}
  .hero p.sub{
    font-family:var(--mono); font-size:15.5px; color:var(--text-dim); max-width:580px; margin-top:26px; line-height:1.7;
  }
  .hero-ctas{display:flex; gap:14px; flex-wrap:wrap; margin-top:32px;}

  /* ---------- HERO LIVE-DEMO WINDOW (mirrors the real app shell) ---------- */
  .hero-window{
    margin-top:64px; max-width:920px;
    border-radius:14px; overflow:hidden;
    background:var(--bg); border:1px solid var(--glass-border);
    box-shadow:0 50px 100px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .hw-titlebar{
    display:flex; align-items:center; gap:8px; padding:12px 16px;
    border-bottom:1px solid var(--glass-border); background:rgba(255,255,255,0.02);
  }
  .hw-replay{
    margin-left:auto; display:flex; align-items:center; justify-content:center;
    width:26px; height:26px; border-radius:7px; border:none; cursor:pointer;
    background:rgba(255,255,255,0.06); color:var(--text-dim);
    transition:background .2s ease, color .2s ease;
  }
  .hw-replay:hover{background:rgba(255,255,255,0.12); color:var(--text);}
  .hw-replay svg{width:15px; height:15px;}
  .hw-body{display:flex; align-items:stretch; height:460px;}
  .hw-sidebar{
    width:200px; flex-shrink:0; padding:14px 10px; border-right:1px solid var(--glass-border);
    display:flex; flex-direction:column; gap:2px;
  }
  @media (max-width:720px){.hw-sidebar{display:none;}}
  .hw-app-switch{
    display:flex; align-items:center; gap:9px; padding:6px 8px 18px;
    font-family:var(--display); font-size:13.5px; font-weight:600; color:var(--text);
  }
  .hw-app-logo{display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .hw-app-logo canvas{display:block;}
  .hw-chevron{width:13px; height:13px; color:var(--text-dim); margin-left:auto;}
  .hw-nav-item{
    display:flex; align-items:center; gap:9px; padding:7px 8px; border-radius:7px;
    font-family:var(--display); font-size:12.5px; color:var(--text-dim);
  }
  .hw-nav-item.active{background:rgba(255,255,255,0.07); color:var(--text);}
  .hw-nav-item svg{width:14px; height:14px; flex-shrink:0;}
  .hw-badge{
    margin-left:auto; min-width:16px; height:16px; padding:0 4px; border-radius:999px;
    background:#E5484D; color:#fff; font-family:var(--mono); font-size:10px; font-weight:700;
    line-height:16px; text-align:center;
    opacity:0; transform:scale(0.4); transition:opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  }
  .hw-badge.show{opacity:1; transform:scale(1);}
  .hw-main{flex:1; min-width:0; min-height:0; display:flex; flex-direction:column;}
  .hw-chat{
    flex:1; min-height:0; padding:26px 28px;
    overflow-y:auto;
  }

  /* ---------- SECTION shared ---------- */
  section{padding:110px 0;}
  .section-head{max-width:680px; margin-bottom:56px;}
  .section-head h2{font-size:clamp(30px,4vw,50px); margin-top:14px; line-height:1.02;}
  .section-head p{font-family:var(--mono); font-size:14.5px; color:var(--text-dim); margin-top:18px; max-width:520px; line-height:1.7;}

  .reveal{opacity:0; transform:translateY(28px); transition:opacity 0.7s ease, transform 0.7s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

  .ascii-rule{
    font-family:var(--mono); font-size:11px; color:var(--line); letter-spacing:0.1em; margin:0 0 18px;
    overflow:hidden; white-space:nowrap;
  }

  /* ---------- CONNECTIONS ---------- */
  .brain-grid{display:grid; grid-template-columns:0.95fr 1.05fr; gap:56px; align-items:center;}
  @media (max-width:900px){.brain-grid{grid-template-columns:1fr;} .conn-term{display:none;}}
  .conn-term{
    aspect-ratio:1/1; background:none; border:none; border-radius:0;
    backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none;
  }

  .conn-graph{display:block; width:100%; height:100%;}
  .conn-glow{fill:url(#connGlow);}
  .conn-line{stroke-width:1; fill:none;}
  .conn-bubble{stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; filter:drop-shadow(0 0 4px rgba(237,237,237,0.75)); opacity:0;}
  .conn-node image{filter:drop-shadow(0 2px 8px rgba(0,0,0,0.5));}
  .conn-center-mark{color:var(--text); animation:centerPulse 4.5s ease-in-out infinite;}
  .conn-center-mark path{fill:currentColor;}

  @keyframes travelOut{
    0%{offset-distance:0%; opacity:0;}
    10%{opacity:1;}
    82%{opacity:1;}
    100%{offset-distance:100%; opacity:0;}
  }
  @keyframes travelIn{
    0%{offset-distance:100%; opacity:0;}
    10%{opacity:1;}
    82%{opacity:1;}
    100%{offset-distance:0%; opacity:0;}
  }
  @keyframes centerPulse{
    0%,100%{transform:scale(1); opacity:1;}
    50%{transform:scale(1.06); opacity:0.85;}
  }

  .tool-list{display:grid; gap:12px; margin-top:30px;}
  .tool-row{
    display:flex; align-items:flex-start; gap:16px; padding:16px 18px; border:1px solid var(--glass-border); border-radius:14px;
    background:rgba(255,255,255,0.05); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  }
  .tool-row .tool-icon{margin-top:1px;}
  .tool-icon{
    width:34px; height:34px; border-radius:7px; background:var(--accent-dim); color:var(--accent);
    display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-weight:700; font-size:13px; flex-shrink:0;
  }
  .tool-row strong{font-size:15px; font-weight:700; font-family:var(--display);}
  .tool-row .tool-desc{display:block; font-family:var(--display); font-size:14.5px; color:var(--text-dim); margin-top:5px; line-height:1.85;}

  /* ---------- HOW IT WORKS (bento grid) ---------- */
  .bento-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
  @media (max-width:800px){.bento-grid{grid-template-columns:1fr;}}
  .bento-card{
    background:rgba(255,255,255,0.03); border:1px solid var(--glass-border); border-radius:20px;
    padding:32px; min-width:0;
  }
  .bento-card h3{
    font-size:16px; font-weight:600; letter-spacing:0; margin:0 0 10px; color:var(--text);
  }
  .bento-card > p{
    font-family:var(--mono); font-size:13.5px; color:var(--text-dim); line-height:1.7; max-width:420px;
  }
  .bento-visual{margin-top:26px;}
  .bento-visual-describe{display:flex; flex-direction:column; align-items:flex-start; gap:0;}
  .describe-bubble{max-width:100%;}
  .describe-connector{width:1px; height:18px; margin:2px 0 2px 20px; background:var(--glass-border);}
  .describe-routine{
    display:flex; align-items:center; gap:12px; width:100%; padding:12px 16px;
    border:1px solid var(--glass-border); border-radius:12px; background:rgba(255,255,255,0.03);
  }
  .describe-routine-icon{
    width:30px; height:30px; border-radius:8px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:var(--accent-dim); color:var(--accent);
  }
  .describe-routine-icon svg{width:15px; height:15px;}
  .describe-routine-title{font-family:var(--display); font-size:13.5px; font-weight:700; color:var(--text);}
  .describe-routine-meta{font-family:var(--mono); font-size:11px; color:var(--text-dim); margin-top:2px;}
  .bento-visual-handoff{display:flex; flex-direction:column; align-items:center; gap:16px; padding-top:6px;}
  .handoff-flow{display:flex; align-items:center; gap:14px;}
  .handoff-avatar{
    width:56px; height:56px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.05); border:1px solid var(--glass-border);
  }
  .handoff-avatar canvas{width:60%; height:60%; display:block;}
  .handoff-arrow{width:20px; height:20px; color:var(--text-dim); flex-shrink:0;}
  .bento-visual-handoff .msg-handoff{margin-top:0;}
  .bento-visual-models{display:flex; flex-direction:column; gap:14px;}
  .specialists-scatter-sm{gap:22px 18px; padding:6px;}
  .specialists-scatter-sm .specialist-item{width:62px;}
  .specialists-scatter-sm .specialist-avatar{width:44px; height:44px;}
  .specialists-scatter-sm .specialist-bubble{font-size:10px; padding:5px 9px;}
  .specialists-scatter-sm .specialist-name{font-size:10.5px;}

  .connect-list{display:flex; flex-direction:column; gap:10px;}
  .connect-card{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    border:1px solid var(--glass-border); border-radius:12px;
    background:rgba(255,255,255,0.03);
    padding:12px 16px;
  }
  .connect-tool{display:flex; align-items:center; gap:10px;}
  .connect-tool img{width:22px; height:22px; object-fit:contain; flex-shrink:0; border-radius:4px;}
  .model-scatter{
    display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
    gap:18px 22px; padding:22px 10px;
  }
  .model-mark{
    width:48px; height:48px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.05); border:1px solid var(--glass-border); color:var(--accent);
    transition:transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease;
  }
  .model-mark:hover{transform:scale(1.08); border-color:var(--accent);}
  .model-mark svg{width:20px; height:20px;}
  .model-mark-grok svg{width:19px; height:auto;}
  .model-scatter .model-mark:nth-child(1){transform:translateY(8px) rotate(-4deg);}
  .model-scatter .model-mark:nth-child(2){transform:translateY(-10px) rotate(3deg);}
  .model-scatter .model-mark:nth-child(3){transform:translateY(4px) rotate(-3deg);}
  .model-scatter .model-mark:nth-child(4){transform:translateY(-6px) rotate(4deg);}
  .model-scatter .model-mark:nth-child(5){transform:translateY(6px) rotate(-2deg);}
  .model-scatter .model-mark:nth-child(1):hover, .model-scatter .model-mark:nth-child(2):hover,
  .model-scatter .model-mark:nth-child(3):hover, .model-scatter .model-mark:nth-child(4):hover,
  .model-scatter .model-mark:nth-child(5):hover{transform:scale(1.08) rotate(0deg);}
  .connect-tool span{font-family:var(--display); font-size:13.5px; font-weight:600; color:var(--text);}
  .connect-switch{
    width:32px; height:18px; border-radius:999px; flex-shrink:0; position:relative;
    background:rgba(255,255,255,0.1); border:1px solid var(--glass-border);
    transition:background .3s ease, border-color .3s ease;
  }
  .connect-switch.on{background:var(--accent); border-color:var(--accent);}
  .connect-knob{
    position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%;
    background:#fff; transition:transform .3s ease;
  }
  .connect-switch.on .connect-knob{transform:translateX(14px); background:#12100D;}
  .specialists-scatter{
    display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
    gap:36px 30px; height:100%; padding:20px 10px;
  }
  .specialist-item{
    display:flex; flex-direction:column; align-items:center; gap:11px; width:78px;
    opacity:0; transform:translateY(10px) scale(0.85) rotate(0deg);
    transition:opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  }
  .specialist-item.in{opacity:1;}
  .specialist-item:nth-child(1).in{transform:translateY(6px) rotate(-3deg);}
  .specialist-item:nth-child(2).in{transform:translateY(-16px) rotate(4deg);}
  .specialist-item:nth-child(3).in{transform:translateY(2px) rotate(-2deg);}
  .specialist-item:nth-child(4).in{transform:translateY(-10px) rotate(3deg);}
  .specialist-item:nth-child(5).in{transform:translateY(10px) rotate(-4deg);}
  .specialist-bubble{
    position:relative; padding:6px 12px; border-radius:14px;
    background:var(--panel-2); border:1px solid var(--glass-border);
    font-family:var(--mono); font-size:11px; color:var(--text-dim); white-space:nowrap;
  }
  .specialist-bubble::after{
    content:''; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%);
    width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent;
    border-top:5px solid var(--panel-2);
  }
  .specialist-avatar{
    width:56px; height:56px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.05); border:1px solid var(--glass-border);
  }
  .specialist-avatar canvas{width:64%; height:64%; display:block;}
  .specialist-name{font-family:var(--mono); font-size:11.5px; color:var(--text-dim);}

  /* ---------- TERMINAL DEMO (typing) ---------- */
  .chat-thread{display:flex; flex-direction:column; gap:22px;}
  .chat-msg{display:flex; align-items:flex-start; gap:10px; max-width:92%;}
  .chat-msg.you{flex-direction:row-reverse; margin-left:auto;}
  .chat-avatar{
    width:34px; height:34px; flex-shrink:0; color:var(--accent); margin-top:2px;
    display:flex; align-items:center; justify-content:center;
  }
  .chat-avatar canvas{width:100%; height:100%; display:block;}
  .chat-bubble{
    padding:12px 16px; border-radius:18px;
    background:rgba(255,255,255,0.08); border:1px solid var(--glass-border);
    font-family:var(--display); font-size:14.5px; line-height:1.5; color:var(--text);
    white-space:pre-wrap;
  }
  .chat-bubble.fade-in{opacity:0; transform:translateX(-24px); transition:opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.8,.2,1);}
  .chat-bubble.fade-in.in{opacity:1; transform:translateX(0);}
  /* The user's own bubble sits on the right (row-reverse), so it should
     slide in from the right, not from the left like a zeyno reply does. */
  .chat-msg.you .chat-bubble.fade-in{transform:translateX(24px);}
  .chat-msg.you .chat-bubble.fade-in.in{transform:translateX(0);}
  .chat-msg.you .chat-bubble{border-bottom-right-radius:5px;}
  .msg-plain{
    font-family:var(--display); font-size:14.5px; line-height:1.85; color:var(--text);
    white-space:pre-wrap; padding-top:4px;
  }
  .msg-pill{
    display:inline-block; padding:0; margin:0 1px; white-space:nowrap;
    background:none; border:none;
    font-family:inherit; font-size:inherit; font-weight:inherit; color:var(--text);
    opacity:0; transition:opacity 0.3s ease;
  }
  .msg-pill.in{opacity:1;}
  .msg-pill svg{width:14px; height:14px; margin-right:6px; vertical-align:-2px; color:var(--accent);}
  .msg-pill img{width:14px; height:14px; margin-right:6px; vertical-align:-2px; border-radius:3px; object-fit:contain;}
  .type-cursor{display:inline-block; width:2px; height:14px; background:currentColor; margin-left:2px; vertical-align:-2px; animation:blink 1s step-end infinite;}

  /* ---------- ROUTINE CARD + SPECIALIST HANDOFF (under a zeyno message) ---------- */
  .msg-card{
    margin-top:14px; max-width:360px;
    border:1px solid var(--glass-border); border-radius:14px; padding:16px 18px;
    background:rgba(255,255,255,0.03);
    opacity:0; transform:translateY(6px); transition:opacity .4s ease, transform .4s ease;
  }
  .msg-card.in{opacity:1; transform:translateY(0);}
  .msg-card-label{font-family:var(--mono); font-size:10.5px; letter-spacing:0.08em; color:var(--text-dim);}
  .msg-card-title{font-family:var(--display); font-size:15px; font-weight:700; margin-top:5px; color:var(--text);}
  .msg-card-meta{font-family:var(--mono); font-size:11.5px; color:var(--text-dim); margin-top:4px;}
  .msg-card-steps{margin-top:12px; display:flex; flex-direction:column; gap:6px;}
  .msg-card-step{
    display:flex; gap:8px; font-family:var(--display); font-size:12.5px; color:var(--text-dim); line-height:1.5;
  }
  .msg-card-step-num{color:var(--text-dim); opacity:0.6; flex-shrink:0;}
  .msg-card-btn{
    display:inline-block; margin-top:14px; padding:7px 14px; border-radius:8px;
    background:rgba(255,255,255,0.08); font-family:var(--display); font-size:12.5px; font-weight:600; color:var(--text);
  }
  .msg-memory-card{max-width:300px;}
  .msg-connect-card{max-width:280px; padding:14px 16px;}
  .connect-mini-row{display:flex; align-items:center; gap:10px;}
  .connect-mini-icon{width:22px; height:22px; object-fit:contain; flex-shrink:0; border-radius:4px;}
  .connect-mini-name{font-family:var(--display); font-size:13.5px; font-weight:600; color:var(--text); flex:1;}
  .connect-mini-switch{
    width:32px; height:18px; border-radius:999px; background:rgba(255,255,255,0.1);
    border:1px solid var(--glass-border); position:relative; flex-shrink:0; transition:background .3s ease;
  }
  .connect-mini-switch.on{background:var(--accent); border-color:var(--accent);}
  .connect-mini-knob{
    position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%;
    background:#fff; transition:transform .3s ease;
  }
  .connect-mini-switch.on .connect-mini-knob{transform:translateX(14px); background:#12100D;}
  .memory-graph{display:block; width:100%; height:auto; margin-top:10px;}
  /* Solid fill, not translucent - a see-through center would let the edge
     lines "show through" the node instead of visually stopping at its ring,
     even though they're already behind it in paint order. */
  .memory-node-center{fill:#141C29; stroke:#5B8DEF; stroke-width:2;}
  .memory-node-label{font-family:var(--display); font-weight:700; fill:var(--text);}
  .memory-node-label.long{font-size:11px;}
  .memory-node-label:not(.long){font-size:13px;}
  .memory-node-leaf{fill:#5B8DEF;}
  .memory-node-new, .memory-edge-new{
    opacity:0; transform:scale(0.4); transform-box:fill-box; transform-origin:center;
    transition:opacity .35s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
  }
  .memory-edge-new{transform:none; transition:opacity .35s ease;}
  .memory-node-new.in, .memory-edge-new.in{opacity:1; transform:scale(1);}
  .memory-edge-new.in{transform:none;}
  .msg-memory-note{margin-top:10px; font-family:var(--display); font-size:12.5px; color:var(--text-dim); line-height:1.6;}
  /* A system-status divider, not another chat message - centered across
     the full thread width (a sibling of .chat-msg rows, not nested inside
     one), small and muted like a timestamp separator. */
  .msg-handoff{
    align-self:center; display:inline-flex; align-items:center; gap:7px;
    margin-top:2px; padding:4px 12px 4px 5px;
    border-radius:999px; background:rgba(255,255,255,0.04); border:1px solid var(--glass-border);
    font-family:var(--mono); font-size:11px; color:var(--text-dim);
    opacity:0; transform:translateY(4px); transition:opacity .4s ease, transform .4s ease;
  }
  .msg-handoff.in{opacity:1; transform:translateY(0);}
  .msg-handoff strong{color:#9CC2F2; font-weight:600;}
  .msg-handoff-avatar{
    width:16px; height:16px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  /* no chip background behind the icon - it's masked directly to the
     specialist's color, same as the real app's specialist rows (a plain
     PixelSprite tinted to specialist.color, no colored circle behind it) */
  .msg-handoff-avatar canvas{width:100%; height:100%; display:block;}

  /* ---------- PRODUCT ---------- */
  .specialists-scatter-lg{margin-top:12px;}
  .specialists-scatter-lg .specialist-item{width:104px;}
  .specialists-scatter-lg .specialist-avatar{width:72px; height:72px;}
  .specialists-scatter-lg .specialist-name{font-size:13px;}
  .product-shots{display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:32px;}
  @media (max-width:800px){.product-shots{grid-template-columns:1fr;}}
  .product-shot{
    border:1px solid var(--glass-border); border-radius:16px; overflow:hidden;
    background:var(--glass-fill); backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%);
    box-shadow:0 40px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.14);
  }
  .product-shot img{display:block; width:100%; height:auto;}
  .product-caption{
    font-family:var(--mono); font-size:13px; color:var(--text-dim); line-height:1.6;
    padding:16px 20px; border-top:1px solid var(--glass-border);
  }

  /* ---------- CTA ---------- */
  .cta-section{text-align:center;}
  .cta-section h2{font-size:clamp(34px,5vw,64px); max-width:760px; margin:0 auto 20px; line-height:1.02;}
  .cta-section p{font-family:var(--mono); font-size:14.5px; color:var(--text-dim); max-width:440px; margin:0 auto 40px;}

  /* ---------- FOOTER ---------- */
  footer{border-top:1px solid var(--line); padding:44px 0 40px;}
  footer .wrap{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
  .footer-brand{display:flex; flex-direction:column; gap:6px;}
  .footer-links{display:flex; gap:26px; font-family:var(--mono); font-size:12.5px; color:var(--text-dim);}
  .footer-socials{display:flex; align-items:center; gap:18px;}
  .footer-social{display:flex; align-items:center; color:var(--text-dim); transition:color .2s ease;}
  .footer-social:hover{color:var(--accent);}
  .footer-social svg{width:18px; height:18px;}
  .footer-copy{font-family:var(--mono); font-size:12px; color:var(--text-dim); opacity:0.6;}
