/* ==========================================================================
   ArchSearch - Premium Dark Theme & Glassmorphism Design System
   ========================================================================== */

/* --- 1. CSS Custom Properties --- */
:root {
  --bg-primary: #060913;
  --bg-secondary: #0d1222;
  --bg-card: rgba(15, 22, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #06b6d4;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --accent-glow: rgba(6, 182, 212, 0.35);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.4);

  --source-pacman: #1793d1;
  --source-aur: #07b6d5;
  --source-pypi: #3776ab;
  --source-snap: #e95420;
  --source-flatpak: #4a86cf;
  --source-nix: #5277c3;

  --font-inter: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Roboto Mono', monospace;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

/* --- 2. Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-inter);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- 3. Ambient Background & Hero --- */
.hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(13, 18, 34, 0.9) 0%, var(--bg-primary) 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ambient Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orb-float 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(6, 182, 212, 0) 70%);
  top: -150px;
  left: 10%;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0) 70%);
  top: -100px;
  right: 10%;
  animation-delay: -8s;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Watermark */
.arch-watermark {
  position: absolute;
  width: clamp(340px, 55vw, 650px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(6, 182, 212, 0.04);
  z-index: 0;
  pointer-events: none;
  transition: color 1.5s ease, filter 1.5s ease;
  filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.05));
}

.hero:hover .arch-watermark {
  color: rgba(139, 92, 246, 0.06);
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
}

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.logo-icon {
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.5));
  transition: transform var(--transition-bounce);
}

.logo-area:hover .logo-icon {
  transform: scale(1.08) rotate(-4deg);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.25rem auto;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Stats Bar */
.stats-bar {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: opacity var(--transition-normal);
  opacity: 0;
  letter-spacing: 0.02em;
}

.stats-bar span {
  color: var(--accent-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* --- 4. Search Input & Keyboard Shortcut --- */
.search-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  z-index: 10;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-normal), transform var(--transition-fast);
}

.search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 3.5rem;
  font-size: 1.125rem;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(13, 18, 34, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(15, 22, 42, 0.9);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 30px -5px rgba(6, 182, 212, 0.4), 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.search-input:focus ~ .search-icon {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* Keyboard Shortcut Badge */
.search-kbd {
  position: absolute;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-input:focus ~ .search-kbd,
.search-input:not(:placeholder-shown) ~ .search-kbd {
  opacity: 0;
  visibility: hidden;
}

.search-clear {
  position: absolute;
  right: 1.25rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

.search-input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* --- 5. Source Filter Tabs --- */
.filters-container {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.25rem auto 1.5rem auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-container::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.2rem;
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  scroll-snap-align: center;
  transition: all var(--transition-normal);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Active Source-Specific Styles */
.filter-tab.active {
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.filter-tab[data-source="all"].active {
  background: var(--accent-gradient);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.filter-tab[data-source="pacman"].active {
  background: linear-gradient(135deg, #1793d1, #06b6d4);
  box-shadow: 0 4px 20px rgba(23, 147, 209, 0.45);
}

.filter-tab[data-source="aur"].active {
  background: linear-gradient(135deg, #07b6d5, #0ea5e9);
  box-shadow: 0 4px 20px rgba(7, 182, 213, 0.45);
}

.filter-tab[data-source="pypi"].active {
  background: linear-gradient(135deg, #3776ab, #2563eb);
  box-shadow: 0 4px 20px rgba(55, 118, 171, 0.45);
}

.filter-tab[data-source="snap"].active {
  background: linear-gradient(135deg, #e95420, #ea580c);
  box-shadow: 0 4px 20px rgba(233, 84, 32, 0.45);
}

.filter-tab[data-source="flatpak"].active {
  background: linear-gradient(135deg, #4a86cf, #3b82f6);
  box-shadow: 0 4px 20px rgba(74, 134, 207, 0.45);
}

.filter-tab[data-source="nix"].active {
  background: linear-gradient(135deg, #5277c3, #6366f1);
  box-shadow: 0 4px 20px rgba(82, 119, 195, 0.45);
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.filter-tab:hover .filter-dot {
  transform: scale(1.3);
}

.filter-tab.active .filter-dot {
  background-color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.filter-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Source specific dots */
.dot-all { background-color: var(--text-primary); }
.dot-pacman { background-color: var(--source-pacman); }
.dot-aur { background-color: var(--source-aur); }
.dot-pypi { background-color: var(--source-pypi); }
.dot-snap { background-color: var(--source-snap); }
.dot-flatpak { background-color: var(--source-flatpak); }
.dot-nix { background-color: var(--source-nix); }

/* --- 6. Main Content Area & Layout --- */
#main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

/* Error Banner */
.error-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.results-section {
  min-height: 350px;
}

/* --- 7. Next-Gen Result Cards --- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(16, 23, 42, 0.75) 0%, rgba(10, 15, 28, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  position: relative;
  overflow: hidden;
}

/* Card Top Highlight Line */
.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.package-card:hover::before {
  opacity: 1;
}

/* Source-Specific Hover Glow */
.package-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, rgba(22, 32, 56, 0.85) 0%, rgba(12, 18, 33, 0.9) 100%);
}

.package-card[data-source="pacman"]:hover {
  border-color: rgba(23, 147, 209, 0.45);
  box-shadow: 0 14px 35px -8px rgba(23, 147, 209, 0.25);
}

.package-card[data-source="aur"]:hover {
  border-color: rgba(7, 182, 213, 0.45);
  box-shadow: 0 14px 35px -8px rgba(7, 182, 213, 0.25);
}

.package-card[data-source="pypi"]:hover {
  border-color: rgba(55, 118, 171, 0.45);
  box-shadow: 0 14px 35px -8px rgba(55, 118, 171, 0.25);
}

.package-card[data-source="snap"]:hover {
  border-color: rgba(233, 84, 32, 0.45);
  box-shadow: 0 14px 35px -8px rgba(233, 84, 32, 0.25);
}

.package-card[data-source="flatpak"]:hover {
  border-color: rgba(74, 134, 207, 0.45);
  box-shadow: 0 14px 35px -8px rgba(74, 134, 207, 0.25);
}

.package-card[data-source="nix"]:hover {
  border-color: rgba(82, 119, 195, 0.45);
  box-shadow: 0 14px 35px -8px rgba(82, 119, 195, 0.25);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.package-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  letter-spacing: -0.015em;
}

.package-version {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-primary);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

/* Source Badges */
.source-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-pacman { background: rgba(23, 147, 209, 0.15); color: #38bdf8; border: 1px solid rgba(23, 147, 209, 0.35); }
.badge-aur { background: rgba(7, 182, 213, 0.15); color: #22d3ee; border: 1px solid rgba(7, 182, 213, 0.35); }
.badge-pypi { background: rgba(55, 118, 171, 0.15); color: #60a5fa; border: 1px solid rgba(55, 118, 171, 0.35); }
.badge-snap { background: rgba(233, 84, 32, 0.15); color: #fb923c; border: 1px solid rgba(233, 84, 32, 0.35); }
.badge-flatpak { background: rgba(74, 134, 207, 0.15); color: #818cf8; border: 1px solid rgba(74, 134, 207, 0.35); }
.badge-nix { background: rgba(82, 119, 195, 0.15); color: #a5b4fc; border: 1px solid rgba(82, 119, 195, 0.35); }

/* Description */
.package-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  line-height: 1.5;
}

/* Install Command Blocks */
.install-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  margin-bottom: 0.6rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.install-command:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(8, 13, 26, 0.95);
}

.cmd-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.command-text {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
  font-weight: 500;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  color: var(--text-primary);
  transform: scale(1.05);
}

.copy-btn.copied {
  color: #34d399;
  background: rgba(52, 211, 153, 0.18);
  animation: copied 1.2s ease-out;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.package-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.package-link svg {
  transition: transform var(--transition-fast);
}

.package-link:hover {
  color: var(--accent-primary);
}

.package-link:hover svg {
  transform: translate(2px, -2px);
}

/* --- 8. Skeleton Loading States --- */
.skeleton-card {
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.skeleton-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-title {
  height: 24px;
  width: 55%;
  margin-bottom: 0.75rem;
}

.skeleton-badge {
  height: 20px;
  width: 60px;
  border-radius: var(--radius-pill);
}

.skeleton-desc {
  height: 14px;
  width: 90%;
  margin-bottom: 0.5rem;
}

.skeleton-desc-2 {
  height: 14px;
  width: 65%;
  margin-bottom: 1.5rem;
}

.skeleton-cmd {
  height: 40px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* --- 9. Empty & Error States --- */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(15, 22, 38, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.state-icon {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  opacity: 0.6;
}

.state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.state-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  max-width: 420px;
}

/* --- 10. Footer --- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

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

/* --- 11. Animations --- */
@keyframes gradient-shift {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes copied {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --- 12. Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-orb {
    animation: none;
  }
}
