/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #283548;
  --bg-surface: #151d2e;

  /* Accent colors */
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --novelty: #f59e0b;
  --novelty-glow: rgba(245, 158, 11, 0.2);
  --active: #10b981;
  --active-glow: rgba(16, 185, 129, 0.2);
  --stale: #6b7280;
  --overdue: #ef4444;
  --overdue-glow: rgba(239, 68, 68, 0.15);
  --explore: #8b5cf6;
  --explore-glow: rgba(139, 92, 246, 0.2);
  --info: #3b82f6;

  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #c4b5fd;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-gap: 120px;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 3px;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--primary-glow);
  border-radius: 100px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 32px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--explore));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: pulse-slow 8s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--explore-glow) 0%, transparent 70%);
  animation: pulse-slow 10s ease-in-out infinite reverse;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-text .hero-appname {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 28px;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-primary {
  border-color: rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
}

.badge-novelty {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.badge-explore {
  border-color: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

/* Hero mockup preview */
.hero-mockup {
  position: relative;
  perspective: 1000px;
}

.mockup-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mockup-window:hover {
  transform: rotateY(0) rotateX(0);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red {
  background: #ef4444;
}

.mockup-dot.yellow {
  background: #f59e0b;
}

.mockup-dot.green {
  background: #10b981;
}

.mockup-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 20px;
  min-height: 320px;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: var(--overdue);
  background: rgba(239, 68, 68, 0.03);
}

.problem-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.1);
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.comparison-table td {
  background: var(--bg-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .col-traditional {
  color: var(--text-muted);
}

.comparison-table .col-nexus {
  color: var(--active);
  font-weight: 500;
}

.comparison-table .feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   PRINCIPLES SECTION
   ============================================ */
.principle {
  padding: 100px 0;
  position: relative;
}

.principle + .principle {
  border-top: 1px solid var(--border);
}

.principle-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.principle-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.principle-number.p1 {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.principle-number.p2 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.principle-number.p3 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(79, 70, 229, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.principle-number.p4 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.principle-number.p5 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.principle-number.p6 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.principle-number.p7 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.principle-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.principle-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Mockup container */
.mockup-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.mockup-toolbar .dots {
  display: flex;
  gap: 6px;
}

.mockup-toolbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-toolbar .dot-r {
  background: #ef4444;
}

.mockup-toolbar .dot-y {
  background: #f59e0b;
}

.mockup-toolbar .dot-g {
  background: #10b981;
}

.mockup-toolbar .tab-bar {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

.mockup-toolbar .tab {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.mockup-toolbar .tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.mockup-toolbar .tab:hover:not(.active) {
  color: var(--text-secondary);
}

.mockup-content {
  padding: 24px;
  min-height: 360px;
}

/* ============================================
   GRAPH VISUALIZATION (Principle 1)
   ============================================ */
.graph-view {
  position: relative;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

.graph-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.graph-node:hover {
  transform: scale(1.08);
}

.graph-node:hover .node-circle {
  box-shadow: 0 0 30px var(--node-glow, var(--primary-glow));
}

.node-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.node-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: center;
  max-width: 120px;
}

.node-status {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}

/* Graph lines drawn by SVG */
.graph-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.graph-line {
  stroke: rgba(79, 70, 229, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

/* ============================================
   QUICK CAPTURE (Principle 2)
   ============================================ */
.capture-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}

.capture-popup {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 16px;
  padding: 4px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(79, 70, 229, 0.1);
}

.capture-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.capture-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capture-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
}

.capture-input::placeholder {
  color: var(--text-muted);
}

.capture-shortcut {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.capture-tags {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  flex-wrap: wrap;
}

.capture-tag {
  padding: 4px 12px;
  font-size: 0.72rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.capture-tag:hover {
  border-color: var(--primary);
  color: var(--text-secondary);
}

.capture-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 580px;
}

.capture-step {
  text-align: center;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.capture-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.capture-step-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   DRILL DOWN LAYERS (Principle 3)
   ============================================ */
.layers-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.layer-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.layer-tab {
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.layer-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.layer-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.layer-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 12px 12px 12px;
  padding: 24px;
  min-height: 300px;
  animation: fadeIn 0.3s ease;
}

.layer-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.breadcrumb-item {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-item.current {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Timeline for layer 2 */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
  padding: 24px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--active), var(--stale));
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.timeline-dot.done {
  background: var(--active);
}

.timeline-dot.current {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-dot.future {
  background: var(--stale);
}

.timeline-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
}

.timeline-status {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Task list for layer 3 */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--stale);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.task-checkbox.checked {
  background: var(--active);
  border-color: var(--active);
}

.task-checkbox.checked::after {
  content: "";
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.task-title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
}

.task-title.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-tag {
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  border-radius: 100px;
  font-weight: 500;
}

.tag-energy-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.tag-energy-mid {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.tag-energy-low {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ============================================
   ENERGY VIEW (Principle 4)
   ============================================ */
.energy-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.energy-btn {
  flex: 1;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.energy-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.energy-btn.active {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.energy-btn .energy-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.energy-btn .energy-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.energy-btn .energy-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.energy-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================
   DELEGATION HUB (Principle 5)
   ============================================ */
.delegation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.delegate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.delegate-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.delegate-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.delegate-info {
  flex: 1;
  min-width: 0;
}

.delegate-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.delegate-task {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delegate-status {
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: 100px;
  white-space: nowrap;
}

.status-waiting {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.status-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.status-overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.status-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ============================================
   NOVELTY SIDEBAR (Principle 6)
   ============================================ */
.novelty-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.novelty-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.novelty-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.novelty-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.novelty-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.novelty-text {
  flex: 1;
}

.novelty-text h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.novelty-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.streak-counter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.streak-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--novelty);
  font-family: var(--font-mono);
  line-height: 1;
}

.streak-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.streak-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   EXPLORATION MODE (Principle 7)
   ============================================ */
.explore-view {
  position: relative;
}

.explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.explore-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--explore-glow);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
}

.explore-mode-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--explore);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.explore-note {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.explore-note-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.explore-note-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.explore-note-content .highlight {
  background: rgba(139, 92, 246, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  color: #c4b5fd;
}

.explore-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.7rem;
  border-radius: 100px;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s;
}

.explore-link:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.15);
}

.explore-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.explore-action-btn {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.explore-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.explore-action-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.explore-action-btn.primary:hover {
  background: #4338ca;
}

/* ============================================
   FULL LAYOUT SECTION
   ============================================ */
.full-layout {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  margin-top: 48px;
}

.layout-container {
  display: grid;
  grid-template-columns: 64px 1fr 280px;
  grid-template-rows: 1fr 56px;
  height: 560px;
  background: var(--bg-secondary);
}

/* Left nav */
.layout-nav {
  grid-row: 1 / 3;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 4px;
}

.nav-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  font-size: 1.1rem;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.nav-item.active {
  background: var(--primary-glow);
  color: var(--primary);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.nav-spacer {
  flex: 1;
}

/* Main content */
.layout-main {
  padding: 24px;
  overflow-y: auto;
}

.layout-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.layout-main-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.layout-main-actions {
  display: flex;
  gap: 8px;
}

.layout-btn {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.layout-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.layout-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Right panel */
.layout-right {
  border-left: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.1);
}

.layout-right-section {
  margin-bottom: 24px;
}

.layout-right-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

/* Bottom bar */
.layout-bottom {
  grid-column: 2 / 4;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.15);
}

.bottom-capture {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.bottom-capture-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bottom-capture-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bottom-capture-shortcut {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-left: auto;
}

.bottom-energy {
  display: flex;
  gap: 6px;
}

.bottom-energy-btn {
  padding: 6px 12px;
  font-size: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.bottom-energy-btn.active {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* ============================================
   COMPARISON FINAL SECTION
   ============================================ */
.final-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.compare-col {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.compare-col-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}

.compare-col.traditional .compare-col-header {
  background: rgba(107, 114, 128, 0.1);
  color: var(--stale);
}

.compare-col.nexus .compare-col-header {
  background: var(--primary-glow);
  color: #a5b4fc;
}

.compare-col-body {
  padding: 20px 24px;
  background: var(--bg-card);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.compare-item:last-child {
  border-bottom: none;
}

.compare-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tech-option {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--bg-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-option:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}

.tech-option.recommended {
  border-color: rgba(79, 70, 229, 0.3);
  position: relative;
}

.tech-option.recommended::before {
  content: "Khuyến nghị";
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-family: var(--font-mono);
}

.tech-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.tech-option h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-option p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tech-stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-stack-list li {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: 16px;
  position: relative;
}

.tech-stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mockup-window {
    transform: none;
  }

  .layout-container {
    grid-template-columns: 54px 1fr 220px;
    height: 500px;
  }

  .tech-options {
    grid-template-columns: 1fr 1fr;
  }

  .final-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

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

  .energy-selector {
    flex-direction: column;
  }

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

  .layout-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
  }

  .layout-nav {
    grid-row: auto;
    flex-direction: row;
    padding: 8px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .nav-spacer {
    display: none;
  }

  .layout-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .layout-bottom {
    grid-column: 1;
  }

  .tech-options {
    grid-template-columns: 1fr;
  }

  .capture-steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }

  * {
    animation-duration: 0.01ms !important;
  }
}

/* Mini graph nodes in layout */
.mini-graph {
  position: relative;
  height: 180px;
}

.mini-node {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-node:hover {
  transform: scale(1.2);
}

/* Small novelty items for right panel */
.mini-novelty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-novelty:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mini-delegate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-delegate-text {
  flex: 1;
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
