:root {
  --bg-base: #0a0b10;
  --bg-surface: #14161c;
  --bg-elevated: #1c1e26;
  --bg-hover: #262933;
  --accent: #d4a853;
  --accent-light: #e6c17a;
  --text-primary: #f2f3f5;
  --text-secondary: #9ea4b0;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(212, 168, 83, 0.3);
  
  --bg-glass: rgba(28, 30, 38, 0.35);
  --bg-glass-strong: rgba(25, 27, 34, 0.20);
  --backdrop-blur: blur(14px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text, .c-header {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border);
}

/* Mesh Background */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-base);
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  mix-blend-mode: screen;
}

.mesh-blob--1 { width: 50vw; height: 50vw; background: #2f2a4a; top: -10vw; left: -10vw; animation-duration: 25s; }
.mesh-blob--2 { width: 40vw; height: 40vw; background: #0b2240; bottom: -5vw; right: -5vw; animation-duration: 22s; animation-delay: -5s; }
.mesh-blob--3 { width: 30vw; height: 30vw; background: #201d2d; top: 30vh; left: 40vw; animation-duration: 18s; animation-delay: -10s; }
.mesh-blob--4 { width: 25vw; height: 25vw; background: #000c2e; top: 10vh; right: 20vw; animation-duration: 28s; animation-delay: -15s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, 8%) scale(0.95); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #1a1710;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: rgba(255,255,255,0.15);
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-left: none;
  border-right: none;
  border-top: none;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  background: rgba(212, 168, 83, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon i {
  width: 18px;
  height: 18px;
}
.brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Typography */
.accent-text {
  color: var(--accent);
  font-style: italic;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.badge-pill.mb-4 {
  margin-bottom: 16px;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}
.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Mockup */
.hero-visual {
  margin-top: 80px;
  width: 100%;
  max-width: 900px;
  perspective: 1000px;
}
.mockup-flip-container {
  width: 100%;
  cursor: pointer;
  perspective: 1000px;
}
.mockup-flipper {
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: rotateX(5deg);
}
.mockup-flip-container:hover .mockup-flipper {
  transform: rotateX(0deg);
}
.mockup-flip-container.flipped .mockup-flipper {
  transform: rotateY(180deg) rotateX(0deg);
}
.mockup-front, .mockup-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mockup-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}
.back-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.entities-list {
  list-style: none;
  width: 100%;
  max-width: 400px;
}
.entities-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s;
}
.entities-list li:hover {
  transform: translateX(5px);
  border-color: var(--border-accent);
}
.entities-list li i {
  color: var(--accent);
}
.mockup-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-body {
  display: flex;
  height: 400px;
}
.mockup-sidebar {
  width: 200px;
  border-right: 1px solid var(--border);
  padding: 24px;
  background: var(--bg-glass-strong);
}
.mock-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
}
.mock-line.title { height: 12px; width: 60%; margin-bottom: 24px; background: rgba(255,255,255,0.15); }
.mock-line.short { width: 40%; }
.mock-line.half { width: 80%; }

.mockup-editor {
  flex: 1;
  padding: 40px;
  position: relative;
  text-align: left;
}
.mock-heading { font-size: 24px; margin-bottom: 16px; }
.mock-p { font-size: 15px; font-family: 'Playfair Display', serif; color: var(--text-secondary); line-height: 1.8; }
.mpc-floating-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
}

/* Sections */
.section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: 42px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.section-alt {
  background: rgba(0,0,0,0.1);
  max-width: 100%;
}
.section-alt > div {
  max-width: 1200px;
  margin: 0 auto;
}

/* Features Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-hover);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 83, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
}

/* Split Layout */
.split-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split-content {
  flex: 1;
}
.split-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.check-list {
  list-style: none;
  margin-top: 32px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}
.check-list li i {
  color: var(--accent);
  flex-shrink: 0;
}

.mpc-container {
  width: 100%; max-width: 450px;
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.mpc-editor {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.mpc-editor-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }
.window-title { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.mpc-editor-body {
  padding: 20px; font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; min-height: 140px; font-family: 'Inter', sans-serif;
}
.mpc-entity-highlight {
  display: inline-block; padding: 0 4px; border-radius: 4px;
  background: rgba(212, 168, 83, 0.1); color: var(--text-primary);
  transition: all 0.3s ease; position: relative; font-weight: 500;
}
.mpc-entity-highlight::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s ease;
}
.mpc-entity-highlight.extracted {
  background: rgba(212, 168, 83, 0.3); color: var(--accent);
}
.mpc-entity-highlight.extracted::after { transform: scaleX(1); }

.mpc-compendium { padding: 24px; background: rgba(0,0,0,0.2); }
.c-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 600; font-size: 16px; }
.c-header i { color: var(--accent); width: 18px; }
.c-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-tab {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  border-radius: var(--radius-sm); background: var(--bg-elevated);
  border: 1px solid var(--border); font-size: 13px; transition: all 0.3s ease;
}
.c-tab i { color: var(--text-muted); width: 16px; transition: color 0.3s ease; }
.c-count {
  margin-left: auto; background: rgba(255,255,255,0.05);
  padding: 2px 8px; border-radius: 99px; font-size: 11px;
  transition: all 0.3s ease;
}
.c-tab.pulse {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.2);
  transform: translateY(-2px);
}
.c-tab.pulse i { color: var(--accent); }
.c-tab.pulse .c-count { background: var(--accent); color: #000; transform: scale(1.1); }

/* Footer */
.footer {
  padding: 60px 24px 24px;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-text {
  font-size: 24px;
  display: block;
  margin: 16px 0 8px;
}

.footer-links {
  display: flex;
  gap: 60px;
}
.link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-col strong {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 8px;
}
.link-col a {
  font-size: 14px;
  transition: color 0.2s;
}
.link-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in.visible { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 42px; }
  .split-layout { flex-direction: column; }
  .split-layout.reverse { flex-direction: column-reverse; }
  .nav-links { display: none; }
  .footer-content { flex-direction: column; }
  .local-flow { flex-direction: column; }
  .local-line { transform: rotate(90deg); margin: 16px 0; }
}

/* ============================================
   NEW SECTIONS & INTERACTIVITY
   ============================================ */

/* Feature Card Glow & Interactivity */
.feature-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(212, 168, 83, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card > * {
  position: relative;
  z-index: 2;
}

/* Modal System */
.feature-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.feature-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s 0s;
}
.feature-modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.feature-modal-overlay.active .feature-modal-content {
  transform: translateY(0) scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.modal-body {
  padding: 40px;
}
.modal-title {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--accent);
}
.modal-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.modal-image-placeholder {
  width: 100%;
  height: 250px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

/* RAG Section */
.rag-container {
  width: 100%; max-width: 500px;
  border-radius: var(--radius-lg); padding: 40px 30px;
  background: var(--bg-surface);
  position: relative; overflow: hidden;
}
.rag-horizontal-flow {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px;
}
.rag-node-group {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 2; flex-shrink: 0;
}
.rag-icon-bubble {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.rag-icon-bubble i { color: var(--text-primary); width: 28px; height: 28px; }
.rag-node-group span { font-size: 13px; font-weight: 500; color: var(--text-secondary); text-align: center; }

.rag-node-group.highlight .rag-icon-bubble { background: rgba(91, 180, 196, 0.1); border-color: rgba(91, 180, 196, 0.3); }
.rag-node-group.highlight .rag-icon-bubble i { color: #5bb4c4; }

.rag-node-group.accent .rag-icon-bubble { background: rgba(212, 168, 83, 0.1); border-color: rgba(212, 168, 83, 0.3); }
.rag-node-group.accent .rag-icon-bubble i { color: var(--accent); }

.rag-connection {
  flex: 1; height: 2px; background: rgba(255,255,255,0.05);
  margin: 0 10px; position: relative;
  transform: translateY(-14px);
}
.data-particle {
  position: absolute; top: -3px; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: #5bb4c4; box-shadow: 0 0 10px #5bb4c4, 0 0 20px #5bb4c4;
  animation: flowRight 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}
@keyframes flowRight {
  0% { left: 0%; opacity: 0; transform: scale(0.5); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(0.5); }
}

.rag-model-label {
  text-align: center; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.02); padding: 8px 16px; border-radius: 99px;
  width: fit-content; margin: 0 auto; border: 1px solid var(--border);
}
.rag-model-label i { color: var(--text-secondary); width: 14px; }

/* Local AI Section */
.local-ai-section {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(224,112,112,0.05));
  border-top: 1px solid rgba(255,255,255,0.02);
}
.hw-container {
  width: 100%; max-width: 650px; margin: 40px auto 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.hw-header {
  padding: 12px 20px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.hw-header i { width: 16px; }
.hw-body {
  padding: 40px 30px; display: flex; align-items: center; justify-content: space-between;
}

.hw-app, .hw-server {
  width: 160px; height: 110px; border-radius: var(--radius-md);
  display: flex; flex-direction: column; overflow: hidden;
  position: relative; flex-shrink: 0; background: var(--bg-surface);
  border: 1px solid var(--border);
}
.hw-app-top {
  padding: 8px 12px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.hw-dots { display: flex; gap: 4px; }
.hw-dots span { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.hw-app-content, .hw-server-content {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: 14px; font-weight: 500; color: var(--text-primary); text-align: center;
}
.hw-app-content i { color: var(--accent); width: 28px; height: 28px; }

.hw-server {
  border-color: rgba(224, 112, 112, 0.3);
  background: rgba(224, 112, 112, 0.05);
}
.hw-server-content i { color: #e07070; width: 28px; height: 28px; }
.hw-server-lights {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 6px;
}
.hw-server-lights .light { width: 6px; height: 6px; border-radius: 50%; background: #444; }
.hw-server-lights .light.blink { background: #27c93f; animation: hwBlink 1s infinite; }
.hw-server-lights .light.blink-slow { background: #5bb4c4; animation: hwBlink 2s infinite; }
@keyframes hwBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hw-bridge {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; margin: 0 20px;
}
.bridge-line {
  width: 100%; height: 2px; background: rgba(255,255,255,0.05);
  position: relative;
}
.bridge-particle {
  position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%;
}
.bridge-particle.left-to-right {
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: flowLR 2s linear infinite;
}
.bridge-particle.right-to-left {
  background: #e07070; box-shadow: 0 0 10px #e07070;
  animation: flowRL 2s linear infinite 1s;
}
@keyframes flowLR { 0% { left: 0; opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { left: 100%; opacity:0; } }
@keyframes flowRL { 0% { right: 0; opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { right: 100%; opacity:0; } }

.bridge-lock {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  position: absolute; top: -15px; z-index: 2; color: #27c93f;
  animation: pulseGlow 2s infinite;
}
.bridge-lock i { width: 14px; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(39, 201, 63, 0); } 50% { box-shadow: 0 0 15px rgba(39, 201, 63, 0.3); } }
.bridge-label {
  margin-top: 24px; font-size: 12px; color: var(--text-muted); font-family: monospace;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: translateY(-2px); }
  50% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 0.5; transform: translateY(-2px); }
}

/* ============================================
   MODAL MOCKUPS
   ============================================ */
.mockups-container {
  width: 100%;
  height: 280px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.mockup-ui {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}
.mockup-ui.active {
  opacity: 1;
  pointer-events: auto;
}
.mockup-ui-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mockup 1: Narrative Structure */
.mockup-ui-sidebar {
  width: 100%; max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-ui-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 4px;
}
.mockup-ui-tree-item.indented { margin-left: 24px; }
.mockup-ui-tree-item.active { background: rgba(255,255,255,0.05); }
.mockup-ui-tree-item i { color: var(--text-muted); width: 16px; height: 16px; }
.mockup-ui-tree-item i.drag-handle { cursor: grab; opacity: 0.5; }

/* Mockup 2: Goal Tracking */
.mockup-stats-card {
  padding: 24px;
  border-radius: var(--radius-md);
  width: 100%; max-width: 350px;
}
.stats-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--text-primary);
}
.streak-icon { color: #ff9800; fill: #ff9800; animation: pulse 2s infinite; }
.stats-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.stats-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.stats-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

/* Mockup 3: Knowledge Base */
.mockup-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}
.kb-folder {
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 110px;
  justify-content: space-between;
}
.kb-folder:nth-child(2) { margin-top: 24px; }
.kb-folder:nth-child(3) { margin-top: 48px; }
.kb-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-primary); }
.kb-header i { color: var(--accent); }
.kb-toggle {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  transition: 0.3s;
}
.kb-toggle.active { background: var(--accent); }
.kb-toggle .toggle-knob {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 2px;
  transition: 0.3s;
}
.kb-toggle.active .toggle-knob { left: 18px; }

/* Mockup 4: Cloud Sync */
.mockup-sync-card {
  padding: 24px;
  border-radius: var(--radius-md);
  width: 100%; max-width: 360px;
}
.sync-header-horizontal {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.sync-icon-container {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: rgba(91, 180, 196, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sync-cloud { color: #5bb4c4; width: 28px; height: 28px; }
.sync-text-container h4 { color: var(--text-primary); font-size: 16px; margin-bottom: 4px; }
.sync-text-container p { font-size: 12px; margin-bottom: 0; color: var(--text-muted); }
.sync-drive {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary);
}
.sync-drive i { color: #fbbc04; }

/* Mockup 5: Dynamic Design */
.relative-stack { perspective: 1000px; }
.theme-card {
  width: 250px; height: 150px;
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.5s;
}
.card-bottom { transform: translateZ(-100px) translateY(20px); opacity: 0.3; }
.card-middle { transform: translateZ(-50px) translateY(10px); opacity: 0.6; }
.card-top {
  transform: translateZ(0); z-index: 10;
  display: flex; justify-content: center; align-items: center;
}
.theme-switch-container {
  display: flex; gap: 8px; padding: 8px; border-radius: 99px;
}
.theme-option {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; color: var(--text-muted);
}
.theme-option.active { background: var(--bg-hover); color: var(--text-primary); }

/* Mockup 6: Export */
.export-card {
  padding: 24px; border-radius: var(--radius-md); width: 100%; max-width: 350px;
}
.export-option {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-primary);
}
.export-option i { color: var(--accent); }
.export-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* 3D Hover Effects for Mockup Containers */
.split-visual, .local-ai-visual {
  perspective: 1000px;
}
.mpc-container, .rag-container, .hw-container {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.6s;
  transform: rotateX(5deg);
}
.mpc-container:hover, .rag-container:hover, .hw-container:hover {
  transform: rotateX(0deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Responsive Overrides for Complex UIs */
@media (max-width: 768px) {
  .split-layout { flex-direction: column; text-align: center; gap: 40px; }
  .split-layout.reverse { flex-direction: column-reverse; }
  
  .rag-horizontal-flow { flex-direction: column; gap: 10px; }
  .rag-connection { width: 2px; height: 30px; transform: none; margin: 10px 0; }
  .data-particle { top: 0; left: -3px; animation: flowDown 2s infinite; }
  
  .hw-body { flex-direction: column; gap: 30px; padding: 20px; }
  .hw-bridge { margin: 10px 0; }
  .bridge-line { width: 2px; height: 50px; }
  .bridge-particle.left-to-right { animation: flowDown 2s linear infinite; }
  .bridge-particle.right-to-left { animation: flowUp 2s linear infinite 1s; }
  .bridge-lock { top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
  .bridge-label { margin-top: 10px; }
}
@keyframes flowDown { 0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes flowUp { 0% { bottom: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
