/* ============================================================
   Virtual Monitor Manager product page — dark, page-scoped styles.
   Loaded AFTER style.css and scoped under body.vmm so nothing
   here leaks into the other pages. Sibling of magnadesk.css:
   same design language, VMM's own blue/orange identity (the
   taskbar badge alternates deep blue and deep orange).
   ============================================================ */

body.vmm {
  --vmm-bg: #0a0d14;
  --vmm-surface: #0e141f;
  --vmm-card: rgba(255, 255, 255, 0.04);
  --vmm-card-solid: #111927;
  --vmm-border: rgba(255, 255, 255, 0.09);
  --vmm-text: #e8edf5;
  --vmm-dim: #98a5b8;
  --vmm-accent: #4d9fff;
  --vmm-accent-dim: #2f6fc4;
  --vmm-accent-soft: rgba(77, 159, 255, 0.13);
  --vmm-glow: rgba(77, 159, 255, 0.25);
  --vmm-orange: #ff9d4d;
  --vmm-orange-soft: rgba(255, 157, 77, 0.13);

  background: var(--vmm-bg);
  color: var(--vmm-text);
}

body.vmm a {
  color: var(--vmm-accent);
}

/* ----- Shared header / footer, restyled for this page only ----- */
body.vmm .site-header {
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vmm-border);
}

body.vmm .site-nav a:hover {
  color: var(--vmm-accent);
}

body.vmm .nav-toggle {
  border-color: var(--vmm-border);
}

body.vmm .site-footer {
  background: var(--vmm-surface);
  border-top: 1px solid var(--vmm-border);
  color: var(--vmm-dim);
  margin-top: 0;
}

body.vmm .site-footer a {
  color: var(--vmm-accent);
}

/* ----- Sections ----- */
body.vmm .section {
  padding: 4rem 0;
}

body.vmm .vmm-alt {
  background: var(--vmm-surface);
}

body.vmm .section h2 {
  color: var(--vmm-text);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

body.vmm .section h3 {
  color: var(--vmm-text);
}

body.vmm .section .container > p {
  color: var(--vmm-dim);
  max-width: 720px;
}

body.vmm .section .container > p strong,
body.vmm .feature-list strong {
  color: var(--vmm-text);
}

body.vmm code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--vmm-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--vmm-border);
  border-radius: 5px;
  padding: 0.08em 0.35em;
}

.vmm-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vmm-accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

.vmm-muted {
  color: var(--vmm-dim);
  font-size: 0.95rem;
}

/* ----- Cards ----- */
body.vmm .card {
  background: var(--vmm-card);
  border: 1px solid var(--vmm-border);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.2s;
}

body.vmm .card:hover {
  border-color: rgba(77, 159, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

body.vmm .card h3 {
  color: var(--vmm-text);
}

body.vmm .card p {
  color: var(--vmm-dim);
  margin-bottom: 0;
}

body.vmm .card p + p {
  margin-top: 0.75rem;
}

body.vmm .card p strong {
  color: var(--vmm-text);
}

.vmm-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vmm-accent);
  background: var(--vmm-accent-soft);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.vmm-tag--orange {
  color: var(--vmm-orange);
  background: var(--vmm-orange-soft);
  border-color: rgba(255, 157, 77, 0.3);
}

/* ----- Feature lists ----- */
body.vmm .feature-list li {
  color: var(--vmm-dim);
}

body.vmm .feature-list li::before {
  color: var(--vmm-accent);
}

/* ----- Buttons ----- */
body.vmm .btn-primary {
  background: linear-gradient(135deg, #2f7fe0, #5aa8ff);
  color: #f2f8ff;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--vmm-glow);
}

body.vmm .btn-primary:hover {
  background: linear-gradient(135deg, #3b8cec, #6fb4ff);
  box-shadow: 0 0 32px var(--vmm-glow);
}

body.vmm .btn-secondary {
  background: transparent;
  color: var(--vmm-text);
  border: 1px solid var(--vmm-border);
  border-radius: 10px;
}

body.vmm .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ----- kbd chips ----- */
body.vmm kbd {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85em;
  color: var(--vmm-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--vmm-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  white-space: nowrap;
}

/* ----- Tables (shortcuts + comparison) ----- */
body.vmm .shortcut-table table,
body.vmm .comparison-table table {
  background: var(--vmm-card-solid);
  border: 1px solid var(--vmm-border);
}

body.vmm .shortcut-table th,
body.vmm .shortcut-table td,
body.vmm .comparison-table th,
body.vmm .comparison-table td {
  border-bottom: 1px solid var(--vmm-border);
}

body.vmm .shortcut-table thead th,
body.vmm .comparison-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--vmm-text);
}

body.vmm .shortcut-table td,
body.vmm .comparison-table td {
  color: var(--vmm-dim);
}

body.vmm .shortcut-table td:first-child,
body.vmm .comparison-table tbody td:first-child {
  color: var(--vmm-accent);
}

/* ----- Grid diagram (workspace grid section) ----- */
body.vmm .grid-diagram {
  grid-template-columns: repeat(3, 72px);
  gap: 6px;
}

body.vmm .grid-diagram .grid-cell {
  width: 72px;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vmm-border);
  border-radius: 8px;
  color: rgba(232, 237, 245, 0.35);
  font-size: 1rem;
}

body.vmm .grid-diagram .grid-cell.occupied {
  background: rgba(77, 159, 255, 0.08);
  border-color: rgba(77, 159, 255, 0.4);
  color: var(--vmm-dim);
}

body.vmm .grid-diagram .grid-cell.active {
  background: var(--vmm-accent-soft);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--vmm-text);
  box-shadow: 0 0 14px var(--vmm-glow);
}

/* ----- FAQ ----- */
body.vmm .faq-item {
  border-bottom: 1px solid var(--vmm-border);
}

body.vmm .faq-item summary {
  color: var(--vmm-text);
}

body.vmm .faq-item summary::before {
  color: var(--vmm-accent);
}

body.vmm .faq-item p {
  color: var(--vmm-dim);
}

/* ----- Pricing ----- */
body.vmm .pricing-card {
  background: var(--vmm-card);
  border: 1px solid var(--vmm-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.vmm .pricing-card.featured {
  border-color: rgba(77, 159, 255, 0.5);
  box-shadow: 0 0 30px rgba(77, 159, 255, 0.12);
}

body.vmm .pricing-card h3 {
  color: var(--vmm-text);
}

body.vmm .pricing-price {
  color: var(--vmm-text);
}

body.vmm .pricing-card p {
  color: var(--vmm-dim);
}

body.vmm .pricing-note {
  color: var(--vmm-dim);
}

/* ============================================================
   Hero
   ============================================================ */
.vmm-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(77, 159, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(255, 157, 77, 0.07), transparent 70%),
    var(--vmm-bg);
}

.vmm-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.vmm-hero h1 .vmm-gradient {
  background: linear-gradient(120deg, #7ab8ff, #3d8bff 45%, #c4ddff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vmm-hero .vmm-tagline {
  font-size: 1.15rem;
  color: var(--vmm-dim);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.vmm-hero .vmm-tagline strong {
  color: var(--vmm-text);
}

.vmm-hero-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--vmm-dim);
}

/* ----- Pure-CSS desktop mockup (decorative, no assets) -----
   A desktop with one maximized app, the 3×3 workspace grid
   parked top-right, and the taskbar with the letter badge. */
.vmm-desktop {
  position: relative;
  max-width: 780px;
  margin: 3rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--vmm-border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 15% 100%, rgba(47, 111, 196, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 60% at 90% 5%, rgba(150, 90, 40, 0.3), transparent 70%),
    linear-gradient(160deg, #101828, #0b111c 60%, #0d1220);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* the app window sitting on the active workspace */
.vmm-window {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 54%;
  height: 62%;
  border-radius: 8px;
  background: #141d2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.vmm-window-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16%;
  padding: 0 4%;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6rem;
  color: var(--vmm-dim);
}

.vmm-window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.vmm-window-body {
  padding: 6% 5%;
}

.vmm-window-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 7%;
}

.vmm-window-line--short {
  width: 62%;
}

.vmm-window-line--accent {
  width: 40%;
  background: rgba(77, 159, 255, 0.45);
}

/* the workspace grid panel, parked top-right like the manual says */
.vmm-panel {
  position: absolute;
  top: 7%;
  right: 4.5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 22%;
  padding: 4px;
  border-radius: 8px;
  background: rgba(13, 19, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vmm-cell {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 245, 0.3);
}

.vmm-cell--occupied {
  background: rgba(77, 159, 255, 0.1);
  border-color: rgba(77, 159, 255, 0.45);
  color: rgba(232, 237, 245, 0.65);
}

.vmm-cell--active {
  background: rgba(77, 159, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  animation: vmm-cell-pulse 3s ease-in-out infinite;
}

@keyframes vmm-cell-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(77, 159, 255, 0.35); }
  50% { box-shadow: 0 0 12px rgba(77, 159, 255, 0.75); }
}

/* the taskbar with the alternating letter badge */
.vmm-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 1.5%;
  background: rgba(9, 12, 19, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vmm-task {
  width: 3.2%;
  min-width: 16px;
  height: 58%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.vmm-badge {
  width: 3.2%;
  min-width: 16px;
  height: 58%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: #1e5eb8;
  animation: vmm-badge-flip 6s steps(1) infinite;
}

@keyframes vmm-badge-flip {
  0%, 100% { background: #1e5eb8; }
  50% { background: #b85e1e; }
}

.vmm-taskbar-clock {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--vmm-dim);
}

.vmm-desktop-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--vmm-dim);
}

/* ============================================================
   Feature blocks (wide highlight rows)
   ============================================================ */
.vmm-feature {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--vmm-card);
  border: 1px solid var(--vmm-border);
  border-radius: 16px;
}

.vmm-feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.vmm-feature > p {
  color: var(--vmm-dim);
}

.vmm-feature > p strong {
  color: var(--vmm-text);
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .vmm-cell--active {
    animation: none;
    box-shadow: 0 0 8px rgba(77, 159, 255, 0.5);
  }

  .vmm-badge {
    animation: none;
  }

  body.vmm .card,
  body.vmm .card:hover,
  body.vmm .btn:hover {
    transform: none;
  }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  body.vmm .section {
    padding: 3rem 0;
  }

  .vmm-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .vmm-feature {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .vmm-window {
    width: 62%;
  }

  .vmm-panel {
    width: 28%;
  }
}
