/* MarkItDown Web Studio — Design Language & Tokens
   Faithfully inspired by WPS PDF & Modern Productivity Suites
   Zero Inline Styles Architecture • Cosmic Obsidian Dark Mode & Executive Light Mode
*/

/* 1. Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* 2. Color System & Design Tokens */
:root {
  /* Surfaces & Backgrounds (Light Mode: Airy Sky & Executive White) */
  --bg-body: #EDF6FF;
  --bg-hero: #EDF6FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-card-elevated: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.94);
  --bg-sunken: #F2F3FF;
  --bg-canvas: #EDF6FF;
  --bg-input: #FFFFFF;
  --bg-badge: rgba(89, 72, 243, 0.08);

  /* Borders & Dividers */
  --border-color: #E2E8F0;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-accent: rgba(89, 72, 243, 0.4);
  --border-highlight: transparent;

  /* Typography */
  --text-heading: #0F172A;
  --text-primary: #131B2E;
  --text-secondary: #475569;
  --text-muted: #475569;
  --text-link: #5948F3;

  /* Brand Colors (Royal Indigo #5948F3 & Electric Blue) */
  --primary: #5948F3;
  --primary-hover: #4736E0;
  --primary-active: #3F26DB;
  --primary-light: #F5F3FF;
  --primary-container: #5948F3;
  --primary-gradient: linear-gradient(135deg, #5948F3 0%, #7C3AED 100%);
  --on-primary: #FFFFFF;
  --accent-cyan: #0284C7;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --primary-glow: rgba(89, 72, 243, 0.25);

  /* Dot Grid & Shadows */
  --dot-grid-color: rgba(89, 72, 243, 0.08);
  --dot-grid-size: 20px 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-workbench: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 12px 24px -4px rgba(89, 72, 243, 0.06);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Surfaces & Backgrounds (Dark Mode: Carbon Obsidian & Deep Onyx) */
  --bg-body: #09090B;
  --bg-hero: #0D0D10;
  --bg-card: #121215;
  --bg-card-hover: #18181D;
  --bg-card-elevated: #1C1C22;
  --bg-header: rgba(9, 9, 11, 0.88);
  --bg-sunken: #0E0E11;
  --bg-canvas: #09090B;
  --bg-input: #0E0E11;
  --bg-badge: rgba(112, 100, 255, 0.12);

  /* Borders & Dividers */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(112, 100, 255, 0.45);
  --border-highlight: transparent;

  /* Typography */
  --text-heading: #F8FAFC;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-link: #8B7DFF;

  /* Brand Colors (Luminous Indigo & Cyan) */
  --primary: #7064FF;
  --primary-hover: #857AFF;
  --primary-active: #5E50F5;
  --primary-light: rgba(112, 100, 255, 0.14);
  --primary-container: #7064FF;
  --primary-gradient: linear-gradient(135deg, #7064FF 0%, #9064FF 100%);
  --on-primary: #FFFFFF;
  --accent-cyan: #38BDF8;
  --accent-emerald: #34D399;
  --accent-amber: #FBBF24;
  --primary-glow: rgba(112, 100, 255, 0.25);

  /* Dot Grid & Shadows */
  --dot-grid-color: rgba(255, 255, 255, 0.04);
  --dot-grid-size: 24px 24px;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-workbench: 0 12px 40px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* 3. Base Typography & Structure */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

code, pre, kbd, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.text-hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* 4. Top App Bar Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--bg-sunken);
  color: var(--primary);
  border-color: var(--primary);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: transform 0.2s ease;
}

.brand-group:hover .brand-icon-box {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
}

.brand-pro-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .brand-pro-pill {
  background: rgba(112, 100, 255, 0.2);
  color: var(--accent-cyan);
  border-color: rgba(112, 100, 255, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 4px 0;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link:hover {
  color: var(--primary);
}

.header-nav-link.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

/* Hover bridge to prevent menu from disappearing during pointer transit */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
  display: flex;
}

[data-theme="dark"] .dropdown-menu {
  background: var(--bg-card-elevated);
  border-color: var(--border-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--bg-sunken);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-api-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.header-api-link:hover {
  color: var(--primary);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  background: var(--bg-sunken);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
  color: var(--accent-cyan);
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* 4.1 Mobile Navigation Drawer & Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-in-out;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 82vw;
  background: var(--bg-card);
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  overflow-y: auto;
}

.mobile-drawer.show {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--bg-card);
  color: var(--primary);
  border-color: var(--primary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--bg-sunken);
  color: var(--primary);
  font-weight: 600;
}

.drawer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0 8px;
}

.drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 14px;
  display: block;
}

.drawer-sublink {
  font-size: 12.5px;
  padding: 7px 14px;
}

.drawer-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.drawer-footer-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.drawer-footer-val {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* 4.2 Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-radius: 10px;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.bottom-nav-item:hover {
  color: var(--primary);
}

/* Prevent body scroll when drawer open */
body.drawer-open {
  overflow: hidden;
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--primary-active);
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-sunken);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-sunken);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-header-cta {
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.btn-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

/* Invisible bridge so mouse hover is never broken across the gap */
.btn-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.btn-dropdown-wrap.open .btn-dropdown-menu,
.btn-dropdown-wrap:hover .btn-dropdown-menu {
  display: flex;
}

[data-theme="dark"] .btn-dropdown-menu {
  background: var(--bg-card-elevated);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-dropdown-item:hover {
  background: var(--bg-sunken);
  color: var(--primary);
}

[data-theme="dark"] .btn-dropdown-item:hover {
  background: var(--bg-sunken);
  color: var(--primary);
}

/* 6. Hero Section */
.hero-section {
  padding: 64px 24px 44px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.custom-dot-grid {
  background-image: radial-gradient(var(--dot-grid-color) 1.2px, transparent 1.2px);
  background-size: var(--dot-grid-size);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, #0C0D11 0%, #09090B 100%);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.engine-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.engine-pill-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 680px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.trust-icon {
  color: var(--primary);
}

.trust-bold {
  font-weight: 600;
  color: var(--text-heading);
}

.trust-muted {
  color: var(--text-muted);
}

.trust-bullet {
  color: var(--border-strong);
}

/* 7. Split Interactive Workbench */
.workbench-section {
  max-width: 1280px;
  margin: -24px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.workbench-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-workbench);
  overflow: hidden;
}

.workspace-progress-bar {
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.workspace-progress-bar.active {
  width: 100%;
  animation: progressPulse 1.2s infinite ease-in-out;
}

@keyframes progressPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 0.9s linear infinite;
}

.workbench-master-header {
  background: var(--bg-card);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workbench-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sunken);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.file-chip-icon {
  color: #DC2626;
}

.file-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
}

.file-chip-size {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-status-emerald {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .badge-status-emerald {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.workbench-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.workbench-tool-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workbench-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Split Workbench 2-Column Grid */
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 540px;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left Column: Source & Dropzone */
.workbench-col-source {
  padding: 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .workbench-col-source {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.source-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.source-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}

.source-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.source-mode-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-sunken);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.mode-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.mode-tab-btn svg {
  flex-shrink: 0;
}

.mode-tab-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dropzone-box {
  border: 2px dashed rgba(89, 72, 243, 0.4);
  background: var(--bg-sunken);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-box:hover, .dropzone-box.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .dropzone-box {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .dropzone-box:hover,
[data-theme="dark"] .dropzone-box.drag-over {
  border-color: var(--primary);
  background: rgba(112, 100, 255, 0.08);
}

.dropzone-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.dropzone-box:hover .dropzone-icon-badge {
  transform: scale(1.08);
}

.dropzone-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.dropzone-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.dropzone-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dropzone-cta {
  margin-bottom: 0;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

.dropzone-paste-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropzone-paste-hint:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.paste-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kbd-key {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-heading);
}

.url-input-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.url-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.url-input-group .text-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.url-input-group .text-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

.url-input-group .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 18px;
  font-size: 13.5px;
  gap: 6px;
  border-radius: 9px;
}

.url-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.url-quick-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-url-example {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-url-example:hover {
  background: var(--bg-sunken);
  color: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .btn-url-example {
  background: var(--bg-card-elevated);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-url-example:hover {
  background: var(--bg-sunken);
  color: var(--primary);
  border-color: var(--primary);
}

/* Format Chips */
.format-chips-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.format-chips-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.format-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
  transition: border-color var(--transition-fast);
}

.format-chip:hover {
  border-color: var(--primary);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-blue { background: #3B82F6; }
.dot-emerald { background: #10B981; }
.dot-amber { background: #F59E0B; }
.dot-purple { background: #8B5CF6; }
.dot-indigo { background: #6366F1; }
.dot-teal { background: #14B8A6; }
.dot-slate { background: #64748B; }

/* Right Column: Editor & Preview */
.workbench-col-editor {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.editor-header-bar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.view-segmented-wrap {
  display: flex;
  background: var(--bg-sunken);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.view-segment-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.view-segment-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.telemetry-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.telemetry-pill {
  font-weight: 500;
  white-space: nowrap;
}

.telemetry-sep {
  color: var(--border-strong);
}

.editor-pane-body, .preview-pane-body {
  padding: 24px;
  height: 480px;
  overflow-y: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.code-editor {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-heading);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.preview-rendered {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.preview-rendered h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-rendered h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 24px 0 12px;
}

.preview-rendered p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.preview-rendered blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 16px;
  margin: 16px 0;
  background: var(--bg-sunken);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

.preview-rendered table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.preview-rendered th, .preview-rendered td {
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  text-align: left;
}

.preview-rendered th {
  background: var(--bg-sunken);
  font-weight: 600;
  color: var(--text-heading);
}

.preview-rendered pre {
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
}

.preview-rendered code {
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.preview-rendered pre code {
  padding: 0;
  background: transparent;
}

.code-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.code-scroll::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 4px;
}

/* 8. Executive Tools Directory Section */
.tools-directory-section {
  padding: 80px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-sunken);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 6px;
}

.section-count-badge {
  font-size: 13px;
  color: var(--text-muted);
}

.executive-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .executive-tools-grid {
    grid-template-columns: 1fr;
  }
}

.exec-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.exec-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(89, 72, 243, 0.08);
}

[data-theme="dark"] .exec-tool-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 100, 255, 0.15);
}

.tool-squircle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.exec-tool-card:hover .tool-squircle {
  transform: scale(1.06);
}

/* Squircle Colors (Pastel in Light, Luminous in Dark) */
.bg-pastel-red { background: #FEE2E2; }
.text-red { color: #DC2626; }

.bg-pastel-blue { background: #DBEAFE; }
.text-blue { color: #2563EB; }

.bg-pastel-emerald { background: #D1FAE5; }
.text-emerald { color: #059669; }

.bg-pastel-amber { background: #FFEDD5; }
.text-amber { color: #D97706; }

.bg-pastel-purple { background: #EDE9FE; }
.text-purple { color: #7C3AED; }

.bg-pastel-teal { background: #CCFBF1; }
.text-teal { color: #0D9488; }

.bg-pastel-indigo { background: #E0E7FF; }
.text-indigo { color: #4F46E5; }

.bg-pastel-violet { background: #EDE9FE; }
.text-violet { color: #7C3AED; }

.bg-pastel-rose { background: #FFE4E6; }
.text-rose { color: #E11D48; }

[data-theme="dark"] .bg-pastel-red { background: rgba(220, 38, 38, 0.18); }
[data-theme="dark"] .bg-pastel-blue { background: rgba(37, 99, 235, 0.18); }
[data-theme="dark"] .bg-pastel-emerald { background: rgba(5, 150, 105, 0.18); }
[data-theme="dark"] .bg-pastel-amber { background: rgba(217, 119, 6, 0.18); }
[data-theme="dark"] .bg-pastel-purple { background: rgba(124, 58, 237, 0.18); }
[data-theme="dark"] .bg-pastel-teal { background: rgba(13, 148, 136, 0.18); }
[data-theme="dark"] .bg-pastel-indigo { background: rgba(79, 70, 229, 0.18); }
[data-theme="dark"] .bg-pastel-violet { background: rgba(124, 58, 237, 0.18); }
[data-theme="dark"] .bg-pastel-rose { background: rgba(225, 29, 72, 0.18); }

.exec-tool-body {
  flex: 1;
  min-width: 0;
}

.exec-tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.exec-tool-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-heading);
  transition: color var(--transition-fast);
}

.exec-tool-card:hover .exec-tool-title {
  color: var(--primary);
}

.tool-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.exec-tool-card:hover .tool-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

.exec-tool-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.exec-tool-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.exec-tool-card:hover .exec-tool-cta {
  text-decoration: underline;
}

/* 9. Features & Value Pillars Section */
.pillars-section {
  padding: 80px 24px;
  background: var(--bg-body);
  border-top: 1px solid var(--border-subtle);
}

.pillars-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-sunken);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* 10. Developer CTA & Python SDK Strip */
.dev-tools-section {
  padding: 64px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.dev-banner-card {
  background: #0F172A;
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .dev-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1024px) {
  .dev-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

.dev-sdk-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  display: inline-block;
  margin-bottom: 14px;
}

.dev-banner-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.dev-banner-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 540px;
}

.dev-banner-code-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-code-text {
  font-size: 14px;
  font-weight: 600;
  color: #C5C0FF;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 11. Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .footer-directory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.footer-dir-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.footer-dir-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-dir-list a {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-dir-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-content-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-content-row {
    flex-direction: row;
  }
}

.footer-brand-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-mini-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-title {
  font-weight: 700;
  color: var(--text-heading);
}

.footer-dot-sep {
  color: var(--text-muted);
}

.footer-copyright {
  color: var(--text-muted);
}

.footer-links-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-link-item {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 12. Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-heading);
  color: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* 13. Utility classes for dedicated tool pages */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge-red { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.badge-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.badge-emerald { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-orange { background: rgba(249, 115, 22, 0.1); color: #F97316; }
.badge-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.badge-indigo { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.badge-teal { background: rgba(20, 184, 166, 0.1); color: #14B8A6; }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.badge-violet { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.badge-rose { background: rgba(244, 63, 94, 0.1); color: #F43F5E; }

/* 14. Internal Tool Pages (Executive Studio Architecture) */
.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-text-col {
  flex: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

.hero-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

[data-theme="dark"] .hero-privacy-note {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

.hero-privacy-note svg {
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .hero-privacy-note svg {
  color: var(--accent-cyan);
}

/* Studio Workspace Shell */
.studio-card {
  max-width: 1200px;
  margin: 32px auto 64px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-workbench);
  overflow: hidden;
}

.workspace-toolbar {
  background: var(--bg-card);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Executive Tool Action Buttons in Workspaces & Toolbars */
.btn-tool-action,
.toolbar-actions-group button:not(.btn-primary),
.toolbar-left .btn-ghost,
.workbench-tool-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(18, 19, 23, 0.03);
}

.btn-tool-action svg,
.toolbar-actions-group button:not(.btn-primary) svg,
.toolbar-left .btn-ghost svg,
.workbench-tool-actions .btn svg {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-tool-action:hover,
.toolbar-actions-group button:not(.btn-primary):hover,
.toolbar-left .btn-ghost:hover,
.workbench-tool-actions .btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(89, 72, 243, 0.12);
}

.btn-tool-action:hover svg,
.toolbar-actions-group button:not(.btn-primary):hover svg,
.toolbar-left .btn-ghost:hover svg,
.workbench-tool-actions .btn:hover svg {
  transform: scale(1.1);
}

.btn-tool-action:active,
.toolbar-actions-group button:not(.btn-primary):active,
.toolbar-left .btn-ghost:active,
.workbench-tool-actions .btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.toolbar-right #btn-copy {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  box-shadow: 0 1px 2px rgba(18, 19, 23, 0.03);
}

.toolbar-right #btn-copy:hover {
  background: var(--bg-sunken);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .btn-tool-action,
[data-theme="dark"] .toolbar-actions-group button:not(.btn-primary),
[data-theme="dark"] .toolbar-left .btn-ghost,
[data-theme="dark"] .workbench-tool-actions .btn {
  background: var(--bg-sunken);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-tool-action svg,
[data-theme="dark"] .toolbar-actions-group button:not(.btn-primary) svg,
[data-theme="dark"] .toolbar-left .btn-ghost svg,
[data-theme="dark"] .workbench-tool-actions .btn svg {
  color: var(--primary);
}

[data-theme="dark"] .btn-tool-action:hover,
[data-theme="dark"] .toolbar-actions-group button:not(.btn-primary):hover,
[data-theme="dark"] .toolbar-left .btn-ghost:hover,
[data-theme="dark"] .workbench-tool-actions .btn:hover {
  background: rgba(112, 100, 255, 0.2);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(112, 100, 255, 0.25);
}

[data-theme="dark"] .toolbar-right #btn-copy {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.segmented-control {
  display: flex;
  background: var(--bg-sunken);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.segmented-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segmented-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Workspace Panes */
.workspace-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .workspace-panes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.pane:first-child {
  border-right: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.pane-header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pane .code-editor {
  width: 100%;
  flex: 1;
  min-height: 420px;
  padding: 20px;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-heading);
}

.pane .preview-rendered {
  padding: 20px;
  flex: 1;
  min-height: 420px;
  overflow-y: auto;
}

/* Dropzone Empty State inside Tool Panes */
.dropzone-empty-state {
  flex: 1;
  min-height: 400px;
  padding: 48px 24px;
  margin: 16px;
  border: 2px dashed rgba(89, 72, 243, 0.35);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-sunken);
  transition: all var(--transition-fast);
}

.dropzone-empty-state:hover, .dropzone-empty-state.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-sunken);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropzone-empty-state:hover .dropzone-empty-icon {
  transform: scale(1.08);
  background: var(--bg-card);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.dropzone-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.dropzone-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.dropzone-formats-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Workspace Status Bar & File Telemetry Counter */
.workspace-status-bar {
  background: var(--bg-sunken);
  padding: 10px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.status-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#status-filename:empty {
  display: none;
}

#status-filename:not(:empty) {
  font-weight: 600;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.file-chip #status-filename {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

#stat-words,
#stat-chars,
#stat-lines {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.status-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-state-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

[data-theme="dark"] .status-state-pill {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] #stat-words,
[data-theme="dark"] #stat-chars,
[data-theme="dark"] #stat-lines {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Reading Column (Educational Articles & Guide) */
.reading-column {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.reading-column h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 40px 0 14px;
  letter-spacing: -0.015em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.reading-column h2:first-of-type {
  margin-top: 0;
}

.reading-column p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.reading-column ol, .reading-column ul {
  margin: 16px 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.reading-column li {
  margin-bottom: 10px;
  font-size: 15px;
}

.reading-column li strong {
  color: var(--text-heading);
}

/* FAQ Accordion Component */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▾";
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   15. Stitch Design System — Full Responsive Architecture
   ========================================================================== */

/* Global container & overflow protection */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-wrapper, .main-canvas {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tablet & Intermediate Viewports (<= 1024px) */
@media (max-width: 1024px) {
  .header-container {
    padding: 12px 24px;
  }

  .workbench-section {
    margin: 0 auto 56px;
    padding: 0 20px;
  }

  .workbench-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .workbench-col-source {
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .pillars-section {
    padding: 64px 20px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dev-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
  }

  .workspace-panes {
    grid-template-columns: 1fr;
  }

  .pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* Mobile Navigation Collapse & Drawer Mode (<= 900px) */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-api-link {
    display: none;
  }

  .header-container {
    padding: 10px 18px;
  }
}

/* Smartphone & Compact Touch Viewports (<= 768px) */
@media (max-width: 768px) {
  /* Top App Bar */
  .site-header {
    height: 56px;
  }

  .header-container {
    height: 100%;
    padding: 8px 14px;
    gap: 10px;
  }

  .brand-group {
    gap: 8px;
  }

  .brand-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .brand-title {
    font-size: 15.5px;
    letter-spacing: -0.01em;
  }

  .brand-pro-pill {
    font-size: 9px;
    padding: 1.5px 6px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .btn-header-cta {
    padding: 7px 12px;
    font-size: 12.5px;
    border-radius: 8px;
    gap: 5px;
  }

  /* Fixed Bottom Navigation Bar (Stitch Reference) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 900;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }

  /* Footer safe area clearance above bottom nav */
  .site-footer {
    padding: 24px 0 84px;
  }

  .footer-container {
    padding: 0 16px;
  }

  .footer-content-row {
    text-align: center;
    gap: 14px;
  }

  .footer-brand-wrap {
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }

  .footer-dot-sep {
    display: none;
  }

  .footer-links-cluster {
    justify-content: center;
    gap: 10px 14px;
    font-size: 12px;
  }

  /* Hero Section */
  .hero-section {
    padding: 34px 14px 22px;
  }

  .engine-pill-badge {
    padding: 4px 12px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .engine-pill-text {
    font-size: 11px;
  }

  .hero-headline {
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto 16px;
  }

  .hero-trust-row {
    gap: 6px;
    padding-top: 2px;
    border-top: none;
    justify-content: center;
  }

  .trust-bullet {
    display: none;
  }

  .trust-item {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 11px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    gap: 5px;
  }

  /* Split Interactive Workbench */
  .workbench-section {
    margin: 0 auto 36px;
    padding: 0 12px;
  }

  .workbench-card {
    border-radius: 16px;
  }

  .workbench-master-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .workbench-header-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .file-chip {
    padding: 4px 10px;
    font-size: 11.5px;
    max-width: 65%;
  }

  .file-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
  }

  .file-chip-size {
    font-size: 10.5px;
  }

  .badge-status-emerald {
    padding: 3px 8px;
    font-size: 10.5px;
    flex-shrink: 0;
  }

  .workbench-header-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .workbench-tool-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .workbench-tool-actions .btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 11.5px;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
  }

  .workbench-tool-actions .btn svg {
    width: 13px;
    height: 13px;
  }

  .workbench-primary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .workbench-primary-actions #btn-copy {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 9px;
  }

  .workbench-primary-actions .btn-dropdown-wrap {
    flex: 1;
    width: 100%;
  }

  .workbench-primary-actions #btn-download-md {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 9px;
  }

  /* Dropzone & Ingestion Column */
  .workbench-col-source {
    padding: 16px 14px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .source-header-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .source-title {
    font-size: 15px;
    white-space: nowrap;
  }

  .source-subtitle {
    font-size: 11px;
    white-space: nowrap;
  }

  .source-mode-switcher {
    gap: 3px;
    padding: 3px;
    margin-bottom: 12px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mode-tab-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 4px;
    font-size: 11px;
    gap: 3px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .mode-tab-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mode-tab-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .dropzone-box {
    padding: 22px 14px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dropzone-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .dropzone-icon-badge svg {
    width: 28px;
    height: 28px;
  }

  .dropzone-title {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .dropzone-subtitle {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .dropzone-actions-wrap {
    width: 100%;
    max-width: 260px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropzone-cta {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    justify-content: center;
  }

  .dropzone-paste-hint {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 7px 10px;
    flex-wrap: wrap;
    text-align: center;
    box-sizing: border-box;
  }

  .url-input-box {
    padding: 14px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .url-input-group {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .url-input-group .btn {
    width: 100%;
    justify-content: center;
  }

  .format-chips-section {
    margin-top: 14px;
    padding-top: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .format-chips-label {
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .format-chips-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  .format-chips-grid::-webkit-scrollbar {
    display: none;
  }

  .format-chip {
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Editor & Output Column */
  .workbench-col-editor {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .editor-header-bar {
    padding: 10px 12px;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .view-segmented-wrap {
    padding: 2px;
    border-radius: 8px;
    min-width: 0;
    display: flex;
  }

  .view-segment-btn {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .telemetry-cluster {
    font-size: 11px;
    gap: 5px;
    flex-wrap: wrap;
  }

  .editor-pane-body, .preview-pane-body {
    padding: 14px;
    height: 320px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .code-editor {
    font-size: 12px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Executive Tools Directory (WPS PDF Mobile style) */
  .tools-directory-section {
    padding: 40px 12px;
  }

  .section-header-row {
    margin-bottom: 18px;
    gap: 8px;
  }

  .category-pill {
    padding: 4px 10px;
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 21px;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 13px;
    margin-top: 4px;
  }

  .section-count-badge {
    font-size: 11.5px;
  }

  .executive-tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exec-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
  }

  .tool-squircle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
  }

  .tool-squircle svg {
    width: 20px;
    height: 20px;
  }

  .exec-tool-body {
    min-width: 0;
    flex: 1;
  }

  .exec-tool-title-row {
    margin-bottom: 2px;
  }

  .exec-tool-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
  }

  .tool-arrow {
    display: none;
  }

  .exec-tool-desc {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .exec-tool-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 6px;
  }

  /* Pillars Section */
  .pillars-section {
    padding: 40px 12px;
  }

  .pillars-header {
    margin-bottom: 22px;
  }

  .pillars-grid {
    gap: 12px;
  }

  .pillar-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .pillar-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .pillar-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .pillar-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .pillar-desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .pillar-badge {
    padding-top: 12px;
    font-size: 12px;
  }

  /* Developer SDK Section */
  .dev-tools-section {
    padding: 32px 12px;
  }

  .dev-banner-card {
    padding: 20px 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .dev-banner-title {
    font-size: 19px;
    line-height: 1.25;
  }

  .dev-banner-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .dev-banner-code-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .dev-code-text {
    font-size: 12px;
  }

  /* Internal Tool Pages */
  .hero-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 13.5px;
  }

  .hero-privacy-note {
    font-size: 11.5px;
    padding: 6px 12px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .studio-card {
    margin: 16px auto 36px;
    border-radius: 14px;
  }

  .workspace-toolbar {
    padding: 10px 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-actions-group {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-actions-group .btn-ghost {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    justify-content: center;
  }

  .pane .code-editor, .pane .preview-rendered {
    min-height: 280px;
    padding: 14px;
  }
}

/* Extra Small Screens (<= 480px) */
@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px;
  }

  .brand-title {
    font-size: 14.5px;
  }

  .btn-header-cta span {
    display: none;
  }

  .btn-action-label {
    display: none;
  }

  .source-header-row {
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .source-title {
    font-size: 14.5px;
    white-space: nowrap;
  }

  .source-subtitle {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .mode-tab-btn {
    padding: 6px 3px;
    font-size: 10.5px;
    gap: 3px;
  }

  .mode-tab-btn svg {
    width: 12px;
    height: 12px;
  }

  .editor-header-bar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .view-segment-btn {
    padding: 4px 7px;
    font-size: 10.5px;
  }

  .telemetry-cluster {
    width: 100%;
    justify-content: flex-end;
    font-size: 10.5px;
    gap: 4px;
  }

  .telemetry-pill#stat-chars,
  .telemetry-pill:first-child,
  .telemetry-sep:first-of-type,
  .telemetry-sep:nth-of-type(2) {
    display: none;
  }
}

/* Dark Mode Theme Tokens for Mobile Drawer & Bottom Navigation */
[data-theme="dark"] .mobile-drawer {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mobile-bottom-nav {
  background: var(--bg-header);
  border-top-color: var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------------------
   SEO & Content Quality Components (GEMINI.md Compliant)
--------------------------------------------------------------------------- */

/* Dedicated tool page hero spacing - avoids cramped navbar & giant gap */
.container .hero-section {
  padding: 32px 0 20px 0;
  border-bottom: none;
  background: transparent;
}

.seo-breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 5px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: fit-content;
}

.seo-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.seo-breadcrumbs a:hover {
  color: var(--primary);
}

.seo-breadcrumb-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.seo-breadcrumbs a:hover .seo-breadcrumb-icon {
  color: var(--primary);
}

.seo-breadcrumb-chevron {
  color: var(--border-strong);
  flex-shrink: 0;
  opacity: 0.65;
}

.seo-breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .container .hero-section {
    padding: 22px 0 16px 0;
  }
  .seo-breadcrumbs {
    font-size: 11.5px;
    padding: 4px 10px;
    gap: 5px;
    margin-bottom: 12px;
  }
}

.seo-content-article {
  max-width: 1200px !important;
  margin: 48px auto 80px auto;
  padding: 0;
  color: var(--text-primary);
  width: 100%;
}

.seo-content-article h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 48px 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-content-article h2:first-of-type {
  margin-top: 0;
}

.seo-content-article p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.seo-lead-answer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 40px 0;
  box-shadow: 0 2px 10px rgba(18, 19, 23, 0.03);
}

.seo-lead-answer p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

/* 3-Column Executive Step Workflow Cards */
.seo-steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: seo-counter;
  padding: 0;
  margin: 20px 0 44px 0;
}

.seo-steps-list li {
  position: relative;
  counter-increment: seo-counter;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(18, 19, 23, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.seo-steps-list li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 24px rgba(20, 31, 69, 0.06);
}

.seo-steps-list li::before {
  content: "0" counter(seo-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.seo-steps-list strong {
  color: var(--text-heading);
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* 2-Column Executive Architecture & Benefits Cards */
.seo-content-article > ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 20px 0 36px 0;
}

.seo-content-article > ul > li {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 2px 6px rgba(18, 19, 23, 0.02);
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.seo-content-article > ul > li:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.seo-content-article > ul > li strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

/* Executive Comparison Table */
.seo-comparison-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 44px 0;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(18, 19, 23, 0.03);
}

.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.seo-comparison-table th {
  background: var(--bg-sunken);
  color: var(--text-heading);
  font-weight: 700;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.seo-comparison-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.seo-comparison-table tr:last-child td {
  border-bottom: none;
}

.seo-comparison-table tr:hover td {
  background: var(--bg-hero);
}

.seo-col-highlight {
  background: var(--bg-badge);
  color: var(--primary) !important;
  font-weight: 600;
}

/* Developer API Snippet Box */
.seo-code-box {
  background: #0E0E11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0 36px 0;
  overflow-x: auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13.5px;
  line-height: 1.6;
  color: #F8FAFC;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.seo-code-box code {
  color: inherit;
  background: transparent;
  padding: 0;
}

/* 2-Column FAQ Grid */
.seo-content-article .faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 44px 0;
  align-items: start;
}

.seo-content-article .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(18, 19, 23, 0.02);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.seo-content-article .faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(89, 72, 243, 0.08);
}

/* Cluster Tools Cross-Links */
.seo-cluster-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.seo-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.seo-cluster-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(18, 19, 23, 0.02);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.seo-cluster-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgba(20, 31, 69, 0.06);
}

.seo-cluster-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.seo-cluster-info {
  flex: 1;
  min-width: 0;
}

.seo-cluster-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.seo-cluster-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 992px) {
  .seo-steps-list {
    grid-template-columns: 1fr;
  }
  .seo-content-article > ul {
    grid-template-columns: 1fr;
  }
  .seo-content-article .faq-container {
    grid-template-columns: 1fr;
  }
  .seo-cluster-grid {
    grid-template-columns: 1fr;
  }
}

