/* ==========================================================================
   FolderMount — Design System & Stylesheet
   Designed for High Performance, Rich Aesthetics & Zero Dependencies
   ========================================================================== */

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

/* CSS Variables / Theme Tokens */
:root {
  --bg-deep: #090a10;
  --bg-base: #0f121d;
  --bg-surface: #161a29;
  --bg-card: #1c2134;
  --bg-card-hover: #232a42;
  --bg-elevated: #28304c;
  --bg-glass: rgba(22, 26, 41, 0.75);
  --bg-glass-card: rgba(28, 33, 52, 0.65);

  --accent-primary: #7c73ff;
  --accent-primary-hover: #9088ff;
  --accent-primary-glow: rgba(124, 115, 255, 0.28);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-success: #4ade80;
  --accent-success-glow: rgba(74, 222, 128, 0.25);
  --accent-warning: #fbbf24;
  --accent-danger: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(124, 115, 255, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--accent-primary-glow);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(124, 115, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(124, 115, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: clip;
}

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

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

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography & Gradient Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #d8d4ff 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-accent {
  background: linear-gradient(135deg, #7c73ff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 115, 255, 0.12);
  border: 1px solid var(--border-accent);
  color: #b4aeff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Navigation Bar */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(124, 115, 255, 0.35);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(124, 115, 255, 0.18);
  border: 1px solid var(--border-accent);
  color: #b4aeff;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.mobile-only-item {
  display: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #635bff 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-primary-hover) 0%, #766dff 100%);
  color: #ffffff;
  box-shadow: 0 6px 26px rgba(124, 115, 255, 0.45);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1.5px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Microsoft Store Official Badge Button */
.ms-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 115, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #202020;
  overflow: hidden;
}

.ms-store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 115, 255, 0.4);
  border-color: var(--accent-primary);
}

.ms-store-badge-img {
  display: block;
  height: 56px;
  width: auto;
  border-radius: var(--radius-lg);
}

.download-card .ms-store-badge-link {
  width: 100%;
}

.download-card .ms-store-badge-img {
  height: 56px;
  width: auto;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(124, 115, 255, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.hero-pill-badge {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  color: var(--accent-success);
}

/* ==========================================================================
   Interactive Desktop App Simulator (WPF Desktop Replica)
   ========================================================================== */
.simulator-container {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #1e1e28;
  border: 1px solid #3f3f5a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(124, 115, 255, 0.15);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.simulator-container:hover {
  border-color: rgba(124, 115, 255, 0.5);
}

/* Simulator Titlebar */
.sim-titlebar {
  background: #252530;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d2d44;
  user-select: none;
}

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

.sim-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sim-title-group h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
}

.sim-title-group span {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.sim-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-stat-pill {
  background: #323242;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
  animation: pulse 2s infinite ease-in-out;
}

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

.sim-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.sim-win-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
}

.sim-win-btn:hover {
  background: #323242;
  color: #ffffff;
}

.sim-win-btn.close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Simulator Toolbar */
.sim-toolbar {
  background: #2a2a35;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d2d44;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-tb-left, .sim-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-divider {
  width: 1px;
  height: 24px;
  background: #3f3f5a;
  margin: 0 6px;
}

.sim-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-btn:hover {
  background: #323242;
  color: #ffffff;
}

.sim-btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

.sim-btn-primary:hover {
  background: var(--accent-primary-hover);
}

/* Simulator Data Grid */
.sim-grid-wrap {
  overflow-x: auto;
  background: #1e1e28;
}

.sim-grid {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.sim-grid th {
  background: #252530;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-bottom: 1px solid #2d2d44;
}

.sim-grid td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(45, 45, 68, 0.6);
  color: #cbd5e1;
  vertical-align: middle;
}

.sim-grid tr:hover {
  background: #252534;
}

.sim-grid tr.row-selected {
  background: #2b2b3d;
}

/* Grid Cells */
.sim-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-active {
  background-color: var(--accent-success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-inactive {
  background-color: #64748b;
}

.sim-drive-badge {
  display: inline-block;
  background: #323242;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #3f3f5a;
}

.sim-path-cell {
  font-family: var(--font-mono);
  color: #f8fafc;
  word-break: break-all;
}

.sim-label-cell {
  color: #cbd5e1;
  font-weight: 500;
}

.sim-action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sim-act-btn {
  background: transparent;
  border: 1px solid #3f3f5a;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.sim-act-btn:hover {
  background: #323242;
  color: #ffffff;
  border-color: var(--accent-primary);
}

.sim-act-btn.btn-mount {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: #86efac;
}

.sim-act-btn.btn-mount:hover {
  background: rgba(74, 222, 128, 0.25);
  color: #ffffff;
}

.sim-act-btn.btn-eject {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.sim-act-btn.btn-eject:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

/* Simulator Statusbar & Output */
.sim-statusbar {
  background: #252530;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  border-top: 1px solid #2d2d44;
}

.sim-cli-inspector {
  background: #14141c;
  padding: 12px 18px;
  border-top: 1px solid #28283a;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.sim-cli-tag {
  background: #252536;
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sim-cli-cmd {
  color: #38bdf8;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Add Mapping Modal for Simulator */
.sim-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sim-modal-overlay.active {
  display: flex;
}

.sim-modal {
  background: #252530;
  border: 1px solid #3f3f5a;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sim-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2d2d44;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: #1e1e28;
  border: 1px solid #3f3f5a;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(124, 115, 255, 0.2);
}

.sim-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #2d2d44;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   Interactive MAX_PATH / Path Shortener Tool
   ========================================================================== */
.path-solver-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.path-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.path-input-group .form-control {
  flex: 1;
  min-width: 280px;
  font-family: var(--font-mono);
  background: var(--bg-surface);
}

.path-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.path-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.path-box.problem {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.path-box.solution {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.04);
}

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

.path-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.badge-success {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.path-display {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-all;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.path-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Real-World Applications & Use Cases Section
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.app-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 115, 255, 0.12);
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 115, 255, 0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

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

.app-icon-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.app-icon-badge.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--accent-success);
}

.app-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.app-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.app-feature-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.app-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.apps-spotlight {
  background: linear-gradient(135deg, rgba(30, 34, 53, 0.7) 0%, rgba(20, 23, 36, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(124, 115, 255, 0.1);
}

.spotlight-content {
  flex: 1;
}

.spotlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(124, 115, 255, 0.15);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.spotlight-content h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.spotlight-content p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.spotlight-content p:last-child {
  margin-bottom: 0;
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}

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

.bento-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 115, 255, 0.15);
}

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

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(124, 115, 255, 0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.bento-icon.cyan {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.bento-icon.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--accent-success);
}

.bento-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-visual {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison Matrix Section
   ========================================================================== */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.comparison-table th.highlight, .comparison-table td.highlight {
  background: rgba(124, 115, 255, 0.08);
  border-left: 1px solid var(--border-accent);
  border-right: 1px solid var(--border-accent);
}

.comparison-table th.highlight {
  color: var(--accent-primary-hover);
  font-size: 1.05rem;
}

.check {
  color: var(--accent-success);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cross {
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works Step-by-Step Flow
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--accent-primary);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px var(--accent-primary-glow);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-top: 12px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   Download Hub Section
   ========================================================================== */
.download-grid {
  display: flex;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.download-card.recommended {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(124, 115, 255, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 12px 40px rgba(124, 115, 255, 0.15);
}

.download-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.download-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.download-card .download-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.download-specs {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.download-specs li svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

.checksum-box {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checksum-text-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.checksum-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-card);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a5b4fc;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* --- Tablet / Small Laptop (<= 1024px) --- */
@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .apps-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .spotlight-actions {
    width: 100%;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Mobile / Tablet Portrait (<= 768px) --- */
@media (max-width: 768px) {
  /* Section Spacing */
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Header & Navigation */
  .nav-container {
    height: 64px;
  }

  .nav-actions .btn-ghost {
    display: none; /* Hide GitHub star button on mobile to prevent navbar blowout */
  }

  .nav-actions .btn-primary {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(15, 18, 29, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    display: block;
    width: 100%;
  }

  .mobile-only-item {
    display: block;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 4px;
  }

  /* Hero Section */
  .hero {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero-pill {
    display: none; /* Hide 'Zero admin required' pill on small screens */
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }


  .ms-store-badge-link {
    width: 100%;
    justify-content: center;
    padding: 2px 0;
  }

  .ms-store-badge-img {
    height: 52px;
    width: auto;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    font-size: 0.82rem;
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
  }

  /* Simulator - Hidden on small screens for cleaner mobile experience */
  .simulator-container {
    display: none;
  }

  .sim-tb-left, .sim-tb-right {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .sim-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .sim-divider {
    display: none;
  }

  .sim-grid-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .sim-cli-inspector {
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .sim-statusbar {
    padding: 8px 14px;
    font-size: 0.68rem;
  }

  /* MAX_PATH Solver */
  .path-solver-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .path-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .path-input-group .form-control {
    min-width: 0 !important;
    width: 100%;
  }

  #path-tester-letter {
    max-width: 100% !important;
    width: 100%;
  }

  .path-compare-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .path-box {
    padding: 16px 14px;
  }

  .path-display {
    font-size: 0.78rem;
    padding: 10px;
  }

  /* Use Cases & Spotlight */
  .apps-spotlight {
    padding: 24px 20px;
  }

  .spotlight-content h3 {
    font-size: 1.25rem;
  }

  .spotlight-actions .btn {
    width: 100%;
    text-align: center;
  }

  .app-card {
    padding: 24px 20px;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    padding: 24px 20px;
  }

  /* Comparison Table */
  .comparison-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th, .comparison-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  /* Download Section */
  .download-grid {
    width: 100%;
  }

  .download-card {
    padding: 32px 22px;
  }

  .download-card h3 {
    font-size: 1.4rem;
  }

  .checksum-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .checksum-box > div, .checksum-text-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .checksum-val {
    white-space: normal;
    word-break: break-all;
    font-size: 0.74rem;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
    padding: 9px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- Small Mobile Phones (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .brand-badge {
    display: none; /* Free up space for brand text on narrow devices */
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-primary {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 280px;
  }

  .hero-pill {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .hero-pill-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .sim-brand img {
    width: 26px;
    height: 26px;
  }

  .sim-title-group h4 {
    font-size: 0.9rem;
  }

  .sim-stat-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .sim-win-btn {
    width: 20px;
    height: 20px;
  }

  .path-solver-card {
    padding: 18px 14px;
  }

  .download-card {
    padding: 28px 16px;
  }

  .download-badge {
    right: 16px;
    top: -10px;
    font-size: 0.68rem;
    padding: 3px 9px;
  }
}
