/* ==========================================================================
   AuraSnap Official Website Design System (v3.0 Masterpiece Edition)
   Crafted with ui-ux-pro-max + taste-skill + interface-design principles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+SC:wght@400;500;700;800&display=swap');

:root {
  /* Surface System (Apple Silicon Dark Canvas) */
  --bg-desktop: #06070b;
  --bg-canvas: #090c13;
  --surface-1: #0e121c;
  --surface-2: #141926;
  --surface-3: #1c2336;
  --surface-card: #101420;
  --surface-glass: rgba(12, 16, 26, 0.82);
  --surface-glass-border: rgba(255, 255, 255, 0.09);

  /* Vivid Accents */
  --accent-sky: #38bdf8;
  --accent-sky-rgb: 56, 189, 248;
  --accent-indigo: #818cf8;
  --accent-indigo-rgb: 129, 140, 248;
  --accent-emerald: #10b981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #c084fc;

  /* Text Hierarchy */
  --text-pure: #ffffff;
  --text-high: #f1f5f9;
  --text-medium: #94a3b8;
  --text-low: #64748b;
  --text-code: #38bdf8;

  /* Borders & Depth */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-active: rgba(56, 189, 248, 0.4);
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Shadows */
  --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px -4px rgba(0, 0, 0, 0.55), 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px -8px rgba(0, 0, 0, 0.75), 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-mac: 0 35px 80px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --glow-sky: 0 0 40px rgba(56, 189, 248, 0.22);
  --glow-indigo: 0 0 40px rgba(129, 140, 248, 0.22);

  /* Typography Stacks */
  --font-main: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-full: 9999px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease-spring);
  --transition-normal: 0.25s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-desktop);
  color: var(--text-high);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 45%, rgba(129, 140, 248, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 30% at 15% 75%, rgba(56, 189, 248, 0.06), transparent 60%);
  background-attachment: fixed;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: var(--text-pure);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-desktop);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-low);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar (Floating Frosted Glass)
   ========================================================================== */
#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1240px;
  height: 60px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

#navbar.scrolled {
  top: 10px;
  background: rgba(8, 11, 18, 0.94);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.nav-container {
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-pure);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
}

.logo-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-sky);
  border-radius: var(--radius-xs);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-high);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-github:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: #ffffff;
  color: #000000;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

.btn-nav-download:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 130px 1.5rem 60px;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-glow-sphere {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(129, 140, 248, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-sky);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-sky);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-sky);
  animation: pulse-ring 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  color: var(--text-pure);
}

.gradient-title-text {
  background: linear-gradient(135deg, #ffffff 15%, #93c5fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: var(--text-medium);
  max-width: 780px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--text-high);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 25px rgba(255, 255, 255, 0.22);
}

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

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: var(--surface-card);
  color: var(--text-high);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-medium);
  transition: all var(--transition-normal);
}

.btn-secondary-lg:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text-pure);
  transform: translateY(-2px);
}

.hero-meta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--text-low);
  font-size: 0.82rem;
  font-weight: 500;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-item svg {
  color: var(--accent-sky);
}

.meta-divider {
  opacity: 0.3;
}

/* ==========================================================================
   Interactive macOS Desktop Simulator (Flagship Showcase)
   ========================================================================== */
.hero-desktop-stage {
  margin-top: 3.2rem;
  position: relative;
}

.mac-desktop-frame {
  background: #080a10;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: var(--shadow-mac);
  overflow: hidden;
  position: relative;
  text-align: left;
  user-select: none;
}

/* macOS Top Menu Bar */
.mac-system-menubar {
  height: 28px;
  background: rgba(20, 25, 38, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-high);
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apple-icon {
  font-size: 0.9rem;
  color: var(--text-pure);
}

.menubar-item {
  color: var(--text-medium);
  font-size: 0.75rem;
  cursor: default;
}
.menubar-item.active {
  color: var(--text-pure);
  font-weight: 700;
}

.menubar-right {
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-medium);
}

/* Simulated Desktop Canvas Area */
.mac-desktop-canvas {
  height: 480px;
  background: radial-gradient(circle at 70% 30%, #171d2c 0%, #0a0d15 100%);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

/* Background Apps inside Simulated Desktop */
.sim-app-window {
  position: absolute;
  background: #0f131d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.sim-app-window.xcode {
  left: 40px;
  top: 40px;
  width: 540px;
  height: 380px;
}

.sim-app-window.browser {
  right: 40px;
  bottom: 30px;
  width: 480px;
  height: 340px;
  background: #111520;
}

.sim-window-header {
  height: 32px;
  background: #090c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.6rem;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}
.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-dot.r { background: #ff5f56; }
.traffic-dot.y { background: #ffbd2e; }
.traffic-dot.g { background: #27c93f; }

.sim-win-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-low);
}

.sim-window-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.code-accent { color: var(--accent-sky); }
.code-fn { color: #818cf8; }
.code-kw { color: #f43f5e; }
.code-str { color: #10b981; }

/* Interactive Snapping Box with 8 Resizer Handles (SelectionResizerView.swift) */
.sim-snapping-border {
  position: absolute;
  border-radius: 4px;
  border: 2px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.25s var(--ease-spring);
  z-index: 10;
}

.resizer-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border: 1.5px solid #0ea5e9;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.handle-tl { top: -5px; left: -5px; }
.handle-tc { top: -5px; left: calc(50% - 4.5px); }
.handle-tr { top: -5px; right: -5px; }
.handle-ml { top: calc(50% - 4.5px); left: -5px; }
.handle-mr { top: calc(50% - 4.5px); right: -5px; }
.handle-bl { bottom: -5px; left: -5px; }
.handle-bc { bottom: -5px; left: calc(50% - 4.5px); }
.handle-br { bottom: -5px; right: -5px; }

/* Real-time Magnifier Lens */
.sim-live-magnifier {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 18px rgba(56, 189, 248, 0.35);
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2) 0%, #101420 90%);
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.04s linear;
}

.mag-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.mag-crosshair-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.mag-center-pixel {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent-sky);
  background: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px var(--accent-sky);
  z-index: 2;
}

.mag-color-capsule {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 26, 0.95);
  border: 1px solid var(--border-medium);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-pure);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   1:1 Authentic AuraSnap Native macOS Floating Toolbar Stack (ToolbarView.swift)
   ========================================================================== */
.aurasnap-toolbar-stack {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 40;
  user-select: none;
}

/* Tier 1: Secondary Options Bar (Color palette + Style dropdown + Width slider) */
.aurasnap-tier-options {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.2s ease;
}

.color-palette-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--dot-color);
  border: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.color-white-dot {
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.color-dot-btn:hover {
  transform: scale(1.15);
}

.color-dot-btn.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--dot-color);
  opacity: 1;
}

.native-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

.native-menu-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #1e293b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.native-menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.line-width-slider-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot-min {
  font-size: 8px;
  color: #94a3b8;
}

.native-width-slider {
  width: 75px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 2px;
  outline: none;
}

.native-width-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.slider-dot-preview {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Tier 2: Main Toolbar Row (ToolbarView.swift) */
.aurasnap-tier-main {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.native-tool-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.native-tool-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}

.native-tool-btn.active {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
}

.corner-radius-control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
}

.native-corner-slider {
  width: 48px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 2px;
  outline: none;
}

.native-corner-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Tier 3: AI Actions Bar Row (AIPillBarView.swift) */
.aurasnap-tier-ai {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-pill-input-capsule {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: text;
}

.sparkle-icon {
  font-size: 11px;
}

.paperplane-icon {
  margin-left: 2px;
}

.ai-pill-action-btn {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-pill-action-btn:hover {
  background: #f8fafc;
  color: #0284c7;
  transform: translateY(-1px);
}

/* Toast Message */
.sim-toast-msg {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  z-index: 100;
}
.sim-toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 100px 1.5rem;
  position: relative;
}

.section-alt {
  background: var(--bg-desktop);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sky);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 0.9rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ==========================================================================
   Feature Studio (5 Interactive Tabs - High Taste Hub)
   ========================================================================== */
.studio-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-medium);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.studio-tab-btn:hover {
  background: var(--surface-2);
  color: var(--text-pure);
  border-color: var(--border-hover);
}

.studio-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.studio-panel {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-mac);
  animation: fadeIn 0.3s ease;
}
.studio-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-panel-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
}

.studio-panel-info h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  color: var(--text-pure);
}

.studio-panel-info p {
  font-size: 0.96rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.studio-feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}

.studio-feature-bullets li {
  font-size: 0.88rem;
  color: var(--text-high);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.studio-feature-bullets li svg {
  color: var(--accent-sky);
  flex-shrink: 0;
}

/* Studio Stage Area */
.studio-stage-box {
  background: #080a11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  min-height: 340px;
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Pin Stage Interactive Widget */
.sim-pin-widget {
  width: 280px;
  background: #151a28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  padding: 1.2rem;
  position: relative;
  transition: opacity 0.2s, transform 0.2s;
  cursor: grab;
}
.sim-pin-widget:active { cursor: grabbing; }

.sim-pin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pin-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
}

.pin-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pin-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-medium);
}
.pin-slider-row input[type="range"] {
  width: 110px;
  accent-color: var(--accent-sky);
}

.pin-ghost-toggle-btn {
  padding: 0.4rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-high);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.pin-ghost-toggle-btn.ghost-active {
  background: rgba(129, 140, 248, 0.25);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

/* Recording Drag Widget */
.record-format-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fmt-pill {
  padding: 0.3rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-medium);
  cursor: pointer;
}
.fmt-pill.active {
  background: var(--accent-sky);
  color: #000000;
  font-weight: 700;
}

.record-drag-target-zone {
  width: 100%;
  max-width: 360px;
  height: 180px;
  background: #101422;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.draggable-video-chip {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.draggable-video-chip:active { cursor: grabbing; }

/* AI Red Circle Focus Widget */
.ai-screenshot-preview {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #0d101a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
}

.red-circle-annotation {
  position: absolute;
  top: 38px;
  left: 20px;
  width: 210px;
  height: 48px;
  border: 2.5px solid var(--accent-rose);
  border-radius: 50% 45% 55% 48% / 48% 55% 45% 52%;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
  pointer-events: none;
  animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.ai-stream-output {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #131826;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-high);
  min-height: 55px;
  width: 100%;
  max-width: 380px;
}

/* ==========================================================================
   Live Keyboard Shortcut HUD Tester
   ========================================================================== */
.hud-keyboard-tester {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-mac);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hud-key-card {
  background: #0b0e16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s ease;
}

.hud-key-card.active-key {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  transform: scale(1.03);
}

.hud-key-card kbd {
  background: var(--surface-3);
  border: 1px solid var(--border-medium);
  color: var(--accent-sky);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.hud-key-card span {
  font-size: 0.82rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* ==========================================================================
   Architecture Benchmark Table (Credible Numbers)
   ========================================================================== */
.benchmark-container {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-mac);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.benchmark-table th, .benchmark-table td {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-table th {
  background: #0c0f17;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-low);
  font-family: var(--font-mono);
}

.benchmark-table th.col-aurasnap {
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.06);
}

.benchmark-table td {
  font-size: 0.92rem;
  color: var(--text-medium);
}

.benchmark-table td.dimmed {
  color: var(--text-low);
}

.benchmark-table td.highlight-good {
  color: var(--text-pure);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.03);
}

.benchmark-badge-win {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ==========================================================================
   Download Hub
   ========================================================================== */
.download-card-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(180deg, #131724 0%, #0c0e16 100%);
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--glow-sky);
  overflow: hidden;
}

.download-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-sky), transparent);
}

.download-card-wrapper h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  color: var(--text-pure);
}

.download-card-wrapper p {
  font-size: 1.12rem;
  color: var(--text-medium);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.download-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.version-meta-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-low);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.version-meta-pill strong {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-desktop);
  padding: 4.5rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 0.8rem;
}

.footer-brand-col p {
  color: var(--text-low);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-grid {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-links-col h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-pure);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-sky);
}

.footer-legal-disclaimer {
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-low);
  font-size: 0.76rem;
  line-height: 1.65;
}

.footer-legal-disclaimer p strong {
  color: var(--text-medium);
  font-size: 0.78rem;
}

.footer-bottom-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-low);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   New Flagship Feature Visual Components (v2.6.1 Masterpiece)
   ========================================================================== */

/* 1. GPU Transparent Checkerboard Pattern */
.bg-checkerboard {
  background-color: #121620;
  background-image: linear-gradient(45deg, #1c2234 25%, transparent 25%),
                    linear-gradient(-45deg, #1c2234 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #1c2234 75%),
                    linear-gradient(-45deg, transparent 75%, #1c2234 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* 2. Matting Studio Interactive Stage */
.matting-demo-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matting-preview-card {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.matting-content-box {
  padding: 1.5rem 2rem;
  background: #181d2c;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  transition: all 0.3s ease;
  position: relative;
}

.matting-cutout-active .matting-content-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #38bdf8 !important;
  font-weight: 700;
  text-shadow: 0 0 1px rgba(56, 189, 248, 0.8);
}

.matting-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-1);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.matting-pill-group {
  display: flex;
  gap: 0.4rem;
}

.matting-pill-btn {
  padding: 0.35rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-medium);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matting-pill-btn.active {
  background: var(--accent-sky);
  color: #030712;
  border-color: var(--accent-sky);
}

/* ==========================================================================
   Authentic macOS Swift UI Components (1:1 AuraSnap Implementation)
   ========================================================================== */

/* 2. AIPillBarView (Real macOS Floating AI Pill & Expanded Card) */
.ai-action-pills-bar {
  display: flex;
  gap: 0.5rem;
}

.ai-action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-medium);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-action-pill-btn:hover {
  background: var(--surface-2);
  color: var(--text-pure);
  border-color: var(--border-hover);
}

.ai-action-pill-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.ai-pill-window-card {
  width: 100%;
  max-width: 380px;
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ai-think-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.4;
}

.ai-think-line {
  width: 2.5px;
  height: 100%;
  min-height: 16px;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 2px;
  flex-shrink: 0;
}

.ai-pill-response-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #f1f5f9;
  padding: 0 0.25rem;
}

.ai-pill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-followup-input-box {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  flex: 1;
}

.ai-followup-input-box input {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.72rem;
  width: 100%;
  outline: none;
}

.ai-send-btn {
  background: #0284c7;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ai-footer-actions {
  display: flex;
  gap: 0.35rem;
}

.ai-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.ai-icon-btn:hover { color: #38bdf8; }

/* 3. TextPinView (Real macOS Frosted Glass Popover) */
.native-text-pin-window {
  width: 100%;
  max-width: 380px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.native-text-pin-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.native-text-pin-tear {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono);
  text-align: center;
}

/* 5. Remark Tool & Waterdrop Step Pin (1:1 Canvas Rendering) */
.native-remark-stage {
  display: flex;
  align-items: center;
  position: relative;
}

.native-remark-anchor {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.native-remark-line-svg {
  flex-shrink: 0;
  margin-left: -1px;
  margin-right: -1px;
}

.native-remark-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #38bdf8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #38bdf8;
  white-space: nowrap;
}

.native-waterdrop-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.native-waterdrop-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.native-waterdrop-pin:hover {
  transform: translateY(-3px) scale(1.08);
}

.waterdrop-svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.waterdrop-num {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui;
}

.waterdrop-caption {
  font-size: 0.74rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Secondary Options & Matrix Auxiliary Controls
   ========================================================================== */
.mag-grid-matrix {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.mag-grid-matrix span {
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.mag-center-cell {
  background: #38bdf8 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 8px #38bdf8;
  z-index: 3;
}

.native-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.native-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.native-toggle-btn.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0284c7;
}

.native-icon-toggle {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.native-icon-toggle.active {
  color: #0284c7;
}

.native-watermark-input {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #1e293b;
  width: 140px;
  outline: none;
}

/* ==========================================================================
   Mobile Navigation Drawer & Toggle
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-pure);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(12, 16, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-mac);
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s var(--ease-spring);
  z-index: 1001;
}

.mobile-nav-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-link {
  color: var(--text-high);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-btn {
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile Optimized)
   ========================================================================== */
@media (max-width: 1024px) {
  .studio-panel-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  #navbar {
    width: calc(100% - 1.5rem);
    top: 12px;
  }
  .nav-links, .nav-cta-group {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* Section Padding */
  .section {
    padding: 70px 1rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
  }
  .section-description {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 100px 1rem 40px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 3rem);
    line-height: 1.18;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  .chip-pill {
    font-size: 0.74rem;
    padding: 0.35rem 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
    gap: 0.75rem;
  }
  .btn-primary-lg, .btn-secondary-lg {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }
  .hero-meta-badges {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
  }
  .meta-divider {
    display: none;
  }

  /* Interactive Desktop Stage */
  .hero-desktop-stage {
    margin-top: 2rem;
    width: 100%;
  }
  .mac-desktop-frame {
    border-radius: 14px;
  }
  .mac-system-menubar {
    padding: 0 0.65rem;
  }
  .menubar-left .menubar-item:not(.active) {
    display: none;
  }
  .mac-desktop-canvas {
    height: 380px;
  }
  .sim-app-window.browser {
    display: none;
  }
  .sim-app-window.xcode {
    left: 10px;
    top: 12px;
    width: calc(100% - 20px);
    height: 240px;
  }
  .sim-window-body {
    font-size: 0.65rem;
    padding: 0.75rem;
    line-height: 1.5;
  }
  .aurasnap-toolbar-stack {
    transform: translateX(-50%) scale(0.65);
    transform-origin: bottom center;
    bottom: 8px;
    max-width: 100vw;
  }
  .sim-live-magnifier {
    width: 95px;
    height: 95px;
  }

  /* Feature Studio Tabs (Smooth Mobile Scrollbar) */
  .studio-tabs-nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 1rem 12px;
    margin: 0 -1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .studio-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .studio-tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Studio Panels */
  .studio-panel {
    padding: 1.35rem 1rem;
    border-radius: 18px;
  }
  .studio-panel-layout {
    gap: 1.5rem;
  }
  .studio-panel-info h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .studio-panel-info p {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
  }
  .studio-feature-bullets {
    gap: 0.5rem;
    margin-bottom: 1.4rem;
  }
  .studio-feature-bullets li {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .matting-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .matting-pill-btn {
    font-size: 0.76rem;
    padding: 0.35rem 0.65rem;
  }

  /* Studio Stage */
  .studio-stage-box {
    min-height: auto;
    padding: 1rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .matting-preview-card {
    height: 170px;
  }
  .matting-content-box {
    padding: 1rem;
    font-size: 0.76rem;
  }
  .matting-toggle-bar {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    text-align: center;
  }
  .sim-pin-widget {
    width: 100%;
    max-width: 280px;
    padding: 1rem 0.85rem;
  }
  .record-drag-target-zone {
    width: 100%;
    height: 160px;
    padding: 0.75rem;
  }
  .ai-screenshot-preview {
    width: 100%;
    font-size: 0.66rem;
  }
  .ai-pill-window-card {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.75rem;
  }
  .ai-pill-footer {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }
  .ai-followup-input-box {
    width: 100%;
  }
  .ai-footer-actions {
    justify-content: flex-end;
  }

  /* HUD Keyboard Tester */
  .hud-keyboard-tester {
    padding: 1.75rem 1rem;
    border-radius: 18px;
  }
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .hud-key-card {
    padding: 0.85rem 0.5rem;
  }
  .hud-key-card kbd {
    font-size: 0.86rem;
    padding: 0.25rem 0.55rem;
  }
  .hud-key-card span {
    font-size: 0.75rem;
  }

  /* Benchmarks Table */
  .benchmark-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }
  .benchmark-table {
    min-width: 540px;
  }
  .benchmark-table th, .benchmark-table td {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
  }

  /* Download Hub */
  .download-card-wrapper {
    padding: 2.5rem 1.25rem;
    border-radius: 20px;
  }
  .download-card-wrapper h2 {
    font-size: 1.85rem;
  }
  .download-card-wrapper p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  .download-btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    gap: 0.75rem;
  }
  .version-meta-pill {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    text-align: center;
  }

  /* Footer */
  footer {
    padding: 3.5rem 1rem 2rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-brand-col {
    max-width: 100%;
  }
  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    width: 100%;
  }
  .footer-legal-disclaimer {
    padding: 1rem;
    font-size: 0.72rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .aurasnap-toolbar-stack {
    transform: translateX(-50%) scale(0.53);
    bottom: 5px;
  }
  .mac-desktop-canvas {
    height: 350px;
  }
  .hud-grid {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

