/* ==========================================================================
   DiskViewer Product Homepage — Modern Dark Glassmorphic Design System
   ========================================================================== */

:root {
  /* Color Palette (Dracula & Cyber-Indigo Fusion) */
  --bg-darkest: #121318;
  --bg-darker: #18191e;
  --bg-card: rgba(30, 32, 44, 0.72);
  --bg-card-hover: rgba(40, 42, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-active: rgba(255, 255, 255, 0.08);

  /* Borders & Accents */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(139, 233, 253, 0.35);
  --border-active: rgba(189, 147, 249, 0.45);

  /* Typography Colors */
  --text-main: #f8f8f2;
  --text-muted: #a0a6be;
  --text-dim: #6272a4;
  --text-highlight: #ffffff;

  /* Vibrant Accent Palette (Matching App Categories) */
  --accent-cyan: #8be9fd;
  --accent-purple: #bd93f9;
  --accent-pink: #ff79c6;
  --accent-green: #50fa7b;
  --accent-amber: #ffb86c;
  --accent-red: #ff5555;
  --accent-blue: #6272a4;

  /* App Extension Palette Colors */
  --color-video: #9c27b0;
  --color-audio: #f44336;
  --color-archive: #ff9800;
  --color-exec: #4caf50;
  --color-image: #e91e63;
  --color-doc: #03a9f4;
  --color-code: #3f51b5;
  --color-data: #8d6e63;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 35px rgba(139, 233, 253, 0.25);
  --shadow-glow-purple: 0 0 35px rgba(189, 147, 249, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #1e202c 0%, var(--bg-darkest) 70%);
}

/* Background Ambient Lighting */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-primary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #bd93f9, #6272a4 70%);
  top: -100px;
  left: 20%;
}

.orb-secondary {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #8be9fd, #50fa7b 70%);
  top: 350px;
  right: 10%;
  animation-duration: 16s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.08); }
}

.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1200px;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  z-index: 0;
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 25, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-highlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-icon {
  transform: rotate(5deg) scale(1.05);
}

.version-tag {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(189, 147, 249, 0.15);
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(189, 147, 249, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6272a4 0%, #bd93f9 100%);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(189, 147, 249, 0.25);
  transition: all 0.25s ease !important;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(189, 147, 249, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  padding: 14px 26px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.btn small {
  display: block;
  font-size: 0.76rem;
  opacity: 0.85;
  margin-top: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #bd93f9 0%, #6272a4 100%);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(189, 147, 249, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(189, 147, 249, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* HERO SECTION */
.hero-section {
  padding: 70px 0 60px;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 32, 44, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

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

.badge-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge-pill {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(80, 250, 123, 0.15);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: var(--text-highlight);
}

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

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  width: 16px;
  height: 16px;
}

/* SCREENSHOT SHOWCASE */
.screenshot-showcase {
  width: 100%;
  max-width: 1120px;
  border-radius: var(--radius-xl);
  background: #18191e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(189, 147, 249, 0.15);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(24, 25, 30, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.control-dot.close { background: #ff5555; }
.control-dot.min { background: #ffb86c; }
.control-dot.max { background: #50fa7b; }

.showcase-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab.active {
  background: #282a36;
  color: var(--text-highlight);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.showcase-tab:hover:not(.active) {
  color: var(--accent-cyan);
}

.showcase-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.showcase-frame {
  position: relative;
  background: #18191e;
  overflow: hidden;
}

.showcase-slide {
  display: none;
  position: relative;
}

.showcase-slide.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

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

/* Callout Floating Badges */
.callout-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 25, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.callout-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.callout-1 { top: 12%; left: 8%; }
.callout-2 { top: 20%; right: 28%; animation-delay: 1s; }
.callout-3 { bottom: 12%; left: 16%; animation-delay: 2s; }
.callout-4 { top: 18%; left: 12%; }
.callout-5 { top: 28%; right: 12%; animation-delay: 1.5s; }

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* SECTION TITLES */
.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-highlight);
}

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

/* INTERACTIVE DEMO SECTION */
.demo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 21, 28, 0.8) 50%, transparent 100%);
}

.interactive-treemap-card {
  background: #18191e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.treemap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #21222c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.nav-up-btn {
  background: #282a36;
  border: 1px solid #44475a;
  color: var(--text-main);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-up-btn:not(:disabled):hover {
  background: #383a59;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.nav-up-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.breadcrumb-item {
  color: var(--accent-purple);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.breadcrumb-item:hover {
  background: rgba(189, 147, 249, 0.15);
  color: var(--accent-pink);
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.demo-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-live {
  background: rgba(80, 250, 123, 0.15);
  color: var(--accent-green);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
}

.treemap-viewport {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 480px;
}

.interactive-grid {
  position: relative;
  padding: 12px;
  background: #14151a;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 65px;
  gap: 6px;
  overflow: hidden;
}

/* Treemap Interactive Node */
.treemap-node {
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.treemap-node:hover {
  transform: scale(1.015);
  z-index: 5;
  box-shadow: inset 0 0 0 2px #ffffff, 0 8px 24px rgba(0, 0, 0, 0.5);
  filter: brightness(1.15);
}

.treemap-node.folder {
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.node-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Side Inspector */
.treemap-inspector {
  background: #18191e;
  border-left: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspector-card {
  background: #21222c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.inspector-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-path {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: 16px;
}

.inspector-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-bottom: 16px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}

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

.metric-val {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--accent-cyan) !important;
}

.inspector-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-btn-mock {
  background: #282a36;
  border: 1px solid #44475a;
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-btn-mock:hover {
  background: #383a59;
}

.app-btn-mock.danger {
  color: var(--accent-red);
}

.app-btn-mock.danger:hover {
  background: rgba(255, 85, 85, 0.15);
  border-color: var(--accent-red);
}

.inspector-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.types-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.type-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.type-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.type-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* FEATURES SECTION */
.features-section {
  padding: 90px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(189, 147, 249, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.icon-purple { background: rgba(189, 147, 249, 0.15); color: var(--accent-purple); }
.icon-cyan { background: rgba(139, 233, 253, 0.15); color: var(--accent-cyan); }
.icon-pink { background: rgba(255, 121, 198, 0.15); color: var(--accent-pink); }
.icon-green { background: rgba(80, 250, 123, 0.15); color: var(--accent-green); }
.icon-amber { background: rgba(255, 184, 108, 0.15); color: var(--accent-amber); }
.icon-blue { background: rgba(98, 114, 164, 0.2); color: #8be9fd; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 10px;
}

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

/* COLOR TAXONOMY GRID */
.color-section {
  padding: 80px 0;
  background: rgba(24, 25, 30, 0.5);
}

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

.palette-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #21222c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.palette-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.color-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.color-video .color-swatch { background: var(--color-video); }
.color-audio .color-swatch { background: var(--color-audio); }
.color-archive .color-swatch { background: var(--color-archive); }
.color-exec .color-swatch { background: var(--color-exec); }
.color-image .color-swatch { background: var(--color-image); }
.color-doc .color-swatch { background: var(--color-doc); }
.color-code .color-swatch { background: var(--color-code); }
.color-data .color-swatch { background: var(--color-data); }

.color-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 2px;
}

.color-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* COMPARISON TABLE */
.comparison-section {
  padding: 90px 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #18191e;
  box-shadow: var(--shadow-lg);
}

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

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  background: #21222c;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
}

.comparison-table th.highlighted,
.comparison-table td.highlighted {
  background: rgba(189, 147, 249, 0.06);
  border-left: 1px solid rgba(189, 147, 249, 0.25);
  border-right: 1px solid rgba(189, 147, 249, 0.25);
}

.col-feature {
  font-weight: 600;
  color: var(--text-main);
  max-width: 320px;
}

.check-icon {
  color: var(--accent-green);
  font-weight: 700;
}

.cross-icon {
  color: var(--accent-red);
  opacity: 0.85;
}

.highlight-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* DOWNLOAD SECTION */
.download-section {
  padding: 90px 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 32, 48, 0.8) 0%, transparent 80%);
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  max-width: 960px;
  margin: 0 auto 50px;
}

.dl-card {
  background: #1e202c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 147, 249, 0.4);
}

.dl-card.featured {
  border-color: rgba(189, 147, 249, 0.5);
  background: linear-gradient(180deg, rgba(35, 38, 56, 0.9) 0%, #1e202c 100%);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(189, 147, 249, 0.2);
}

.dl-card-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: linear-gradient(135deg, #bd93f9, #ff79c6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(189, 147, 249, 0.4);
}

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dl-icon {
  width: 52px;
  height: 52px;
  background: #282a36;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.dl-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dl-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.dl-checklist li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-checklist li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
}

.dl-checklist code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.checksum-box {
  margin-top: 20px;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.checksum-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checksum-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.copy-btn {
  background: #282a36;
  border: 1px solid #44475a;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #383a59;
  color: var(--text-highlight);
}

.copy-btn.copied {
  background: var(--accent-green);
  color: #121318;
}

/* TERMINAL QUICKSTART */
.terminal-quickstart {
  max-width: 720px;
  margin: 0 auto;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.terminal-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.terminal-lang {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-purple);
}

.terminal-body {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #f1fa8c;
  line-height: 1.6;
}

.terminal-copy-btn {
  background: #282a36;
  border: 1px solid #44475a;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.terminal-copy-btn:hover {
  background: #383a59;
  border-color: var(--accent-cyan);
}

/* FAQ ACCORDION */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #18191e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #121318;
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 12px 0 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-highlight);
  margin-bottom: 16px;
}

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

.footer-links-group a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .treemap-viewport {
    grid-template-columns: 1fr;
  }
  .treemap-inspector {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .callout-pill {
    display: none; /* Hide floating pins on smaller screens to keep screenshot visible */
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #18191e;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}
