/* Quadra Labs - Aero Programming Language Design System
   Aesthetic Soft Graphite / Dark-Slate "Lightish Dark" Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Soft Graphite / Lightish-Dark Theme Palette */
  --bg-primary: #121723;
  --bg-secondary: #181F2E;
  --bg-tertiary: #1F283B;
  --bg-card: rgba(28, 36, 52, 0.65);
  --bg-pill: rgba(26, 34, 49, 0.85);
  --bg-editor: #151B27;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(56, 189, 248, 0.35);
  
  --accent-cyan: #38BDF8;
  --accent-blue: #60A5FA;
  --accent-indigo: #818CF8;
  --accent-purple: #A78BFA;
  --accent-emerald: #34D399;
  --accent-amber: #FBBF24;
  --accent-pink: #F472B6;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --gradient-quadra: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-text: linear-gradient(135deg, #FFFFFF 30%, #BAE6FD 70%, #E0E7FF 100%);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.65;
  background: radial-gradient(circle at 50% 0%, #1A2234 0%, #121723 60%);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   FLOATING PILL NAVBAR
   ========================================== */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

.pill-navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-pill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
  max-width: 900px;
  width: 100%;
}

.pill-navbar:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-quadra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-weight: 800;
  font-size: 0.85rem;
}

.logo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

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

.btn-pill-cta {
  text-decoration: none;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-pill-cta:hover {
  background: var(--accent-cyan);
  color: #0F172A;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding-top: 9.5rem;
  padding-bottom: 4.5rem;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-main);
  color: #0F172A;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

/* ==========================================
   PLAYGROUND / REPL SECTION
   ========================================== */
.playground-section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.repl-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.repl-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; opacity: 0.8; }
.dot-yellow { background: #F59E0B; opacity: 0.8; }
.dot-green { background: #10B981; opacity: 0.8; }

.preset-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selector-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.preset-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.preset-select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.repl-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

@media (max-width: 850px) {
  .repl-body {
    grid-template-columns: 1fr;
  }
}

.editor-container {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-editor);
}

.editor-titlebar {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.editor-area-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

.line-numbers {
  padding: 1rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: right;
  user-select: none;
  background: rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.6;
  min-width: 36px;
}

.code-editor {
  flex: 1;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 1rem;
  border: none;
  outline: none;
  resize: none;
  white-space: pre;
  tab-size: 2;
}

.output-container {
  background: #111622;
  display: flex;
  flex-direction: column;
}

.output-titlebar {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.output-console {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  flex: 1;
  overflow-y: auto;
  color: var(--text-muted);
}

.console-line {
  margin-bottom: 0.35rem;
}
.console-line.system { color: var(--accent-cyan); }
.console-line.success { color: var(--accent-emerald); }
.console-line.error { color: var(--accent-pink); }
.console-line.warn { color: var(--accent-amber); }

.repl-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.metrics-group {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-run {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-cyan);
  color: #0F172A;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-run:hover {
  background: #7DD3FC;
  transform: translateY(-1px);
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-section {
  padding: 4.5rem 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: rgba(30, 40, 58, 0.75);
  transform: translateY(-3px);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ==========================================
   SYNTAX SHOWCASE / TABS
   ========================================== */
.syntax-section {
  padding: 4.5rem 0;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.syntax-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 850px) {
  .syntax-card {
    grid-template-columns: 1fr;
  }
}

.syntax-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.syntax-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.syntax-bullets {
  list-style: none;
}

.syntax-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.syntax-bullets li i {
  color: var(--accent-cyan);
}

.syntax-code-block {
  background: var(--bg-editor);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* ==========================================
   BENCHMARKS SECTION
   ========================================== */
.benchmarks-section {
  padding: 4.5rem 0;
}

.benchmark-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.bench-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.bench-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  position: relative;
  transition: all 0.2s ease;
}

.bench-tab.active {
  color: var(--accent-cyan);
}

.bench-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
}

.bench-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bench-item {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 1rem;
}

.bench-lang {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bench-bar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  height: 12px;
  overflow: hidden;
}

.bench-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.8s ease;
}

.fill-aero { background: var(--gradient-quadra); }
.fill-rust { background: #F87171; }
.fill-go { background: #38BDF8; }
.fill-node { background: #4ADE80; }
.fill-py { background: #FBBF24; }

.bench-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-muted);
}

/* ==========================================
   DOCS & CLI SECTION
   ========================================== */
.docs-section {
  padding: 4.5rem 0;
}

.cli-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cli-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cli-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.cli-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.cli-cmd {
  background: var(--bg-editor);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

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

/* ==========================================
   TEAM & STORY SECTION
   ========================================== */
.team-section {
  padding: 4.5rem 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  text-align: center;
}

.team-avatars {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.avatar-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-quadra);
  padding: 2px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.avatar-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.avatar-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #0E121B;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}
