
  html { scroll-behavior: smooth; }
  body { background: #fff; }
  footer { display: none !important; }

  /* ---- Embedded Live Browser Demo ---- */
  .demo-section-inner.svelte-1uha8ag {
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
  }

  .demo-wrapper.svelte-1uha8ag {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    background: #fff;
    margin: 0 16px 16px;
  }

  .demo-browser-panel.svelte-1uha8ag {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
  }

  .demo-toolbar.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
  }

  .demo-chrome-dots.svelte-1uha8ag { display: flex; gap: 5px; flex-shrink: 0; }
  .demo-cdot.svelte-1uha8ag { width: 10px; height: 10px; border-radius: 50%; }
  .demo-cdot-r.svelte-1uha8ag { background: #ff5f57; }
  .demo-cdot-y.svelte-1uha8ag { background: #febc2e; }
  .demo-cdot-g.svelte-1uha8ag { background: #28c840; }

  .demo-url-bar.svelte-1uha8ag {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 0;
    transition: border-color 0.15s;
  }
  .demo-url-focused.svelte-1uha8ag { border-color: #a3a3a3; }

  .demo-url-text.svelte-1uha8ag {
    font-size: 0.6875rem;
    color: #525252;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    cursor: text;
    flex: 1;
  }
  .demo-url-input.svelte-1uha8ag {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.6875rem;
    color: #171717;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    background: transparent;
    min-width: 0;
  }

  .demo-toolbar-right.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 0.625rem;
    color: #a3a3a3;
  }

  .demo-conn-dot.svelte-1uha8ag {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    flex-shrink: 0;
  }
  .demo-conn-live.svelte-1uha8ag { background: #16a34a; box-shadow: 0 0 4px rgba(22,163,74,0.4); }
  .demo-conn-label.svelte-1uha8ag { font-size: 0.625rem; color: #a3a3a3; }

  .demo-canvas-area.svelte-1uha8ag {
    flex: 1;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .demo-canvas.svelte-1uha8ag {
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    outline: none;
    cursor: pointer;
    display: block;
  }
  .demo-canvas-control.svelte-1uha8ag { cursor: crosshair; }

  .demo-canvas-overlay.svelte-1uha8ag {
    position: absolute;
    inset: 0;
    background: rgba(240,240,240,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #525252;
  }

  .demo-loading.svelte-1uha8ag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #525252;
    font-size: 0.875rem;
    padding: 24px;
    text-align: center;
  }

  .demo-error-text.svelte-1uha8ag { color: #dc2626; font-size: 0.8125rem; }

  .demo-start-btn.svelte-1uha8ag {
    padding: 10px 28px;
    background: #171717;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease;
  }
  .demo-start-btn.svelte-1uha8ag:hover { background: #333; }

  .demo-spinner.svelte-1uha8ag {
    width: 28px;
    height: 28px;
    border: 2px solid #e5e5e5;
    border-top-color: #171717;
    border-radius: 50%;
    animation: svelte-1uha8ag-demo-spin 0.8s linear infinite;
  }
  @keyframes svelte-1uha8ag-demo-spin { to { transform: rotate(360deg); } }

  /* ---- Dark chat panel ---- */
  .demo-chat-panel.svelte-1uha8ag {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #141414;
    border-left: 1px solid #2a2a2a;
    position: relative;
  }

  .demo-chat-panel.demo-chat-caution.svelte-1uha8ag::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 3px dashed rgba(234, 179, 8, 0.92);
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
    animation: svelte-1uha8ag-demo-caution-in 0.4s ease;
  }
  @keyframes svelte-1uha8ag-demo-caution-in { from { opacity: 0; } to { opacity: 1; } }

  .demo-caution-banner.svelte-1uha8ag {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; flex-shrink: 0; gap: 8px;
    background: rgba(212,168,67,0.1);
    border-bottom: 1px solid rgba(212,168,67,0.25);
  }
  .demo-caution-inner.svelte-1uha8ag { display: flex; align-items: center; gap: 7px; }
  .demo-caution-text.svelte-1uha8ag { font-size: 0.6875rem; color: #b8912e; line-height: 1.4; }

  .demo-chat-messages.svelte-1uha8ag {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #141414;
  }

  .demo-chat-empty.svelte-1uha8ag {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
  }
  .demo-chat-greeting.svelte-1uha8ag {
    font-size: 1.0625rem; font-weight: 500; color: #444; margin: 0; text-align: center;
  }
  .demo-chat-empty-label.svelte-1uha8ag { font-size: 0.9375rem; color: #555; margin: 0; }

  .demo-tool-block.svelte-1uha8ag {
    font-family: 'SF Mono', monospace; font-size: 0.6875rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 8px 12px;
    display: flex; flex-direction: column; gap: 2px;
    color: #555; max-width: 92%;
  }
  .demo-tool-block-label.svelte-1uha8ag { color: #444; }
  .demo-tool-block-line.svelte-1uha8ag { color: #d4a843; }

  .demo-chat-msg.svelte-1uha8ag { padding: 10px 12px; border-radius: 12px; max-width: 92%; font-size: 0.875rem; }
  .demo-chat-msg.demo-user.svelte-1uha8ag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07); align-self: flex-end; }
  .demo-chat-msg.demo-assistant.svelte-1uha8ag { background: transparent; border: none; align-self: flex-start; padding-left: 0; }
  .demo-msg-header.svelte-1uha8ag { display: flex; justify-content: space-between; margin-bottom: 4px; align-items: center; }
  .demo-msg-role.svelte-1uha8ag { font-size: 0.5rem; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: 0.06em; }
  .demo-msg-time.svelte-1uha8ag { font-size: 0.5rem; color: #333; }
  .demo-msg-body.svelte-1uha8ag { line-height: 1.55; color: #ccc; white-space: pre-wrap; word-break: break-word; }

  .demo-thinking.svelte-1uha8ag { display: flex; gap: 4px; padding: 4px 0; }
  .demo-think-dot.svelte-1uha8ag {
    width: 6px; height: 6px; border-radius: 50%; background: #333;
    animation: svelte-1uha8ag-demo-think-pulse 1.4s ease-in-out infinite;
  }
  .demo-think-dot.svelte-1uha8ag:nth-child(2) { animation-delay: 0.2s; }
  .demo-think-dot.svelte-1uha8ag:nth-child(3) { animation-delay: 0.4s; }
  @keyframes svelte-1uha8ag-demo-think-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
  }

  .demo-input-bar.svelte-1uha8ag {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px 8px;
    flex-shrink: 0;
  }
  .demo-input-bar-top.svelte-1uha8ag { margin-bottom: 8px; }
  .demo-chat-textarea.svelte-1uha8ag {
    width: 100%; background: transparent; border: none; outline: none;
    font-size: 0.9375rem; color: #e0e0e0; font-family: inherit;
    resize: none; line-height: 1.5; min-height: 44px; padding: 0;
    box-sizing: border-box;
  }
  .demo-chat-textarea.svelte-1uha8ag::-moz-placeholder { color: #3a3a3a; }
  .demo-chat-textarea.svelte-1uha8ag::placeholder { color: #3a3a3a; }
  .demo-chat-textarea.svelte-1uha8ag:disabled { opacity: 0.35; }
  .demo-input-bar-bottom.svelte-1uha8ag {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .demo-act-pill.svelte-1uha8ag {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; background: rgba(255,255,255,0.04);
    border: 1px solid #2e2e2e; border-radius: 20px;
    font-size: 0.6875rem; font-weight: 500; color: #666;
    cursor: pointer; font-family: inherit; transition: all 150ms ease; white-space: nowrap;
  }
  .demo-act-pill.svelte-1uha8ag:hover { background: rgba(255,255,255,0.07); color: #999; }
  .demo-input-icons.svelte-1uha8ag { display: flex; align-items: center; gap: 3px; }
  .demo-input-icon-btn.svelte-1uha8ag {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 7px; color: #444;
    cursor: pointer; transition: all 150ms ease; font-family: inherit;
  }
  .demo-input-icon-btn.svelte-1uha8ag:hover { color: #888; background: rgba(255,255,255,0.05); }
  .demo-send-btn.svelte-1uha8ag {
    width: 34px; height: 34px; border-radius: 50%; background: #d4a843;
    border: none; color: #1a1000; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 150ms ease; font-family: inherit;
  }
  .demo-send-btn.svelte-1uha8ag:hover:not(:disabled) { background: #e0b84e; transform: scale(1.06); }
  .demo-send-btn.svelte-1uha8ag:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }
  .demo-send-spinner.svelte-1uha8ag {
    width: 13px; height: 13px; border: 2px solid rgba(26,16,0,0.3);
    border-top-color: #1a1000; border-radius: 50%;
    animation: svelte-1uha8ag-demo-spin-s 0.7s linear infinite;
  }
  @keyframes svelte-1uha8ag-demo-spin-s { to { transform: rotate(360deg); } }
  .demo-input-disclaimer.svelte-1uha8ag {
    font-size: 0.5625rem; color: #333; margin: 6px 0 0; text-align: center; line-height: 1.4;
  }

  /* ---- Email gate modal ---- */
  .demo-gate-backdrop.svelte-1uha8ag {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }
  .demo-gate-modal.svelte-1uha8ag {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 16px;
    padding: 40px 36px; max-width: 420px; width: 100%; margin: 0 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    text-align: center;
  }
  .demo-gate-eyebrow.svelte-1uha8ag {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #a3a3a3; margin: 0 0 12px;
  }
  .demo-gate-title.svelte-1uha8ag {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
    color: #171717; margin: 0 0 8px; line-height: 1.15;
  }
  .demo-gate-sub.svelte-1uha8ag {
    font-size: 0.875rem; color: #525252; margin: 0 0 24px; line-height: 1.5;
  }
  .demo-gate-error.svelte-1uha8ag {
    font-size: 0.8125rem; color: #dc2626; margin: 0 0 10px;
  }
  .demo-gate-input.svelte-1uha8ag {
    width: 100%; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
    padding: 12px 14px; color: #171717; font-size: 0.9375rem; outline: none;
    box-sizing: border-box; margin-bottom: 10px; font-family: inherit;
    transition: border-color 0.15s; text-align: left;
  }
  .demo-gate-input.svelte-1uha8ag:focus { border-color: #171717; }
  .demo-gate-input.svelte-1uha8ag::-moz-placeholder { color: #a3a3a3; }
  .demo-gate-input.svelte-1uha8ag::placeholder { color: #a3a3a3; }
  .demo-gate-btn.svelte-1uha8ag {
    width: 100%; background: #171717; color: #fff; border: none; border-radius: 8px;
    padding: 13px; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background 150ms ease; margin-bottom: 16px;
  }
  .demo-gate-btn.svelte-1uha8ag:hover { background: #333; }
  .demo-gate-btn.svelte-1uha8ag:disabled { opacity: 0.5; cursor: not-allowed; }
  .demo-gate-fine.svelte-1uha8ag { font-size: 0.8125rem; color: #a3a3a3; margin: 0; }
  .demo-gate-link.svelte-1uha8ag { color: #171717; text-decoration: underline; text-underline-offset: 2px; }

  @media (max-width: 900px) {
    .demo-wrapper.svelte-1uha8ag { flex-direction: column; }
    .demo-browser-panel.svelte-1uha8ag { border-right: none; border-bottom: 1px solid #e5e5e5; height: 260px; }
    .demo-chat-panel.svelte-1uha8ag { width: 100%; height: 260px; }
  }

  @media (max-width: 768px) {
    .demo-section-inner.svelte-1uha8ag { padding: 0 4px; }
  }

  @media (max-width: 600px) {
    .demo-wrapper.svelte-1uha8ag { border-radius: 12px; }
    .demo-browser-panel.svelte-1uha8ag { height: 200px; }
    .demo-chat-panel.svelte-1uha8ag { height: 220px; }
    .demo-chrome-dots.svelte-1uha8ag { display: none; }
  }

  @media (max-width: 480px) {
    .demo-browser-panel.svelte-1uha8ag { height: 180px; }
    .demo-chat-panel.svelte-1uha8ag { height: 200px; }
  }
