@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Bebas+Neue&family=Orbitron:wght@600;800;900&family=Silkscreen:wght@700&family=Space+Mono:wght@700&family=Syne:wght@700;800&display=swap');

/* ==========================================================================
   VelaCraft - Modern Precision Hardware Studio & Watchface Engine
   Pure Static Web App | Designed for Xiaomi Smart Band & Vela OS
   Crafted with Editorial Precision & Horizon Grid Aesthetics
   ========================================================================== */

:root {
  --bg-deep: #090a0d;
  --bg-subtle: #0e1015;
  --surface: #13161f;
  --surface-hover: #181d28;
  --surface-active: #1f2534;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(59, 130, 246, 0.6);
  --border-glow: rgba(59, 130, 246, 0.25);
  --border-shine: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-disabled: #334155;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --accent-glow: 0 0 24px rgba(59, 130, 246, 0.4);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-chill: "ChillDIN", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: "ChillDIN";
  src: url("../fonts/ChillDINVF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Navigation Bar (Linear Style)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  height: 54px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.brand span {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(37, 99, 235, 0.35);
}

.device-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.device-badge:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.device-badge select {
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.device-badge select option {
  background: var(--surface);
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

/* ==========================================================================
   Main 3-Panel Layout & Studio Section
   ========================================================================== */
.studio-section {
  padding: 64px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.studio-section .section-header {
  margin-top: 16px;
  margin-bottom: 36px;
}

.workspace {
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  height: 840px;
  width: 100%;
  max-width: 1240px;
  background: var(--bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 32px 80px -12px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Common Panel Header */
.panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.panel:last-child {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-header {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 21, 31, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.015em;
}

.panel-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.panel-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.06em;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom Scrollbar */
.panel-body::-webkit-scrollbar {
  width: 5px;
}
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
.panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Left Panel: Sketch Workshop
   ========================================================================== */
.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--surface-active);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Preset Template Selector List in Left Panel */
.preset-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-card-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-align: left;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preset-card-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition-fast);
}

.preset-card-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.preset-card-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(59, 130, 246, 0.2);
}
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.preset-card-item.active .preset-card-indicator {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.preset-card-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.preset-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-card-item.active .preset-card-title {
  color: #93c5fd;
}

.preset-card-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preset-card-item.active .preset-card-tag {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.preset-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sketch Canvas Container */
.sketch-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.canvas-wrapper {
  position: relative;
  width: 224px;
  height: 320px;
  aspect-ratio: 336 / 480;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#sketchCanvas {
  width: 100%;
  height: 100%;
  aspect-ratio: 336 / 480;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.canvas-tools {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

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

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tool-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.tool-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Dropzone Upload */
.dropzone {
  width: 224px;
  height: 320px;
  aspect-ratio: 336 / 480;
  margin: 0 auto;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(94, 106, 210, 0.05);
  color: var(--text-primary);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: none;
}

/* AI Recognition & Prompt Section */
.ai-recognition-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px;
}

.ai-dropzone {
  width: 100% !important;
  height: 150px !important;
  aspect-ratio: auto !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-md) !important;
  margin: 0 !important;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.ai-dropzone:hover, .ai-dropzone.dragover {
  border-color: var(--accent) !important;
  background: rgba(37, 99, 235, 0.06);
}

.ai-recognition-section .prompt-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin-top: 0;
}

.prompt-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-textarea {
  width: 100%;
  height: 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  padding: 10px 12px;
  resize: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
  line-height: 1.5;
}

.prompt-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-glow);
}

.prompt-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.btn-ai-generate {
  width: 100%;
  height: 42px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--accent-glow);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-ai-generate:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-ai-generate:active {
  transform: translateY(0);
}

.kbd {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ==========================================================================
   Center Panel: Stage & Physical Band Mockup
   ========================================================================== */
.stage-panel {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.11) 0%, rgba(0, 229, 255, 0.03) 38%, #07080b 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
  background-color: #07080b;
  overflow: hidden;
}

/* Precision CAD Crosshair Grid Background */
.canvas-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px, 100px 100px, 100px 100px;
  pointer-events: none;
  opacity: 0.7;
}

/* Corner Telemetry HUD */
.stage-telemetry {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  pointer-events: none;
}

.stage-telemetry-tl {
  top: 98px;
  left: 20px;
}

.stage-telemetry-tr {
  top: 98px;
  right: 20px;
  text-align: right;
}

.telemetry-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.telemetry-val {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stage Hardware Device Selector Header */
.stage-hardware-header {
  position: absolute;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 16, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 10px;
  z-index: 12;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: calc(100% - 24px);
}

.stage-device-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-device-icon {
  font-size: 13px;
  opacity: 0.9;
}

.stage-device-dropdown {
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 0;
}

.stage-device-dropdown optgroup {
  background: #18191f;
  color: var(--text-secondary);
}

.stage-device-dropdown option {
  background: #18191f;
  color: #fff;
  padding: 4px 8px;
}

.stage-hardware-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 8px;
}

.stage-spec-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.stage-spec-badge.res {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
  font-weight: 600;
}

/* Viewport Stage Toolbar */
.stage-toolbar {
  position: absolute;
  top: 48px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(18, 21, 31, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: calc(100% - 24px);
  overflow-x: auto;
  white-space: nowrap;
}

.stage-tool-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.stage-sub-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-sub-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.stage-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-tool-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.stage-tool-btn.active {
  background: var(--surface-active);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Band Hardware Container */
.band-mockup-wrapper {
  position: relative;
  width: 280px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.band-strap-top {
  position: absolute;
  top: 0;
  width: 180px;
  height: 70px;
  background: linear-gradient(180deg, #18191f 0%, #121317 100%);
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.band-strap-bottom {
  position: absolute;
  bottom: 0;
  width: 180px;
  height: 70px;
  background: linear-gradient(0deg, #18191f 0%, #121317 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.band-chassis {
  position: relative;
  width: 268px;
  height: 376px;
  background: #1e2129;
  border-radius: 46px;
  padding: 8px;
  box-shadow: 
    0 0 0 2px #383c48,
    0 0 0 3px #12141a,
    0 28px 65px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(59, 130, 246, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.band-bezel {
  width: 252px;
  height: 360px;
  aspect-ratio: 336 / 480;
  background: #000;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 12px 2px #000;
}

/* The actual Watch Canvas (scaled down to fit chassis) */
#watchCanvas {
  width: 100%;
  height: 100%;
  aspect-ratio: 336 / 480;
  display: block;
  cursor: grab;
}

#watchCanvas.dragging {
  cursor: grabbing;
}

/* ==========================================================================
   Band Capsule Pill Mode (Xiaomi Band 8 / 9 / 10)
   ========================================================================== */
.band-mockup-wrapper.pill-mode {
  width: 220px;
}

.band-mockup-wrapper.pill-mode .band-strap-top {
  width: 100px;
  height: 60px;
  border-radius: 14px 14px 0 0;
}

.band-mockup-wrapper.pill-mode .band-strap-bottom {
  width: 100px;
  height: 60px;
  border-radius: 0 0 14px 14px;
}

.band-mockup-wrapper.pill-mode .band-chassis {
  width: 172px;
  height: 416px;
  border-radius: 86px;
  padding: 8px;
  box-shadow: 
    0 0 0 2px #383c48,
    0 0 0 3px #12141a,
    0 24px 50px rgba(0, 0, 0, 0.95),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.band-mockup-wrapper.pill-mode .band-bezel {
  width: 156px;
  height: 400px;
  aspect-ratio: 192 / 490;
  border-radius: 78px;
}

.band-mockup-wrapper.pill-mode .glass-reflection {
  height: 100px;
  border-radius: 78px 78px 0 0;
}

.band-mockup-wrapper.pill-mode #watchCanvas {
  aspect-ratio: 192 / 490;
}

/* Left Sketchpad Pill Mode */
.canvas-wrapper.pill-mode {
  width: 156px;
  height: 400px;
  aspect-ratio: 192 / 490;
  border-radius: 78px;
}

.dropzone.pill-mode {
  width: 156px;
  height: 400px;
  aspect-ratio: 192 / 490;
  border-radius: 78px;
}

.glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  border-radius: 38px 38px 0 0;
}

.stage-footer {
  position: absolute;
  bottom: 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 21, 31, 0.6);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.stage-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.telemetry-dim {
  color: var(--text-muted);
  font-size: 10px;
}

.telemetry-coords {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Right Panel: Inspector & Export
   ========================================================================== */
.layer-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#retroInspectorControls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Specialized Preset Inspector Card */
.preset-tune-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.preset-tune-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preset-tune-pill {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: -0.01em;
}

.preset-tune-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.preset-tune-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.preset-tune-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preset-tune-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.preset-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-color-val {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.preset-tune-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-preset-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-preset-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Gallery Photo Wallpaper Switcher */
.gallery-photo-switcher {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gallery-thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-thumb-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.gallery-thumb-btn.active {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.gallery-thumb-preview {
  width: 100%;
  height: 36px;
  border-radius: 3px;
  display: block;
}

.thumb-sunset {
  background: linear-gradient(180deg, #090919 0%, #240046 35%, #7b2cbf 70%, #ff6b6b 100%);
}

.thumb-aurora {
  background: linear-gradient(180deg, #05051a 0%, #0b1a3a 40%, #00f5d4 85%, #05051a 100%);
}

.thumb-cybercity {
  background: linear-gradient(180deg, #0a001a 0%, #190033 45%, #ff007f 80%, #00f0ff 100%);
}

.thumb-forest {
  background: linear-gradient(180deg, #081c15 0%, #1b4332 45%, #2d6a4f 75%, #52b788 100%);
}

.thumb-sakura {
  background: linear-gradient(180deg, #1d0f28 0%, #3e1f47 40%, #f72585 75%, #ffd6e0 100%);
}

.thumb-titanium {
  background: radial-gradient(circle, #22252b 10%, #14161a 70%, #0a0b0d 100%);
}

.thumb-sunburst-blue {
  background: radial-gradient(circle, #1d4ed8 10%, #0f2042 60%, #070e1c 100%);
}

.thumb-emerald {
  background: radial-gradient(circle, #059669 10%, #064e3b 60%, #022c22 100%);
}

.thumb-cream {
  background: radial-gradient(circle, #fafaf9 20%, #f5f5f4 70%, #e7e5e4 100%);
}

.preset-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.preset-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  outline: none;
}

.preset-swatch-btn:hover {
  transform: scale(1.18);
}

.preset-swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  transform: scale(1.18);
}

.gallery-thumb-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.gallery-thumb-btn.active .gallery-thumb-label {
  color: var(--text-primary);
  font-weight: 600;
}

.preset-tune-hint {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

/* Coordinate Inputs & Sliders */
.coord-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coord-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  width: 95px;
  gap: 4px;
  transition: var(--transition-fast);
}

.coord-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.coord-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: bold;
}

.coord-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  text-align: right;
}

.coord-unit {
  font-size: 10px;
  color: var(--text-muted);
}

.coord-slider {
  flex: 1;
}

/* Sleek Modern Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 20px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: var(--transition-fast);
}

input[type="range"]:hover::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.18);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

/* Alignment Matrix Grid */
.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-align {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-align:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-align:active {
  transform: scale(0.97);
}

/* Property Sliders */
.prop-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prop-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.prop-slider-val {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Asset Replacement Buttons */
.btn-asset-replace {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-asset-replace:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.asset-preview-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-danger-outline {
  width: 100%;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group:not(:first-child) {
  margin-top: 8px;
}

.text-input {
  width: 100%;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 0 12px;
  outline: none;
  transition: var(--transition-fast);
}

.text-input:focus {
  border-color: var(--border-focus);
}

/* Palette Swatches */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.color-swatch {
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.05);
}

.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 12px var(--swatch-color, #fff);
}

.color-swatch.active::after {
  content: "✓";
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

/* Toggles & Checkboxes */
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
  gap: 8px;
}

.toggle-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-pill {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--surface-active);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.slider-pill:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: var(--transition-fast);
  border-radius: 50%;
}

input:checked + .slider-pill {
  background-color: var(--accent);
}

input:checked + .slider-pill:before {
  transform: translateX(16px);
}

/* Export CTA Block */
.export-card {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-ble-sync {
  width: 100%;
  height: 42px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-ble-sync:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.6);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.btn-ble-sync:active {
  transform: scale(0.98);
}

.btn-download-bin {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-download-bin:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-download-bin:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Modals & Overlays (Linear Style)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

/* Radar Scan for BLE */
.radar-scanner {
  width: 100px;
  height: 100px;
  margin: 10px auto;
  border-radius: 50%;
  border: 1px solid var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-scanner::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(94, 106, 210, 0.4);
  animation: radar-pulse 2s linear infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Landing Page Layout & Section Styles
   ========================================================================== */
.section-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Modern Precision Hero Section */
.hero-section {
  padding: 104px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-ambient-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 440px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, rgba(0, 229, 255, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent 0px, transparent 23px, rgba(255, 255, 255, 0.035) 23px, rgba(255, 255, 255, 0.035) 24px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 23px, rgba(255, 255, 255, 0.035) 23px, rgba(255, 255, 255, 0.035) 24px),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  padding: 5px 16px 5px 6px;
  margin-bottom: 24px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.hero-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-pill:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.hero-pill-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(59, 130, 246, 0.18) 100%);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  max-width: 880px;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 58px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 55%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-title-sub {
  display: block;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 8px;
  background: linear-gradient(180deg, #CBD5E1 0%, #64748B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary-lg {
  background: #ffffff;
  color: #08090d;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transition: var(--transition-fast);
}

.btn-primary-lg:hover {
  background: #f1f5f9;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 32px rgba(255, 255, 255, 0.35);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary-lg:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary-lg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}

.btn-secondary-lg:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1.5px);
}
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.btn-secondary-lg:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Tech Specs Chips Row */
.hero-tech-specs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.tech-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tech-spec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

/* LP Section Common (Features, Guide, Specs, FAQ) */
.features-section,
.guide-section,
.specs-section,
.faq-section,
.lp-section {
  padding: 96px 24px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.section-header {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tag {
  display: none;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* Architecture Pillars Grid */
.arch-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.arch-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 8px 30px -4px rgba(0, 0, 0, 0.45);
}

.arch-pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 16px 40px -6px rgba(0, 0, 0, 0.6);
}

.arch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.arch-card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.arch-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.arch-pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.arch-pillar-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arch-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.arch-spec-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 14px;
}

.arch-spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.arch-spec-list li strong {
  color: #e2e8f0;
}

/* Flashing Guide Cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.guide-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.guide-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-badge {
  align-self: flex-start;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-recommended {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-geek {
  background: rgba(94, 106, 210, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(94, 106, 210, 0.3);
}

.badge-official {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.guide-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
}

.guide-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-text strong {
  color: var(--text-primary);
}

/* Specs Table */
.specs-table-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.specs-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

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

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.specs-model {
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Decompiler Slices Grid & Card */
.slice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.slice-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.slice-thumb-wrapper {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.slice-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.slice-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  white-space: nowrap;
}

/* Sticker Library Grid */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sticker-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15);
}

.sticker-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-icon svg {
  width: 32px;
  height: 32px;
}

.sticker-name {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

/* Fullscreen Studio / Tool Mode */
.workspace.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--bg-deep) !important;
}

.btn-exit-fullscreen {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100000;
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: var(--transition-fast);
}

body.has-fullscreen {
  overflow: hidden !important;
}

body.has-fullscreen .btn-exit-fullscreen {
  display: flex !important;
}

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

/* ==========================================================================
   Mobile Studio Tabs (Hidden on Desktop, Visible on <= 1024px)
   ========================================================================== */
.mobile-studio-tabs {
  display: none;
}

.mobile-stage-anchor-btn {
  display: none;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-center {
    gap: 14px;
  }
  .nav-link {
    font-size: 12px;
  }
  .status-pill {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }

  /* Sticky Mobile Studio Segment Switcher */
  .mobile-studio-tabs {
    display: flex !important;
    order: 2 !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(14, 16, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    position: sticky;
    top: 52px;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  }

  .mobile-tab-btn {
    flex: 1;
    max-width: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
  }

  .mobile-tab-icon {
    font-size: 14px;
  }

  .mobile-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-tab-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
    font-weight: 600;
  }

  .mobile-stage-anchor-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
  }

  .mobile-stage-anchor-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  /* Studio Workspace Segment Switching: Vertical Stack */
  .workspace {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: visible !important;
    background: var(--bg-surface);
  }

  /* Watch Viewport Stage is ALWAYS visible at the top */
  .workspace .stage-panel {
    display: flex !important;
    order: 1 !important;
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    height: 380px !important;
    min-height: 380px !important;
    padding: 14px 12px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Mobile Active Control Panels */
  .workspace .panel {
    display: none !important;
    order: 3 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border: none !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .workspace .panel.mobile-active {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Hide redundant panel headers and duplicate sub-tabs on mobile */
  .workspace .panel .panel-header {
    display: none !important;
  }

  #panelInspector > .panel-body > .tabs {
    display: none !important;
  }

  /* On mobile export tab, elevate export actions to the top for instant thumb access */
  #globalTabContent {
    display: flex;
    flex-direction: column;
  }

  #globalTabContent .export-card {
    order: -1 !important;
    margin-bottom: 14px !important;
  }

  .workspace .panel-body {
    padding: 16px !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .features-grid, .guide-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .navbar {
    padding: 0 12px;
    height: 52px;
  }

  .brand span {
    font-size: 15px;
  }

  .device-badge select {
    max-width: 130px;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  .status-pill {
    display: none !important;
  }

  #navFullscreenBtn span:not(:first-child),
  #openSettingsBtn span:not(:first-child) {
    display: none;
  }

  #navFullscreenBtn,
  #openSettingsBtn,
  #langToggleBtn {
    padding: 6px 8px;
    font-size: 12px;
  }

  .hero-section {
    padding: 48px 16px 36px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
    margin: 0 auto;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 11px;
  }

  .studio-section {
    padding: 24px 12px;
  }

  .section-heading {
    font-size: 24px;
  }

  .section-desc {
    font-size: 13px;
  }

  /* Compact Viewport Stage on Tablets & Phones (<= 768px) */
  .workspace .stage-panel {
    height: 330px !important;
    min-height: 330px !important;
    padding: 8px 6px !important;
  }

  .stage-telemetry,
  .stage-footer {
    display: none !important;
  }

  .stage-hardware-header {
    top: 6px !important;
    padding: 3px 8px !important;
    gap: 6px !important;
    max-width: 96% !important;
  }

  .stage-device-dropdown {
    font-size: 11px !important;
    max-width: 140px !important;
  }

  .stage-toolbar {
    top: 40px !important;
    padding: 3px 6px !important;
    gap: 3px !important;
    max-width: calc(100% - 16px) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .stage-tool-btn {
    padding: 4px 7px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .band-mockup-wrapper {
    transform: scale(0.66) !important;
    transform-origin: center center !important;
    margin-top: 44px !important;
    margin-bottom: 0 !important;
  }

  .band-strap-top,
  .band-strap-bottom {
    height: 32px !important;
  }

  .band-mockup-wrapper.pill-mode {
    transform: scale(0.64) !important;
  }

  /* Preset Cards & Mobile Controls Optimization */
  .preset-card-item {
    padding: 12px 14px !important;
    min-height: 52px !important;
  }

  .btn-download-bin {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  /* Touch Table Scroll Indicator */
  .specs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  .specs-table {
    min-width: 600px;
  }

  .features-section,
  .guide-section,
  .specs-section,
  .faq-section {
    padding: 48px 16px;
  }
}

/* Small Smartphone Viewports (<= 480px, e.g. iPhone SE, iPhone 13/14/15/16, Androids) */
@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
  }

  .device-badge {
    padding: 2px 6px;
  }

  .device-badge select {
    max-width: 95px;
    font-size: 11px;
  }

  #navFullscreenBtn {
    display: none !important;
  }

  .hero-section {
    padding: 50px 16px 36px;
  }

  .hero-pill {
    max-width: calc(100vw - 32px);
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: clamp(22px, 6.8vw, 36px);
    margin-bottom: 14px;
    word-break: break-word;
  }

  .hero-title-sub {
    font-size: clamp(15px, 4.5vw, 22px);
    margin-top: 4px;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .btn-primary-lg, .btn-secondary-lg {
    width: 100%;
    justify-content: center;
  }

  .stage-telemetry {
    display: none;
  }

  .stage-panel {
    height: 300px !important;
    min-height: 300px !important;
    padding: 6px 4px !important;
  }

  .stage-hardware-header {
    top: 6px !important;
    padding: 2px 6px !important;
    gap: 4px !important;
    max-width: 96% !important;
  }

  .stage-device-dropdown {
    font-size: 11px !important;
    max-width: 130px !important;
  }

  .stage-spec-badge {
    display: none !important;
  }

  .stage-spec-badge.res {
    display: inline-block !important;
    font-size: 9px !important;
    padding: 1px 4px !important;
  }

  /* Scale watch chassis mockup to fit comfortably without cut-off on small phones */
  .band-mockup-wrapper {
    transform: scale(0.58) !important;
    transform-origin: center center !important;
    margin-top: 38px !important;
    margin-bottom: 0 !important;
  }

  .band-strap-top,
  .band-strap-bottom {
    height: 20px !important;
  }

  .band-mockup-wrapper.pill-mode {
    transform: scale(0.56) !important;
  }

  .stage-toolbar {
    top: 36px !important;
    padding: 2px 4px !important;
    gap: 2px !important;
    max-width: calc(100% - 10px) !important;
  }

  .stage-tool-btn {
    padding: 3px 5px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .mobile-studio-tabs {
    padding: 8px 10px !important;
    gap: 5px !important;
  }

  .mobile-tab-btn {
    padding: 7px 6px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }

  .mobile-tab-icon {
    font-size: 13px !important;
  }

  /* Decompiler Modal Mobile Adaptation */
  .modal-box {
    padding: 16px 12px;
    width: 95vw;
    max-height: 90vh;
  }

  .modal-box > div:nth-child(2) > div:nth-child(2) {
    flex-direction: column !important;
    align-items: center !important;
  }

  #unpackSlicesGrid {
    max-height: 180px;
  }

  .coord-group {
    width: 82px;
    padding: 4px;
  }
}
