/* ============================================
   LOGORHYTHMS — CSS Design System
   Inspired by Pantheon + Funes.world
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f1019;
  --bg-card: #12131e;
  --bg-card-hover: #181a28;
  --bg-elevated: #1a1c2e;
  
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --cyan-glow-strong: rgba(0, 229, 255, 0.3);
  --purple: #7c4dff;
  --purple-dim: #6200ea;
  --purple-glow: rgba(124, 77, 255, 0.15);
  --red: #ff1744;
  --green: #00e676;
  --yellow: #ffea00;
  --orange: #ff9100;
  
  --text-primary: #e8eaf6;
  --text-secondary: #9fa8da;
  --text-muted: #5c6bc0;
  --text-ghost: #3949ab;
  
  --border: rgba(99, 115, 255, 0.12);
  --border-hover: rgba(0, 229, 255, 0.25);
  
  --font-main: 'Space Grotesk', 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--cyan-glow);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan-dim); }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-primary);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--cyan-glow-strong);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  padding: 12px 16px;
}
.btn-ghost:hover { background: var(--cyan-glow); }

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}
.nav-logo:hover { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

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

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  min-width: 150px;
  z-index: 1001;
  display: none;
  box-shadow: var(--shadow-card);
}
.lang-dropdown.show { display: block; }

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-option:hover {
  background: var(--cyan-glow);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--cyan);
}
.lang-option.active::before {
  content: '✓ ';
  font-size: 0.7rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
}

.hero-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, var(--bg-primary) 70%);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 28px;
}

.hero-title .line {
  display: block;
}

.hero-title .line-ghost {
  color: var(--text-ghost);
  font-weight: 300;
  -webkit-text-stroke: 1px var(--text-muted);
  -webkit-text-fill-color: transparent;
}

.hero-title .line-solid {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-desc strong { color: var(--cyan); font-weight: 600; }
.hero-desc em { color: var(--purple); font-style: normal; font-weight: 500; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-suffix {
  font-size: 1.2rem;
  color: var(--cyan);
  font-weight: 600;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Featured Mind Card */
.featured-mind-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.featured-mind-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--cyan-glow), transparent 60%);
  opacity: 0.3;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.mind-hologram {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.hologram-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
  animation: ring-rotate 8s linear infinite;
}

.ring-1 {
  width: 160px; height: 160px;
  border-color: rgba(0, 229, 255, 0.2);
}
.ring-2 {
  width: 120px; height: 120px;
  border-color: rgba(124, 77, 255, 0.3);
  animation-direction: reverse;
  animation-duration: 6s;
}
.ring-3 {
  width: 80px; height: 80px;
  border-color: rgba(0, 229, 255, 0.4);
  animation-duration: 4s;
}

@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mind-avatar {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.mind-info {
  text-align: center;
  position: relative;
  z-index: 1;
}

.mind-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.mind-info h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.mind-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.mind-corpus {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.3; height: 20px; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 16px;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============ MINDS GRID ============ */
.minds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mind-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mind-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.mind-card .card-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
}
.mind-card:hover .card-glow { opacity: 1; }

.mind-card-featured {
  border-color: var(--cyan-glow-strong);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 229, 255, 0.03));
}

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

.card-avatar {
  position: relative;
  width: 56px; height: 56px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.3;
  animation: ring-rotate 8s linear infinite;
}

.avatar-inner {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
}

.avatar-inner.jobs { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.avatar-inner.jobs::after { content: 'SJ'; color: var(--cyan); position: absolute; font-family: var(--font-mono); }
.avatar-inner.musk { background: linear-gradient(135deg, #1a1a2e, #0d1b2a); }
.avatar-inner.musk::after { content: 'EM'; color: var(--cyan); position: absolute; font-family: var(--font-mono); }
.avatar-inner.tesla { background: linear-gradient(135deg, #1a1a2e, #1b2838); }
.avatar-inner.tesla::after { content: 'NT'; color: var(--purple); position: absolute; font-family: var(--font-mono); }
.avatar-inner.lovelace { background: linear-gradient(135deg, #1a1a2e, #2d1b3d); }
.avatar-inner.lovelace::after { content: 'AL'; color: var(--purple); position: absolute; font-family: var(--font-mono); }
.avatar-inner.feynman { background: linear-gradient(135deg, #1a1a2e, #1b3a2d); }
.avatar-inner.feynman::after { content: 'RF'; color: var(--cyan); position: absolute; font-family: var(--font-mono); }
.avatar-inner.curie { background: linear-gradient(135deg, #1a1a2e, #3d2d1b); }
.avatar-inner.curie::after { content: 'MC'; color: var(--orange); position: absolute; font-family: var(--font-mono); }

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
}
.status-badge.active {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.status-badge.beta {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.status-badge.coming {
  background: rgba(255, 234, 0, 0.08);
  color: var(--yellow);
  border: 1px solid rgba(255, 234, 0, 0.2);
  font-size: 0.55rem;
}

.card-version {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-body { margin-bottom: 20px; }

.card-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

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

.card-metrics {
  display: flex;
  gap: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.metric-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-footer {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============ TECHNOLOGY ============ */
.section-tech {
  background: var(--bg-secondary);
}

.tech-comparison {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tech-col {
  flex: 1;
  padding: 36px;
  border-radius: var(--radius-md);
}

.tech-fiction {
  background: rgba(255, 23, 68, 0.04);
  border: 1px solid rgba(255, 23, 68, 0.15);
}
.tech-real {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(255, 23, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, 0.3);
}
.tech-badge.real {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.tech-col h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.tech-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.icon-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tech-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: var(--border);
}

.divider-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 0;
  letter-spacing: 0.1em;
}

/* Pipeline */
.pipeline-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 48px;
}

.pipeline-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pipe-step {
  text-align: center;
  max-width: 200px;
  padding: 20px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-icon {
  margin: 0 auto 16px;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.pipe-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pipe-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pipe-connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
  width: 40px;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
}

/* ============ DEMO / TERMINAL ============ */
.section-demo {
  background: var(--bg-primary);
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-terminal {
  background: #0d0e18;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

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

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 20px;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-msg {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.88rem;
}

.msg-prefix {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
}

.chat-msg.system .msg-prefix { color: var(--yellow); }
.chat-msg.system .msg-text { color: var(--text-muted); font-size: 0.8rem; }
.chat-msg.ai .msg-prefix { color: var(--cyan); }
.chat-msg.ai .msg-text { color: var(--text-primary); }
.chat-msg.user .msg-prefix { color: var(--green); }
.chat-msg.user .msg-text { color: var(--text-secondary); }

.terminal-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.input-prefix {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.terminal-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.terminal-input input::placeholder {
  color: var(--text-ghost);
}

.send-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: var(--transition);
}
.send-btn:hover { opacity: 1; }

/* Demo Sidebar */
.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-block h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.meta-item span:first-child { color: var(--text-muted); }
.meta-item span:last-child { color: var(--text-secondary); font-family: var(--font-mono); }

.suggest-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
  font-family: var(--font-main);
}
.suggest-btn:hover {
  background: var(--cyan-glow);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ============ TRANSPARENCY ============ */
.section-transparency {
  background: var(--bg-secondary);
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trans-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.trans-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.trans-icon {
  margin-bottom: 20px;
}

.trans-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.trans-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.trans-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* ============ TRIBUTE ============ */
.section-tribute {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), rgba(124, 77, 255, 0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tribute-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tribute-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
}

.tribute-quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: -20px;
  font-size: 5rem;
  color: var(--cyan);
  opacity: 0.2;
  font-style: normal;
}

.tribute-context p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tribute-tagline {
  font-weight: 600;
  color: var(--cyan) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.02em;
}

/* ============ COMMUNITY ============ */
.section-community {
  background: var(--bg-primary);
}

.community-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.comm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.comm-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.comm-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.comm-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.comm-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.cstat {
  text-align: center;
}

.cstat-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.cstat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cstat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ ABOUT ============ */
.section-about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 16px; }

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-text strong { color: var(--cyan); }
.about-text em { color: var(--text-primary); }

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.manifesto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.manifesto-card h4 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--cyan);
}

.principles-list {
  list-style: none;
  counter-reset: principle;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principles-list li {
  counter-increment: principle;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 32px;
  position: relative;
}

.principles-list li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
}

.principles-list li strong {
  color: var(--text-primary);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-primary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-ghost);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  opacity: 0.5;
  transition: var(--transition);
}
.footer-social a:hover { opacity: 1; }

/* ============ SCROLL ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-featured { display: flex; justify-content: center; }
  
  .minds-grid { grid-template-columns: repeat(2, 1fr); }
  .transparency-grid { grid-template-columns: repeat(2, 1fr); }
  .community-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .demo-container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .pipeline-steps { flex-direction: column; align-items: center; }
  .pipe-connector { width: 1px; height: 40px; padding: 0; }
  .connector-line { width: 1px; height: 100%; }
  
  .tech-comparison { flex-direction: column; }
  .tech-divider { flex-direction: row; padding: 16px 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-switcher .lang-btn span { display: none; }
  .lang-btn { padding: 6px 8px; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  
  .minds-grid { grid-template-columns: 1fr; }
  .transparency-grid { grid-template-columns: 1fr; }
  .community-cards { grid-template-columns: 1fr; }
  .community-stats { flex-wrap: wrap; gap: 30px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}
