/* ==========================================================================
   SSH Desktop - Modern, Ultra-Fast SEO Web Application Stylesheet
   Pure CSS3, zero dependencies, 100/100 Core Web Vitals optimized
   ========================================================================== */

:root {
  --bg-dark: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-card-alt: #f0f4f8;
  --border: #e2e8f0;
  --border-focus: #0071e3;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #475569;
  --accent-cyan: #0071e3;
  --accent-blue: #0071e3;
  --accent-apple: #0071e3;
  --accent-sunset: #ff9500;
  --accent-sunset-coral: #ff5e3a;
  --accent-emerald: #059669;
  --accent-green: #28cd41;
  --accent-purple: #7c3aed;
  --accent-amber: #ff9500;
  --accent-red: #ff3b30;
  --code-bg: #f1f5f9;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, Monaco, "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.1);
  --max-w: 1200px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(5, 150, 105, 0.03) 0%, transparent 40%);
  background-repeat: no-repeat;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0071e3;
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
  color: #334155;
  font-size: 0.82rem;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announcement-pill {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-text {
  color: #1e293b;
}

.announcement-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

.announcement-link:hover {
  color: #0071e3;
}

.announcement-close {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.15s;
}

.announcement-close:hover {
  color: #0f172a;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(0, 113, 227, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  white-space: nowrap;
}

/* Quick Search Button */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-search-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(2, 132, 199, 0.4);
  color: #0f172a;
}

.search-icon {
  font-size: 0.9rem;
  color: #0284c7;
}

.search-kbd {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-family: inherit;
  color: #94a3b8;
}

/* Navigation Links & Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links > li > a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.08);
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-item-dropdown:hover .nav-dropdown-toggle,
.nav-item-dropdown.open .nav-dropdown-toggle {
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.08);
}

.dropdown-chevron {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.08);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega Dropdown for 22 Apps */
.mega-dropdown-menu {
  min-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.dropdown-category-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  padding: 4px 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
}

.dropdown-item:hover {
  background: rgba(2, 132, 199, 0.08);
  transform: translateX(3px);
  color: var(--accent-blue) !important;
}

.dropdown-item-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--accent-blue);
}

.dropdown-item-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.dropdown-menu-footer {
  grid-column: span 2;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.dropdown-footer-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-footer-link:hover {
  text-decoration: underline;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 40px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: #0071e3;
  color: #0071e3;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* Command Palette Modal (Ctrl + K) */
.command-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 16px;
  padding-right: 16px;
  animation: fadeInPalette 0.15s ease-out;
}

@keyframes fadeInPalette {
  from { opacity: 0; }
  to { opacity: 1; }
}

.command-palette-card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  animation: slideUpPalette 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpPalette {
  from { transform: translateY(-16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.command-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.command-search-icon {
  font-size: 1.25rem;
  color: #38bdf8;
}

.command-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: inherit;
}

.command-palette-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

.command-esc-badge {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.command-esc-badge:hover {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

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

.command-palette-close-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.command-palette-close-btn:hover {
  background: #f1f5f9;
  border-color: #0071e3;
  color: #0071e3;
  transform: scale(1.08);
}

.command-palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--text-muted);
  transition: all 0.12s ease;
  cursor: pointer;
}

.command-item:hover,
.command-item.selected {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue) !important;
}

.command-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-item-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.command-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.command-item:hover .command-item-title,
.command-item.selected .command-item-title {
  color: #38bdf8;
}

.command-item-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 1px;
}

.command-item-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.command-palette-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: 0.74rem;
}

.command-palette-footer kbd {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  animation: buttonShimmer 4s infinite;
}

@keyframes buttonShimmer {
  0%, 60% { left: -60%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0077ed 0%, #0071e3 100%);
  box-shadow: 0 6px 22px rgba(0, 113, 227, 0.42);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: #0071e3;
  color: #0071e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.18);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 16px 0 8px;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--text-dim);
}

.breadcrumb-list a {
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-separator {
  color: var(--text-dim);
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-pill {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: linear-gradient(135deg, #0071e3 0%, #ff5e3a 50%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.6;
  contain: layout inline-size;
  text-rendering: optimizeSpeed;
  content-visibility: visible;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Terminal Preview Mockup */
.terminal-window {
  margin: 50px auto 0;
  max-width: 960px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.terminal-tab {
  padding: 4px 12px;
  background: #e2e8f0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-tab.active {
  background: #ffffff;
  color: var(--accent-cyan);
  border: 1px solid var(--border);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
  min-height: 280px;
}

.term-cmd { color: #38bdf8; font-weight: 600; }
.term-path { color: #a855f7; }
.term-success { color: #34d399; }
.term-muted { color: #64748b; }
.term-warning { color: #f59e0b; }

/* Grid Sections */
.section {
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
}

/* Feature Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #0071e3;
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-cyan);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* OS Download Matrix Cards */
.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.os-card.highlight {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.os-card:hover {
  transform: translateY(-4px);
  border-color: #0071e3;
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.os-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.os-version {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.os-formats {
  list-style: none;
  text-align: left;
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.os-formats li {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.os-formats li span:last-child {
  color: var(--text-main);
  font-weight: 500;
}

/* CLI Code Snippet Box */
.code-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.code-box code {
  color: #34d399;
  white-space: nowrap;
}

.copy-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 10px;
}

.copy-btn:hover {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comp-table th, 
.comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.comp-table tr:hover td {
  background: rgba(0, 113, 227, 0.04);
}

.comp-table .highlight-col {
  background: rgba(56, 189, 248, 0.05);
  font-weight: 600;
  color: var(--accent-cyan);
}

.check { color: var(--accent-green); font-weight: bold; }
.cross { color: var(--accent-red); font-weight: bold; }
.partial { color: var(--accent-amber); }

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--accent-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* Download Detail Block */
.download-hero {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border);
}

.download-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin: 40px 0;
}

.specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.specs-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.specs-list li span:first-child {
  color: var(--text-muted);
}

.specs-list li span:last-child {
  font-weight: 600;
}

/* Steps guide */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 30px 0;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.steps-list h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.steps-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Callout Box */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent-cyan);
  margin: 20px 0;
  font-size: 0.95rem;
}

.callout strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Modernized Application Footer Styles
   ========================================================================== */

/* Obsolete footer-cta-card removed - handled by macOS Sonoma Footer */

/* Site Footer Main */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 75px 0 38px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(0, 113, 227, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 0%, rgba(255, 94, 58, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 60% 35% at 50% 100%, rgba(255, 149, 0, 0.04) 0%, transparent 70%);
}

/* Sonoma Sunset Top Decorative Spectral Border */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0071e3 20%, #ff5e3a 50%, #ff9500 80%, transparent 100%);
  opacity: 0.85;
}

/* ==========================================================================
   Pre-Footer Call to Action Card - macOS Sonoma Acrylic Glass
   ========================================================================== */
.footer-cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  border: 1px solid rgba(0, 113, 227, 0.18);
  box-shadow: 0 20px 50px rgba(0, 113, 227, 0.08), 0 4px 20px rgba(255, 94, 58, 0.06);
  border-radius: 24px;
  padding: 40px 48px;
  margin-bottom: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(255, 94, 58, 0.15) 0%, rgba(255, 149, 0, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.footer-cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-content {
  flex: 1;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.footer-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0071e3;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(255, 94, 58, 0.08) 100%);
  border: 1px solid rgba(0, 113, 227, 0.22);
  padding: 5px 13px;
  border-radius: 9999px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.08);
}

.footer-cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.footer-cta-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-cta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.cta-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-tag-check {
  color: #28cd41;
  font-weight: 800;
  font-size: 0.9rem;
}

.footer-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer-download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.footer-download-btn small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.footer-download-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0077ed 0%, #0062cc 100%);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.45), 0 0 20px rgba(255, 149, 0, 0.25);
  color: #ffffff !important;
}

.footer-github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.footer-github-btn:hover {
  border-color: #ff9500;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.2);
  transform: translateY(-1px);
}

.footer-github-btn svg {
  color: #0f172a;
}

.footer-github-btn .gh-counter {
  background: rgba(255, 149, 0, 0.12);
  color: #b45309;
  border: 1px solid rgba(255, 149, 0, 0.3);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
}

/* ==========================================================================
   Footer Main 5-Column Grid with macOS System Accents
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.2fr 1.2fr 1.2fr;
  gap: 36px;
  margin-bottom: 45px;
}

.footer-brand-col {
  padding-right: 15px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-version-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(255, 94, 58, 0.1) 100%);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.footer-mission-text {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Status Badge with macOS Mint Green */
.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 205, 65, 0.08);
  border: 1px solid rgba(40, 205, 65, 0.28);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #166534;
  margin-bottom: 18px;
  font-weight: 500;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28cd41;
  box-shadow: 0 0 10px #28cd41;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% { transform: scale(0.92); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Distro Chips with macOS Squircles */
.footer-distro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.distro-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3px 9px 3px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.distro-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #94a3b8;
  flex-shrink: 0;
}

/* Distro Brand Authentic Dots */
.distro-chip:nth-child(1)::before { background: #e95420; box-shadow: 0 0 6px rgba(233, 84, 32, 0.6); } /* Ubuntu */
.distro-chip:nth-child(2)::before { background: #d70a53; box-shadow: 0 0 6px rgba(215, 10, 83, 0.6); } /* Debian */
.distro-chip:nth-child(3)::before { background: #ee0000; box-shadow: 0 0 6px rgba(238, 0, 0, 0.6); } /* RHEL */
.distro-chip:nth-child(4)::before { background: #93227f; box-shadow: 0 0 6px rgba(147, 34, 127, 0.6); } /* CentOS */
.distro-chip:nth-child(5)::before { background: #294172; box-shadow: 0 0 6px rgba(41, 65, 114, 0.6); } /* Fedora */
.distro-chip:nth-child(6)::before { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); } /* Rocky */
.distro-chip:nth-child(7)::before { background: #1793d1; box-shadow: 0 0 6px rgba(23, 147, 209, 0.6); } /* Arch */
.distro-chip:nth-child(8)::before { background: #0d597f; box-shadow: 0 0 6px rgba(13, 89, 127, 0.6); } /* Alpine */
.distro-chip:nth-child(9)::before { background: #0071e3; box-shadow: 0 0 6px rgba(0, 113, 227, 0.6); } /* macOS */
.distro-chip:nth-child(10)::before { background: #0078d4; box-shadow: 0 0 6px rgba(0, 120, 212, 0.6); } /* Windows 11 */

.distro-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.16);
  border-color: #0071e3;
  color: #0071e3;
}

/* Column Headings with Distinct macOS Spectral Accents */
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
}

/* Col 2 (22-App Suite): macOS System Blue */
.footer-grid .footer-col:nth-child(2) h4::after {
  background: #0071e3;
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.5);
}
.footer-grid .footer-col:nth-child(2) ul li a:hover {
  color: #0071e3;
}

/* Col 3 (Key Features): macOS Sunset Coral */
.footer-grid .footer-col:nth-child(3) h4::after {
  background: #ff5e3a;
  box-shadow: 0 0 8px rgba(255, 94, 58, 0.5);
}
.footer-grid .footer-col:nth-child(3) ul li a:hover {
  color: #ff5e3a;
}

/* Col 4 (Alternatives & Comparisons): macOS Purple */
.footer-grid .footer-col:nth-child(4) h4::after {
  background: #af52de;
  box-shadow: 0 0 8px rgba(175, 82, 222, 0.5);
}
.footer-grid .footer-col:nth-child(4) ul li a:hover {
  color: #af52de;
}

/* Col 5 (Downloads & Docs): macOS Mint Green */
.footer-grid .footer-col:nth-child(5) h4::after {
  background: #28cd41;
  box-shadow: 0 0 8px rgba(40, 205, 65, 0.5);
}
.footer-grid .footer-col:nth-child(5) ul li a:hover {
  color: #059669;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  color: #64748b;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.footer-col ul li a:hover {
  transform: translateX(4px);
  font-weight: 500;
}

.footer-highlight-link {
  background: linear-gradient(135deg, #0071e3 0%, #ff5e3a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Footer Semantic SEO Cloud - macOS Cupertino Index Card
   ========================================================================== */
.footer-seo-cloud {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 35px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.footer-seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.seo-cloud-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.seo-cloud-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(255, 94, 58, 0.1) 100%);
  color: #0071e3;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 113, 227, 0.22);
}

.footer-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-tag {
  font-size: 0.78rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 5px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
}

.seo-tag:hover {
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.35);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer Bottom Bar & Trust Badges
   ========================================================================== */
.footer-bottom-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom-left p {
  color: #64748b;
  font-size: 0.82rem;
  margin: 0 0 10px 0;
}

.footer-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

/* Trust Pill 1: 256-Bit AES SSH Encryption (macOS Apple Blue) */
.trust-pill:nth-child(1) {
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

/* Trust Pill 2: 0% Idle Server RAM (macOS Mint Green) */
.trust-pill:nth-child(2) {
  background: rgba(40, 205, 65, 0.07);
  color: #166534;
  border: 1px solid rgba(40, 205, 65, 0.25);
}

/* Trust Pill 3: Zero Cloud Telemetry (macOS Sunset Amber) */
.trust-pill:nth-child(3) {
  background: rgba(255, 149, 0, 0.07);
  color: #b45309;
  border: 1px solid rgba(255, 149, 0, 0.25);
}

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

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-nav a {
  color: #64748b;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-legal-nav a:hover {
  color: #0071e3;
  text-decoration: underline;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.back-to-top-btn:hover {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}

.back-to-top-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover .back-to-top-arrow {
  transform: translateY(-2px);
}

/* Floating Back to Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: #38bdf8;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.5);
}

/* ==========================================================================
   Complete Responsive Architecture (1080px, 900px, 768px, 480px, 320px)
   Apple macOS Sonoma Layout Adaptation & Zero Horizontal Overflow
   ========================================================================== */

/* Universal Box Sizing & Media Fluidity */
*, *::before, *::after {
  box-sizing: border-box;
}

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

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* 1. Tablet Landscape & Small Desktop (max-width: 1080px) */
@media (max-width: 1080px) {
  .mobile-toggle {
    display: flex !important;
  }
  .header-search-icon-btn .search-kbd {
    display: none;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-direction: column;
    padding: 14px 18px 18px;
    gap: 8px;
    z-index: 1000;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links > li {
    width: 100%;
  }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    color: var(--text-main);
  }
  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .bento-card-large,
  .bento-card-span-2 {
    grid-column: span 1;
  }
  .workflow-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

/* 2. Tablet Portrait (max-width: 900px) */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .download-detail-grid {
    grid-template-columns: 1fr;
  }
  .docs-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-sidebar {
    display: block;
    width: 100%;
    position: static;
  }
  .docs-sidebar-sticky {
    position: static;
    max-height: none;
  }
  .docs-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
  }
  .footer-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 34px 24px;
    gap: 24px;
  }
  .footer-cta-content {
    max-width: 100%;
  }
  .footer-cta-tags {
    justify-content: center;
  }
  .footer-cta-actions {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* 3. Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-pill {
    max-width: 100%;
    padding: 0 8px;
    margin-bottom: 16px;
  }
  .badge-sunset-pill {
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 999px;
  }
  /* Header adjustments */
  .brand img {
    width: 140px;
    height: auto;
  }
  .header-github-btn .gh-star-label,
  .header-github-btn .gh-counter {
    display: none;
  }
  .header-github-btn {
    padding: 6px 9px;
  }
  .header-cta-btn {
    padding: 7px 13px;
    font-size: 0.82rem;
  }

  /* Hero adjustments */
  .hero {
    padding: 38px 0 24px;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 1.05rem;
    padding: 0 8px;
    margin-bottom: 24px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .hero-meta {
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
  }

  /* macOS Sonoma Window Canvas */
  .mac-window-canvas {
    margin: 20px auto 0;
    border-radius: 14px;
  }
  .mac-titlebar {
    padding: 8px 12px;
  }
  .mac-titlebar-right {
    display: none;
  }
  .mac-titlebar-center {
    font-size: 0.76rem;
  }
  .mac-toolbar {
    padding: 6px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .mac-toolbar::-webkit-scrollbar {
    display: none;
  }
  .mac-segmented-control {
    flex-shrink: 0;
  }
  .mac-segment-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
  .mac-quick-actions {
    display: none;
  }
  .mac-app-viewport {
    min-height: auto;
  }
  .mac-view {
    padding: 14px;
  }
  .sftp-dual-pane {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .docker-container-grid {
    grid-template-columns: 1fr;
  }
  .term-chips-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .term-chip-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .firewall-rule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .firewall-rule-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Sonoma Dock on Mobile */
  .sonoma-dock {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 16px;
    margin-top: 16px;
  }
  .dock-item {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  /* All Grids Collapse to 1 Column */
  .grid-4,
  .grid-3,
  .grid-2,
  .problem-solution-grid,
  .query-encyclopedia-grid,
  .bento-grid,
  .workflow-steps-grid,
  .apps-grid,
  .doc-apps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bento-card-large,
  .bento-card-span-2 {
    grid-column: span 1 !important;
  }
  .bento-card,
  .ps-card,
  .workflow-card,
  .query-card,
  .card,
  .os-card {
    padding: 20px 18px !important;
  }

  /* Comparison Table Mobile Scrolling */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  .comp-table {
    min-width: 620px;
  }
  .comp-table th,
  .comp-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  /* CLI Command Row Mobile */
  .cli-command-row {
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 0.88rem;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  /* Benchmark Section Mobile */
  .benchmark-container {
    padding: 22px 18px;
    margin-top: 24px;
  }
  .benchmark-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.84rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
  }
  .section-desc {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-trust-pills {
    justify-content: center;
  }
  .footer-bottom-right {
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }
  .footer-legal-nav {
    justify-content: center;
  }
  .floating-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* 4. Small Mobile Phones (max-width: 480px down to 320px) */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand img {
    width: 115px;
    max-width: 100%;
    height: auto;
  }
  .header-github-btn {
    display: none;
  }
  .header-cta-btn {
    display: none; /* Hide in tiny phone header to guarantee zero overflow */
  }
  .header-actions {
    gap: 6px;
  }

  .hero-title {
    font-size: 1.75rem;
  }
  .hero-lead {
    font-size: 0.96rem;
  }

  .footer-cta-card {
    padding: 26px 16px;
  }
  .footer-cta-title {
    font-size: 1.35rem;
  }
  .footer-cta-desc {
    font-size: 0.86rem;
  }
  .footer-download-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .footer-github-btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  .command-palette-card {
    max-width: 95vw;
  }
  .command-palette-footer {
    display: none;
  }

  .dock-item {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   macOS Sonoma Cloud Desktop & 22-App Encyclopedia Enhancements
   ========================================================================== */

/* Glassmorphism & Sonoma UI Elements */
.glass-panel {
  background: rgba(13, 19, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.sonoma-dock {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 20px auto 0;
}

.dock-item {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.dock-item:hover {
  transform: translateY(-10px) scale(1.18);
  box-shadow: 0 10px 24px rgba(255, 149, 0, 0.28), 0 4px 10px rgba(0, 113, 227, 0.18);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
}

/* Problem - Solution Section */
.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
  margin: 40px 0;
}

.ps-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.ps-card:hover {
  transform: translateY(-3px);
  border-color: #ff5e3a;
  box-shadow: 0 12px 30px rgba(255, 94, 58, 0.12);
}

.ps-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.ps-problem {
  background: rgba(220, 38, 38, 0.06);
  border-left: 4px solid var(--accent-red);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #991b1b;
  line-height: 1.6;
}

.ps-problem strong {
  color: #ef4444;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.ps-solution {
  background: rgba(5, 150, 105, 0.06);
  border-left: 4px solid var(--accent-green);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #065f46;
  line-height: 1.6;
}

.ps-solution strong {
  color: var(--accent-green);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

/* 22-App Encyclopedia Styles */
.app-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.app-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-filter-btn:hover,
.app-filter-btn.active {
  background: linear-gradient(135deg, #0071e3, #005bb5);
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.12);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.app-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.search-intent-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.app-feature-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.app-feature-list li strong {
  color: var(--text-main);
}

/* Server 1-Line CLI Banner */
.cli-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cli-command-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 18px 0;
  overflow-x: auto;
  gap: 14px;
}

.cli-command-row code {
  color: #047857;
  font-family: var(--font-mono);
  font-size: 1rem;
  white-space: nowrap;
}

/* ==========================================================================
   Documentation Hub & 22-App Tutorial Styles
   ========================================================================== */

.docs-hero-section {
  padding: 64px 0 40px;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

.docs-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.docs-search-bar-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.docs-search-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  outline: none;
}

.docs-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 4px 25px rgba(0, 0, 0, 0.6);
}

.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-pill {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  text-decoration: none;
}

/* CLI Quickstart Banner */
.cli-quickstart-section {
  padding: 40px 0 20px;
}

.cli-banner-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cli-banner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.cli-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cli-banner-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 800px;
}

.cli-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #34d399;
}

/* Docs Layout Grid */
.docs-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.docs-sidebar-sticky {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

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

.docs-toc-list a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-toc-list a:hover {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
}

/* Category Groups & Articles */
.doc-category-group {
  margin-bottom: 48px;
}

.doc-category-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.doc-app-article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s;
}

.doc-app-article:hover {
  border-color: #334155;
}

.doc-app-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.app-number-tag {
  background: #38bdf8;
  color: #070a12;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.doc-app-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.search-intent-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.doc-screenshot-frame {
  margin: 20px 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.doc-screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  font-size: 0.8rem;
  color: #64748b;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.doc-steps-list {
  padding-left: 20px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.doc-steps-list strong {
  color: var(--text-main);
}

.doc-steps-list kbd {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Apps Grid for Apps 11-16, 18-22 */
.doc-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.doc-app-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.doc-app-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.doc-app-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.doc-app-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.doc-card-tips {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Handled by Master Responsive Architecture */

/* ==========================================================================
   Top SEO Search Queries & Keyword Directory Styles
   ========================================================================== */

.query-encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.query-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.query-card:hover {
  border-color: #0071e3;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.12);
}

.query-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.query-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.query-solution {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.query-solution code,
.query-solution kbd {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.query-solution strong {
  color: var(--text-main);
}

.query-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: #047857;
  font-weight: 600;
}

.query-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.query-link:hover {
  color: #0071e3;
  text-decoration: underline;
}

/* Semantic SEO Keyword Directory Bar */
.seo-keywords-cloud-wrap {
  padding: 24px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
  margin-bottom: 24px;
}

.seo-keywords-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 10px;
}

.seo-keywords-list {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #475569;
}

.seo-keywords-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.seo-keywords-list a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* User Screenshot Placeholder Styling */
.screenshot-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-placeholder .placeholder-overlay {
  display: none;
}

.screenshot-placeholder.needs-image {
  border: 2px dashed #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.screenshot-placeholder.needs-image img {
  display: none;
}

.screenshot-placeholder.needs-image .placeholder-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: #94a3b8;
}

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.placeholder-content h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.placeholder-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.placeholder-content code {
  color: #38bdf8;
  background: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Homepage Bento Grid, Benchmark, Workflow & Cloud Provider Styles
   ========================================================================== */

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #0071e3;
  box-shadow: 0 16px 36px rgba(0, 113, 227, 0.12), 0 0 20px rgba(255, 149, 0, 0.08);
  background: #ffffff;
}

.bento-card-large {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.bento-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.bento-link:hover {
  text-decoration: underline;
  color: #0071e3;
}

/* Benchmark Comparison Bars */
.benchmark-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 40px;
}

.benchmark-row {
  margin-bottom: 24px;
}

.benchmark-row:last-child {
  margin-bottom: 0;
}

.benchmark-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.benchmark-bar-track {
  width: 100%;
  height: 28px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.benchmark-bar-fill {
  height: 100%;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  transition: width 0.8s ease-out;
}

.bar-emerald {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.bar-cyan {
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
}

.bar-amber {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bar-red {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Architecture Workflow Steps */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

.workflow-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.workflow-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.workflow-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Cloud Infrastructure Logos Bar */
.cloud-logos-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 35px 0;
}

.cloud-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cloud-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.05);
}

/* Handled by Master Responsive Architecture */



/* ==========================================================================
   macOS Sonoma & Sequoia Native UI/UX Overhaul
   Frosted glassmorphism, authentic window chrome, refined segmented controls
   ========================================================================== */

/* Hero Container Enhancement */
.hero {
  padding: 48px 0 30px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-wallpaper-aura {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 92%;
  max-width: 1100px;
  height: 540px;
  background: radial-gradient(ellipse at 50% 45%, 
    rgba(255, 149, 0, 0.22) 0%, 
    rgba(255, 94, 58, 0.16) 28%, 
    rgba(0, 113, 227, 0.18) 55%, 
    rgba(168, 85, 247, 0.08) 75%, 
    transparent 85%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  contain: layout paint;
  animation: sonomaAuraPulse 7s ease-in-out infinite alternate;
}

@keyframes sonomaAuraPulse {
  0% {
    transform: translate3d(-50%, 0, 0) scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-50%, 0, 0) scale(1.04);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-50%, 0, 0) scale(0.98);
    opacity: 0.82;
  }
}

@media (max-width: 768px) {
  .hero-wallpaper-aura {
    animation: none !important;
    filter: blur(24px);
    height: 340px;
  }
}

/* Authentic macOS Sonoma Window Canvas */
.mac-window-canvas {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 36px auto 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  box-shadow: 
    0 30px 80px -15px rgba(15, 23, 42, 0.16),
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  text-align: left;
  transition: all 0.3s ease;
}

/* macOS Sonoma Titlebar */
.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  user-select: none;
}

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

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}

.mac-dot:hover {
  transform: scale(1.12);
}

.mac-dot-close {
  background: #ff5f56;
  border: 0.5px solid #e0443e;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.mac-dot-minimize {
  background: #ffbd2e;
  border: 0.5px solid #dea123;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.mac-dot-expand {
  background: #27c93f;
  border: 0.5px solid #1aab29;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.mac-titlebar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.mac-conn-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  display: inline-block;
  animation: pulseStatus 2.2s infinite;
}

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

.mac-pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* macOS Segmented App Toolbar */
.mac-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(241, 245, 249, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  gap: 8px;
}

.mac-segmented-control {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.mac-segment-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
}

.mac-segment-btn:hover {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.06);
}

.mac-segment-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
}

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

.mac-tool-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.mac-tool-btn:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: #0071e3;
  color: #0071e3;
}

/* macOS Window Body & App Views */
.mac-app-viewport {
  min-height: 400px;
  position: relative;
  background: #ffffff;
}

.mac-view {
  display: none;
  animation: macFadeIn 0.22s ease-out;
  padding: 22px;
}

.mac-view.active {
  display: block;
}

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

/* View 1: Finder / Dual Pane SFTP */
.sftp-dual-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sftp-pane {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sftp-pane-header {
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.sftp-path-bar {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #0284c7;
}

.sftp-file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sftp-file-table th {
  padding: 6px 10px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.sftp-file-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.sftp-file-table tr:hover td {
  background: rgba(2, 132, 199, 0.05);
}

.sftp-file-icon {
  margin-right: 6px;
  font-size: 0.95rem;
}

.sftp-perm-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 3px;
}

.sftp-status-bar {
  margin-top: 14px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #166534;
}

/* View 2: PTY Terminal with Command Runner */
.term-interactive-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-action-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.term-chip-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 4px;
}

.term-chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 4px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-chip-btn:hover {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  border-color: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.term-screen-box {
  background: #0f172a;
  border-radius: 10px;
  padding: 20px;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  min-height: 290px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* View 3: Docker Container Hub */
.docker-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.docker-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.docker-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.docker-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.docker-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docker-image {
  font-size: 0.76rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.docker-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #475569;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  margin: 10px 0;
}

.docker-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.docker-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
  text-align: center;
}

.docker-btn:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.docker-btn-restart:hover {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* View 4: Database Studio */
.db-studio-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.db-query-bar {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.db-query-input {
  flex: 1;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: inherit;
  color: #0f172a;
}

.db-run-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.db-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.db-data-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.db-data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

/* View 5: Monaco Code Editor */
.monaco-frame {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.monaco-file-tabs {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.monaco-file-tab {
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.monaco-file-tab.active {
  background: #ffffff;
  color: #0284c7;
  border-bottom: 2px solid #0284c7;
}

.monaco-code-body {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  background: #ffffff;
  color: #0f172a;
  padding: 14px 0;
  min-height: 260px;
}

.monaco-lines {
  width: 44px;
  text-align: right;
  padding-right: 14px;
  color: #94a3b8;
  user-select: none;
}

.monaco-code-content {
  flex: 1;
  padding-right: 14px;
}

/* View 6: Visual UFW Firewall */
.firewall-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 20px;
}

.firewall-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.firewall-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

/* Apple iOS/macOS Switch Toggle */
.mac-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.mac-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.mac-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mac-switch input:checked + .mac-slider {
  background-color: #10b981;
}

.mac-switch input:checked + .mac-slider:before {
  transform: translateX(20px);
}

/* Handled by Master Responsive Architecture */


/* ==========================================================================
   Apple-Style Clean Header & Navigation Overhaul
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 1081px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
  }
}

.nav-links > li > a {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.18s ease;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Compact Apple-style Search Icon Button */
.header-search-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9999px;
  padding: 6px 11px;
  color: #64748b;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.header-search-icon-btn:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.3);
  color: #0071e3;
}

.header-search-icon-btn .search-icon {
  font-size: 0.85rem;
  color: #0284c7;
}

.header-search-icon-btn .search-kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

/* Apple-style GitHub Star Button */
.header-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 6px 12px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.header-github-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.gh-star-label {
  font-weight: 600;
}

.header-github-btn .gh-counter {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: #0284c7;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
}

.header-cta-btn {
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}


/* macOS Sonoma Sunset Badges */
.badge-sunset {
  background: rgba(255, 149, 0, 0.12);
  color: #d97706;
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.badge-sunset-pill {
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.08) 0%, rgba(255, 149, 0, 0.12) 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 149, 0, 0.28);
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
}


/* ==========================================================================
   Authentic macOS System Colors System
   ========================================================================== */

/* Apple macOS Gradient Squircle Icon Containers */
.mac-icon-squircle {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.mac-icon-squircle:hover {
  transform: translateY(-2px) scale(1.05);
}

/* macOS Icon Color Variants */
.mac-icon-blue {
  background: linear-gradient(135deg, #0071e3 0%, #5ac8fa 100%);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.mac-icon-mint {
  background: linear-gradient(135deg, #28cd41 0%, #00c7be 100%);
  box-shadow: 0 4px 14px rgba(40, 205, 65, 0.28);
}

.mac-icon-sunset {
  background: linear-gradient(135deg, #ff5e3a 0%, #ff9500 100%);
  box-shadow: 0 4px 14px rgba(255, 94, 58, 0.28);
}

.mac-icon-amber {
  background: linear-gradient(135deg, #ff9500 0%, #ffcc00 100%);
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.28);
}

.mac-icon-purple {
  background: linear-gradient(135deg, #af52de 0%, #5856d6 100%);
  box-shadow: 0 4px 14px rgba(175, 82, 222, 0.28);
}

.mac-icon-teal {
  background: linear-gradient(135deg, #00c7be 0%, #0071e3 100%);
  box-shadow: 0 4px 14px rgba(0, 199, 190, 0.28);
}

.mac-icon-coral {
  background: linear-gradient(135deg, #ff3b30 0%, #ff5e3a 100%);
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.28);
}

.mac-icon-graphite {
  background: linear-gradient(135deg, #3a3a3c 0%, #1c1c1e 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.mac-icon-pink {
  background: linear-gradient(135deg, #ff2d55 0%, #af52de 100%);
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.28);
}

/* macOS Sonoma Dock Colored Squircle Items */
.dock-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dock-item[data-app="sftp"] {
  background: linear-gradient(135deg, #0071e3 0%, #5ac8fa 100%);
  color: #ffffff;
}

.dock-item[data-app="terminal"] {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  color: #30d158;
}

.dock-item[data-app="editor"] {
  background: linear-gradient(135deg, #ff9500 0%, #ffcc00 100%);
  color: #ffffff;
}

.dock-item[data-app="docker"] {
  background: linear-gradient(135deg, #00c7be 0%, #0071e3 100%);
  color: #ffffff;
}

.dock-item[data-app="database"] {
  background: linear-gradient(135deg, #5856d6 0%, #af52de 100%);
  color: #ffffff;
}

.dock-item[data-app="firewall"] {
  background: linear-gradient(135deg, #ff3b30 0%, #ff9500 100%);
  color: #ffffff;
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* macOS Sonoma Workflow Step Color Variants */
.workflow-step-1 {
  background: linear-gradient(135deg, #0071e3, #5ac8fa) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important;
}

.workflow-step-2 {
  background: linear-gradient(135deg, #af52de, #5856d6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(175, 82, 222, 0.3) !important;
}

.workflow-step-3 {
  background: linear-gradient(135deg, #ff5e3a, #ff9500) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3) !important;
}

.workflow-step-4 {
  background: linear-gradient(135deg, #28cd41, #00c7be) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(40, 205, 65, 0.3) !important;
}

/* macOS System Color Badges */
.badge-blue {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.badge-purple {
  background: rgba(175, 82, 222, 0.1);
  color: #af52de;
  border: 1px solid rgba(175, 82, 222, 0.25);
}

.badge-amber {
  background: rgba(255, 149, 0, 0.1);
  color: #d97706;
  border: 1px solid rgba(255, 149, 0, 0.25);
}

.badge-mint {
  background: rgba(40, 205, 65, 0.1);
  color: #166534;
  border: 1px solid rgba(40, 205, 65, 0.25);
}

.badge-coral {
  background: rgba(255, 59, 48, 0.1);
  color: #dc2626;
  border: 1px solid rgba(255, 59, 48, 0.25);
}


/* macOS Segmented Tab Color Dots */
.mac-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.mac-dot-blue { background: #0071e3; box-shadow: 0 0 6px rgba(0, 113, 227, 0.5); }
.mac-dot-mint { background: #28cd41; box-shadow: 0 0 6px rgba(40, 205, 65, 0.5); }
.mac-dot-teal { background: #00c7be; box-shadow: 0 0 6px rgba(0, 199, 190, 0.5); }
.mac-dot-purple { background: #af52de; box-shadow: 0 0 6px rgba(175, 82, 222, 0.5); }
.mac-dot-amber { background: #ff9500; box-shadow: 0 0 6px rgba(255, 149, 0, 0.5); }
.mac-dot-coral { background: #ff3b30; box-shadow: 0 0 6px rgba(255, 59, 48, 0.5); }


/* ==========================================================================
   macOS Scroll-Reveal Animations & Reading Progress
   ========================================================================== */

/* Top Sonoma Sunset Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, #0071e3 0%, #ff5e3a 50%, #ff9500 100%);
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.8), 0 0 16px rgba(255, 94, 58, 0.6);
  pointer-events: none;
}

/* Scroll Reveal Elements with Apple Spring Physics */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .scroll-reveal,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

.scroll-reveal.mac-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scale entrance variant for interactive containers */
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.mac-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}


/* ==========================================================================
   macOS Sonoma 25-App Screenshot Slider & Floating Dock Showcase
   ========================================================================== */

.sonoma-slider-wrapper {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.slider-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  gap: 16px;
  flex-wrap: wrap;
}

.slider-hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-app-badge {
  background: #0071e3;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
}

.slider-app-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-app-tag {
  background: rgba(0, 113, 227, 0.08);
  color: #005bb5;
  border: 1px solid rgba(0, 113, 227, 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.slider-hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-timer-pill.paused {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: timerPulse 1.8s infinite;
}

.slider-timer-pill.paused .timer-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
  animation: none;
}

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

.slider-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slider-control-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slider-control-btn:hover {
  background: #f1f5f9;
  border-color: #0071e3;
  color: #0071e3;
  transform: scale(1.05);
}

.slider-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.slider-open-link:hover {
  background: #0071e3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.slider-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.slider-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, #0071e3 0%, #38bdf8 50%, #ff9500 100%);
}

.slider-screen-frame {
  position: relative;
  background: #0f172a;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

.slider-screen-frame:active {
  cursor: grabbing;
}

.slider-main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1366 / 767;
  max-height: 620px;
  display: block;
  object-fit: contain;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-main-image.anim-fade {
  opacity: 0.3;
  transform: scale(0.985);
}

.slider-hold-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.slider-screen-frame.holding .slider-hold-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.slider-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 45%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  z-index: 10;
  flex-wrap: wrap;
}

.slider-caption-overlay p {
  margin: 0;
  font-size: 0.88rem;
  color: #e2e8f0;
  max-width: 800px;
  line-height: 1.45;
}

.slider-hold-instruction {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
}

.slider-hold-instruction strong {
  color: #38bdf8;
}

/* 25-App Floating Sonoma Dock */
.sonoma-dock-scroll-wrap {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.sonoma-dock-25 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 8px 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.sonoma-dock-25::-webkit-scrollbar {
  display: none;
}

.dock-item-25 {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s, border-color 0.2s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.dock-item-25:hover {
  transform: translateY(-8px) scale(1.18);
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.25);
  border-color: #0071e3;
  z-index: 15;
}

.dock-item-25.active {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
  transform: translateY(-4px);
}

.dock-item-25.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0071e3;
  box-shadow: 0 0 6px rgba(0, 113, 227, 0.9);
}

.dock-item-25[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 30;
}

.dock-item-25:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .slider-hud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
  }
  .slider-hud-left {
    gap: 8px;
    width: 100%;
  }
  .slider-app-title {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  .slider-hud-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .slider-nav-btns {
    gap: 6px;
  }
  .slider-control-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .slider-screen-frame {
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: none;
    height: auto;
    overflow: hidden;
  }
  .slider-screen-frame picture {
    width: 100%;
    display: block;
    line-height: 0;
  }
  .slider-main-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
  .slider-caption-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 12px 14px;
    background: #0f172a;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .slider-caption-overlay p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #e2e8f0;
  }
  .slider-hold-instruction {
    font-size: 0.72rem;
    color: #94a3b8;
  }
  .sonoma-dock-scroll-wrap {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-sizing: border-box;
  }
  .sonoma-dock-25 {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 6px 10px;
    box-sizing: border-box;
  }
  .dock-item-25 {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .slider-hud-header {
    padding: 8px 10px;
  }
  .slider-app-title {
    font-size: 0.92rem;
  }
  .slider-app-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .slider-app-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .slider-timer-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .slider-control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .slider-open-link {
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  .dock-item-25 {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 1.05rem;
  }
  .slider-caption-overlay {
    padding: 10px 12px;
  }
  .slider-caption-overlay p {
    font-size: 0.78rem;
  }
}


