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

:root {
  --bg-primary: #020617;
  --bg-secondary: #0b1329;
  --primary: #38bdf8;
  --primary-soft: #7dd3fc;
  --secondary: #2563eb;
  --accent: #818cf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow: rgba(56, 189, 248, 0.18);
  --font-title: "Outfit", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* ── Ambient background ── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.2) 0, transparent 52%),
    radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.16) 0, transparent 48%),
    radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.55) 0, transparent 55%),
    var(--bg-primary);
}

.aurora {
  position: absolute;
  width: 140%;
  height: 60%;
  left: -20%;
  filter: blur(60px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.aurora-1 {
  top: -10%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(56, 189, 248, 0.35) 40%,
    rgba(37, 99, 235, 0.3) 55%,
    transparent 75%
  );
  animation: aurora-drift 14s var(--ease-in-out) infinite;
}

.aurora-2 {
  bottom: 10%;
  background: linear-gradient(
    -75deg,
    transparent 15%,
    rgba(129, 140, 248, 0.22) 45%,
    rgba(56, 189, 248, 0.18) 60%,
    transparent 80%
  );
  animation: aurora-drift 18s var(--ease-in-out) infinite reverse;
}

@keyframes aurora-drift {
  0%,
  100% {
    transform: translateX(0) skewX(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(6%) skewX(-2deg);
    opacity: 0.45;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
  transition: transform 0.1s linear;
}

.orb {
  animation: float 20s var(--ease-in-out) infinite;
}

.orb-1 {
  width: 440px;
  height: 440px;
  top: -140px;
  left: -100px;
  background: rgba(37, 99, 235, 0.38);
}

.orb-2 {
  width: 380px;
  height: 380px;
  top: 18%;
  right: -120px;
  background: rgba(56, 189, 248, 0.3);
  animation-delay: -7s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: 32%;
  background: rgba(129, 140, 248, 0.22);
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 15%, transparent 100%);
  animation: grid-breathe 8s ease-in-out infinite;
}

@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: 0;
  animation: particle-rise 12s ease-in infinite;
}

.particles span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 14s; }
.particles span:nth-child(2) { left: 18%; animation-delay: 2.4s; animation-duration: 11s; }
.particles span:nth-child(3) { left: 28%; animation-delay: 5.1s; animation-duration: 16s; }
.particles span:nth-child(4) { left: 42%; animation-delay: 1.2s; animation-duration: 13s; }
.particles span:nth-child(5) { left: 55%; animation-delay: 3.8s; animation-duration: 10s; }
.particles span:nth-child(6) { left: 67%; animation-delay: 6.5s; animation-duration: 15s; }
.particles span:nth-child(7) { left: 74%; animation-delay: 0.8s; animation-duration: 12s; }
.particles span:nth-child(8) { left: 82%; animation-delay: 4.2s; animation-duration: 17s; }
.particles span:nth-child(9) { left: 91%; animation-delay: 7.3s; animation-duration: 11s; }
.particles span:nth-child(10) { left: 96%; animation-delay: 2.9s; animation-duration: 14s; }

@keyframes particle-rise {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  8% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -24px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 18px) scale(0.95);
  }
}

/* ── Layout ── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 2rem;
}

.hero {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Reveal animations ── */

.reveal {
  --reveal-delay: 0s;
  animation: reveal-in 1s var(--ease-out-expo) var(--reveal-delay) both;
}

.hero > .reveal:nth-child(1) { --reveal-delay: 0s; }
.hero > .reveal:nth-child(2) { --reveal-delay: 0.12s; }
.hero > .reveal:nth-child(3) { --reveal-delay: 0.24s; }
.hero > .reveal:nth-child(4) { --reveal-delay: 0.36s; }
.hero > .reveal:nth-child(5) { --reveal-delay: 0.48s; }
.footer.reveal { --reveal-delay: 0.6s; }

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Logo ── */

.logo-wrap {
  position: relative;
  margin-bottom: 1.75rem;
}

.logo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(56, 189, 248, 0.5) 60deg,
    rgba(37, 99, 235, 0.4) 120deg,
    transparent 180deg,
    rgba(129, 140, 248, 0.35) 240deg,
    transparent 360deg
  );
  animation: ring-spin 8s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
  opacity: 0.7;
}

.logo-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.logo {
  position: relative;
  width: min(220px, 58vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 48px rgba(56, 189, 248, 0.25));
  animation: logo-float 5s var(--ease-in-out) infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── Typography ── */

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  font-family: var(--font-title);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.125rem;
}

.eyebrow-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: line-expand 1.2s var(--ease-out-expo) 0.6s both;
}

@keyframes line-expand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 2rem;
    opacity: 1;
  }
}

.headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.35em;
  margin-bottom: 1.25rem;
}

.headline-word {
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    #7dd3fc 35%,
    #38bdf8 55%,
    #2563eb 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}

.headline-word:nth-child(2) {
  animation-delay: -1.5s;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.tagline {
  max-width: 420px;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ── Status card ── */

.status-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 1px;
  border-radius: 1.25rem;
  overflow: hidden;
}

.status-card-border {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(56, 189, 248, 0.6),
    rgba(37, 99, 235, 0.5),
    rgba(129, 140, 248, 0.4),
    transparent
  );
  animation: border-spin 6s linear infinite;
}

@keyframes border-spin {
  to {
    transform: rotate(360deg);
  }
}

.status-card-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.375rem 1.5rem;
  background: var(--glass-bg);
  border-radius: calc(1.25rem - 1px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 40px var(--glow);
  text-align: left;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s ease;
}

.status-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: card-shine 6s ease-in-out infinite;
}

@keyframes card-shine {
  0%,
  70%,
  100% {
    transform: translateX(-120%);
  }
  85% {
    transform: translateX(120%);
  }
}

.status-card:hover .status-card-inner {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 56px rgba(56, 189, 248, 0.22);
}

.status-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.9375rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary);
  animation: icon-bob 3s ease-in-out infinite;
}

@keyframes icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.status-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.status-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.status-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.status-title {
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 2.8vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.status-pulse {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 0.625rem;
  height: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-pulse-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.status-pulse::before,
.status-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}

.status-pulse::after {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ── Footer ── */

.footer {
  margin-top: auto;
  padding-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-ar {
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .status-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-pulse {
    top: 1.125rem;
    right: 1.125rem;
  }

  .eyebrow-line {
    width: 1.25rem;
  }

  @keyframes line-expand {
    to {
      width: 1.25rem;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
