/* Actually Integrated — temporary landing */

:root {
  --blue-deep: #0a1628;
  --blue-mid: #122a4a;
  --blue-rich: #1e3a5f;
  --accent: #5ec8ff;
  --accent-soft: rgba(94, 200, 255, 0.35);
  --text: #e8f1ff;
  --text-muted: rgba(232, 241, 255, 0.78);
  /* Meets WCAG 2.1 AA ~4.5:1 on --blue-deep for small text (footnote / copyright) */
  --text-faint: rgba(232, 241, 255, 0.72);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--blue-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow-x: hidden;
}

/* Skip link — WCAG 2.4.1 Bypass Blocks */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1.1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-deep);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--accent), 0 4px 24px rgba(0, 0, 0, 0.35);
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
}

/* WCAG 2.4.7 Focus Visible — interactive elements */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Windows / UA forced colors: gradient text can disappear */
@media (forced-colors: active) {
  .title {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }

  .skip-link:focus,
  .skip-link:focus-visible {
    outline-color: Highlight;
  }

  #main-content:focus-visible {
    outline-color: Highlight;
  }
}

/* Animated background layers */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    125deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 35%,
    var(--blue-rich) 55%,
    #0d2847 80%,
    var(--blue-deep) 100%
  );
  background-size: 240% 240%;
  animation: gradientDrift 22s ease-in-out infinite alternate;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.glow--one {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  animation-delay: 0s;
}

.glow--two {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation-delay: -4s;
}

.hero,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(44rem, 94vw);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  text-align: center;
}

/* Large centerpiece animation */
.hero-visual {
  --hero-size: min(92vmin, 28rem, 56vh);
  position: relative;
  width: var(--hero-size);
  height: var(--hero-size);
  flex-shrink: 0;
  border-radius: 50%;
  overflow: visible;
}

.hero-visual__ambient {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.hero-visual__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: heroBlobDrift 14s ease-in-out infinite;
}

.hero-visual__blob--1 {
  width: 78%;
  height: 78%;
  left: -5%;
  top: -8%;
  background: radial-gradient(circle, rgba(94, 200, 255, 0.55), transparent 68%);
  animation-delay: 0s;
}

.hero-visual__blob--2 {
  width: 70%;
  height: 70%;
  right: -12%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.5), transparent 65%);
  animation: heroBlobDrift 18s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.hero-visual__blob--3 {
  width: 55%;
  height: 55%;
  left: 22%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 62%);
  animation: heroBlobPulse 11s ease-in-out infinite;
  animation-delay: -5s;
}

.hero-visual__orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-visual__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(94, 200, 255, 0.12);
}

.hero-visual__ring--outer {
  width: 92%;
  height: 92%;
  border-top-color: rgba(94, 200, 255, 0.65);
  border-right-color: rgba(94, 200, 255, 0.25);
  animation: heroSpinCW 22s linear infinite;
}

.hero-visual__ring--mid {
  width: 72%;
  height: 72%;
  border-style: dashed;
  border-color: rgba(147, 197, 253, 0.22);
  border-top-color: rgba(94, 200, 255, 0.45);
  animation: heroSpinCCW 16s linear infinite;
}

.hero-visual__ring--inner {
  width: 52%;
  height: 52%;
  border-width: 3px;
  border-color: rgba(94, 200, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.35);
  border-left-color: rgba(94, 200, 255, 0.35);
  animation: heroSpinCW 11s linear infinite;
}

.hero-visual__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.65rem, 3vw, 1.35rem);
  padding-bottom: 14%;
  z-index: 2;
}

.hero-visual__bar {
  width: clamp(0.55rem, 2.8vw, 1.05rem);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--accent) 45%,
    rgba(94, 200, 255, 0.35) 100%
  );
  box-shadow:
    0 0 32px rgba(94, 200, 255, 0.55),
    0 0 80px rgba(94, 200, 255, 0.2);
  transform-origin: 50% 100%;
  animation: heroBarWave 2.6s ease-in-out infinite;
}

.hero-visual__bar:nth-child(1) {
  height: clamp(4.5rem, 22vmin, 8.5rem);
  animation-delay: 0s;
}

.hero-visual__bar:nth-child(2) {
  height: clamp(7rem, 32vmin, 12.5rem);
  animation-delay: 0.12s;
}

.hero-visual__bar:nth-child(3) {
  height: clamp(5.5rem, 26vmin, 10rem);
  animation-delay: 0.24s;
}

.hero-copy {
  width: 100%;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#main-content:focus {
  outline: none;
}

#main-content:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 200, 255, 0.08);
  border: 1px solid rgba(94, 200, 255, 0.25);
  border-radius: 999px;
  animation: badgeShimmer 5s ease-in-out infinite;
}

.badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

.title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, rgba(232, 241, 255, 0.88) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .title {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
  }
}

.tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.status {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.status strong {
  color: var(--text);
  font-weight: 600;
}

.divider {
  align-self: center;
  width: min(12rem, 50%);
  height: 1px;
  margin: 2rem 0 1.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 200, 255, 0.5) 20%,
    rgba(94, 200, 255, 0.8) 50%,
    rgba(94, 200, 255, 0.5) 80%,
    transparent
  );
  background-size: 200% 100%;
  animation: dividerShimmer 4s ease-in-out infinite;
}

.footnote {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-faint);
}

.site-footer {
  margin-top: clamp(2rem, 5vh, 3rem);
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Staggered entrance */
.animate-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientDrift {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.05);
  }
}

@keyframes heroBlobDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(8%, 5%) scale(1.06);
  }
  66% {
    transform: translate(-6%, 8%) scale(0.96);
  }
}

@keyframes heroBlobPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.65;
  }
}

@keyframes heroSpinCW {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes heroSpinCCW {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes heroBarWave {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    filter: brightness(1);
  }
  40% {
    transform: translateY(-12px) scaleY(1.04);
    filter: brightness(1.12);
  }
  70% {
    transform: translateY(4px) scaleY(0.98);
    filter: brightness(0.95);
  }
}

@keyframes badgeShimmer {
  0%,
  100% {
    border-color: rgba(94, 200, 255, 0.22);
    box-shadow: 0 0 0 0 rgba(94, 200, 255, 0);
  }
  50% {
    border-color: rgba(94, 200, 255, 0.45);
    box-shadow: 0 0 24px -4px rgba(94, 200, 255, 0.2);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@keyframes dividerShimmer {
  0% {
    background-position: 100% 0;
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 0% 0;
    opacity: 0.6;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-gradient {
    animation: none;
    background-size: 100% 100%;
  }

  .glow {
    animation: none;
    opacity: 0.3;
  }

  .hero-visual__blob,
  .hero-visual__ring,
  .hero-visual__bar {
    animation: none;
  }

  .hero-visual__blob--3 {
    opacity: 0.35;
    transform: none;
  }

  .badge {
    animation: none;
  }

  .badge__dot {
    animation: none;
  }

  .divider {
    animation: none;
    background-position: 50% 0;
  }

  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
