/* ==========================================================================
   MacKitty — Native macOS System Companion & Disk Reclaimer
   Design System: Apple Silicon Native Glass (Dark Vibrancy & Apple Light Mode)
   Typography: SF Pro Display / SF Pro Text / SF Mono
   ========================================================================== */

:root {
  /* Core Dark Mode Palette (Default) */
  --bg-desktop: #0a0b0e;
  --bg-surface: #121318;
  --bg-header: rgba(10, 11, 14, 0.78);
  --bg-app-window: #121318;
  --bg-app-panel: #16171d;
  --bg-app-card: rgba(255, 255, 255, 0.04);
  --bg-app-card-hover: rgba(255, 255, 255, 0.07);

  --text-primary: #f4f4f7;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-pill: rgba(255, 255, 255, 0.85);

  /* Hairlines and borders */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Mac System Accents */
  --mac-blue: #0a84ff;
  --mac-blue-hover: #0071e3;
  --mac-blue-glow: rgba(10, 132, 255, 0.4);
  --mac-cyan: #38bdf8;
  --mac-green: #30d158;
  --mac-yellow: #ffd60a;
  --mac-orange: #ff9f0a;
  --mac-red: #ff453a;
  --mac-purple: #bf5af2;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-window: 0 30px 90px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   LIGHT MODE PALETTE (Apple Style Pure Whites & Refined Grays)
   ========================================================================== */
html[data-theme="light"] {
  --bg-desktop: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-header: rgba(251, 251, 253, 0.82);
  --bg-app-card: rgba(0, 0, 0, 0.03);
  --bg-app-card-hover: rgba(0, 0, 0, 0.06);

  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --text-pill: #333336;

  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.14);
  --border-card: rgba(0, 0, 0, 0.08);

  --shadow-window: 0 25px 70px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .page-atmosphere {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    #fbfbfd;
}

html[data-theme="light"] .hero-title {
  color: #1d1d1f;
}

html[data-theme="light"] .hero-subtitle {
  color: #515154;
}
html[data-theme="light"] .hero-subtitle strong {
  color: #1d1d1f;
}

html[data-theme="light"] .hero-pill-badge {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .hero-trust-row {
  color: #6e6e73;
}

html[data-theme="light"] .btn-secondary-mac {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .btn-secondary-mac:hover {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-header-appstore {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .brand-name {
  color: #1d1d1f;
}

html[data-theme="light"] .nav-link {
  color: #515154;
}
html[data-theme="light"] .nav-link:hover {
  color: #1d1d1f;
}

html[data-theme="light"] .tech-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .tech-panel.safe {
  border-color: rgba(48, 209, 88, 0.35);
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.04) 0%, #ffffff 100%);
}
html[data-theme="light"] .tech-panel.forbidden {
  border-color: rgba(255, 69, 58, 0.35);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.04) 0%, #ffffff 100%);
}
html[data-theme="light"] .spec-item {
  color: #333336;
}
html[data-theme="light"] .spec-item code {
  background: rgba(0, 0, 0, 0.05);
  color: #0284c7;
}

html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .faq-btn {
  color: #1d1d1f;
}
html[data-theme="light"] .faq-body {
  color: #515154;
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .download-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .download-card h2 {
  color: #1d1d1f !important;
}
html[data-theme="light"] .download-card p {
  color: #515154 !important;
}

html[data-theme="light"] body {
  background-color: #fbfbfd;
  color: #1d1d1f;
}

html[data-theme="light"] .site-header {
  background: rgba(251, 251, 253, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .brand-tag {
  background: rgba(0, 0, 0, 0.04);
  color: #515154;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .section-title {
  color: #1d1d1f;
}

html[data-theme="light"] .section-lead {
  color: #515154;
}

html[data-theme="light"] .section-label {
  color: #0284c7;
}

html[data-theme="light"] .companion-bar {
  background: rgba(240, 242, 247, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #515154;
}
html[data-theme="light"] .companion-left span.apple-icon,
html[data-theme="light"] .companion-left span.app-item {
  color: #1d1d1f;
}
html[data-theme="light"] .companion-right .btn-tray-toggle {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}
html[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .tech-panel h3 {
  color: #1d1d1f !important;
}
html[data-theme="light"] .tech-panel p {
  color: #515154 !important;
}

html[data-theme="light"] .faq-icon {
  color: #86868b;
}

html[data-theme="light"] .site-footer {
  background: #f5f5f7;
  color: #86868b;
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .footer-links a {
  color: #515154;
}
html[data-theme="light"] .footer-links a:hover {
  color: #1d1d1f;
}

/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-desktop);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    #0a0b0e;
  transition: background 0.3s ease;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-hairline);
  height: 56px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-app-card);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

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

/* Theme Toggle Button (Sun/Moon) */
.theme-toggle-btn {
  background: var(--bg-app-card);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--bg-app-card-hover);
  border-color: var(--border-subtle);
}
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}
html[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
html[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}

.btn-header-appstore {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-app-card);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
@media (min-width: 540px) {
  .btn-header-appstore {
    display: inline-flex;
  }
}
.btn-header-appstore:hover {
  background: var(--bg-app-card-hover);
}

.btn-header-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--mac-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 1px 8px var(--mac-blue-glow);
  transition: all 0.15s ease;
}
.btn-header-download:hover {
  background: var(--mac-blue-hover);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 16px 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-section {
    padding: 64px 20px 24px;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-pill);
  background: var(--bg-app-card);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--mac-green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.6);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(28px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

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

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 520px) {
  .hero-cta-group {
    flex-direction: row;
    max-width: none;
  }
}

.btn-primary-mac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #1f86f8 0%, #0d62d6 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(13, 98, 214, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-mac:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(13, 98, 214, 0.6);
}

.btn-secondary-mac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}
.btn-secondary-mac:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-trust-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.hero-trust-row svg {
  color: var(--mac-green);
  flex-shrink: 0;
}

/* ==========================================================================
   INTERACTIVE MACOS APP WINDOW (Exact Replica of SimpleDashboardView)
   ========================================================================== */
.showcase-stage {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 28px auto 60px;
  padding: 0 12px;
}
@media (min-width: 768px) {
  .showcase-stage {
    padding: 0 20px;
  }
}

/* Simulated macOS Menu Bar Companion Toggle */
.companion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 21, 26, 0.9);
  border: 1px solid var(--border-hairline);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.companion-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.companion-left span.apple-icon {
  color: #fff;
  font-size: 13px;
}
.companion-left span.app-item {
  font-weight: 600;
  color: #fff;
}
.companion-left span.menu-item {
  display: none;
}
@media (min-width: 700px) {
  .companion-left span.menu-item {
    display: inline;
  }
}

.companion-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.tray-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tray-icon-btn:hover, .tray-icon-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--mac-cyan);
}

/* Tray Mini Dashboard Dropdown Simulator */
.tray-popover {
  position: absolute;
  top: 36px;
  right: 0;
  width: 310px;
  max-width: calc(100vw - 36px);
  background: #14151b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 14px;
  z-index: 50;
  display: none;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.tray-popover.open {
  display: block;
}

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

.tray-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tray-popover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.tray-popover-title img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.tray-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.tray-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}
.tray-stat-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}
.tray-stat-val {
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}
.tray-stat-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.tray-network-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  margin-bottom: 10px;
}

.tray-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tray-btn-clean {
  background: var(--mac-blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}
.tray-btn-scan {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}

/* Actual App Window Frame */
.mac-window {
  position: relative;
  background: var(--bg-app-window);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  min-height: 590px;
  display: flex;
  flex-direction: column;
}

/* Window Chrome Titlebar */
.mac-chrome {
  height: 42px;
  background: rgba(18, 19, 24, 0.95);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: relative;
  z-index: 20;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.tl-close { background: #ff5f56; border: 1px solid #e0443e; }
.tl-min { background: #ffbd2e; border: 1px solid #dea123; }
.tl-zoom { background: #27c93f; border: 1px solid #1aab29; }

.chrome-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chrome-app-id {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.chrome-app-id img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.chrome-tabs {
  display: none;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: 20px;
  border: 1px solid var(--border-hairline);
}
@media (min-width: 600px) {
  .chrome-tabs {
    display: flex;
  }
}

.chrome-tab {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  padding: 4px 11px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chrome-tab.active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.chrome-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
}
.status-dot.idle { background: #888; }
.status-dot.scanning { background: var(--mac-cyan); box-shadow: 0 0 6px var(--mac-cyan); }
.status-dot.triage { background: var(--mac-yellow); }
.status-dot.cleaning { background: var(--mac-green); }

/* Window Canvas Area (With Cosmic Cat Video) */
.mac-canvas {
  position: relative;
  flex: 1;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f1014;
}

/* Background Cosmic Video Layer */
.mac-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mac-video-layer.flipped {
  transform: scaleX(-1);
}

/* Cat Spotlight Aura (from SimpleDashboardView.swift) */
.cat-spotlight-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transition: all 0.45s ease;
  background: radial-gradient(circle at 18% 70%, rgba(89, 166, 255, 0.22) 20px, rgba(38, 89, 230, 0.08) 120px, transparent 220px);
}
.cat-spotlight-aura.flipped {
  background: radial-gradient(circle at 82% 70%, rgba(89, 166, 255, 0.26) 20px, rgba(38, 89, 230, 0.10) 140px, transparent 240px);
}

/* Cat Dimming Mask that dims non-cat video (from SimpleDashboardView.swift) */
.cat-dimming-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  transition: all 0.45s ease;
  background: radial-gradient(circle at 18% 70%, transparent 0%, transparent 16%, rgba(0,0,0,0.35) 28%, rgba(0,0,0,0.72) 48%, rgba(0,0,0,0.88) 72%);
}
.cat-dimming-mask.flipped {
  background: radial-gradient(circle at 82% 70%, transparent 0%, transparent 18%, rgba(0,0,0,0.30) 30%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.82) 74%);
}

/* Foreground interactive screens */
.mac-screen-container {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mac-screen {
  display: none;
  width: 100%;
  height: 100%;
  flex: 1;
}

/* ==========================================================================
   APP SCREEN 1: WELCOME / IDLE DASHBOARD
   ========================================================================== */
.screen-welcome.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* 170x170 Circular Disk Gauge (Responsive on mobile) */
.disk-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.gauge-svg-container {
  position: relative;
  width: 170px;
  height: 170px;
}
@media (max-width: 480px) {
  .gauge-svg-container {
    width: 145px;
    height: 145px;
  }
  .gauge-svg-container svg {
    width: 145px !important;
    height: 145px !important;
  }
}

.gauge-svg-container svg {
  transform: rotate(-90deg);
  width: 170px;
  height: 170px;
}

.gauge-glow-arc {
  filter: blur(6px);
  opacity: 0.7;
}

.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-pct {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}
@media (min-width: 480px) {
  .gauge-pct {
    font-size: 30px;
  }
}

.gauge-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.disk-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 6px 0 2px;
}

.disk-details {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.5);
}

/* Scan Button with native Mac styling */
.scan-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.btn-scan-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 34px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #2ea6ff 0%, #0d6be8 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13, 98, 214, 0.45);
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 200px;
}
.btn-scan-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(13, 98, 214, 0.65);
}

.safety-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.safety-capsule svg {
  color: var(--mac-green);
  flex-shrink: 0;
}

/* 5-Card Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
@media (min-width: 680px) {
  .stats-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.telemetry-card {
  background: var(--bg-app-panel);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}
.telemetry-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}
.card-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.card-val {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.card-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Lifetime Stats */
.dashboard-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.lifetime-card {
  background: var(--bg-app-panel);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
}
.lifetime-card-label {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.lifetime-card-val {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   APP SCREEN 2: SCANNING SCREEN (Radar + Sonar Sweep)
   ========================================================================== */
.screen-scanning.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px;
  max-width: 580px;
  margin: 0 auto;
}

.sonar-radar-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.radar-pulse-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  animation: radarPulse 1.8s ease-out infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}

.radar-sweep-disc {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, rgba(14, 165, 233, 0.55) 100%);
  animation: radarSweep 1.8s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-logo {
  position: relative;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.scanning-headline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.scan-beacon {
  width: 7px;
  height: 7px;
  background: var(--mac-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mac-green);
}
.scan-title {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.scan-pct-big {
  font-size: 34px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  margin: 0 0 14px;
}

.scan-files-counter {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.scan-path-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 440px;
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-cursor {
  color: var(--mac-cyan);
  animation: blinkCursor 0.9s step-start infinite;
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}

.btn-scan-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-scan-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ==========================================================================
   APP SCREEN 3: SMART TRIAGE RESULTS
   *FIXED*: Left side houses the checklist & summary.
   The ENTIRE right side is 100% open so Kitty is front and center on the moon,
   NEVER behind any panel!
   ========================================================================== */
.screen-triage.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
  position: relative;
}
@media (min-width: 820px) {
  .screen-triage.active {
    flex-direction: row;
  }
}

/* Left side container holding the checklist and purge action */
.triage-content-left {
  width: 100%;
  max-width: 100%;
  padding: 20px 18px;
  background: rgba(16, 17, 22, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  overflow-y: auto;
}
@media (min-width: 820px) {
  .triage-content-left {
    max-width: 530px;
    width: 530px;
  }
}

.triage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-back-dashboard:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-toggle-select-all {
  background: none;
  border: none;
  color: var(--mac-cyan);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.triage-title-block {
  margin-bottom: 12px;
}
.triage-title-block h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}
.triage-title-block p {
  margin: 2px 0 0;
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.5);
}

.triage-items-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.triage-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: background 0.15s ease;
}
.triage-item-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.triage-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.triage-checkbox:checked {
  background: var(--mac-blue);
  border-color: var(--mac-blue);
}
.triage-checkbox:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.triage-cat-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-xc { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
.badge-hb { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.badge-sys { background: rgba(191, 90, 242, 0.16); color: #bf5af2; }
.badge-dl { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.badge-log { background: rgba(255, 69, 58, 0.16); color: #ff453a; }
.badge-npm { background: rgba(255, 214, 10, 0.16); color: #ffd60a; }

.triage-item-info {
  flex: 1;
  min-width: 0;
}
.triage-item-name {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.triage-item-path {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.triage-item-size {
  font-size: 12.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* Integrated Summary Dock on the Left (No covering of the cat!) */
.triage-purge-dock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}

.triage-purge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.purge-total-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.purge-total-num {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.btn-clean-now {
  background: var(--mac-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 16px var(--mac-blue-glow);
  transition: all 0.15s ease;
}
.btn-clean-now:hover {
  background: var(--mac-blue-hover);
  transform: translateY(-1px);
}

/* Right stage: 100% Dedicated to Kitty on the Moon */
.triage-kitty-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  pointer-events: none;
}

/* Floating speech bubble badge next to Kitty */
.kitty-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: floatKitty 4s ease-in-out infinite;
}

@keyframes floatKitty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   APP SCREEN 4: CLEANING PROGRESS & SUMMARY
   ========================================================================== */
.screen-cleaning.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  max-width: 500px;
  margin: 0 auto;
}

.cleaning-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.cleaning-circle-wrap svg {
  transform: rotate(-90deg);
  width: 160px;
  height: 160px;
}

.cleaning-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cleaning-phase-text {
  font-size: 13px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

/* Complete summary state */
.cleaning-success-box {
  display: none;
  flex-direction: column;
  align-items: center;
}
.cleaning-success-box.show {
  display: flex;
}

.success-shield-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mac-green);
  margin-bottom: 14px;
}

.success-size-big {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  margin-bottom: 4px;
}

.success-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

/* ==========================================================================
   POPUP MODAL: SCAN PERMISSION EXPLANATION
   ========================================================================== */
.mac-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mac-modal-backdrop.open {
  display: flex;
}

.mac-modal-window {
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  text-align: center;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-shield {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  color: var(--mac-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-heading {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.modal-body-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-modal-confirm {
  background: var(--mac-blue);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   EDITORIAL & TECHNICAL SECTIONS
   ========================================================================== */
.editorial-section {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 16px;
}
@media (min-width: 768px) {
  .editorial-section {
    padding: 64px 20px;
  }
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mac-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.section-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Technical Inspection Split View */
.tech-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .tech-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.tech-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 20px;
}
@media (min-width: 480px) {
  .tech-panel {
    padding: 24px;
  }
}

.tech-panel.safe {
  border-color: rgba(48, 209, 88, 0.25);
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.04) 0%, var(--bg-surface) 100%);
}
.tech-panel.forbidden {
  border-color: rgba(255, 69, 58, 0.25);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.04) 0%, var(--bg-surface) 100%);
}

.panel-tag-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tech-panel.safe .panel-tag-header { color: var(--mac-green); }
.tech-panel.forbidden .panel-tag-header { color: var(--mac-red); }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}
.spec-item code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-app-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--mac-cyan);
  word-break: break-all;
}

/* Terminal Inspection Snippet */
.terminal-block {
  background: #0d0e12;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 20px;
}
.terminal-topbar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-hairline);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-code {
  padding: 16px;
  color: #c9d1d9;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.terminal-code .cmd { color: #58a6ff; font-weight: 600; }
.terminal-code .arg { color: #79c0ff; }
.terminal-code .cmt { color: #8b949e; }
.terminal-code .out { color: #7ee787; }

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-btn {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 12px;
}
.faq-btn:hover {
  color: var(--mac-cyan);
}

.faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-body {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
}
.faq-body.open {
  display: block;
}

/* Download Stage Banner */
.download-card {
  background: linear-gradient(180deg, #161720 0%, #101117 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 40px 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-top: 32px;
}
@media (min-width: 600px) {
  .download-card {
    padding: 48px 24px;
  }
}

.download-card img.logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4);
}

/* Single-Line Editorial Colophon Footer */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-hairline);
  background: #08090c;
  padding: 24px 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Hidden SEO Crawler Backlinks (saiakashneela.com, saiakash.dev, geeksdesigns.com) */
.seo-crawler-backlinks {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
