/* SangAI public site. The floor matches the Elsa home graph: #05060c and a
 * soft nebula, with a fake graph on #stage. Dark only. */
:root {
  color-scheme: dark;
  --bg: #05060c;
  --cy: #2ddbf0;
  --ink: #d7f3fa;
  --muted: #5f8ea0;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.5 var(--mono);
}

.floor {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px 20px;
  overflow: hidden;
  background: #05060c;
}

#stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: transparent;
}

.graph-controls {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  z-index: 6;
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.home-graph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.home-graph-bg--video { z-index: 0; }
.home-graph-bg--galaxy { display: block; z-index: 1; }
.home-graph-bg--galaxy.is-overlay { background: transparent; }
.home-graph-bg--css-fallback {
  background:
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 60%, rgba(167, 139, 250, .12), transparent 70%),
    radial-gradient(ellipse 35% 30% at 70% 35%, rgba(45, 212, 191, .10), transparent 70%),
    #05060c;
  animation: home-galaxy-drift 28s ease-in-out infinite alternate;
}
.home-graph-bg--css-fallback.is-overlay {
  background:
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(255, 200, 80, .08), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 60%, rgba(56, 189, 248, .06), transparent 70%);
}
@keyframes home-galaxy-drift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(18deg) brightness(1.08); }
}
.home-graph-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.home-graph-bg-scrim.is-galaxy {
  background: linear-gradient(180deg, rgba(5, 6, 12, .25) 0%, rgba(5, 6, 12, .55) 100%);
}
.home-graph-bg-scrim.is-video {
  background: linear-gradient(180deg, rgba(10, 10, 14, .55) 0%, rgba(10, 10, 14, .72) 100%);
}
.home-graph-bg-scrim.is-mixed {
  background: linear-gradient(180deg, rgba(5, 6, 12, .2) 0%, rgba(5, 6, 12, .45) 100%);
}

/* GitHub link, bottom-right: the transcript owns bottom-left and the Space
 * hint bottom-center. Above #stage (z 3) so the graph never eats the click. */
.site-footer {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  pointer-events: auto;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--cy); }
.site-footer svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 600px) {
  .site-footer {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer a {
    min-height: 36px;
  }
}
