html {
  scroll-padding-top: calc(var(--nav-height) + 48px);
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}


.demo-ai-pane .ai-messages,
.feature-chat-mockup,
.ai-chat-context .live-tc-expand-panel-inner,
.ai-chat-context .live-tc-result-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.demo-ai-pane .ai-messages::-webkit-scrollbar,
.feature-chat-mockup::-webkit-scrollbar,
.ai-chat-context .live-tc-expand-panel-inner::-webkit-scrollbar,
.ai-chat-context .live-tc-result-list::-webkit-scrollbar {
  width: 6px;
}

.demo-ai-pane .ai-messages::-webkit-scrollbar-track,
.feature-chat-mockup::-webkit-scrollbar-track,
.ai-chat-context .live-tc-expand-panel-inner::-webkit-scrollbar-track,
.ai-chat-context .live-tc-result-list::-webkit-scrollbar-track {
  background: transparent;
}

.demo-ai-pane .ai-messages::-webkit-scrollbar-thumb,
.feature-chat-mockup::-webkit-scrollbar-thumb,
.ai-chat-context .live-tc-expand-panel-inner::-webkit-scrollbar-thumb,
.ai-chat-context .live-tc-result-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.demo-ai-pane .ai-messages::-webkit-scrollbar-thumb:hover,
.feature-chat-mockup::-webkit-scrollbar-thumb:hover,
.ai-chat-context .live-tc-expand-panel-inner::-webkit-scrollbar-thumb:hover,
.ai-chat-context .live-tc-result-list::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}


.ai-chat-context .live-tc-code::-webkit-scrollbar {
  height: 6px;
}

.ai-chat-context .live-tc-code::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-context .live-tc-code::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.ai-chat-context .live-tc-code::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}


:root {

  --editor-bg: #141414;
  --editor-fg: #d4d4d4;
  --sidebar-bg: #141414;
  --sidebar-fg: #cccccc;
  --activity-bar-bg: #141414;
  --activity-bar-fg: #cccccc;
  --activity-bar-active: #007acc;
  --tab-bg: #141414;
  --tab-fg: #cccccc;
  --tab-active-bg: #141414;
  --tab-active-fg: #ffffff;
  --tab-active-border: #007acc;
  --ai-pane-bg: #141414;
  --menu-bar-bg: #181818;


  --border: #2e2e2e;
  --border-light: #3a3a3a;
  --accent: #007acc;
  --accent-hover: #005a9e;
  --hover: #1f1f1f;


  --input-bg: #222222;
  --input-fg: #cccccc;
  --input-placeholder: #a6a6a6;


  --list-hover: #1f1f1f;
  --list-active: rgba(0, 122, 204, 0.3);
  --list-active-border: #007acc;


  --muted: #858585;
  --destructive: #f44747;
  --success: #4ec9b0;


  --font-sans: "Inter", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Cascadia Code", monospace;


  --titlebar-height: 35px;
  --status-bar-height: 22px;
  --panel-tabs-height: 28px;
  --tab-height: var(--panel-tabs-height);
  --tab-padding-x: 10px;
  --tab-padding-y: 2px;
  --tab-font-size: 12px;
  --tab-close-size: 16px;
  --tab-border-radius: 6px;
  --transition-fast: 0.12s;
  --transition-normal: 0.2s;


  --bg-dark: #09090b;
  --bg-card: rgba(15, 15, 17, 0.95);
  --bg-glass: rgba(9, 9, 11, 0.92);
  --text-main: var(--editor-fg);
  --text-muted: var(--muted);
  --nav-height: 64px;


  --dropdown-bg: var(--input-bg);
  --dropdown-border: var(--border-light);
  --dropdown-radius: 6px;
  --dropdown-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --dropdown-padding: 4px 0;
  --dropdown-item-hover: var(--list-hover);


  --win-bg: #141414;
  --win-border: var(--border);
  --win-sidebar: var(--list-hover);


  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --border-subtle: var(--border);
  --border-focus: var(--border-light);
  --accent-glow: rgba(0, 122, 204, 0.25);
  --text-accent: var(--accent);
}


.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: preloader-spin 0.7s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}


@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.9;
  }
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(0, 122, 204, 0.12), transparent 70%);
  z-index: -3;
  pointer-events: none;
  animation: pulse-glow 10s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-size: 50px 50px;
  --scroll-tint: 0;
  --grid-line-opacity: calc(0.015 + 0.025 * var(--scroll-tint));
  background-image:
    linear-gradient(to right, rgba(0, 122, 204, var(--grid-line-opacity)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 122, 204, var(--grid-line-opacity)) 1px, transparent 1px);
  will-change: transform;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


.reveal,
.reveal-scale,
.reveal-blur,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(20px);
}

.reveal-scale {
  transform: scale(0.98) translateY(10px);
}

.reveal-blur {
  filter: blur(4px);
  transform: translateY(15px);
}

.reveal-left {
  transform: translateX(-20px);
}

.reveal-right {
  transform: translateX(20px);
}

.reveal.active,
.reveal-scale.active,
.reveal-blur.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: none;
  filter: blur(0);
}


.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-scale,
  .reveal-blur,
  .reveal-left,
  .reveal-right,
  .marketplace-card,
  .pricing-card,
  .feature-card.large,
  .btn,
  .nav a,
  .demo-ai-trigger,
  .mp-pulse {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


.type-lg {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-bottom: 0.05em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-balance {
  text-wrap: balance;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #005a9e 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  margin-top: 1rem;
}

.btn-link:hover {
  color: var(--text-main);
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-xs {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.nav {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}


.hero {
  padding: 100px 0 0;
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  padding: 0 24px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title-wrap {
  flex-shrink: 0;
}

.hero-body-wrap {
  flex-shrink: 0;
}

.hero-title {
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
  white-space: nowrap;
  padding-bottom: 0.05em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-spacer {
  height: 20vh;
  flex-shrink: 0;
  width: 100%;
}

.hero-caption {
  text-align: center;
  padding: 64px 24px 80px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 30;
}

.hero-caption-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  text-align: center;
  letter-spacing: -0.01em;
}


.demo-container {
  width: 100%;
  max-width: 1040px;
  margin: -240px auto 0;
  padding: 0 24px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  z-index: 20;
  scroll-margin-top: calc(var(--nav-height) + 100px);
}

.demo-window {
  width: 100%;
  height: 680px;
  min-height: 680px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.2s linear, box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

}

.demo-window:hover {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.demo-window-header {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 8px;
  width: 60px;
  margin-left: 12px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.demo-window:hover .control.close {
  background: #ff5f56;
}

.demo-window:hover .control.minimize {
  background: #ffbd2e;
}

.demo-window:hover .control.maximize {
  background: #27c93f;
}

.window-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.window-actions {
  width: 60px;
  display: flex;
  justify-content: flex-end;
}

.window-actions .btn {
  padding: 2px 8px;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s, transform 0.2s;
}

.demo-window:hover .window-actions .btn {
  opacity: 1;
  transform: translateY(0);
}

.demo-window-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.demo-app-body-wrap .app-body {
  flex: 1;
  min-height: 0;
}

.demo-sidebar {
  width: 200px;
  border-right: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 0;
}

.sidebar-section {
  padding: 0;
}

.sidebar-title {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 16px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-radius: 4px;
  margin: 0 8px;
  padding-left: 16px;
}

.demo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.demo-tabs {
  display: flex;
  height: 38px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  background: transparent;
}

.demo-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  box-shadow: inset 0 2px 0 var(--accent);
}

.demo-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  position: relative;
  background: transparent;
}


.message-user-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 24px;
}

.message-user-content {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px 12px 0 12px;
  max-width: 85%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-user-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.message-assistant-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  max-width: 95%;
}

.message-interleaved-content {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  width: 100%;
}

.message-interleaved-content p {
  margin-bottom: 12px;
}

.message-interleaved-content strong {
  color: var(--text-main);
  font-weight: 600;
}


.tool-call-log-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.tool-call-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
}

.tool-call-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.tool-call-header .tool-call-label {
  flex: 1;
  font-family: var(--font-mono);
  min-width: 0;
}

.tool-call-header .spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
}

.tool-call-header.done .spinner {
  display: none;
}

.tool-call-header.done::before {
  content: '✓';
  color: var(--success);
  font-size: 0.9rem;
}

.tool-call-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.tool-call-body {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-main);
  background: #0d0d0d;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}


.message-action-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  opacity: 0.6;
}

.message-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.message-action-btn:hover {
  color: var(--text-main);
}

.code-block {
  background: #0d0d0d;
  border: 1px solid var(--win-border);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.code-header {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--win-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-lang {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.code-block pre {
  padding: 16px;
  margin: 0;
  color: #d4d4d4;
  overflow-x: auto;
  line-height: 1.5;
}

.keyword {
  color: #569cd6;
}

.function {
  color: #dcdcaa;
}

.string {
  color: #ce9178;
}

.number {
  color: #b5cea8;
}

.chat-input-wrapper {
  margin-top: auto;
  padding-top: 16px;
  position: relative;
}

.chat-input-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, var(--win-bg), transparent);
  pointer-events: none;
}

.chat-input-box {
  border: 1px solid var(--border-focus);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.6;
}

.chat-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-model {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.btn-send {
  background: var(--text-main);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}


.ai-input-wrapper {
  margin-top: auto;
  position: relative;
}

.ai-input-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-input-box:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.ai-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.ai-input-box input::placeholder {
  color: var(--input-placeholder);
}

.ai-input-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-input-btn:hover {
  background: var(--primary-hover);
}


.demo-status-bar {
  height: 24px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.7rem;
  justify-content: space-between;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}


.demo-chat-input .chat-input-actions {
  width: 100%;
}

.demo-ai-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.demo-ai-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-ai-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.demo-ai-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.demo-ai-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-ai-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.demo-ai-action-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.demo-effort-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.2);
  color: rgba(96, 165, 250, 0.9);
  margin: 0 2px;
}

.demo-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.demo-send-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
}


.logo-garden {
  padding: 40px 0;
  position: relative;
  z-index: 30;
}

.garden-title {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.garden-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.garden-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.4;
  filter: grayscale(1);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
}

.garden-logo:hover {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
  transform: translateY(-2px);
  color: var(--text-main);
}


.section-usp {
  padding: 80px 0 100px;
}

.usp-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.usp-headline {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--editor-fg) 0%, var(--muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.usp-headline .usp-sep {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  opacity: 0.7;
}

.usp-block .usp-desc {
  margin-bottom: 56px;
}

.usp-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.usp-card {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 17, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.usp-card-autonomous {
  border-right: none;
  border-radius: 16px 0 0 16px;
  background: rgba(15, 15, 17, 0.5);
  border-color: rgba(0, 122, 204, 0.15);
}

.usp-card-autonomous:hover {
  border-color: rgba(0, 122, 204, 0.3);
}

.usp-card-safe {
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: rgba(15, 15, 17, 0.5);
  border-color: rgba(74, 222, 128, 0.12);
}

.usp-card-safe:hover {
  border-color: rgba(74, 222, 128, 0.3);
}

.usp-card-rollback {
  border-left: none;
  border-radius: 0 16px 16px 0;
  background: rgba(15, 15, 17, 0.5);
  border-color: rgba(251, 191, 36, 0.12);
}

.usp-card-rollback:hover {
  border-color: rgba(251, 191, 36, 0.3);
}

.usp-card-divider {
  flex: 0;
  min-width: 0;
  padding: 32px 16px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-card-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.8;
}

.usp-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.usp-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.usp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.usp-card-autonomous .usp-card-icon {
  background: rgba(0, 122, 204, 0.2);
  color: var(--accent);
}

.usp-card-safe .usp-card-icon {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.usp-card-rollback .usp-card-icon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.usp-card-icon i {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .usp-cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .usp-card {
    max-width: 100%;
  }
  .usp-card-autonomous,
  .usp-card-safe,
  .usp-card-rollback {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .usp-card-safe {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .usp-card-divider {
    order: -1;
    padding: 8px 0;
  }

  .usp-headline {
    font-size: 2.25rem;
  }
}


.section {
  padding: 120px 0;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.section-features .container {
  overflow: visible;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}


.marketplace-footer {
  margin-top: 48px;
  padding: 28px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.marketplace-footer-heading {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
  margin: 0 0 12px;
}

.marketplace-footer-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.marketplace-footer-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.9;
  line-height: 1.5;
  max-width: 480px;
  margin: 16px auto 0;
}

.marketplace-footer-note a {
  color: var(--accent);
  text-decoration: none;
}

.marketplace-footer-note a:hover {
  text-decoration: underline;
}

.features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 64px;

  margin-top: 40px;
  overflow: visible;
}

.feature-card.large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(15, 15, 17, 0.4);

  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;

  overflow: visible;
  align-items: stretch;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-card.large:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.feature-card.large.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-card.large.reverse .feature-content {
  order: 2;
}

.feature-content {
  padding: 64px 48px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h3 {
  font-size: 2rem;

  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: #fff;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.feature-visual {
  background: var(--editor-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border-subtle);
  border-radius: 0 12px 12px 0;
}

.feature-card.large.reverse .feature-visual {
  border-left: none;
  border-right: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}

.glass-panel {
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: corePulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero-icon {
  width: 48px;
  height: 48px;
  color: var(--text-main);
  position: relative;
  z-index: 2;
}

.code-preview {
  padding: 32px;
  background: #0d0d0d;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #d4d4d4;
  text-align: left;
  display: flex;
  align-items: center;
}

.code-preview pre {
  margin: 0;
  width: 100%;
}

.suggestion {
  color: var(--muted);
  font-style: italic;
  display: block;
}


.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.marketplace-card {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketplace-card:hover {
  transform: translateY(-2px);
  background: var(--list-hover);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.marketplace-card:hover .mp-icon {
  opacity: 1;
}

.marketplace-card.featured {
  background: var(--list-hover);
  border-color: var(--border-light);
}

.mp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mp-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-icon svg {
  width: 24px;
  height: 24px;
}

.mp-info {
  flex: 1;
}

.mp-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pro {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-coming {
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 4px;
}

.mp-author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mp-body {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mp-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-installed {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  pointer-events: none;
}


.models-showcase {
  max-width: 800px;
  margin: 0 auto;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: left;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row.border-none {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-label h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.settings-label p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flex-align {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-glass {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--editor-fg);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 250px;
  outline: none;
}

.toggle {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
}

.toggle.active {
  background: var(--primary);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.toggle.active::after {
  transform: translateX(16px);
}


.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  margin-top: 0;
  background: transparent;
  position: relative;
  z-index: 30;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-copy a:hover {
  color: var(--text-main);
}

.footer-sep {
  margin: 0 0.4em;
  opacity: 0.5;
  font-weight: 300;
}


.legal-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 48px;
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-toc-wrap {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.legal-toc-inner {
  overflow: hidden;
}

.legal-toc-summary {
  padding: 16px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.legal-toc-summary::-webkit-details-marker {
  display: none;
}

.legal-toc-summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--text-muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}

.legal-toc-wrap[open] .legal-toc-summary::before {
  transform: rotate(90deg);
}

.legal-toc {
  padding: 0 24px 20px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc li {
  margin: 0;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  padding: 6px 0;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-main);
}

.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-section ul ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-page .site-footer {
  margin-top: 64px;
}


.layout-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--win-border);
  gap: 4px;
}

.layout-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.layout-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.layout-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


.app-layout-header {
  padding: 16px;
  border-bottom: 1px solid var(--win-border);
  display: flex;
  justify-content: center;
  background: rgba(20, 20, 20, 0.95);
}

.app-layout-switcher {
  display: flex;
  background: var(--editor-bg);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.app-layout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.app-layout-btn.active {
  background: var(--list-hover);
  color: var(--tab-active-fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}


.type-giant {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin-bottom: 16px;
  padding-bottom: 0.05em;
}

.section-cta {
  padding: 160px 0 180px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--editor-fg) 0%, var(--muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emotional-heading {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.border-glow {
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.btn-coming-soon {
  opacity: 0.8 !important;
  cursor: not-allowed !important;
}

.btn-primary.btn-coming-soon {
  background: var(--input-bg) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}

.btn-outline.btn-coming-soon {
  border-color: var(--border) !important;
  color: var(--muted) !important;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.feature-bg-glow {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 70%);
}

.badge-active {
  background: rgba(78, 201, 176, 0.15);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  display: inline-block;
  text-align: center;
}

.badge-inactive {
  background: rgba(244, 71, 71, 0.15);
  color: var(--destructive);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  display: inline-block;
  text-align: center;
}


.tree-item-ctx-active {
  background: var(--list-hover);
}

.ctx-menu {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--dropdown-radius);
  box-shadow: var(--dropdown-shadow);
  padding: var(--dropdown-padding);
  user-select: none;
  overflow: hidden;
}

.ctx-menu-table-name {
  padding: 6px 14px 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3px;
}

.ctx-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--sidebar-fg);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.08s, color 0.08s;
}

.ctx-menu-item:hover {
  background: var(--dropdown-item-hover);
  color: var(--tab-active-fg);
}

.ctx-menu-item-bold {
  color: var(--tab-active-fg);
  font-weight: 600;
}

.ctx-menu-item-danger {
  color: #f87171;
}

.ctx-menu-item-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.ctx-menu-sep {
  height: 1px;
  background: var(--border);
  margin: 3px 0;
}


.colmenu {
  position: fixed;
  z-index: 9999;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  min-width: 196px;
  padding: 4px 0;
  animation: colmenu-in 0.1s ease;
}

@keyframes colmenu-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.colmenu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.colmenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: var(--editor-fg);
  font-size: 12px;
  font-family: var(--font-sans);
  padding: 6px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.07s;
  white-space: nowrap;
}

.colmenu-item:hover:not(:disabled) {
  background: var(--list-hover);
}

.colmenu-item:disabled {
  opacity: 0.38;
  cursor: default;
}

.colmenu-item-checked {
  color: var(--accent);
}

.colmenu-item-danger {
  color: var(--destructive);
}

.colmenu-check-space {
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.colmenu-icon-slot {
  width: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  color: inherit;
}

.colmenu-icon-slot .colmenu-icon {
  color: inherit;
}

.colmenu-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.colmenu-label {
  flex: 1;
}

.colmenu-shortcut {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
}

.cellmenu {
  min-width: 200px;
}

.colmenu-item-sub {
  position: relative;
  justify-content: flex-start;
  gap: 8px;
}

.colmenu-item-sub .colmenu-label {
  flex: 1;
}

.colmenu-sub-arrow {
  opacity: 0.6;
  flex-shrink: 0;
  margin-left: auto;
}

.colmenu-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 0;
  margin-left: -2px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.colmenu-submenu .colmenu-item {
  border-radius: 0;
}

.feature-switcher {
  margin-bottom: 24px;
}


.section-pricing {
  padding: 100px 0;
  position: relative;
}

.pricing-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}


.pricing-card,
.feature-card.large,
.marketplace-card {
  --glow-sens: 25;
  --pointer-°: 45deg;
  --pointer-d: 0;
  --glow-color: 207deg 100% 50%;
  --pads: 12px;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.pricing-card {
  --pads: 6px;
}

.feature-card.large {
  --pads: 8px;
}

.marketplace-card {
  --pads: 5px;
}

.pricing-card>.glow,
.feature-card.large>.glow,
.marketplace-card>.glow {
  --outset: var(--pads);
  position: absolute;
  inset: calc(var(--pads) * -1);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease-out;
  mask-image: conic-gradient(from var(--pointer-°) at center, black 5%, transparent 15%, transparent 85%, black 95%);
  -webkit-mask-image: conic-gradient(from var(--pointer-°) at center, black 5%, transparent 15%, transparent 85%, black 95%);
  opacity: max(0, calc((var(--pointer-d) - var(--glow-sens)) / (100 - var(--glow-sens))));
}



.pricing-card>.glow::before,
.feature-card.large>.glow::before,
.marketplace-card>.glow::before {
  content: "";
  position: absolute;
  inset: var(--outset);
  border-radius: inherit;
  box-shadow:
    0 0 0 1px hsl(var(--glow-color) / 65%),
    inset 0 0 0 1px hsl(var(--glow-color) / 30%),
    0 0 8px 0 hsl(var(--glow-color) / 35%),
    0 0 16px 0 hsl(var(--glow-color) / 22%);
}


.pricing-card {
  flex: 1;
  min-width: 280px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pricing-card .popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.pricing-card .pricing-header,
.pricing-card .pricing-body,
.pricing-card .pricing-footer {
  position: relative;
  z-index: 1;
}


.feature-card.large .feature-content,
.feature-card.large .feature-visual,
.marketplace-card .mp-top,
.marketplace-card .mp-body,
.marketplace-card .mp-footer {
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-2px);
  background: var(--list-hover);
  border-color: var(--border-light);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pricing-card.highlight-card {
  background: var(--list-hover);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 122, 204, 0.1);
}

.pricing-card.highlight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 122, 204, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 122, 204, 0.4);
  z-index: 10;
}

.pricing-header {
  margin-bottom: 16px;
  text-align: left;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  height: 48px;
}

.pricing-body {
  flex: 1;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features li strong {
  color: var(--text-main);
}

.pricing-features li>i,
.pricing-features li>svg {
  margin-top: 4px;
}

.highlight {
  color: #fff;
}

.pricing-footer {
  margin-top: auto;
}

.btn-full {
  width: 100%;
  padding: 12px;
}


.models-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.models-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  font-weight: 500;
}

.models-providers .settings-label h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.model-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
}


.pointer-app-mockup {
  display: flex;
  flex-direction: column;
  height: 550px;
  overflow: hidden;
  background: var(--win-bg);
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 4px 8px;
  height: 36px;
  min-height: 36px;
  background: var(--menu-bar-bg);
  border-bottom: 1px solid var(--border);
}


.demo-menu-bar {
  gap: 12px;
  position: relative;
}

.demo-menu-items {
  display: flex;
  gap: 4px;
}

.demo-menu-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: default;
}

.demo-menu-item:hover {
  color: var(--text-main);
}

.demo-menu-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}

.demo-layout-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px;
  flex-shrink: 0;
  margin-left: auto;
  overflow: visible;
}

.demo-layout-btn {
  width: 28px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  overflow: visible;
}

.demo-layout-btn svg {
  display: block;
  flex-shrink: 0;
}

.demo-layout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.demo-layout-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.activity-bar {
  width: 50px;
  min-width: 50px;
  background: var(--activity-bar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 2px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  border-radius: 6px;
  border: 1px solid transparent;
}

.activity-icon:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
}

.activity-icon.active {
  opacity: 1;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.activity-spacer {
  flex-grow: 1;
  min-height: 8px;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.app-sidebar {
  width: 220px;
  min-width: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.32, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.32, 0, 0.2, 1);
}

.app-sidebar.collapsed {
  width: 0;
  min-width: 0;
  border-right: none;
}

.sidebar-header {
  height: 35px;
  min-height: 35px;
  padding: 0 8px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-header-tables {
  cursor: pointer;
}

.sidebar-header-tables .sidebar-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.sidebar-header-tables .sidebar-header-btn {
  flex-shrink: 0;
}

.sidebar-header-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.sidebar-header-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-section-content.collapsed {
  display: none;
}

.sidebar-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.pointer-app-mockup .tree-item {
  padding: 4px 10px 4px 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border-radius: 4px;
  margin: 0 8px;
}

.pointer-app-mockup .tree-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pointer-app-mockup .tree-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.pointer-app-mockup .tree-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.pointer-app-mockup .tree-chevron[data-demo-chevron] {
  cursor: pointer;
}

.pointer-app-mockup .tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pointer-app-mockup .tree-group {
  padding-left: 0;
}

.pointer-app-mockup .tree-group:not(.expanded) .tree-section,
.pointer-app-mockup .tree-group:not(.expanded) .tree-section-children {
  display: none;
}

.pointer-app-mockup .tree-section:not(.expanded)+.tree-section-children {
  display: none;
}

.pointer-app-mockup .tree-section-children {
  display: block;
}

.pointer-app-mockup .tree-item-column {
  padding-left: 36px;
}

.pointer-app-mockup .tree-section {
  padding: 4px 10px 4px 6px;
  padding-left: 28px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border-radius: 4px;
  margin: 0 8px;
  color: var(--text-muted);
}

.pointer-app-mockup .tree-section:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.pointer-app-mockup .tree-section-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pointer-app-mockup .tree-badge {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pointer-app-mockup .tree-section-icon {
  opacity: 0.85;
}


.demo-editor-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--win-bg);
  overflow: hidden;
}

.demo-editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.demo-editor-tabs {
  display: flex;
  align-items: stretch;
  height: var(--tab-height);
  min-height: var(--tab-height);
  max-height: var(--tab-height);
  flex-shrink: 0;
  background: var(--tab-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.demo-editor-tabs::-webkit-scrollbar {
  display: none;
}

.demo-editor-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 12px;
  color: #cccccc;
  background: transparent;
  border-right: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}

.demo-editor-tab:hover {
  color: #d4d4d4;
}

.demo-editor-tab.active {
  background: var(--tab-active-bg);
  color: var(--tab-active-fg);
  border-bottom: 2px solid var(--tab-active-border);
}

.demo-editor-tab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 140px;
}

.demo-editor-tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  min-width: 16px;
  min-height: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 3px;
  flex-shrink: 0;
}

.demo-editor-tab-close:hover {
  color: var(--editor-fg);
  background: var(--list-hover);
}

.demo-editor-tab-add {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  min-width: 16px;
  min-height: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  border-radius: 3px;
}

.demo-editor-tab-add:hover {
  color: var(--editor-fg);
  background: var(--list-hover);
}

.icon-tab {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-tab-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.demo-editor-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.demo-editor-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-editor-view[data-view="sql"] {
  background: var(--editor-bg);
}


.dt-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: var(--editor-bg);
  overflow: hidden;
}

.dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
  background: var(--menu-bar-bg);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-shrink: 0;
}

.dt-toolbar-left,
.dt-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-table-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--tab-active-fg);
}

.dt-row-info {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--sidebar-fg);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 3px;
  transition: background 0.12s;
}

.dt-btn:hover:not(:disabled) {
  background: var(--list-hover);
}

.dt-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.dt-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
  color: var(--sidebar-fg);
}

.dt-filter-btn:hover:not(:disabled) {
  border-color: var(--border);
  background: var(--list-hover);
}

.dt-toolbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

.dt-table-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dt-table-virtual {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.dt-table-body-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.dt-table-header-grid {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 52px minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr);
  font-size: 12px;
  font-family: var(--font-mono);
}

.dt-th {
  background: #2d2d2d;
  color: var(--tab-active-fg);
  font-weight: 600;
  font-size: 11px;
  text-align: left;
  padding: 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  min-width: 80px;
}

.dt-th:last-child {
  border-right: none;
}

.dt-th:hover {
  background: #333333;
}

.dt-th-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  overflow: hidden;
}

.dt-th-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-td.text-main {
  color: var(--text-main);
}

.dt-th-rownum {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
  cursor: default;
  color: var(--muted);
  font-weight: 400;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #2d2d2d;
  border-right: 1px solid var(--border);
}

.dt-tr-virtual {
  display: grid;
  grid-template-columns: 52px minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr);
  border-bottom: 1px solid rgba(60, 60, 60, 0.5);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
}

.dt-tr-virtual .dt-td {
  border-right: 1px solid rgba(60, 60, 60, 0.3);
  border-bottom: none;
}

.dt-tr-virtual .dt-td:last-child {
  border-right: none;
}

.dt-tr-virtual:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.dt-tr-virtual:hover {
  background: var(--list-hover) !important;
}

.dt-tr-virtual .dt-td-rownum {
  background: var(--editor-bg);
}

.dt-tr-virtual:nth-child(even) .dt-td-rownum {
  background: var(--list-hover);
}

.dt-tr-virtual:hover .dt-td-rownum {
  background: var(--list-hover);
}

.dt-td {
  padding: 3px 10px;
  border-bottom: 1px solid rgba(60, 60, 60, 0.5);
  border-right: 1px solid rgba(60, 60, 60, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
  cursor: pointer;
  color: var(--editor-fg);
}

.dt-td:last-child {
  border-right: none;
}

.dt-td-rownum {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  position: sticky;
  left: 0;
  background: var(--editor-bg);
  z-index: 1;
  border-right: 1px solid var(--border);
  min-width: 52px;
  max-width: 52px;
  width: 52px;
}

.dt-tr-virtual:nth-child(even) .dt-td-rownum {
  background: var(--list-hover);
}

.dt-tr-virtual:hover .dt-td-rownum {
  background: var(--list-hover);
}



.demo-query-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
}

.demo-query-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: #cccccc;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.demo-query-btn:hover:not(:disabled) {
  background: var(--list-hover);
  border-color: var(--border);
}

.demo-query-run {
  color: #4ec9b0;
}

.demo-query-run:hover:not(:disabled) {
  background: rgba(78, 201, 176, 0.15);
  border-color: #4ec9b0;
}

.demo-query-stop:hover:not(:disabled) {
  color: #f44747;
  border-color: #f44747;
}


.demo-query-editor {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  background: var(--editor-bg);
  font-family: Consolas, "Cascadia Code", "Cascadia Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.demo-editor-lines {
  flex-shrink: 0;
  width: 40px;
  padding: 12px 8px 12px 0;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
  border-right: 1px solid var(--border);
}

.demo-editor-lines .demo-ln {
  display: block;
  min-height: 1.5em;
  line-height: 1.5;
}

.demo-editor-code {
  flex: 1;
  margin: 0;
  padding: 12px 10px 12px 12px;
  overflow-x: auto;
  color: #d4d4d4;
}

.demo-editor-code code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.demo-query-editor .comment {
  color: #6a9955;
  font-style: italic;
}

.demo-query-editor .keyword {
  color: #569cd6;
}

.demo-query-editor .function {
  color: #dcdcaa;
}

.demo-query-editor .string {
  color: #ce9178;
}

.demo-resizer {
  width: 4px;
  flex-shrink: 0;
  background: transparent;
  cursor: col-resize;
}

.demo-resizer:hover {
  background: var(--win-border);
}


.pointer-app-mockup .status-bar {
  flex-shrink: 0;
  min-height: var(--status-bar-height);
  background: var(--activity-bar-bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--muted);
}

.pointer-app-mockup .status-bar {
  height: var(--status-bar-height);
}

.feature-visual {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%), var(--editor-bg);
  border-left: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
  border-radius: 0 16px 16px 0;
}


.feature-pure-intelligence {
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--editor-bg) !important;
}

.feature-chat-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--ai-pane-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
}

.feature-chat-mockup .message.user {
  position: relative;
  background: var(--editor-bg);
  border: 1px solid var(--border-light);
  color: var(--editor-fg);
  align-self: flex-end;
  width: fit-content;
  max-width: 94%;
  margin-left: auto;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.feature-chat-mockup .message-user-content {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  align-self: flex-end;
  max-width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.feature-chat-mockup .message.assistant {
  background: transparent;
  align-self: flex-start;
  padding: 8px 4px;
}

.feature-chat-mockup .chat-turn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-chat-mockup .message-sticky-wrap {
  background: transparent;
}


.feature-at-mention {
  padding: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--editor-bg) !important;
}

.at-mention-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.at-mention-visual .ai-input-container {
  width: 100%;
}

.at-mention-visual .ai-input-card {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.at-mention-input-preview {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.at-mention-chip {
  display: inline;
  padding: 2px 6px;
  background: rgba(0, 122, 204, 0.2);
  border: 1px solid rgba(0, 122, 204, 0.4);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 500;
}

.at-mention-hint {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.8;
}


.feature-effort {
  padding: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--editor-bg) !important;
}

.effort-visual {
  display: flex;
  align-items: center;
  gap: 12px;
}

.effort-visual .ai-effort-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--effort-color, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.5s ease;
}

.effort-visual .ai-effort-badge.active {
  opacity: 1;
  color: #ffffff;
  background: var(--effort-glow, rgba(255, 255, 255, 0.05));
  border-color: var(--effort-color, rgba(255, 255, 255, 0.4));
}

.status-bar-safe-mode-only .status-bar-left {
  flex-wrap: nowrap;
}


.feature-settings-mockup {
  padding: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--editor-bg) !important;
}

.settings-mockup-inline {
  width: 100%;
  max-width: 360px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.settings-section-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-section-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-section-inline h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--editor-fg);
  margin: 0;
}

.settings-section-inline p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.settings-section-inline .toggle {
  flex-shrink: 0;
}


.feature-chat-mockup .message-user-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 0;
  min-height: 0;
}

.feature-chat-mockup .message-assistant-wrap {
  position: relative;
  width: 100%;
}


.feature-chat-mockup .message-action-bar {
  position: absolute;
  bottom: 2px;
  right: 6px;
  display: flex;
  gap: 4px;
  align-items: center;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--ai-pane-bg);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.feature-chat-mockup .message-user-wrap:hover .message-action-bar {
  opacity: 1;
  transform: translateY(0);
}

.feature-chat-mockup .message-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.feature-chat-mockup .message-action-btn:hover {
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.1);
}


.live-tc-step-rolled-back {
  opacity: 0.75;
}

.live-tc-step-rolled-back .live-tc-step-row {
  border-left: 2px solid rgba(74, 222, 128, 0.5);
  padding-left: 6px;
  margin-left: -2px;
}

.live-tc-rollback-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 10px;
  color: #4ade80;
  font-weight: 500;
}


.rollback-visual-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.75;
}

.rollback-visual-hint .rollback-hint-icon {
  opacity: 0.5;
}


.feature-velocity {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  justify-content: center !important;
  background: var(--editor-bg) !important;
}

.feature-velocity .index-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 6px;
  font-size: 11px;
  color: #4ade80;
}

.feature-velocity-log {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.feature-velocity-line {
  display: flex;
  gap: 8px;
}

.feature-velocity-time {
  color: var(--muted);
  opacity: 0.8;
  flex-shrink: 0;
}

.feature-velocity-line.success span:last-child {
  color: #4ade80;
  font-weight: 500;
}

.feature-velocity-line.accent span:last-child {
  color: var(--accent);
  font-weight: 500;
}


.privacy-mockup {
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  font-family: var(--font-mono) !important;
}

.privacy-mockup-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.privacy-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}

.privacy-status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.privacy-status-item.muted {
  color: var(--text-muted);
}

.privacy-status-item.secure {
  color: rgba(63, 185, 80, 0.95);
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}

.privacy-dot.connected {
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}

.privacy-mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.privacy-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.privacy-status-item.secure .privacy-meta.accent {
  color: #4ade80;
  font-weight: 500;
}

.privacy-code {
  margin: 0;
  padding: 16px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.privacy-code .comment {
  color: #6a9955;
  font-style: italic;
}

.privacy-code .keyword {
  color: #569cd6;
}

.privacy-code .string {
  color: #ce9178;
}

.pointer-app-mockup .status-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pointer-app-mockup .status-bar-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 6px;
  opacity: 0.75;
}

.pointer-app-mockup .status-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pointer-app-mockup .status-bar-safe-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  margin: 0 -2px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
  transition: background 0.15s, color 0.15s;
}

.pointer-app-mockup .status-bar-safe-mode {
  margin-left: auto;
}

.pointer-app-mockup .status-bar-safe-mode.active {
  color: #4ade80;
}

.pointer-app-mockup .status-bar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
  white-space: nowrap;
}

.pointer-app-mockup .status-bar-db {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  margin: 0 -2px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.pointer-app-mockup .status-bar-db-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}

.pointer-app-mockup .status-bar-db.connected .status-bar-db-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.pointer-app-mockup .status-bar-db.connected {
  color: #86efac;
}

.pointer-app-mockup .status-bar-index {
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pointer-app-mockup .status-bar-index.status-bar-index-in-sync {
  color: #4ade80;
}

.pointer-app-mockup .status-bar-rows {
  gap: 5px;
  font-variant-numeric: tabular-nums;
}


.demo-app-body.demo-layout {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}


.demo-layout-editor-section {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.12s ease-out, max-width 0.22s cubic-bezier(0.32, 0, 0.2, 1);
  contain: layout;
}

.demo-app-body.demo-layout-focus .demo-layout-editor-section {
  max-width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}

.demo-app-body.demo-layout .demo-ai-pane {
  margin-left: auto;
  transition: width 0.22s cubic-bezier(0.32, 0, 0.2, 1), max-width 0.22s cubic-bezier(0.32, 0, 0.2, 1), margin 0.22s cubic-bezier(0.32, 0, 0.2, 1), border 0.22s ease;
}


.demo-app-body.demo-layout-focus .demo-ai-pane {
  flex: 1;
  width: auto !important;
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
  border-left: none;
}


.demo-ai-pane {
  width: 320px;
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--ai-pane-bg);
  border-left: 1px solid var(--border);
  overflow: hidden;
}


.demo-ai-pane .ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tab-height);
  min-height: var(--tab-height);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--ai-pane-bg);
  padding: 0 var(--tab-padding-x);
  gap: var(--tab-padding-x);
  position: relative;
  z-index: 10;
}

.demo-ai-pane .ai-chat-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1 1 0;
  min-width: 60px;
  gap: 4px;
  scrollbar-width: none;
}

.demo-ai-pane .ai-chat-tabs::-webkit-scrollbar {
  display: none;
}

.demo-ai-pane .ai-chat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--tab-padding-y) var(--tab-padding-x);
  font-size: var(--tab-font-size);
  color: var(--muted);
  background: transparent;
  border-radius: var(--tab-border-radius);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  max-width: 140px;
  min-width: 44px;
  flex-shrink: 0;
  overflow: hidden;
}

.demo-ai-pane .ai-chat-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--editor-fg);
}

.demo-ai-pane .ai-chat-tab.active {
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.1);
}

.demo-ai-pane .ai-chat-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.demo-ai-pane .ai-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.demo-ai-pane .ai-header-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.demo-ai-pane .ai-header-btn:hover {
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.05);
}


.demo-ai-pane .ai-messages {
  position: relative;
  flex-grow: 1;
  padding: 14px 10px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  scroll-behavior: smooth;
}

.demo-ai-pane .chat-turn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-ai-pane .message-sticky-wrap {
  position: sticky;
  top: -14px;
  z-index: 5;
  margin: 0 -10px;
  padding: 14px 10px 0;
  background: var(--ai-pane-bg);
  box-shadow: 0 8px 16px 4px var(--ai-pane-bg);
  display: flex;
  flex-direction: column;
}

.demo-ai-pane .message.user {
  position: relative;
  background: var(--editor-bg);
  border: 1px solid var(--border-light);
  color: var(--editor-fg);
  align-self: flex-end;
  width: fit-content;
  max-width: 94%;
  margin-left: auto;
  border-radius: 12px;
  padding: 10px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 12.5px;
  line-height: 1.6;
}

.demo-ai-pane .message.assistant {
  position: relative;
  background: transparent;
  align-self: flex-start;
  border: none;
  border-radius: 0;
  padding: 8px 4px;
  white-space: normal;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 12.5px;
  line-height: 1.6;
}

.demo-ai-pane .message-action-bar {
  position: absolute;
  bottom: -6px;
  right: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--ai-pane-bg);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.demo-ai-pane .message.user:hover .message-action-bar,
.demo-ai-pane .message.assistant:hover .message-action-bar {
  opacity: 1;
  transform: translateY(0);
}

.demo-ai-pane .message-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.demo-ai-pane .message-action-btn:hover {
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.1);
}



.ai-chat-context .live-tc-timeline.tool-call-log {
  margin-bottom: 10px;
}

@keyframes tc-step-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-ai-pane .tool-call-log .live-tc-step {
  animation: tc-step-in 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(1) {
  animation-delay: 0s;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(2) {
  animation-delay: 0.05s;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(3) {
  animation-delay: 0.10s;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(4) {
  animation-delay: 0.15s;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(5) {
  animation-delay: 0.20s;
}

.demo-ai-pane .tool-call-log .live-tc-step:nth-child(n+6) {
  animation-delay: 0.25s;
}

.ai-chat-context .live-tc-container {
  display: flex;
  flex-direction: column;
  padding: 2px 0 4px 0;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.ai-chat-context .live-tc-step {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.ai-chat-context .live-tc-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-chat-context .live-tc-step-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 16px;
}

.ai-chat-context .live-tc-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ai-chat-context .live-tc-step-icon svg {
  display: block;
}

.ai-chat-context .live-tc-step-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 14px;
  text-align: left;
}

.ai-chat-context .live-tc-step-running .live-tc-step-label {
  color: rgba(255, 255, 255, 0.95);
}

.ai-chat-context .live-tc-step-done .live-tc-step-label {
  color: rgba(255, 255, 255, 0.75);
}

.ai-chat-context .live-tc-step-meta {
  font-size: 10.5px;
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ai-chat-context .live-tc-step-icon-pulsing,
.ai-chat-context .live-tc-step-running .live-tc-step-icon {
  color: #007acc;
  animation: tc-icon-pulse 1.5s infinite ease-in-out;
}

@keyframes tc-icon-pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.demo-ai-pane .tc-name-shimmer {
  display: inline-block;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.45) 35%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.45) 65%, rgba(255, 255, 255, 0.45) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tc-sweep-bar 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes tc-sweep-bar {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}


.demo-ai-pane .demo-tc-label-running {
  display: none;
}

.demo-ai-pane .demo-tc-label-done {
  display: inline;
}

.demo-ai-pane .live-tc-step-running .demo-tc-label-running {
  display: inline;
}

.demo-ai-pane .live-tc-step-running .demo-tc-label-done {
  display: none;
}

.demo-ai-pane .live-tc-step-running .demo-tc-meta {
  display: none;
}

.demo-ai-pane .message-interleaved-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding-top: 2px;
  text-align: left;
}

.demo-ai-pane .message-interleaved-content p {
  margin: 0 0 8px 0;
  color: var(--editor-fg);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: left;
}

.demo-ai-pane .message-interleaved-content strong {
  font-weight: 600;
  color: var(--editor-fg);
}

.demo-ai-pane .message.assistant code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}


.demo-ai-pane .live-tc-step-running .demo-tc-expandable-row {
  pointer-events: none;
  cursor: default;
}

.demo-ai-pane .live-tc-step-running .live-tc-expand-btn {
  display: none;
}

.ai-chat-context .live-tc-step-row-clickable {
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: opacity 0.12s;
}

.ai-chat-context .live-tc-step-row-clickable:hover {
  opacity: 0.8;
}

.ai-chat-context .live-tc-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.ai-chat-context .live-tc-expand-btn svg {
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}

.ai-chat-context .live-tc-expand-btn:not(.expanded) {
  animation: demo-tc-chevron-breathe 2.5s ease-in-out infinite;
}

@keyframes demo-tc-chevron-breathe {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.55;
  }
}

.ai-chat-context .live-tc-expand-btn.expanded svg {
  transform: rotate(180deg);
}

.ai-chat-context .live-tc-expand-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 4px;
}

.ai-chat-context .live-tc-expand-panel.expanded {
  grid-template-rows: 1fr;
}

.ai-chat-context .live-tc-expand-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-chat-context .live-tc-expand-panel-inner .live-tc-code-block {
  margin-top: 0;
}

.ai-chat-context .live-tc-code-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}

.ai-chat-context .live-tc-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-chat-context .live-tc-code-tabs {
  display: flex;
  align-items: center;
  gap: 0;
}

.ai-chat-context .live-tc-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 10px;
  cursor: default;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0.5;
}

.ai-chat-context .live-tc-tab.active {
  opacity: 1;
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.08);
}

.ai-chat-context .live-tc-code-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ai-chat-context .live-tc-code-lang {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
}

.ai-chat-context .live-tc-code-copy {
  background: transparent;
  border: none;
  color: var(--muted);
  opacity: 0.5;
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
  display: flex;
  transition: all 0.12s;
}

.ai-chat-context .live-tc-code-copy:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.05);
}

.ai-chat-context .live-tc-code,
.ai-chat-context .message.assistant pre.live-tc-code {
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.4;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.ai-chat-context .live-tc-code code,
.ai-chat-context .message.assistant pre.live-tc-code code {
  background: none;
  padding: 0;
  border-radius: 0;
}


.demo-ai-pane .ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px 2px;
  background: none;
  animation: tc-step-in 0.2s ease-out both;
}

.demo-ai-pane .ai-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: normal;
  max-width: 320px;
  overflow-wrap: break-word;
  font-family: inherit;
}

.demo-ai-pane .ai-suggestion-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}


.demo-ai-pane .ai-chat-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 20;
}

.demo-ai-pane .ai-input-container {
  padding: 8px 10px 6px;
  background: var(--ai-pane-bg);
}

.demo-ai-pane .ai-input-card {
  background: var(--input-bg);
  border: none;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  margin: 0 8px 8px;
}

.demo-ai-pane .ai-input-card:focus-within {
  outline: none;
  box-shadow: none;
  border: none;
}

.demo-ai-pane .ai-input:focus,
.demo-ai-pane .ai-input:focus-visible,
.demo-ai-pane .ai-input-textarea:focus,
.demo-ai-pane .ai-input-textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.demo-ai-pane .ai-input-with-mention {
  position: relative;
  z-index: 1;
}

.demo-ai-pane .ai-input {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--editor-fg);
  font-size: 13px;
  resize: none;
}

.demo-ai-pane .ai-input-textarea {
  min-height: 36px;
  max-height: 120px;
  resize: none;
  line-height: 1.5;
  display: block;
}

.demo-ai-pane .ai-input::placeholder {
  color: var(--input-placeholder);
}

.demo-ai-pane .ai-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 6px;
}

.demo-ai-pane .ai-input-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.demo-ai-pane .ai-input-actions-right {
  gap: 2px;
}

.demo-ai-pane .ai-mode-trigger,
.demo-ai-pane .ai-model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--editor-fg);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.demo-ai-pane .ai-model-trigger-transparent {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: normal;
}

.demo-ai-pane .ai-model-trigger-transparent:hover {
  background: transparent;
  color: var(--editor-fg);
}

.demo-ai-pane .ai-trigger-icon-only {
  padding: 4px 6px;
}

.demo-ai-pane .ai-input-action-btn {
  background: none;
  border: none;
  padding: 4px 5px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  transition: color 0.15s, background 0.15s;
}

.demo-ai-pane .ai-input-action-btn:hover {
  color: var(--editor-fg);
  background: rgba(255, 255, 255, 0.06);
}

.demo-ai-pane .ai-effort-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid var(--effort-color, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 2px;
}

.demo-ai-pane .ai-effort-badge:hover {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.demo-ai-pane .ai-send-btn-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  transition: padding 0.2s;
}

.demo-ai-pane .ai-send-btn-wrap.ai-send-btn-wrap-has-ctx {
  padding: 1px;
  background: conic-gradient(var(--effort-color, rgba(96, 165, 250, 0.5)) 0deg calc(var(--ctx-pct, 0) * 3.6deg),
      rgba(255, 255, 255, 0.08) calc(var(--ctx-pct, 0) * 3.6deg) 360deg);
}

.demo-ai-pane .ai-send-btn-wrap.ai-send-btn-wrap-cancel:not(.ai-send-btn-wrap-has-ctx) {
  padding: 0;
}

.demo-ai-pane .ai-input-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--editor-fg);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.15s ease, border-color 0.25s, box-shadow 0.25s;
  margin: 0;
  overflow: hidden;
}

.demo-ai-pane .ai-send-btn-wrap:not(.ai-send-btn-wrap-has-ctx) .ai-input-send-btn:not(.ai-input-send-btn-cancel):not(.ai-input-send-btn-voice) {
  border-color: var(--effort-color, rgba(96, 165, 250, 0.45));
  box-shadow: 0 0 0 1px var(--effort-glow, rgba(96, 165, 250, 0.15));
}

.demo-ai-pane .ai-input-send-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}


.demo-ai-pane .ai-send-icon-stack {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.demo-ai-pane .ai-send-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s, transform 0.35s;
}

.demo-ai-pane .ai-input-send-btn.ai-send-icon-mic .ai-send-icon-mic,
.demo-ai-pane .ai-input-send-btn.ai-send-icon-arrow .ai-send-icon-arrow,
.demo-ai-pane .ai-input-send-btn.ai-send-icon-cancel .ai-send-icon-cancel {
  opacity: 1;
  transform: scale(1);
}

.demo-ai-pane .ai-input-send-btn.ai-input-send-btn-cancel {
  background: #9e2a2a;
  color: #fff;
  border-color: transparent;
}

.demo-ai-pane .ai-input-send-btn.ai-input-send-btn-cancel:hover {
  background: #c43434;
}

.demo-ai-pane .ai-input-send-btn.ai-input-send-btn-voice {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  animation: demo-voice-pulse 1.4s ease-in-out infinite;
}

.demo-ai-pane .ai-input-send-btn.ai-input-send-btn-voice:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.55);
}

@keyframes demo-voice-pulse {

  0%,
  100% {
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.2);
  }
}


.marketplace-visual-hero {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.mp-center-node {
  position: relative;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 100, 255, 0.2);
}

.mp-center-icon {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 2;
}

.mp-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--primary);
  opacity: 0.2;
  filter: blur(20px);
  animation: pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes corePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.05;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.15;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.05;
  }
}

@keyframes pulse-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.4;
  }
}

.mp-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.anim-line {
  stroke-width: 2;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 10 10;
  animation: dash 30s linear infinite;
}

.anim-line.discord {
  stroke: rgba(88, 101, 242, 0.3);
}

.anim-line.slack {
  stroke: rgba(224, 30, 90, 0.3);
}

.anim-line.github {
  stroke: rgba(255, 255, 255, 0.15);
}

.anim-line.notion {
  stroke: rgba(170, 170, 170, 0.3);
}

@keyframes dash {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.dot {
  fill: #fff;
  filter: drop-shadow(0 0 8px currentColor);
}

.discord-dot {
  fill: #5865F2;
  offset-path: path('M 500,100 C 350,100 250,180 150,150');
  animation: travel 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.slack-dot {
  fill: #E01E5A;
  offset-path: path('M 500,100 C 650,100 750,180 850,150');
  animation: travel 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.github-dot {
  fill: #fff;
  offset-path: path('M 500,100 C 400,100 300,0 200,50');
  animation: travel 2.8s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

.notion-dot {
  fill: #aaa;
  offset-path: path('M 500,100 C 600,100 700,0 800,50');
  animation: travel 4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}


@keyframes travel {
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.gemini-dot {
  fill: #8b5cf6;
  offset-path: path('M 200,30 C 500,30 500,100 800,100');
  animation: travel 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.openai-dot {
  fill: #10a37f;
  offset-path: path('M 200,100 L 800,100');
  animation: travel 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.claude-dot {
  fill: #d4a373;
  offset-path: path('M 200,170 C 500,170 500,100 800,100');
  animation: travel 4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}


.models-flow-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px 20px;
  position: relative;
}


.think-flow {
  margin: 20px auto 10px;
  padding: 20px;
}

.models-flow-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}


.models-flow-curves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.models-flow-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.curve-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}

.models-flow-svg .curve-line {
  stroke-width: 2;
  opacity: 0.25;
}

.curve-gemini {
  stroke: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.curve-openai {
  stroke: #10a37f;
  --accent-glow: rgba(16, 163, 127, 0.5);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.curve-claude {
  stroke: #d4a373;
  --accent-glow: rgba(212, 163, 115, 0.5);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.models-flow-grid:has(.node-gemini:hover) .curve-gemini {
  opacity: 0.7;
  stroke-width: 2;
}

.models-flow-grid:has(.node-openai:hover) .curve-openai {
  opacity: 0.7;
  stroke-width: 2;
}

.models-flow-grid:has(.node-anthropic:hover) .curve-claude {
  opacity: 0.7;
  stroke-width: 2;
}

.model-sources {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.model-node {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.model-node i {
  color: var(--text-main);
}

.node-gemini:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  color: #fff;
}

.node-gemini:hover i {
  color: #8b5cf6;
}

.node-openai:hover {
  border-color: rgba(16, 163, 127, 0.4);
  box-shadow: 0 0 15px rgba(16, 163, 127, 0.15);
  color: #fff;
}

.node-openai:hover i {
  color: #10a37f;
}

.node-anthropic:hover {
  border-color: rgba(212, 163, 115, 0.4);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.15);
  color: #fff;
}

.node-anthropic:hover i {
  color: #d4a373;
}

.node-codex:hover {
  border-color: rgba(0, 122, 204, 0.4);
  box-shadow: 0 0 15px rgba(0, 122, 204, 0.15);
  color: #fff;
}

.node-codex:hover i {
  color: #007acc;
}


.node-thought {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.node-sql {
  box-shadow: 0 0 20px rgba(0, 122, 204, 0.2);
}

.pointer-packet {
  background: var(--primary);
  color: var(--primary);
  animation-delay: 0s;
}

.model-tracks {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: 0 10px;
  position: relative;
  min-width: 120px;
}

.track-wrap {
  display: flex;
  align-items: center;
  height: 44px;

  width: 100%;
}

.track {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: none;
}

.think-flow .track {
  display: block;
}

.track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, transparent, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05));
  background-size: 8px 1px;
}

.packet {
  position: absolute;
  top: -1px;
  height: 3px;
  width: 40px;
  border-radius: 4px;
  filter: drop-shadow(0 0 4px currentColor);
  animation: data-stream 2.5s infinite linear;
}

.gemini-packet {
  background: #8b5cf6;
  color: #8b5cf6;
  animation-delay: 0s;
}

.openai-packet {
  background: #10a37f;
  color: #10a37f;
  animation-delay: 1.2s;
}

.anthropic-packet {
  background: #d4a373;
  color: #d4a373;
  animation-delay: 0.5s;
}

.codex-packet {
  background: #007acc;
  color: #007acc;
  animation-delay: 1.8s;
}

@keyframes data-stream {
  0% {
    left: -40px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.model-hub {
  flex: 1;
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hub-core {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  box-shadow: 0 0 30px rgba(0, 100, 255, 0.2);
}

.hub-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--primary);
  opacity: 0.2;
  filter: blur(20px);
  animation: pulse-glow 3s infinite alternate ease-in-out;
}


.marketplace-card {
  position: relative;
  overflow: visible;

  z-index: 5;
}


@media (max-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .demo-container {
    padding: 0 16px;
  }

  .feature-card.large,
  .feature-card.large.reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-card.large .feature-content,
  .feature-card.large.reverse .feature-content {
    padding: 40px 32px 32px;
  }

  .feature-visual {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    min-height: 340px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--nav-height) + 16px);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
    padding: 8px 0;
    width: 100%;
    text-align: left;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
    white-space: normal;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-caption-text {
    font-size: 1rem;
  }

  .demo-container {
    margin-top: -180px;
  }

  .demo-window {
    height: 540px;
    min-height: 540px;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-layout-editor-section {
    display: none !important;
  }

  .demo-resizer {
    display: none;
  }

  .demo-app-body .demo-ai-pane {
    flex: 1;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    margin: 0;
    border-left: none;
  }

  .demo-layout-toggle {
    display: none;
  }

  .pointer-app-mockup .status-bar {
    display: none;
  }

  .status-bar-right {
    display: none;
  }

  .models-flow-container,
  .marketplace-visual-hero {
    display: none !important;
  }

  .garden-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }

  .pricing-card.highlight-card {
    transform: none;
  }

  .pricing-card.highlight-card:hover {
    transform: translateY(-8px);
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .input-glass {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .type-giant {
    font-size: 2.5rem;
  }

  .garden-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-window {
    height: 450px;
    min-height: 450px;
  }

  .demo-editor-tabs .demo-editor-tab-label {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-tc-step-row {
    flex-wrap: wrap;
  }

  .feature-card.large .feature-content,
  .feature-card.large.reverse .feature-content {
    padding: 32px 20px 24px;
  }
}

@media (max-width: 1024px) {

  .models-flow-container,
  .marketplace-visual-hero {
    display: none !important;
  }
}