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

body {
  min-height: 100vh;
  background: #070911;
  color: #eef2ff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: #d7e2ff;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #00e5ff, #8b5cf6);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

.top-actions {
  display: flex;
  gap: 12px;
}

.atlas-el {
  background: transparent;
  border: none;
  color: inherit;
  position: relative;
}

.btn-pill {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
}

.hero-card {
  padding: 40px 38px;
  border-radius: 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7ee8fa;
  margin-bottom: 12px;
}

.hero-card h1 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 16px;
}

.lead {
  color: #a6b4cf;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 64ch;
}

.lead code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c7d6ff;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  grid-column: span 2;
  padding: 26px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-card {
  grid-column: span 3;
  padding: 24px 26px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a78bfa;
}

.card h2 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: #9ba8c4;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c9ab8;
}

.metric-value {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff, #7ee8fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-sub {
  font-size: 13px;
  color: #8c9ab8;
}

/* CSS Fallback Mode */
body.css-fallback #gl-canvas {
  opacity: 0;
}

body.css-fallback {
  background: radial-gradient(circle at 20% 10%, #151c35, #070911 65%);
}

body.css-fallback .atlas-el {
  background: rgba(18, 24, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.css-fallback .atlas-el:hover {
  border-color: rgba(126, 232, 250, 0.65);
}

@media (max-width: 860px) {
  .card,
  .metric-card {
    grid-column: span 6;
  }
}
