/* Shared dark theme: gradient spheres + grid + noise + particles + cursor glow.
   Used across the portal and every project page for a consistent look. */

:root {
  --bg: #0A0C10;
  --bg-deep: #06070A;
  --text: #F2EFE8;
  --text-soft: #9B9CA6;
  --line: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);

  --sphere-1: #35C6C2;
  --sphere-2: #8B6FEF;
  --sphere-3: #E8A93F;
  --sphere-4: #E0748A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Ambient dark scene: grid + gradient spheres + noise ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, #12151C 0%, var(--bg) 55%, var(--bg-deep) 100%);
}

.bg-spheres {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -24px));
  transition: transform 0.5s ease-out;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.bg-blob.b1 { width: 560px; height: 560px; top: -160px; left: -140px; background: var(--sphere-1); animation: drift1 34s ease-in-out infinite; }
.bg-blob.b2 { width: 520px; height: 520px; top: -60px; right: -160px; background: var(--sphere-2); animation: drift2 40s ease-in-out infinite; }
.bg-blob.b3 { width: 480px; height: 480px; bottom: -180px; left: 10%; background: var(--sphere-3); animation: drift3 37s ease-in-out infinite; }
.bg-blob.b4 { width: 420px; height: 420px; bottom: -140px; right: 8%; background: var(--sphere-4); animation: drift1 30s ease-in-out infinite reverse; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.1); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 70px) scale(1.12); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.08); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 140px 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* ---------- Shared UI atoms ---------- */
.logo-chip {
  background: #fff;
  border-radius: 16px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gradient-text {
  background: linear-gradient(90deg, var(--sphere-1), var(--sphere-2) 50%, var(--sphere-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- "Find us at the booth" notice (assets/launch.js) ---------- */
.launch a.checking {
  opacity: 0.7;
  cursor: progress;
}

.booth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booth-modal {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: #14161C;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.booth-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.booth-modal h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.booth-modal p {
  margin: 0 0 10px;
  color: var(--text-soft);
  line-height: 1.55;
}

.booth-modal .booth-number {
  color: var(--text);
  font-size: 1.05rem;
}

.booth-modal .booth-number strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--sphere-1), var(--sphere-2), var(--sphere-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.booth-close {
  font: inherit;
  font-weight: 700;
  margin-top: 10px;
  padding: 12px 36px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

.booth-anyway {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-soft);
}
