:root {
  /* Deep-space background scale */
  --space-950: #03060f;
  --space-900: #091124;
  --space-800: #112142;
  --space-700: #1e3a6c;

  /* Brand accent scale, sampled from the logo's gradient */
  --brand-200: #b9e6ff;
  --brand-300: #7dd0ff;
  --brand-400: #22a6ff;
  --brand-500: #0d7fe0;
  --brand-600: #0b5fc2;

  --text-primary: #e8ecff;
  --text-muted: #8695bf;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--space-950);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

/* Radial deep-space vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 12%,
      rgba(30, 58, 108, 0.42),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 70% at 80% 90%,
      rgba(17, 33, 66, 0.56),
      transparent 50%
    ),
    radial-gradient(circle at 50% 50%, var(--space-900) 0%, var(--space-950) 65%);
}

/* Faint technical grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 166, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 90%);
}

/* Corner brackets */
.corner {
  position: fixed;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-color: rgba(125, 208, 255, 0.28);
  border-style: solid;
  border-width: 0;
}

.corner--tl {
  top: 28px;
  left: 28px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.corner--tr {
  top: 28px;
  right: 28px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.corner--bl {
  bottom: 28px;
  left: 28px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.corner--br {
  bottom: 28px;
  right: 28px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
}

body.is-ready .content {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 10px 2px rgba(125, 208, 255, 0.6);
  animation: pulse-glow 3.2s ease-in-out infinite;
}

.mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mark-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(34, 166, 255, 0.32),
    transparent 70%
  );
  filter: blur(20px);
  animation: pulse-glow 3.2s ease-in-out infinite;
}

.mark-img {
  position: relative;
  z-index: 1;
  width: min(60vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(34, 166, 255, 0.35));
}

.name {
  margin: 0 0 0.6rem;
  font-size: clamp(1.05rem, 1.6vw + 0.7rem, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.tagline {
  margin: 0;
  font-size: clamp(0.9rem, 0.6vw + 0.75rem, 1rem);
  color: var(--text-muted);
}

.site-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(134, 149, 191, 0.7);
  letter-spacing: 0.02em;
}

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

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-ready .content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .eyebrow-dot,
  .mark-glow {
    animation: none;
  }
}

@media (max-height: 480px) {
  .eyebrow {
    margin-bottom: 1rem;
  }

  .mark {
    margin-bottom: 0.85rem;
  }

  .mark-img {
    width: min(40vw, 260px);
  }
}
