/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --bg-primary: #0c130f; /* was: #14120b (Warm Umber) | alt: #091110 (Forest Velvet), #263D34 (Forest Green) */
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #222222;
  --border-light: #2a2a2a;
  --accent: #f5f5f5;
  --accent-dim: rgba(255,255,255,0.06);
  --green: #4ade80;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #c084fc;
  --orange: #fb923c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Menlo', 'Consolas', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ============================
   Scroll Animations
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.15s; }
.fade-up.delay-2 { transition-delay: 0.3s; }
.fade-up.delay-3 { transition-delay: 0.45s; }

/* ============================
   Navigation
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  background: #0c130f;
  border-bottom: none;
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 22px;
  width: auto;
  opacity: 0.95;
}
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-btn {
  font-size: 14px; font-weight: 500;
  padding: 7px 16px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 999px;
  transition: opacity var(--transition);
}
.nav-btn:hover { opacity: 0.85; }

/* Hamburger menu */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: 8px;
}
.nav-hamburger span {
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #f5f5f5; }
.mobile-menu .mobile-menu-cta {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  background: #f5f5f5;
  color: var(--bg-primary);
  border-radius: 999px;
  text-align: center;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}
.nav-dropdown-trigger svg {
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1c16;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all var(--transition);
}
.btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-secondary { color: var(--text-secondary); }
.btn-secondary:hover { color: var(--text-primary); }
.btn-icon { font-size: 16px; }
.btn-arrow { transition: transform var(--transition); }
.btn-secondary:hover .btn-arrow { transform: translateX(3px); }

/* ============================
   Hero Section
   ============================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 32px;
  overflow: hidden;
}
.hero-bg-image {
  display: none;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 800px;
  margin-bottom: 60px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600; line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #f5f5f5;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.hero-buttons {
  display: flex; align-items: center;
  justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.hero-image {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px;
}
.hero-image-glow {
  display: none;
}

/* ===============================================
   REALISTIC macOS VM SCREEN
   =============================================== */
.vm-screen {
  background: #1c1c1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

/* ---- GNOME Top Panel ---- */
.gnome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 10px;
  background: #1a1a1a;
  border-bottom: 1px solid #111;
  font-size: 11.5px;
  color: rgba(255,255,255,0.9);
  user-select: none;
  font-weight: 500;
}
.panel-left {
  display: flex;
  align-items: center;
  min-width: 100px;
}
.panel-activities {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
  cursor: default;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.panel-activities:hover {
  background: rgba(255,255,255,0.1);
}
.panel-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-clock {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.9;
  cursor: default;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.panel-clock:hover {
  background: rgba(255,255,255,0.1);
}
.panel-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
}
.panel-systray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: default;
  transition: background 0.15s;
}
.panel-systray:hover {
  background: rgba(255,255,255,0.1);
}

/* ---- Linux Desktop ---- */
.linux-desktop {
  position: relative;
  z-index: 0;
  height: 700px;
  padding: 50px 80px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Wallpaper set by JS */
  background-size: cover;
  background-position: center;
  background-color: #2c001e;
  overflow: hidden;
}

/* ---- App Window (generic) ---- */
.app-window {
  flex: 1;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* ===============================================
   CHROME BROWSER WINDOW
   =============================================== */
.chrome-window {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  max-width: 700px;
  height: calc(100% - 110px);
  background: #202124;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* Chrome Tab Strip */
.chrome-tabstrip {
  display: flex;
  align-items: center;
  height: 36px;
  background: #292b2e;
  padding: 0;
  border-bottom: none;
}
.chrome-tabs {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 100%;
  padding: 6px 6px 0 8px;
  gap: 1px;
}
.chrome-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 30px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: #35363a;
  border-radius: 8px 8px 0 0;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  flex-shrink: 1;
  min-width: 0;
}
.chrome-tab.active {
  background: #202124;
  color: rgba(255,255,255,0.9);
}
.chrome-tab-favicon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.brand-logo-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.chrome-tab-close {
  font-size: 14px;
  opacity: 0;
  margin-left: auto;
  padding-left: 4px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.chrome-tab:hover .chrome-tab-close { opacity: 1; }
.chrome-tab-new {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: default;
  flex-shrink: 0;
  margin-left: 4px;
  align-self: center;
}
.chrome-tab-new:hover { background: rgba(255,255,255,0.08); }
.chrome-tabstrip-controls {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 4px;
  flex-shrink: 0;
  align-self: stretch;
  padding-top: 2px;
}

/* Chrome Toolbar */
.chrome-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  background: #202124;
  border-bottom: 1px solid #3c3c3c;
}
.chrome-nav-buttons {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.chrome-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: default;
}
.chrome-nav-btn:hover { background: rgba(255,255,255,0.08); }
.chrome-nav-btn.disabled { color: rgba(255,255,255,0.2); }
.chrome-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #303134;
  border-radius: 18px;
  padding: 5px 12px;
  height: 28px;
  min-width: 0;
}
.chrome-lock-icon { flex-shrink: 0; }
.chrome-url {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font);
}
.chrome-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.chrome-ext-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: default;
}
.chrome-ext-icon:hover { background: rgba(255,255,255,0.08); }
.chrome-profile {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chrome-profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.chrome-menu-dots {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: default;
}
.chrome-menu-dots:hover { background: rgba(255,255,255,0.08); }

/* Chrome Bookmarks Bar */
.chrome-bookmarks {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 12px;
  background: #202124;
  border-bottom: 1px solid #3c3c3c;
  overflow: hidden;
}
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}
.bookmark-item:hover { background: rgba(255,255,255,0.06); }

/* Chrome Page Content (Google Search) */
.chrome-page {
  flex: 1;
  background: #202124;
  overflow: hidden;
  min-height: 0;
}
.google-header {
  padding: 10px 16px 0;
  border-bottom: 1px solid #3c3c3c;
}
.google-logo-sm {
  font-size: 18px;
  font-family: 'Product Sans', Arial, sans-serif;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.google-search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #303134;
  border-radius: 22px;
  padding: 8px 16px;
  margin-bottom: 10px;
  border: 1px solid #5f6368;
}
.google-search-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.google-tabs {
  display: flex;
  gap: 0;
  margin: 0 -4px;
}
.google-tab {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding: 8px 12px;
  cursor: default;
  border-bottom: 2px solid transparent;
}
.google-tab.active {
  color: #8ab4f8;
  border-bottom-color: #8ab4f8;
}

/* Search Results */
.google-results {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.google-result {
  position: relative;
}
.google-result .result-url {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}
.google-result .result-title {
  font-size: 15px;
  color: #8ab4f8;
  margin-bottom: 3px;
  cursor: pointer;
  line-height: 1.3;
}
.google-result .result-title:hover {
  text-decoration: underline;
}
.google-result .result-snippet {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.google-result.highlighted {
  background: rgba(138, 180, 248, 0.06);
  border-left: 2px solid #8ab4f8;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-left: -2px;
}
.google-result .result-selection {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 3px;
  background: #8ab4f8;
  border-radius: 2px;
  animation: selectionPulse 2s ease-in-out infinite;
}
@keyframes selectionPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
/* ---- App Login Screen (shared) ---- */
.app-login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #1a1a1a;
}
.app-login-inner {
  width: 220px;
  text-align: center;
}
.app-login-logo {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-brand-icon {
  width: 16px;
  height: 16px;
}
.app-login-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.app-login-field {
  text-align: left;
  margin-bottom: 8px;
}
.app-login-field label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-login-input {
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  min-height: 24px;
}
.app-login-pw {
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
}
.app-login-btn {
  margin-top: 12px;
  padding: 7px 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: default;
  transition: background 0.15s;
}
.app-login-btn:hover {
  background: rgba(255,255,255,0.12);
}
.app-login-btn.logging-in {
  color: rgba(255,255,255,0.4);
}

/* Zendesk/Shopify dashboard containers */
#zd-dashboard, #sh-dashboard {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ---- Zendesk Page (realistic Agent Workspace) ---- */
#page-zendesk { display: none; flex-direction: column; }
#page-zendesk[style*="display: block"], #page-zendesk[style=""] { display: flex !important; flex-direction: column; }

/* Zendesk top bar — dark teal like real Zendesk */
.zd-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 32px;
  background: #17494d;
  flex-shrink: 0;
}
.zd-logo {
  font-size: 11px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 5px;
  padding: 0 12px; height: 100%;
}
.vm-brand-icon {
  width: 12px;
  height: 12px;
}
.zd-nav { display: flex; height: 100%; margin-left: 8px; }
.zd-nav-item {
  font-size: 10px; color: rgba(255,255,255,0.55); cursor: default;
  padding: 0 10px; display: flex; align-items: center;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.zd-nav-item.active { color: #fff; border-bottom-color: #fff; }

/* Zendesk body */
.zd-content { padding: 8px 12px; overflow-y: auto; flex: 1; background: #1b1b1f; }
.zd-list-header {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.zd-count { font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 10px; }

/* Ticket list — table-like header + rows */
.zd-ticket-list { display: flex; flex-direction: column; font-size: 10px; }
.zd-ticket-list-head {
  display: flex; align-items: center; gap: 0; padding: 4px 8px;
  font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #2a2a2a;
}
.zd-ticket-list-head span { padding: 0 4px; }
.zd-ticket-row {
  display: flex; align-items: center; gap: 0; padding: 6px 8px;
  font-size: 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6); cursor: default; transition: background 0.12s;
}
.zd-ticket-row:hover { background: rgba(255,255,255,0.03); }
.zd-ticket-row.zd-resolved { opacity: 0.35; }
.zd-ticket-row.zd-resolved .zd-t-status { background: rgba(74,222,128,0.15); color: #4ade80; }
.zd-t-id { font-weight: 600; color: #6fa8dc; min-width: 36px; font-family: var(--mono); font-size: 9px; padding: 0 4px; }
.zd-t-subject { flex: 1; color: rgba(255,255,255,0.8); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-t-requester { min-width: 50px; color: rgba(255,255,255,0.45); font-size: 9px; padding: 0 4px; }
.zd-t-priority { font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 3px; margin: 0 2px; }
.zd-pri-high { background: rgba(251,146,60,0.15); color: #fb923c; }
.zd-pri-urgent { background: rgba(248,113,113,0.15); color: #f87171; }
.zd-pri-normal { background: rgba(96,165,250,0.1); color: #60a5fa; }
.zd-t-status { font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 3px; text-align: center; margin: 0 2px; }
.zd-st-open { background: rgba(251,191,36,0.12); color: #fbbf24; }

/* Zendesk ticket detail — properties left, conversation center */
.zd-detail-back { font-size: 9px; color: #6fa8dc; margin-bottom: 8px; cursor: default; display: flex; align-items: center; gap: 3px; }
.zd-detail-header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.zd-detail-id { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.45); font-family: var(--mono); }
.zd-detail-subject { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.zd-detail-meta {
  font-size: 9px; color: rgba(255,255,255,0.3);
  display: flex; gap: 10px; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.zd-detail-meta strong { color: rgba(255,255,255,0.55); font-weight: 500; }
.zd-messages { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; flex: 1; overflow-y: auto; }
.zd-msg { padding: 6px 8px; border-radius: 5px; font-size: 10px; line-height: 1.5; }
.zd-msg-customer { background: rgba(255,255,255,0.025); border-left: 2px solid rgba(255,255,255,0.08); }
.zd-msg-agent { background: rgba(23,73,77,0.15); border-left: 2px solid #17494d; }
.zd-msg-name { font-size: 8px; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.zd-msg-text { color: rgba(255,255,255,0.7); }
.zd-reply-box { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 6px; flex-shrink: 0; }
.zd-reply-input { width: 100%; background: #111114; border: 1px solid #333; border-radius: 5px; padding: 5px 8px; font-size: 10px; min-height: 24px; }
.zd-reply-ph { color: rgba(255,255,255,0.2); font-size: 10px; }
.zd-reply-text { color: rgba(255,255,255,0.75); font-size: 10px; }
.zd-reply-text::after { content: ''; display: inline-block; width: 1px; height: 10px; background: #6fa8dc; margin-left: 1px; animation: blink 0.6s step-end infinite; vertical-align: middle; }

/* ---- Shopify Page (realistic Admin) ---- */
#page-shopify { display: none; flex-direction: column; height: 100%; }
#page-shopify[style*="display: flex"] { display: flex !important; }

/* Shopify uses a dark sidebar nav + lighter main content */
.sh-header {
  display: flex; align-items: stretch; height: 100%; overflow: hidden;
  padding: 0; border-bottom: none; background: none;
}
.sh-logo {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 5px;
  padding: 10px 10px 6px;
}
/* Shopify sidebar nav */
.sh-sidebar {
  width: 120px; background: #1a1a1a; border-right: 1px solid #2a2a2a;
  display: flex; flex-direction: column; flex-shrink: 0; padding: 0;
}
.sh-nav { display: flex; flex-direction: column; padding: 4px 0; gap: 0; margin-left: 0; }
.sh-nav-item {
  font-size: 10px; color: rgba(255,255,255,0.5); cursor: default;
  padding: 5px 12px; display: flex; align-items: center; gap: 6px;
  border-radius: 0; transition: background 0.12s;
}
.sh-nav-item:hover { background: rgba(255,255,255,0.04); }
.sh-nav-item.active { color: #fff; background: rgba(255,255,255,0.06); }
.sh-nav-icon { font-size: 11px; opacity: 0.5; width: 14px; text-align: center; }

/* Shopify main area */
.sh-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sh-content { padding: 10px 14px; overflow-y: auto; flex: 1; background: #111114; }
.sh-list-header {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.sh-count { font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 10px; }
.sh-search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sh-search-input {
  flex: 1;
  min-height: 24px;
  border: 1px solid #2f2f34;
  border-radius: 5px;
  background: #131317;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: rgba(255,255,255,0.66);
  font-size: 10px;
}
.sh-search-icon {
  display: inline-flex;
  color: rgba(255,255,255,0.38);
}
.sh-search-ph {
  color: rgba(255,255,255,0.3);
}
.sh-search-text {
  display: none;
  color: rgba(255,255,255,0.78);
  font-family: var(--mono);
}
.sh-search-count {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Order list — table style with header row */
.sh-order-list { display: flex; flex-direction: column; font-size: 10px; border: 1px solid #2a2a2a; border-radius: 6px; overflow: hidden; }
.sh-order-head {
  display: flex; align-items: center; gap: 0; padding: 5px 8px;
  font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid #2a2a2a;
}
.sh-order-head span { padding: 0 3px; }
.sh-order-row {
  display: flex; align-items: center; gap: 0; padding: 5px 8px;
  font-size: 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6); cursor: default; transition: background 0.12s;
}
.sh-order-row:last-child { border-bottom: none; }
.sh-order-row:hover { background: rgba(255,255,255,0.025); }
.sh-order-row.sh-highlighted { background: rgba(150,191,72,0.06); }
.sh-o-id { font-weight: 600; color: #6fa8dc; min-width: 38px; font-family: var(--mono); font-size: 9px; padding: 0 3px; }
.sh-o-customer { flex: 1; color: rgba(255,255,255,0.7); padding: 0 3px; }
.sh-o-total { min-width: 46px; color: rgba(255,255,255,0.5); font-family: var(--mono); font-size: 9px; padding: 0 3px; }
.sh-o-badge { font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 10px; }
.sh-fulfilled { background: rgba(74,222,128,0.1); color: #4ade80; }
.sh-pending { background: rgba(251,191,36,0.1); color: #fbbf24; }
.sh-cancelled { background: rgba(248,113,113,0.15); color: #fca5a5; }
.sh-returned { background: rgba(96,165,250,0.14); color: #93c5fd; }
.sh-refunded { background: rgba(167,139,250,0.16); color: #c4b5fd; }

/* Shopify order detail */
.sh-detail-back { font-size: 9px; color: #6fa8dc; margin-bottom: 8px; cursor: default; }
.sh-detail-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sh-detail-id { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); font-family: var(--mono); }
.sh-detail-badge { font-size: 8px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.sh-detail-info { display: flex; flex-direction: column; gap: 0; background: rgba(255,255,255,0.02); border: 1px solid #2a2a2a; border-radius: 6px; overflow: hidden; }
.sh-info-row { display: flex; justify-content: space-between; font-size: 10px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sh-info-row:last-child { border-bottom: none; }
.sh-info-row span { color: rgba(255,255,255,0.35); }
.sh-info-row strong { color: rgba(255,255,255,0.75); }
.sh-actions-panel {
  margin-top: 10px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  padding: 8px;
}
.sh-actions-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.sh-actions-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.sh-action-btn {
  font-size: 9px;
  border: 1px solid #373737;
  background: #1a1a1a;
  color: rgba(255,255,255,0.75);
  border-radius: 5px;
  padding: 4px 7px;
  cursor: default;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sh-action-btn.is-active {
  border-color: #5d8fe6;
  background: rgba(96,165,250,0.12);
  color: #cfe2ff;
}
.sh-action-btn.is-working {
  border-color: #eab308;
  background: rgba(234,179,8,0.12);
  color: #fde68a;
}
.sh-action-current {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.sh-activity-log {
  max-height: 72px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sh-activity-line {
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255,255,255,0.58);
  font-family: var(--mono);
}

/* Agent highlight on result */
.google-result.agent-highlight {
  background: rgba(138, 180, 248, 0.08);
  border-left: 2px solid #8ab4f8;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-left: -2px;
  transition: background 0.3s, border-color 0.3s;
}
.google-result.agent-copied {
  background: rgba(52, 168, 83, 0.08);
  border-left-color: #34A853;
}
.google-result .copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  color: #34A853;
  padding: 2px 8px;
  background: rgba(52, 168, 83, 0.12);
  border-radius: 4px;
}

/* ---- Google Sheets Page ---- */
.sheets-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  border-bottom: 1px solid #3c3c3c;
}
.sheets-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheets-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.sheets-menu {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.sheets-formula-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-bottom: 1px solid #3c3c3c;
  height: 26px;
  font-size: 11px;
  font-family: var(--mono);
}
.sheets-cell-ref {
  color: rgba(255,255,255,0.5);
  min-width: 30px;
  padding: 1px 4px;
  background: #303134;
  border-radius: 2px;
  text-align: center;
  font-size: 10px;
}
.sheets-fx {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 11px;
}
.sheets-formula-input {
  flex: 1;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}

/* Sheets Grid */
.sheets-grid {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}
.sheets-header-row {
  display: flex;
  border-bottom: 1px solid #444;
  background: #292b2e;
}
.sheets-row {
  display: flex;
  border-bottom: 1px solid #333;
}
.sheets-row.active-row {
  background: rgba(138, 180, 248, 0.06);
}
.sheets-row-num {
  width: 30px;
  padding: 4px 6px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  border-right: 1px solid #333;
  font-size: 10px;
  flex-shrink: 0;
}
.sheets-col-header {
  padding: 4px 8px;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid #333;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}
.sheets-col-header:not(.col-b):not(.col-c),
.sheets-cell.col-a {
  flex: 2;
  min-width: 0;
}
.sheets-col-header.col-b, .sheets-cell.col-b { flex: 0.7; }
.sheets-col-header.col-c, .sheets-cell.col-c { flex: 1.1; }
.sheets-cell {
  padding: 4px 8px;
  color: rgba(255,255,255,0.65);
  border-right: 1px solid #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  line-height: 1.6;
}
.sheets-cell.font-bold {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: #292b2e;
}
.cell-link {
  color: #8ab4f8;
}
.typing-cell {
  position: relative;
}
.typing-cell::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #8ab4f8;
  margin-left: 1px;
  animation: blink 0.6s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% { opacity: 0; }
}
.header-data-row .sheets-cell {
  border-bottom: 2px solid #0F9D58;
}

/* ---- AI Agent Cursor ---- */
.agent-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 0;
  transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1), left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  flex-direction: column;
}
.agent-cursor-arrow {
  width: 24px;
  height: 24px;
}
.agent-label {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #6366f1;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: -4px;
  margin-left: 14px;
}

/* Chrome minimize/restore animation */
/* Chrome minimize / Slack enter animations */
.chrome-window.minimized {
  transform: translateX(-50%) translateY(100%) scale(0.2) !important;
  opacity: 0 !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.slack-window.entering {
  transform: translateX(-50%) translateY(100%) scale(0.2) !important;
  opacity: 0 !important;
}
.slack-window.visible {
  transform: translateX(-50%) translateY(0) scale(1) !important;
  opacity: 1 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* ---- Slack Window ---- */
.slack-window {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 66%;
  max-width: 640px;
  height: calc(100% - 96px);
  background: #1a1d21;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.slack-win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 6px 0 12px;
  background: #1a1d21;
  border-bottom: 1px solid #333;
}
.slack-win-titlebar .window-title-left {
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.slack-win-titlebar .window-title-left svg {
  width: 14px;
  height: 14px;
}
.slack-win-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.slack-sidebar {
  width: 206px;
  background: #1a1d21;
  border-right: 1px solid #333;
  padding: 10px 0;
  flex-shrink: 0;
  overflow: hidden;
}
.slack-workspace-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 6px 16px 12px;
}
.slack-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding: 12px 16px 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slack-nav-section {
  display: flex;
  flex-direction: column;
}
.slack-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  cursor: default;
  border-radius: 0;
}
.slack-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.slack-nav-icon {
  font-size: 13px;
  opacity: 0.5;
  width: 14px;
  text-align: center;
}
.slack-dm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}
.slack-dm-dot.online {
  background: #2BAC76;
}
.slack-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1a1d21;
  min-width: 0;
  min-height: 0;
}
.slack-channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
}
.slack-channel-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.slack-channel-members {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.slack-messages-area {
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.slack-messages-area::-webkit-scrollbar { display: none; }
.slack-message {
  display: flex;
  gap: 10px;
}
.slack-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.agent-msg-avatar {
  background: #6366f1;
  color: #fff;
}
.slack-msg-body {
  flex: 1;
  min-width: 0;
}
.slack-msg-author {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.slack-msg-time {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  margin-left: 6px;
}
.slack-msg-badge {
  font-size: 8px;
  padding: 1px 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 500;
  vertical-align: middle;
}
.slack-msg-body p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  margin-top: 2px;
}
.slack-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #333;
  border-radius: 6px;
  border-left: 3px solid #0F9D58;
}
.slack-attach-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.slack-attach-name {
  font-size: 12px;
  font-weight: 600;
  color: #8ab4f8;
}
.slack-attach-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.slack-input-area {
  padding: 8px 16px 12px;
  border-top: 1px solid #333;
  flex-shrink: 0;
}
.slack-input {
  width: 100%;
  background: #222529;
  border: 1px solid #444;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 42px;
  position: relative;
  color: rgba(255,255,255,0.8);
  box-sizing: border-box;
}
.slack-input-placeholder {
  color: rgba(255,255,255,0.3);
  display: block;
  white-space: normal;
  line-height: 1.35;
}
.slack-input-text {
  position: relative;
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 12px;
}
.slack-input-text::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 11px;
  background: #fff;
  margin-left: 1px;
  animation: blink 0.6s step-end infinite;
  vertical-align: middle;
}

/* Window Title Bar (GNOME style - buttons on right) */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 6px 0 12px;
  background: #303030;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.window-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.window-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.wc-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  cursor: default;
  transition: background 0.12s, color 0.12s;
}
.wc-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}
.wc-close:hover {
  background: #e01b24;
  color: #fff;
}
.mini-wc .wc-btn {
  width: 24px;
  height: 24px;
}

/* ---- IDE Body ---- */
.ide-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Activity Bar */
.ide-activity-bar {
  width: 48px;
  background: #181818;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 2px;
  flex-shrink: 0;
}
.activity-icon {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  border-radius: 6px;
  cursor: default;
  transition: color 0.15s, background 0.15s;
}
.activity-icon:hover {
  color: rgba(255,255,255,0.7);
}
.activity-icon.active {
  color: rgba(255,255,255,0.9);
}
.activity-icon.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 20px;
  background: #fff;
  border-radius: 0 2px 2px 0;
}
.activity-icon {
  position: relative;
}
.bottom-icon {
  margin-top: auto;
}
.mini-bar {
  width: 36px;
  padding: 6px 0;
}
.mini-bar .activity-icon {
  width: 30px;
  height: 28px;
}

/* Sidebar */
.ide-sidebar {
  width: 200px;
  background: #1e1e1e;
  border-right: 1px solid #2a2a2a;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 10px 14px 6px;
}
.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  cursor: default;
}
.sidebar-section-title svg {
  opacity: 0.5;
}
.file-tree {
  padding: 2px 0;
}
.file-tree-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 14px 2px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  cursor: default;
  height: 22px;
}
.file-tree-item.indent-1 { padding-left: 28px; }
.file-tree-item.indent-2 { padding-left: 42px; }
.file-tree-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.file-tree-item svg {
  opacity: 0.4;
  flex-shrink: 0;
}
.file-tree-item.open svg { transform: rotate(0); }
.folder-icon { color: rgba(255,255,255,0.65); }
.file-icon {
  font-size: 8px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.file-icon.tsx { background: #1a4b8c; color: #60a5fa; }
.file-icon.json { background: #4a3500; color: #fbbf24; font-size: 7px; }
.file-icon.md { background: #1a3a1a; color: #4ade80; }

/* Mini sidebar */
.mini-sidebar {
  width: 150px;
}

/* ---- IDE Main Editor Area ---- */
.ide-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1e1e1e;
}

/* Editor Tabs */
.ide-tabs {
  display: flex;
  height: 35px;
  background: #181818;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  overflow-x: hidden;
}
.ide-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  border-right: 1px solid #2a2a2a;
  cursor: default;
  white-space: nowrap;
  height: 100%;
  transition: color 0.15s;
}
.ide-tab.active {
  background: #1e1e1e;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: -1px;
}
.tab-file-icon {
  font-size: 8px;
  font-weight: 700;
  color: #60a5fa;
}
.tab-close {
  font-size: 14px;
  opacity: 0;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: opacity 0.15s;
}
.ide-tab:hover .tab-close { opacity: 1; }
.mini-tabs { height: 30px; }
.mini-tabs .ide-tab { padding: 0 8px; font-size: 10px; }

/* Breadcrumb */
.ide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.bc-sep { font-size: 10px; opacity: 0.4; }

/* Code Editor */
.ide-editor {
  flex: 1;
  display: flex;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 20px;
}
.editor-line-numbers {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  min-width: 44px;
  text-align: right;
  color: rgba(255,255,255,0.18);
  font-size: 12px;
  line-height: 20px;
  user-select: none;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.editor-line-numbers span {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mini-line-nums {
  min-width: 32px;
  padding-right: 8px;
  font-size: 10px;
}
.editor-code {
  flex: 1;
  padding: 10px 16px;
  overflow: hidden;
}
.code-line {
  height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  animation: lineAppear 0.35s ease forwards;
  animation-delay: calc(var(--i) * 0.06s + 0.4s);
}
@keyframes lineAppear {
  to { opacity: 1; transform: translateY(0); }
}
.ghost-line {
  opacity: 0 !important;
  animation: ghostAppear 0.5s ease forwards !important;
  animation-delay: calc(var(--i) * 0.06s + 1.2s) !important;
}
@keyframes ghostAppear {
  to { opacity: 0.35; transform: translateY(0); }
}
.tab-ghost {
  position: relative;
}
.tab-ghost::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  top: 0; bottom: 0;
  background: rgba(74, 222, 128, 0.06);
  border-radius: 2px;
  border-left: 2px solid rgba(74, 222, 128, 0.3);
}

/* Syntax Colors */
.code-keyword { color: #c084fc; }
.code-string { color: #86efac; }
.code-func { color: #fbbf24; }
.code-tag { color: #60a5fa; }
.code-attr { color: #f9a8d4; }

/* Status Bar */
.ide-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 10px;
  background: #007acc;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.statusbar-left, .statusbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.statusbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  white-space: nowrap;
}
.statusbar-item.branch svg {
  opacity: 0.8;
}

/* ---- AI Chat Panel (right side) ---- */
.ide-chat-panel {
  width: 280px;
  border-left: 1px solid #2a2a2a;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.chat-panel-tabs {
  display: flex;
  gap: 0;
}
.chat-panel-tab {
  font-size: 11px;
  padding: 3px 10px;
  color: rgba(255,255,255,0.4);
  cursor: default;
  border-radius: 4px;
}
.chat-panel-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.chat-panel-label {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}
.chat-panel-body {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg-user, .chat-msg-ai {
  display: flex;
  gap: 8px;
}
.chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-avatar {
  background: #3b3b3b;
  color: rgba(255,255,255,0.7);
}
.ai-avatar {
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  color: #fff;
}
.chat-msg-content p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.chat-code-block {
  margin-top: 8px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
}
.chat-code-header {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.chat-code-lang {
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  font-size: 9px;
}
.chat-code-body {
  padding: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
}
.chat-panel-input {
  padding: 8px 12px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-panel-input input {
  flex: 1;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  outline: none;
}
.chat-input-actions {
  display: flex;
  align-items: center;
}
.chat-model-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
}

/* Typing effect */
.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  animation: typing 2s steps(60, end) 2s forwards;
}
@keyframes typing {
  from { max-width: 0; }
  to { max-width: 100%; }
}

/* ---- GNOME Dash / Taskbar ---- */
.gnome-dash {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.dash-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  border-radius: 8px;
  padding: 3px;
  transition: background 0.15s;
}
.dash-item:hover {
  background: rgba(255,255,255,0.1);
}
.dash-item svg {
  width: 34px;
  height: 34px;
}
.dash-indicator {
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
  margin-top: 2px;
  position: absolute;
  bottom: -2px;
}
.dash-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
  margin: 0 2px;
}

/* ===============================================
   MINI APP WINDOWS (Feature sections)
   =============================================== */
.mini-app-window {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}
.mini-app-window .window-titlebar {
  height: 30px;
  padding: 0 4px 0 10px;
}
.mini-app-window .window-title-left {
  font-size: 11px;
}
.mini-ide {
  min-height: 240px;
}
.mini-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ========================================
   Scaling VM Grid Animation
   ======================================== */
.feature-demo:has(.scaling-grid-demo) {
  padding: 16px 16px 16px;
}
.scaling-grid-demo {
  text-align: center;
  padding: 0;
}
.scaling-counter {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.scaling-label {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.scaling-vm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  max-width: 100%;
  height: 180px;
  align-items: flex-start;
  align-content: flex-start;
  overflow: hidden;
}
.scaling-vm-cell {
  border-radius: 3px;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  animation: scalingVmPop 0.25s ease forwards;
  opacity: 0;
  transform: scale(0.5);
}
@keyframes scalingVmPop {
  to { opacity: 1; transform: scale(1); }
}
.scaling-vm-bar {
  height: 3px;
  background: #252525;
  display: flex;
  align-items: center;
  padding: 0 2px;
  gap: 1px;
}
.scaling-vm-dot { width: 2px; height: 2px; border-radius: 50%; }
.scaling-vm-dot.r { background: #ff5f57; }
.scaling-vm-dot.y { background: #febc2e; }
.scaling-vm-dot.g { background: #28c840; }
.scaling-vm-body {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}
.scaling-vm-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 3px #4ade80;
}

/* Mini markdown content */
.mini-editor-content {
  flex: 1;
  padding: 12px;
  overflow: hidden;
}
.mini-markdown {
  font-size: 12px;
  line-height: 1.6;
}
.mini-md-h1 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.mini-md-h2 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  margin-bottom: 4px;
}
.mini-md-p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Mini chat panel */
.mini-chat-panel {
  width: 200px;
  border-left: 1px solid #2a2a2a;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}
.mini-chat-header {
  padding: 6px 10px !important;
}
.mini-chat-header .chat-panel-tab {
  font-size: 10px;
  padding: 2px 8px;
}
.mini-chat-header .chat-panel-label {
  font-size: 9px;
}
.mini-chat-tasks {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-task {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.mini-task-check {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 9px;
  flex-shrink: 0;
}
.mini-task-check.done {
  background: #16a34a;
  color: #fff;
}
.mini-task-check.pending {
  border: 1px solid #555;
  color: #555;
  font-size: 7px;
}
.mini-chat-input {
  padding: 6px 10px;
  border-top: 1px solid #2a2a2a;
  font-size: 9px;
  color: rgba(255,255,255,0.25);
}

/* Tab indicator */
.tab-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-top: 1px solid #2a2a2a;
  font-size: 11px;
  flex-shrink: 0;
}
.tab-key {
  padding: 2px 6px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  animation: tabPulse 2s ease-in-out infinite;
}
@keyframes tabPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.tab-label { color: var(--text-muted); font-size: 10px; }

.tab-editor-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 18px;
}
.tab-editor-area .editor-line-numbers {
  line-height: 18px;
  font-size: 10px;
}
.tab-editor-area .code-line {
  height: 18px;
  font-size: 11px;
}
.tab-mini-ide {
  min-height: 280px;
}

/* ============================
   Trusted By Section
   ============================ */
.trusted-section {
  padding: 48px 24px;
  text-align: center;
}
.trusted-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.logo-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.logo-grid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cl-logo {
  height: 40px;
  width: auto;
  padding: 10px 32px;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity var(--transition);
  display: block;
}
.cl-logo:hover { opacity: 0.7; }

/* ============================
   Feature Sections
   ============================ */
.feature-section {
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.feature-card:hover { border-color: transparent; }
.feature-text { padding: 40px 40px 24px; }
.feature-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.feature-link:hover { color: var(--text-primary); }
.feature-link span { transition: transform var(--transition); }
.feature-link:hover span { transform: translateX(3px); }
.feature-demo { padding: 24px 40px 40px; }

/* ---- SaaS Browser Demo ---- */
.saas-browser-demo {
  position: relative;
}
.saas-browser {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}
.saas-tabstrip {
  display: flex;
  background: #222;
  padding: 6px 6px 0;
  gap: 1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.saas-tabstrip::-webkit-scrollbar { display: none; }
.saas-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.4);
  background: #2a2a2a;
  border-radius: 6px 6px 0 0;
  cursor: default;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.saas-tab:hover {
  color: rgba(255,255,255,0.7);
  background: #252525;
}
.saas-tab.active {
  background: #1a1a1a;
  color: rgba(255,255,255,0.9);
}
.saas-tab-icon {
  font-size: 8px;
}
.saas-brand-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 3px;
  padding: 1px;
}
.saas-addressbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}
.saas-url {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-family: var(--mono);
  transition: opacity 0.3s;
}

/* SaaS page content */
.saas-pages {
  position: relative;
  min-height: 210px;
}
.saas-page {
  display: none;
  height: 100%;
}
.saas-page.active {
  display: flex;
  animation: saasPageIn 0.3s ease;
}
@keyframes saasPageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.saas-page-sidebar {
  width: 120px;
  background: #141414;
  border-right: 1px solid #2a2a2a;
  padding: 10px 0;
  flex-shrink: 0;
}
.sp-brand {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 10px;
}
.sp-brand-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 3px;
  padding: 1px;
}
.sp-nav {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  padding: 4px 12px;
  cursor: default;
}
.sp-nav.active {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}
.saas-page-main {
  flex: 1;
  padding: 12px 16px;
  min-width: 0;
}
.sp-header {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-count {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
.sp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
}
.sp-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid #222;
  gap: 4px;
}
.sp-row:last-child { border-bottom: none; }
.sp-row-head {
  background: #1a1a1a;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sp-c1 { flex: 1; }
.sp-c2 { flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-c3 { flex: 0.7; }
.sp-c4 { flex: 0.7; }
.sp-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  flex: 0.7;
  text-align: center;
}
.sp-badge.fulfilled { background: rgba(74,222,128,0.12); color: #4ade80; }
.sp-badge.pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.sp-badge.urgent { background: rgba(248,113,113,0.15); color: #f87171; }
.sp-badge.high { background: rgba(251,146,60,0.12); color: #fb923c; }
.sp-badge.normal { background: rgba(96,165,250,0.12); color: #60a5fa; }

/* Per-product SaaS theming to mimic real tools better */
.saas-theme-shopify .saas-page-sidebar { background: #1f2a1f; border-right-color: #2f4030; }
.saas-theme-shopify .sp-nav.active { background: rgba(149,191,71,0.16); color: #d7f0b4; }
.saas-theme-shopify .sp-header { color: #dcead3; }

.saas-theme-zendesk .saas-page-sidebar { background: #12363b; border-right-color: #1f4b50; }
.saas-theme-zendesk .sp-nav.active { background: rgba(255,255,255,0.14); color: #f2f7f7; }
.saas-theme-zendesk .sp-header { color: #e8f1f2; }

.saas-theme-stripe .saas-page-sidebar { background: #1f1a30; border-right-color: #2f2750; }
.saas-theme-stripe .sp-nav.active { background: rgba(99,91,255,0.2); color: #d7d4ff; }
.saas-theme-stripe .sp-badge.fulfilled { background: rgba(99,91,255,0.18); color: #bcb6ff; }

.saas-theme-salesforce .saas-page-sidebar { background: #0f3f79; border-right-color: #1b5fa8; }
.saas-theme-salesforce .sp-nav { color: rgba(232,244,255,0.72); }
.saas-theme-salesforce .sp-nav.active { background: rgba(255,255,255,0.18); color: #fff; }
.saas-theme-salesforce .sp-header { color: #d8edff; }

.saas-theme-hubspot .saas-page-sidebar { background: #2a2020; border-right-color: #3a2d2d; }
.saas-theme-hubspot .sp-nav.active { background: rgba(255,122,89,0.18); color: #ffd7cd; }
.saas-theme-hubspot .sp-badge.pending { background: rgba(255,122,89,0.15); color: #ffab93; }

.saas-theme-netsuite .saas-page-sidebar { background: #123843; border-right-color: #1d515e; }
.saas-theme-netsuite .sp-nav.active { background: rgba(27,125,142,0.24); color: #b7eaf3; }

.saas-theme-workday .saas-page-sidebar { background: #2f2720; border-right-color: #4a3a2d; }
.saas-theme-workday .sp-nav.active { background: rgba(246,141,46,0.18); color: #ffd7ae; }

.saas-theme-servicenow .saas-page-sidebar { background: #1a2219; border-right-color: #2b3a2a; }
.saas-theme-servicenow .sp-nav.active { background: rgba(129,181,161,0.18); color: #d4eee2; }
.saas-theme-servicenow .sp-badge.urgent { background: rgba(129,181,161,0.18); color: #b7e7d2; }

.saas-theme-sap .saas-page-sidebar { background: #102433; border-right-color: #1b3a52; }
.saas-theme-sap .sp-nav.active { background: rgba(15,170,255,0.18); color: #bde8ff; }
.saas-theme-sap .sp-header { color: #d8eeff; }

.saas-theme-jira .saas-page-sidebar { background: #13253f; border-right-color: #1d365b; }
.saas-theme-jira .sp-nav.active { background: rgba(0,82,204,0.24); color: #cfe0ff; }
.saas-theme-jira .sp-badge.normal { background: rgba(0,82,204,0.22); color: #bcd5ff; }

.saas-theme-linkedin .saas-page-sidebar { background: #102337; border-right-color: #173553; }
.saas-theme-linkedin .sp-nav.active { background: rgba(10,102,194,0.24); color: #c8e3ff; }
.saas-theme-linkedin .sp-badge.fulfilled { background: rgba(10,102,194,0.2); color: #b7d8ff; }

/* SaaS responsive rules consolidated into main responsive section below */

/* ---- SDK Code Block ---- */
.sdk-code-block {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
}
.sdk-code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}
.sdk-code-dots {
  display: flex;
  gap: 5px;
}
.sdk-code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sdk-code-dots span:nth-child(1) { background: #ff5f57; }
.sdk-code-dots span:nth-child(2) { background: #febc2e; }
.sdk-code-dots span:nth-child(3) { background: #28c840; }
.sdk-code-filename {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.sdk-code-lang {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}
.sdk-code-body {
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sdk-code-body pre {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0;
  white-space: pre;
}
.sdk-code-body .code-comment {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* ---- Agent Control Panel ---- */
.control-panel {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}
.cp-layout {
  display: flex;
  min-height: 320px;
}

/* Activity Log (left) */
.cp-log {
  flex: 1.4;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
}
.cp-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2a;
  background: #141414;
}
.cp-log-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.cp-log-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border-radius: 4px;
  font-family: var(--mono);
}
.cp-log-live {
  margin-left: auto;
  font-size: 10px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.cp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: cpPulse 1.5s ease-in-out infinite;
}
@keyframes cpPulse { 50% { opacity: 0.3; } }

.cp-log-entries {
  flex: 1;
  padding: 6px 0;
  overflow: hidden;
}
.cp-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(6px);
  animation: cpEntryIn 0.3s ease forwards;
}
.cp-entry:nth-child(1) { animation-delay: 0.2s; }
.cp-entry:nth-child(2) { animation-delay: 0.5s; }
.cp-entry:nth-child(3) { animation-delay: 0.8s; }
.cp-entry:nth-child(4) { animation-delay: 1.1s; }
.cp-entry:nth-child(5) { animation-delay: 1.4s; }
.cp-entry:nth-child(6) { animation-delay: 1.7s; }
.cp-entry:nth-child(7) { animation-delay: 2.0s; }
.cp-entry:nth-child(8) { animation-delay: 2.3s; }
@keyframes cpEntryIn {
  to { opacity: 1; transform: translateY(0); }
}
.cp-time {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  min-width: 52px;
}
.cp-action {
  flex: 1;
  color: rgba(255,255,255,0.6);
}
.cp-url {
  color: #8ab4f8;
}
.cp-el {
  color: #c084fc;
}
.cp-status {
  font-size: 10px;
  flex-shrink: 0;
}
.cp-status.ok {
  color: #4ade80;
}
.cp-status.approval {
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  animation: cpApprovalPulse 2s ease-in-out infinite;
}
@keyframes cpApprovalPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.cp-entry.awaiting {
  background: rgba(251,191,36,0.04);
}
.cp-status.approval:hover {
  background: rgba(251,191,36,0.2);
  cursor: pointer;
}
.cp-toggle:hover {
  filter: brightness(1.2);
}

/* Controls (right) */
.cp-controls {
  flex: 0.7;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0e0e0e;
}
.cp-control-section {
  padding: 12px 14px;
  border-bottom: 1px solid #2a2a2a;
}
.cp-control-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.cp-toggle {
  width: 30px;
  height: 16px;
  border-radius: 8px;
  position: relative;
  cursor: default;
  flex-shrink: 0;
}
.cp-toggle.on {
  background: #16a34a;
}
.cp-toggle.off {
  background: #333;
}
.cp-toggle-knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  transition: left 0.2s;
}
.cp-toggle.on .cp-toggle-knob { left: 16px; }
.cp-toggle.off .cp-toggle-knob { left: 2px; }

/* Credentials */
.cp-cred {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.cp-cred-icon {
  font-size: 12px;
}
.cp-cred-info {
  display: flex;
  flex-direction: column;
}
.cp-cred-name {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.cp-cred-meta {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
}

/* Action buttons */
.cp-actions-section {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.cp-btn-replay {
  flex: 1;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid #333;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  cursor: default;
  transition: background 0.15s;
}
.cp-btn-replay:hover { background: rgba(255,255,255,0.1); }
.cp-btn-replay:active { transform: scale(0.97); }
.cp-btn-kill {
  flex: 1;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 600;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 6px;
  color: #f87171;
  cursor: default;
  transition: background 0.15s;
}
.cp-btn-kill:hover { background: rgba(220,38,38,0.2); }
.cp-btn-kill:active { transform: scale(0.97); }

/* CP responsive rules consolidated into main responsive section below */

/* Surfaces demo */
.surfaces-demo { padding: 0 40px 40px; }
.surfaces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.surface-card {
  background: #141414;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.surface-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Slack card */
.slack-channel {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.slack-messages {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow: hidden;
}
.slack-msg { display: flex; gap: 8px; }
.slack-avatar {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cursor-avatar {
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text-primary);
}
.slack-content { flex: 1; }
.slack-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.slack-badge {
  font-size: 9px;
  padding: 1px 4px;
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue);
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 500;
}
.slack-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}
.slack-mention {
  color: var(--blue);
  background: rgba(96, 165, 250, 0.1);
  padding: 0 2px;
  border-radius: 3px;
}
.slack-actions { display: flex; gap: 6px; margin-top: 8px; }
.slack-action-btn {
  padding: 4px 10px;
  font-size: 11px;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.slack-action-btn:hover {
  background: #2a2a2a;
  color: var(--text-primary);
}

/* GitHub card */
.github-review { padding: 14px; }
.github-reviewer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.github-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}
.github-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.github-time { font-size: 11px; color: var(--text-muted); }
.github-diff {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 12px;
}
.github-file {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--mono);
}
.diff-line {
  padding: 2px 10px;
  font-size: 11px;
  font-family: var(--mono);
}
.diff-line.removed { background: rgba(248, 113, 113, 0.08); color: var(--red); }
.diff-line.added { background: rgba(74, 222, 128, 0.08); color: var(--green); }
.github-comment {
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.github-comment strong {
  display: block;
  color: var(--orange);
  margin-bottom: 4px;
  font-size: 11px;
}
.github-comment p { color: var(--text-secondary); }
.github-comment code {
  background: #222;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--mono);
}
.github-actions { display: flex; gap: 6px; }
.github-action-btn {
  padding: 4px 10px;
  font-size: 11px;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.github-action-btn:hover {
  background: #2a2a2a;
  color: var(--text-primary);
}

/* ============================
   Testimonials Section
   ============================ */
.testimonials-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.testimonial-card blockquote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.author-role { font-size: 12px; color: var(--text-muted); }

/* ============================
   Frontier Section
   ============================ */
.frontier-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.frontier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.frontier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}
.frontier-card:hover { border-color: var(--border-light); }
.frontier-card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 40px;
  align-items: center;
}
.frontier-heading { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.frontier-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.frontier-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
  margin-bottom: 24px;
}
.frontier-link:hover { color: var(--text-primary); }

/* Model selector */
.model-selector {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.model-dropdown {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.model-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.model-current { display: flex; align-items: center; gap: 6px; }
.model-auto { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.model-badge {
  font-size: 9px;
  padding: 2px 5px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border-radius: 3px;
  font-weight: 500;
}
.model-list { padding: 6px; }
.model-option {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.model-option:hover { background: #1a1a1a; color: var(--text-secondary); }
.model-option.selected { color: var(--text-primary); }
.model-check { color: var(--green); font-size: 11px; }

/* Codebase visual */
.codebase-visual {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.codebase-query {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.query-icon { font-size: 14px; }
.codebase-searching { display: flex; align-items: center; gap: 8px; }
.search-progress {
  flex: 1;
  height: 3px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}
.search-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
  animation: searchPulse 3s ease-in-out infinite;
}
@keyframes searchPulse {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}
.search-label {
  font-size: 11px;
  color: var(--text-muted);
  animation: fadeInOut 3s ease-in-out infinite;
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Enterprise card */
.enterprise-content { flex: 1; }
.enterprise-image { flex: 1; }
.team-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1510, #2a1f15, #1a1510);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 140, 100, 0.15), rgba(60, 40, 20, 0.3));
}

/* ============================
   Changelog Section
   ============================ */
.changelog-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.changelog-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  transition: background var(--transition);
}
.changelog-item:hover { background: var(--bg-card-hover); }
.changelog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.changelog-version {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: #222;
  padding: 2px 8px;
  border-radius: 4px;
}
.changelog-date { font-size: 13px; color: var(--text-muted); }
.changelog-title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.changelog-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.changelog-item:hover .changelog-arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}
.changelog-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.changelog-more:hover { color: var(--text-primary); }
.changelog-more span { transition: transform var(--transition); }
.changelog-more:hover span { transform: translateX(3px); }

/* ============================
   About Section
   ============================ */
.about-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: opacity var(--transition);
}
.about-link:hover { opacity: 0.7; }
.about-link span { transition: transform var(--transition); }
.about-link:hover span { transform: translateX(3px); }
.about-photo {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1a1510, #2a1f15, #1a1510);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 140, 100, 0.12), rgba(60, 40, 20, 0.25));
}

/* ============================
   Blog Section
   ============================ */
.blog-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.blog-tag { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.blog-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.blog-more:hover { color: var(--text-primary); }
.blog-more span { transition: transform var(--transition); }
.blog-more:hover span { transform: translateX(3px); }

/* ============================
   CTA Section
   ============================ */
.cta-section {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(120, 80, 50, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================
   Footer
   ============================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: 0.6;
}
.footer-social {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}
.footer-social:hover {
  color: rgba(255,255,255,0.6);
}
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

/* Footer AI Section */
.footer-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-ai-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
}
.footer-ai-links {
  display: flex;
  gap: 8px;
}
.footer-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-ai-btn:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.footer-ai-btn svg {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-ai-btn:hover svg {
  opacity: 1;
}
.footer-ai-icon {
  filter: grayscale(1) brightness(0.5) invert(1);
  opacity: 0.4;
  transition: filter 0.2s, opacity 0.2s;
}
.footer-ai-btn:hover .footer-ai-icon {
  filter: grayscale(1) brightness(0.6) invert(1);
  opacity: 0.7;
}

/* Footer Bottom / Copyright */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}
.footer-soc2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-soc2:hover { color: rgba(255,255,255,0.6); }
.footer-txt-links {
  display: flex;
  gap: 16px;
}
.footer-txt-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  font-family: var(--mono);
  transition: color 0.2s;
}
.footer-txt-links a:hover {
  color: rgba(255,255,255,0.5);
}

/* Language Switcher */
.footer-lang {
  position: relative;
  display: inline-flex;
}
.footer-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}
.footer-lang-btn:hover { color: rgba(255,255,255,0.6); }
.footer-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 100px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.footer-lang.open .footer-lang-dropdown { display: flex; }
.footer-lang-opt {
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.footer-lang-opt:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.footer-lang-opt.active { color: rgba(255,255,255,0.8); font-weight: 500; }

/* ============================
   Retina / High-DPI
   ============================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo-img { image-rendering: -webkit-optimize-contrast; }
  .footer-logo-img { image-rendering: -webkit-optimize-contrast; }
  .agent-cursor-arrow { filter: drop-shadow(0 0.5px 1px rgba(0,0,0,0.6)); }
}

/* ============================
   Responsive — iPad / Tablet (1024px)
   ============================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr; }
  .mini-chat-panel { display: none; }
  .mini-sidebar { width: 120px; }
  .hero .hero-image .chrome-window { width: 80%; }
  .hero .hero-image .slack-window { width: 80%; }
  .hero .hero-image .linux-desktop { padding: 30px 40px 12px; height: 550px; }
  .feature-section { padding: 30px 20px; }
  .cl-logo { height: 30px; padding: 8px 20px; }
  .cp-layout { min-height: 280px; }
  .saas-page-sidebar { width: 100px; }
  .sp-row { font-size: 10px; }
  .saas-tab { font-size: 9.5px; padding: 5px 10px; }
}

/* ============================
   Responsive — Small Tablet / Large Phone (768px)
   ============================ */
@media (max-width: 768px) {
  /* Nav */
  .navbar { padding: 0 16px; height: 50px; width: 100%; box-sizing: border-box; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .nav-logo-img { height: 18px; }
  .nav-btn { display: none; }
  .nav-right .nav-link { font-size: 13px; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 100px 16px 40px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); }
  .hero-subtitle { font-size: 15px; }
  .hero-content { margin-bottom: 32px; }

  /* VM Screen - keep exact desktop geometry, scale down uniformly as a mini desktop */
  .hero .hero-image {
    --vm-mobile-scale: 1;
    --vm-mobile-height: 726px;
    position: relative;
    width: 100%;
    height: var(--vm-mobile-height);
    overflow: hidden;
  }
  .hero .hero-image .hero-image-glow { display: none; }
  .hero .hero-image .vm-screen {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1100px;
    margin-left: -550px;
    border-radius: 10px;
    transform: scale(var(--vm-mobile-scale));
    transform-origin: top center;
  }
  .hero .hero-image .gnome-panel { height: 26px; font-size: 11.5px; }
  .hero .hero-image .gnome-panel .panel-activities { font-size: 11.5px; padding: 2px 8px; }
  .hero .hero-image .panel-clock { font-size: 11.5px; }
  .hero .hero-image .panel-systray { gap: 8px; }
  .hero .hero-image .panel-systray svg { width: 12px; height: 10px; }
  .hero .hero-image .linux-desktop { padding: 50px 80px 16px; height: 700px; }
  .hero .hero-image .chrome-window { width: 72%; max-width: 700px; top: 50px; height: calc(100% - 110px); }
  .hero .hero-image .slack-window { width: 66%; max-width: 640px; top: 42px; height: calc(100% - 96px); }
  .hero .hero-image .chrome-tabstrip { height: 36px; }
  .hero .hero-image .chrome-tab { height: 30px; font-size: 11px; padding: 0 12px; }
  .hero .hero-image .chrome-toolbar { height: 36px; padding: 0 8px; }
  .hero .hero-image .chrome-address-bar { height: 28px; padding: 4px 12px; }
  .hero .hero-image .chrome-url { font-size: 12px; }
  .hero .hero-image .chrome-bookmarks { display: flex; }
  .hero .hero-image .chrome-nav-btn { width: 24px; height: 24px; }
  .hero .hero-image .chrome-nav-btn svg { width: 12px; height: 12px; }
  .hero .hero-image .google-logo-sm { font-size: 18px; }
  .hero .hero-image .google-search-box { padding: 8px 16px; }
  .hero .hero-image .google-search-text { font-size: 13px; }
  .hero .hero-image .google-tab { font-size: 12px; padding: 8px 12px; }
  .hero .hero-image .google-result .result-title { font-size: 15px; }
  .hero .hero-image .google-result .result-snippet { font-size: 12px; }
  .hero .hero-image .google-result .result-url { font-size: 11px; }
  .hero .hero-image .gnome-dash { padding: 4px 10px; gap: 5px; bottom: 8px; }
  .hero .hero-image .dash-item svg,
  .hero .hero-image .dash-item img { width: 28px !important; height: 28px !important; }
  .hero .hero-image .slack-sidebar { width: 206px; }
  .hero .hero-image .slack-workspace-name { font-size: 15px; }
  .hero .hero-image .slack-nav-item { font-size: 15px; padding: 5px 16px; }
  .hero .hero-image .slack-channel-name { font-size: 14px; }
  .hero .hero-image .slack-msg-body p { font-size: 12px; }
  .hero .hero-image .slack-input { font-size: 12px; min-height: 42px; }

  /* Trusted logos */
  .trusted-section { padding: 50px 16px; }
  .trusted-label { font-size: 10px; margin-bottom: 24px; }
  .logo-grid-row { gap: 4px; }
  .cl-logo { height: 24px; padding: 6px 14px; }

  /* Feature cards */
  .feature-section { padding: 20px 16px; }
  .feature-text { padding: 24px 20px 16px; }
  .feature-desc { font-size: 14px; }
  .feature-heading { font-size: clamp(20px, 5vw, 28px); }
  .feature-demo { padding: 12px 20px 20px; }
  .feature-demo:has(.scaling-grid-demo) { padding: 12px 12px 16px; }

  /* SaaS browser */
  .saas-page-sidebar { width: 90px; }
  .sp-brand { font-size: 10px; }
  .sp-nav { font-size: 9.5px; padding: 3px 10px; }
  .saas-tab { font-size: 9px; padding: 5px 8px; }
  .sp-row { font-size: 9.5px; }
  .sp-c3, .sp-c4 { display: none; }
  .sp-header { font-size: 12px; }
  .saas-addressbar { padding: 4px 10px; }
  .saas-url { font-size: 9px; }
  .sh-search-wrap { flex-wrap: wrap; }
  .sh-search-count { order: 2; }
  .sh-search-input { min-height: 22px; font-size: 9.5px; }

  /* SDK code block */
  .sdk-code-body { padding: 12px 14px; }
  .sdk-code-body pre { font-size: 10.5px; line-height: 1.6; }

  /* Control panel */
  .cp-layout { flex-direction: column; min-height: auto; }
  .cp-log { border-right: none; border-bottom: 1px solid #2a2a2a; }
  .cp-entry { font-size: 10.5px; padding: 4px 12px; }
  .cp-time { font-size: 9px; min-width: 44px; }
  .cp-controls { flex-direction: row; flex-wrap: wrap; }
  .cp-control-section { flex: 1; min-width: 140px; }
  .cp-actions-section { flex-basis: 100%; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-card { padding: 20px; }
  .blog-title { font-size: 15px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); margin-bottom: 32px; }

  /* Footer */
  .footer { padding: 40px 16px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-left { gap: 12px; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
  .footer-col { min-width: 100px; }
  .footer-ai { flex-wrap: wrap; gap: 8px; }
  .footer-ai-btn { padding: 5px 10px; font-size: 11px; }
  .footer-ai-label { font-size: 11px; }
}

/* ============================
   Responsive — Mobile (480px)
   ============================ */
@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 90px 14px 30px; }
  .hero-title { font-size: clamp(22px, 8vw, 30px); }
  .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
  .btn { font-size: 13px; padding: 10px 20px; }

  /* VM mini desktop remains same scale model */
  .hero .hero-image .vm-screen { border-radius: 10px; }

  /* SaaS browser */
  .saas-page-sidebar { display: block; }
  .saas-tab:nth-child(n+4) { display: flex; }
  .saas-pages { min-height: 220px; }
  .sp-header { font-size: 11px; }
  .sp-row { font-size: 9px; padding: 5px 8px; }
  .sp-badge { font-size: 8px; padding: 1px 4px; }
  .sh-search-wrap { flex-direction: column; align-items: stretch; gap: 6px; }
  .sh-search-count { align-self: flex-start; font-size: 8px; }
  .sh-search-input { min-height: 21px; font-size: 9px; }

  /* Logos */
  .logo-grid-row { flex-wrap: wrap; justify-content: center; }
  .cl-logo { height: 20px; padding: 5px 10px; }

  /* Features */
  .feature-text { padding: 20px 16px 12px; }
  .feature-demo { padding: 10px 16px 16px; }
  .feature-heading { font-size: 20px; }
  .feature-desc { font-size: 13px; }
  .scaling-counter { font-size: 20px; }
  .scaling-label { font-size: 10px; }
  .scaling-vm-grid { height: 120px; }
  .mini-bar { display: none; }

  /* SDK code */
  .sdk-code-body { padding: 10px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sdk-code-body pre { font-size: 9.5px; line-height: 1.5; }

  /* Control panel */
  .cp-log-header { padding: 8px 10px; }
  .cp-entry { padding: 3px 10px; font-size: 10px; gap: 6px; }
  .cp-time { min-width: 38px; font-size: 8px; }
  .cp-status.approval { font-size: 8px; padding: 1px 4px; }
  .cp-toggle-row { font-size: 10px; }
  .cp-toggle { width: 26px; height: 14px; }
  .cp-toggle-knob { width: 10px; height: 10px; }
  .cp-toggle.on .cp-toggle-knob { left: 14px; }
  .cp-cred-name { font-size: 10px; }

  /* Blog */
  .blog-card { padding: 16px; }
  .blog-title { font-size: 14px; }
  .blog-excerpt { font-size: 12px; }
  .blog-tag { font-size: 10px; }

  /* Footer */
  .footer { padding: 32px 14px; }
  .footer-links { gap: 16px; }
  .footer-col a { font-size: 11px; }
  .footer-col h4 { font-size: 11px; }
  .footer-ai-links { flex-direction: column; gap: 6px; }
  .footer-ai-btn { font-size: 11px; padding: 5px 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 0 0; }
  .footer-txt-links { gap: 10px; }
}

/* ============================
   Responsive — Very small (360px)
   ============================ */
@media (max-width: 360px) {
  .hero-title { font-size: 20px; }
  .hero-subtitle { font-size: 13px; }
  .hero .hero-image .vm-screen { border-radius: 10px; }
  .feature-heading { font-size: 18px; }
  .feature-desc { font-size: 12px; }
  .cl-logo { height: 16px; padding: 4px 8px; }
  .cp-controls { display: none; }
  .saas-tab:nth-child(n+3) { display: flex; }
  .sp-row { font-size: 8px; }
  .sdk-code-body pre { font-size: 8.5px; }
  .scaling-vm-grid { height: 100px; }
  .scaling-counter { font-size: 18px; }
}

/* ============================
   Custom Scrollbar
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================
   Selection
   ============================ */
::selection { background: rgba(96, 165, 250, 0.25); color: #fff; }
