#bg-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  touch-action: none;
}

#bg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

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

:root {
  --bg: #0d0d0d;
  --bg-2: #1a1a1a;
  --surface: #1f1f1f;
  --border: #2d2d2d;
  --text: #e0e0e0;
  --text-dim: #999;
  --text-muted: #666;
  
  --crimson: #8b0000;
  --crimson-bright: #b91c1c;
  --midnight: #0f172a;
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.spinning-logo {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 80px;
  height: 80px;
  z-index: 1000;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.stack > * + * { margin-top: 32px; }

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

.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }
.center-8 { grid-column: 3 / span 8; }

@media (max-width: 900px) {
  .col-6, .center-8 { grid-column: span 12; }
}

.h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: white;
  position: relative;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.9), 0 16px 32px rgba(0, 0, 0, 0.7);
}

.lead {
  color: var(--text-dim);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.7;
}

.surface {
  position: relative;
  background: rgba(31, 31, 31, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.2s var(--ease);
}

.surface:hover {
  border-color: var(--crimson);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.surface h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hr {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 16px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 2px;
  border: 1px solid var(--crimson);
  color: var(--crimson-bright);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--crimson-bright);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--crimson);
  color: var(--crimson-bright);
}

.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--chip {
  height: 32px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--chip:hover {
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--crimson);
  color: var(--crimson-bright);
}

a.link {
  color: var(--crimson-bright);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  position: relative;
  border-bottom: 1px solid transparent;
}

a.link:hover {
  color: var(--text);
  border-bottom-color: var(--crimson);
}

a.link::after {
  display: none;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 16px 0;
}

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

.person {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

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

.cta-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 2px;
  background: rgba(31, 31, 31, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border);
}

.cta-text {
  color: var(--text-dim);
  font-size: 15px;
}

@media (max-width: 600px) {
  .cta-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-bar .btn {
    width: 100%;
  }
}

.code-block {
  background: rgba(31, 31, 31, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  color: var(--text);
  overflow-x: auto;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-text {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.code-text::-webkit-scrollbar {
  display: none;
}

footer {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .animated-bg::before,
  .animated-bg::after {
    animation: none;
  }
}
