:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #a7a4ad;
  --violet: #9b87f5;
  --coral: #ff8c78;
  --night: #0a0a0f;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 115%, #22203a 0, transparent 42%),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
}

.shell::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  animation: drift 13s ease-in-out infinite alternate;
}

.ambient-one {
  top: -12rem;
  right: -7rem;
  background: var(--violet);
}

.ambient-two {
  bottom: -15rem;
  left: -8rem;
  background: var(--coral);
  animation-delay: -6s;
}

.card {
  position: relative;
  width: min(100%, 74rem);
  min-height: min(78vh, 48rem);
  overflow: hidden;
  padding: clamp(2rem, 6vw, 6rem);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #d7d3dc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8ee6bd;
  box-shadow: 0 0 1.15rem rgba(142, 230, 189, 0.8);
}

.kicker {
  margin: clamp(3.5rem, 9vh, 7rem) 0 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 9vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

h1 em {
  background: linear-gradient(100deg, var(--coral), #ffd39e 52%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 400;
}

.intro {
  position: relative;
  z-index: 2;
  max-width: 31rem;
  margin: 2.3rem 0 6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.horizon {
  position: absolute;
  right: clamp(-8rem, -4vw, -2rem);
  bottom: clamp(-10rem, -7vw, -5rem);
  width: clamp(20rem, 44vw, 37rem);
  aspect-ratio: 1;
}

.sun {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1cf, #ff9c79 45%, #906ce8 100%);
  box-shadow: 0 0 5rem rgba(255, 140, 120, 0.26);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::after {
  position: absolute;
  top: 13%;
  left: 13%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.8);
  content: "";
}

.orbit-one {
  inset: 7%;
}

.orbit-two {
  inset: -8%;
  border-color: rgba(155, 135, 245, 0.22);
  animation-duration: 29s;
  animation-direction: reverse;
}

.orbit-two::after {
  top: auto;
  right: 20%;
  bottom: 5%;
  left: auto;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--violet);
}

footer {
  position: absolute;
  right: clamp(2rem, 6vw, 6rem);
  bottom: clamp(2rem, 4vw, 3.5rem);
  left: clamp(2rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #827f89;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dot {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: currentcolor;
}

@keyframes drift {
  to {
    transform: translate3d(2rem, 1.5rem, 0) scale(1.08);
  }
}

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

@media (max-width: 700px) {
  .shell {
    padding: 1rem;
  }

  .card {
    min-height: calc(100svh - 2rem);
    border-radius: 1.4rem;
  }

  .intro {
    max-width: 23rem;
    margin-bottom: 10rem;
  }

  .horizon {
    right: -8rem;
    bottom: -6rem;
    opacity: 0.78;
  }
}

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