/* Interim "coming back" page. Same design system as the full site: space background, Audiowide, cyan. */

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

html { background: #0a0e1a; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  background: radial-gradient(ellipse at 50% 35%, #1a1040 0%, #0d1b3e 45%, #0a0e1a 80%);
  overflow-x: hidden;
  position: relative;
}

/* Starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 8%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(200,220,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(180,200,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 75%, rgba(200,210,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 55%, rgba(255,255,255,0.6) 0%, transparent 100%);
}

.stage {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 30px;
  max-width: 760px;
  margin: 0 auto;
}

/* The logo fades up out of the dark, like a light coming back on. */
.logo {
  width: min(380px, 78vw);
  height: auto;
  margin-bottom: 36px;
  opacity: 0;
  animation: power-on 2.2s ease-out 0.3s forwards;
}

.headline {
  font-family: 'Audiowide', cursive;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 2px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 26px rgba(0, 180, 255, 0.5);
  opacity: 0;
  animation: fade-up 1.2s ease-out 1.6s forwards;
}

/* Progress bar: fills to about 85%, then pulses ("almost there"). */
.progress {
  width: min(520px, 88vw);
  height: 18px;
  margin-top: 28px;
  padding: 3px;
  border: 1px solid rgba(77, 217, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.15) inset;
  opacity: 0;
  animation: fade-up 0.8s ease-out 2.2s forwards;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%) no-repeat,
    linear-gradient(90deg, #0090dd, #00b4ff 60%, #4dd9ff);
  background-size: 35% 100%, 100% 100%;
  background-position: -60% 0, 0 0;
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.6);
  animation:
    fill 3.2s cubic-bezier(0.25, 0.8, 0.3, 1) 2.5s forwards,
    shine 2.4s linear 2.5s infinite,
    almost 2.4s ease-in-out 5.8s infinite;
}

.when {
  margin-top: 14px;
  font-family: 'Audiowide', cursive;
  font-size: clamp(18px, 3.8vw, 26px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4dd9ff;
  text-shadow: 0 0 18px rgba(77, 217, 255, 0.45);
  opacity: 0;
  animation: fade-up 1s ease-out 2.8s forwards;
}

/* Boot log: each line pops in like a computer starting up. */
.bootlog {
  list-style: none;
  margin-top: 28px;
  width: min(520px, 92vw);
  padding: 16px 20px;
  text-align: left;
  font-family: Consolas, 'Cascadia Mono', 'SF Mono', Menlo, 'Courier New', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(77, 217, 255, 0.2);
  border-radius: 10px;
}

.bootlog li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  opacity: 0;
  animation: boot-line 0.18s ease-out forwards;
}

.bootlog li::before { content: '>'; color: #4dd9ff; }

/* Dotted leader between the task and its status */
.bootlog .task { flex: 0 1 auto; }
.bootlog li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.25); margin: 0 4px; min-width: 12px; transform: translateY(-4px); }
.bootlog .ok, .bootlog .wait { order: 2; font-weight: 700; }
.bootlog .ok { color: #3ddc84; }
.bootlog .wait { color: #ffb347; animation: blink 1.2s steps(2, start) 5s infinite; }

.bootlog li:nth-child(1) { animation-delay: 3.3s; }
.bootlog li:nth-child(2) { animation-delay: 3.7s; }
.bootlog li:nth-child(3) { animation-delay: 4.1s; }
.bootlog li:nth-child(4) { animation-delay: 4.5s; }

.card {
  margin-top: 22px;
  padding: 24px 28px;
  max-width: 620px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: fade-up 1s ease-out 5s forwards;
}

.card p + p { margin-top: 12px; }
.card strong { color: #fff; }

.contact {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  animation: fade-up 1s ease-out 5.2s forwards;
}

.btn {
  display: inline-block;
  font-family: 'Audiowide', cursive;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b4ff, #0090dd);
  box-shadow: 0 4px 25px rgba(0, 180, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 35px rgba(0, 180, 255, 0.55); }

.btn.ghost {
  background: rgba(0, 0, 0, 0.3);
  color: #4dd9ff;
  border: 1px solid rgba(77, 217, 255, 0.5);
  box-shadow: none;
}

.address {
  margin-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fade-up 1s ease-out 5.4s forwards;
}

.address a { color: #4dd9ff; text-decoration: none; }
.address a:hover { text-decoration: underline; }

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding: 18px 16px 24px;
}

@keyframes power-on {
  0%   { opacity: 0; filter: brightness(0.3); }
  20%  { opacity: 0.7; }
  26%  { opacity: 0.15; }
  34%  { opacity: 0.85; }
  40%  { opacity: 0.35; }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px rgba(0, 180, 255, 0.35)); }
}

@keyframes fill { to { width: 85%; } }

@keyframes shine {
  from { background-position: -60% 0, 0 0; }
  to   { background-position: 160% 0, 0 0; }
}

@keyframes almost {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 180, 255, 0.45); }
  50%      { box-shadow: 0 0 24px rgba(77, 217, 255, 0.9); }
}

@keyframes boot-line { to { opacity: 1; } }

@keyframes blink { 50% { opacity: 0.35; } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* People who turn off animations get everything right away. */
@media (prefers-reduced-motion: reduce) {
  .logo, .headline, .progress, .when, .bootlog li, .card, .contact, .address { animation: none; opacity: 1; }
  .progress-fill { animation: none; width: 85%; }
  .bootlog .wait { animation: none; }
}

@media (max-width: 480px) {
  .bootlog { font-size: 12.5px; padding: 14px 14px; }
  .stage { padding-top: 36px; }
  .card { padding: 20px 18px; font-size: 14px; }
  .contact .btn { width: 100%; text-align: center; }
}
