:root {
  --gold: #fcb501;
  --green: #074a35;
  --green-deep: #03281d;
  --void: #020806;
  --void-mid: #04140f;
  --mist: rgba(252, 181, 1, 0.08);
  --text: #e8efe9;
  --muted: rgba(232, 239, 233, 0.62);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  -webkit-font-smoothing: antialiased;
}

/* —— Space canvas —— */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 42%, rgba(7, 74, 53, 0.45), transparent 70%),
    radial-gradient(ellipse 35% 28% at 68% 58%, rgba(252, 181, 1, 0.07), transparent 65%),
    radial-gradient(ellipse 40% 35% at 28% 55%, rgba(7, 74, 53, 0.22), transparent 70%),
    radial-gradient(circle at 50% 100%, var(--void-mid), var(--void) 55%);
  animation: nebula-drift 28s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.04);
  }
}

/* —— Soft Saturn rings behind logo —— */
.orbit {
  position: fixed;
  left: 50%;
  top: 42%;
  width: min(92vw, 720px);
  aspect-ratio: 2.4 / 1;
  transform: translate(-50%, -52%) rotate(-18deg);
  z-index: 2;
  pointer-events: none;
  transition: transform 0.45s ease-out;
  will-change: transform;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-a {
  border-color: rgba(252, 181, 1, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(7, 74, 53, 0.25),
    0 0 40px rgba(7, 74, 53, 0.12);
  animation: ring-pulse 10s ease-in-out infinite, ring-spin 90s linear infinite;
}

.ring-b {
  inset: 12% 4%;
  border-color: rgba(7, 74, 53, 0.55);
  opacity: 0.7;
  animation: ring-pulse 10s ease-in-out infinite 1.2s, ring-spin-rev 70s linear infinite;
}

.ring-c {
  inset: -8% -2%;
  border-color: rgba(252, 181, 1, 0.08);
  border-style: dashed;
  animation: ring-spin 120s linear infinite;
}

.dust {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 46%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(252, 181, 1, 0.15) 20%,
    rgba(252, 181, 1, 0.45) 50%,
    rgba(252, 181, 1, 0.15) 80%,
    transparent
  );
  filter: blur(0.4px);
  animation: dust-shimmer 7s ease-in-out infinite, dust-travel 12s linear infinite;
  background-size: 200% 100%;
}

.satellite {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--gold);
  top: 50%;
  left: 50%;
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(252, 181, 1, 0.35);
}

.s1 {
  animation: orbit-sat 18s linear infinite;
}

.s2 {
  width: 3px;
  height: 3px;
  background: #0a6b4c;
  animation: orbit-sat 26s linear infinite reverse;
  animation-delay: -6s;
}

.s3 {
  width: 4px;
  height: 4px;
  animation: orbit-sat 32s linear infinite;
  animation-delay: -12s;
  opacity: 0.55;
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

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

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

@keyframes dust-shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes dust-travel {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes orbit-sat {
  from {
    transform: rotate(0deg) translateX(min(42vw, 340px)) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(min(42vw, 340px)) rotate(-360deg);
  }
}

/* —— Stage —— */
.stage {
  position: relative;
  z-index: 3;
  width: min(92vw, 560px);
  padding: clamp(2rem, 6vh, 4rem) 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark {
  position: relative;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  will-change: transform;
}

.mark-float {
  position: relative;
  animation: float 8s ease-in-out infinite;
}

.logo-aura {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 181, 1, 0.16), transparent 68%);
  animation: aura-breathe 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 18%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(252, 181, 1, 0.12),
    transparent
  );
  animation: scan-sweep 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: soft-light;
}

.pixels {
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
}

.pixels i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--green);
  opacity: 0;
  animation: pixel-drift 5.5s ease-in-out infinite;
}

.pixels i:nth-child(1) { left: 12%; top: 68%; animation-delay: 0s; }
.pixels i:nth-child(2) { left: 22%; top: 74%; width: 4px; height: 4px; animation-delay: 0.7s; }
.pixels i:nth-child(3) { left: 78%; top: 22%; animation-delay: 1.1s; }
.pixels i:nth-child(4) { left: 86%; top: 30%; width: 3px; height: 3px; animation-delay: 1.8s; }
.pixels i:nth-child(5) { left: 8%; top: 48%; width: 3px; height: 3px; animation-delay: 2.3s; }
.pixels i:nth-child(6) { left: 92%; top: 48%; animation-delay: 2.9s; }
.pixels i:nth-child(7) { left: 68%; top: 14%; width: 4px; height: 4px; animation-delay: 3.4s; }
.pixels i:nth-child(8) { left: 30%; top: 18%; width: 3px; height: 3px; animation-delay: 4s; }

.logo {
  position: relative;
  z-index: 3;
  display: block;
  width: clamp(140px, 28vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both, logo-tilt 12s ease-in-out infinite 1.1s;
}

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

@keyframes aura-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes scan-sweep {
  0% {
    top: 10%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    top: 70%;
    opacity: 0.55;
  }
  85% {
    opacity: 0.15;
  }
  100% {
    top: 10%;
    opacity: 0;
  }
}

@keyframes pixel-drift {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.85;
  }
  60% {
    opacity: 0.55;
    transform: translate(8px, -14px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(14px, -28px) scale(0.4);
  }
}

@keyframes logo-tilt {
  0%,
  100% {
    transform: rotate(-1.2deg);
  }
  50% {
    transform: rotate(1.2deg);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--gold);
  text-indent: 0.14em;
  animation:
    enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
    brand-shimmer 6s ease-in-out infinite 1.4s;
  background: linear-gradient(
    105deg,
    #fcb501 0%,
    #fcb501 38%,
    #ffe08a 50%,
    #fcb501 62%,
    #fcb501 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.domain {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  text-indent: 0.28em;
  color: var(--muted);
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.status {
  position: relative;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  padding-bottom: 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-indent: 0.35em;
  color: var(--text);
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.status::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.5rem;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: line-pulse 2.8s ease-in-out infinite;
}

.blink {
  display: inline-block;
  width: 0.55em;
  height: 0.12em;
  margin-left: 0.2em;
  vertical-align: baseline;
  background: var(--gold);
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes line-pulse {
  0%,
  100% {
    width: 2.5rem;
    opacity: 0.7;
  }
  50% {
    width: 4.5rem;
    opacity: 1;
  }
}

.tagline {
  margin-top: 0.85rem;
  max-width: 28ch;
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.cta {
  position: relative;
  margin-top: clamp(1.75rem, 4vh, 2.4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--void);
  background: var(--gold);
  border: 1px solid var(--gold);
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both, cta-breathe 3.6s ease-in-out infinite 1.6s;
}

.cta span {
  position: relative;
  z-index: 1;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: cta-sheen 4.5s ease-in-out infinite 2s;
}

.cta:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

.cta:hover::before {
  opacity: 0;
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(252, 181, 1, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(252, 181, 1, 0.08);
  }
}

@keyframes cta-sheen {
  0%,
  60% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nebula,
  .ring-a,
  .ring-b,
  .ring-c,
  .dust,
  .satellite,
  .mark-float,
  .logo,
  .logo-aura,
  .scan,
  .pixels i,
  .brand,
  .domain,
  .status,
  .status::after,
  .blink,
  .tagline,
  .cta,
  .cta::before {
    animation: none !important;
  }

  .brand {
    color: var(--gold);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

@media (max-width: 480px) {
  .orbit {
    top: 38%;
    width: 110vw;
  }

  .brand {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
}
