:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --mist: #e8eef4;
  --paper: #f4f7fa;
  --accent: #0d7a6f;
  --accent-soft: rgba(13, 122, 111, 0.12);
  --line: rgba(26, 35, 50, 0.08);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13, 122, 111, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(45, 74, 110, 0.1), transparent 50%),
    linear-gradient(165deg, #f7fafc 0%, #eef3f7 45%, #e6edf3 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -8%;
  right: 8%;
  background: rgba(13, 122, 111, 0.22);
}

.orb-b {
  width: min(56vw, 480px);
  height: min(56vw, 480px);
  bottom: -12%;
  left: -6%;
  background: rgba(58, 86, 120, 0.18);
  animation-delay: -7s;
  animation-direction: reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 6rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--accent);
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  opacity: 0;
  animation: fade-in 0.9s ease 0.85s forwards;
}

.footer p {
  font-size: clamp(0.7rem, 2.2vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@media (max-width: 480px) {
  .brand {
    letter-spacing: 0.12em;
  }

  .headline {
    letter-spacing: 0.28em;
  }

  .footer p {
    max-width: 20rem;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .brand,
  .headline,
  .footer {
    animation: none;
    opacity: 1;
  }
}
