/* Antlab particle scene — base styles
   Inherited by every variant. Each variant may add its own overrides.
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #000308;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: #e8eef5;
}

#hero {
  position: fixed;
  inset: 0;
}

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

/* ---- Antlab logo (left, white silhouette) ---- */
#antlab-logo {
  position: fixed;
  top: 50%;
  left: 6vw;
  transform: translateY(-50%);
  width: clamp(220px, 22vw, 380px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  z-index: 10;
  pointer-events: none;
}

/* ---- Illuminating glow — bottom + sides ---- */
/* A non-interactive overlay layer that paints a soft radial / linear glow
   from the bottom and edges of the viewport. Each variant can recolour by
   overriding the --glow-* custom properties.
*/
:root {
  --glow-bottom: 100, 180, 255;
  --glow-left: 80, 140, 220;
  --glow-right: 80, 140, 220;
  --glow-intensity: 0.35;
}

.scene-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(ellipse 80% 40% at 50% 110%,
      rgba(var(--glow-bottom), var(--glow-intensity)) 0%,
      rgba(var(--glow-bottom), 0) 60%),
    radial-gradient(ellipse 30% 100% at -5% 50%,
      rgba(var(--glow-left), calc(var(--glow-intensity) * 0.7)) 0%,
      rgba(var(--glow-left), 0) 70%),
    radial-gradient(ellipse 30% 100% at 105% 50%,
      rgba(var(--glow-right), calc(var(--glow-intensity) * 0.7)) 0%,
      rgba(var(--glow-right), 0) 70%);
  mix-blend-mode: screen;
}

/* ---- Liquid Glass utility (Apple-style) ---- */
/* Apply class .glass to any panel to get a frosted, lightly bordered
   translucent surface. Tune via --glass-* custom properties on the panel.
*/
.glass {
  --glass-bg: rgba(20, 28, 40, 0.32);
  --glass-stroke: rgba(255, 255, 255, 0.10);
  --glass-blur: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---- Loading screen (carried over from engine boot) ---- */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000308;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #98a8be;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
}

#progress-container {
  margin-top: 1rem;
  width: min(280px, 50vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

#progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.2s ease;
}
