:root {
  --bg: #0a0a0c;
  --bg-light: #0f0f12;
  --surface: #141418;
  --surface-light: #1a1a1f;
  --border: #1f1f26;
  --border-light: #2a2a33;
  --text: #d4d4d8;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dim: rgba(20, 184, 166, 0.1);
  --accent-faded: rgba(20, 184, 166, 0.6);
  --success: #22c55e;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg {
  width: 24px;
  height: 24px;
}

.nav-title {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link,
.nav-actions a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-actions a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--border-light);
  background: var(--surface);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 14px;
}

/* Compact Hero Banner */
.hero-banner {
  padding: 7rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-emblem {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}

/* NEXUS Section */
.nexus-section {
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.nexus-header {
  text-align: center;
  margin-bottom: 2rem;
}

.nexus-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nexus-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Terminal Demo */
.nexus-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.terminal-status {
  font-size: 11px;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-content {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.terminal-exchange {
  margin-bottom: 1.5rem;
}

.terminal-input {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.terminal-output {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.output-header {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.output-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Terminal Tables */
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 0.5rem 0;
}

.terminal-table th,
.terminal-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.terminal-table th {
  background: var(--bg);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.terminal-table tr:hover td {
  background: rgba(20, 184, 166, 0.03);
}

.success {
  color: var(--success);
}

/* Blinking cursor */
.cursor {
  animation: blink 1s step-end infinite;
}

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

.nexus-cta {
  text-align: center;
}

/* Principles Section */
.principles-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.principle h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.principle p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-brand svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    padding: 0 1rem;
  }
  .nav-link {
    display: none;
  }
  .hero-banner {
    padding: 5rem 1.5rem 2rem;
  }
  .nexus-section {
    padding: 2rem 1rem;
  }
  .principles-section {
    padding: 2rem 1rem;
  }
  .terminal-table {
    font-size: 11px;
  }
  .terminal-table th,
  .terminal-table td {
    padding: 0.375rem 0.5rem;
  }
}

/* Utilities */
.mono {
  font-family: 'JetBrains Mono', monospace;
}
