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

:root {
  --bg-deep: #010409;
  --bg-primary: #030712;
  --bg-secondary: #0a1628;
  --primary: #22d3ee;
  --primary-soft: #67e8f9;
  --secondary: #1d4ed8;
  --accent: #6366f1;
  --accent-warm: #a78bfa;
  --text-primary: #f1f5f9;
  --text-secondary: #8b9cb8;
  --glass-bg: rgba(10, 18, 36, 0.88);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glow: rgba(34, 211, 238, 0.2);
  --font-title: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* ── Cursor spotlight ── */

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.07) 0%,
    rgba(29, 78, 216, 0.04) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient background ── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29, 78, 216, 0.2) 0, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.12) 0, transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(99, 102, 241, 0.14) 0, transparent 50%),
    var(--bg-deep);
}

.aurora {
  position: absolute;
  width: 120%;
  height: 50%;
  left: -10%;
  opacity: 0.35;
}

.aurora-1 {
  top: -5%;
  background: linear-gradient(
    100deg,
    transparent 15%,
    rgba(34, 211, 238, 0.25) 38%,
    rgba(29, 78, 216, 0.2) 52%,
    transparent 72%
  );
  animation: aurora-drift 20s var(--ease-in-out) infinite;
}

@keyframes aurora-drift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.25;
  }
  50% {
    transform: translateX(4%);
    opacity: 0.38;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float 24s var(--ease-in-out) infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -140px;
  background: radial-gradient(
    circle,
    rgba(29, 78, 216, 0.32) 0%,
    rgba(29, 78, 216, 0.12) 45%,
    transparent 70%
  );
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 10%, transparent 100%);
}

.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: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: 0;
  animation: particle-rise 14s ease-in infinite;
}

.particles span:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 15s; }
.particles span:nth-child(2) { left: 38%; animation-delay: 3s; animation-duration: 13s; }
.particles span:nth-child(3) { left: 55%; animation-delay: 6s; animation-duration: 16s; }
.particles span:nth-child(4) { left: 72%; animation-delay: 1.5s; animation-duration: 12s; }
.particles span:nth-child(5) { left: 88%; animation-delay: 4.5s; animation-duration: 14s; }

@keyframes particle-rise {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  6% {
    opacity: 0.7;
  }
  88% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(32px, -28px) scale(1.06);
  }
  66% {
    transform: translate(-24px, 22px) scale(0.94);
  }
}

/* ── Layout ── */

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

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

/* ── Reveal animations ── */

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

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

/* ── Logo ── */

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

.logo-orbit {
  position: absolute;
  inset: -24px;
  animation: orbit-spin 12s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.orbit-dot-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-dot-2 {
  bottom: 15%;
  left: 5%;
}

.orbit-dot-3 {
  bottom: 15%;
  right: 5%;
  background: var(--accent-warm);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

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

.logo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(34, 211, 238, 0.55) 50deg,
    rgba(29, 78, 216, 0.45) 110deg,
    transparent 170deg,
    rgba(99, 102, 241, 0.35) 230deg,
    rgba(167, 139, 250, 0.3) 290deg,
    transparent 360deg
  );
  animation: ring-spin 10s 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.75;
}

.logo-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28) 0%, transparent 65%);
  animation: glow-pulse 5s ease-in-out infinite;
}

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

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

.logo {
  position: relative;
  width: min(200px, 52vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.22));
  animation: logo-float 6s var(--ease-in-out) infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* ── Typography ── */

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

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

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

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  margin-bottom: 1.5rem;
}

.headline-line {
  display: flex;
  overflow: hidden;
}

.headline-line-accent {
  margin-top: -0.05em;
}

.char {
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    #67e8f9 30%,
    #22d3ee 50%,
    #1d4ed8 80%,
    #6366f1 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(110%) rotateX(-40deg);
  animation:
    char-in 0.9s var(--ease-out-expo) calc(0.3s + var(--i) * 0.06s) both,
    shimmer 6s ease-in-out calc(1.2s + var(--i) * 0.1s) infinite;
}

.headline-line-accent .char {
  background: linear-gradient(
    135deg,
    #22d3ee 0%,
    #6366f1 40%,
    #a78bfa 70%,
    #67e8f9 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translateY(110%) rotateX(-40deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

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

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

@media (min-width: 900px) {
  .hero {
    max-width: 960px;
  }

  .tagline {
    max-width: none;
  }
}

/* ── Pills ── */

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  list-style: none;
  margin-bottom: 2.25rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease-spring);
}

.pill svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  opacity: 0.8;
}

.pill:hover {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}

/* ── Status card ── */

.status-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 1px;
  border-radius: 1.375rem;
  overflow: hidden;
  perspective: 800px;
}

.status-card-border {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(34, 211, 238, 0.7),
    rgba(29, 78, 216, 0.55),
    rgba(99, 102, 241, 0.45),
    rgba(167, 139, 250, 0.35),
    transparent
  );
  animation: border-spin 8s linear infinite;
}

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

.status-card-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.625rem;
  background: var(--glass-bg);
  border-radius: calc(1.375rem - 1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px var(--glow);
  text-align: left;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.status-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

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

@keyframes card-shine {
  0%,
  68%,
  100% {
    transform: translateX(-130%);
  }
  82% {
    transform: translateX(130%);
  }
}

.status-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(29, 78, 216, 0.28));
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--primary);
  animation: icon-bob 4s ease-in-out infinite;
}

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

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

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

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

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

.status-pulse {
  position: absolute;
  top: 1.375rem;
  right: 1.375rem;
  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: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

.status-pulse::before,
.status-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.45);
  animation: pulse-ring 2.2s ease-out infinite;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
  }
}

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

/* ── Footer ── */

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

.footer-divider {
  width: 48px;
  height: 1px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  animation: divider-grow 1s var(--ease-out-expo) 0.8s both;
}

@keyframes divider-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 48px;
    opacity: 1;
  }
}

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

/* ── Responsive ── */

@media (max-height: 780px) {
  .page {
    padding: 1rem 1.25rem;
  }

  .logo-wrap {
    margin-bottom: 1rem;
  }

  .logo {
    width: min(140px, 38vw);
  }

  .char {
    font-size: clamp(2rem, 6vh, 2.75rem);
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .headline {
    margin-bottom: 1rem;
  }

  .tagline {
    margin-bottom: 1.25rem;
  }

  .pills {
    margin-bottom: 1.5rem;
  }

  .footer {
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.25rem 1.25rem 1rem;
  }

  .status-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .eyebrow-line {
    width: 1.5rem;
  }

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

  .pills {
    gap: 0.5rem;
  }

  .pill {
    font-size: 0.6875rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (hover: none) {
  .cursor-spotlight {
    display: none;
  }
}

.animations-paused *,
.animations-paused *::before,
.animations-paused *::after {
  animation-play-state: paused !important;
}

.animations-paused .cursor-spotlight {
  opacity: 0;
}

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

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

  .cursor-spotlight,
  .ambient {
    display: none;
  }

  .status-card-border,
  .status-card-inner::after,
  .logo-ring,
  .logo-orbit,
  .particles {
    display: none;
  }
}
