:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --fg: #f5f0e8;
  --muted: #a89b8c;
  --amber: #f0b24a;
  --amber-deep: #b45309;
  --line: rgba(240, 178, 74, 0.2);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --serif: "Georgia", "Times New Roman", "Songti SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.1rem, 3vw, 2rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
p {
  margin: 0;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(240, 178, 74, 0.14), transparent 55%),
    radial-gradient(70% 50% at 100% 100%, rgba(180, 83, 9, 0.16), transparent 50%),
    #0a0807;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.orb-1 {
  width: min(48vw, 26rem);
  height: min(48vw, 26rem);
  top: -8%;
  right: 4%;
  background: rgba(240, 178, 74, 0.45);
}

.orb-2 {
  width: min(40vw, 22rem);
  height: min(40vw, 22rem);
  bottom: 5%;
  left: -6%;
  background: rgba(180, 83, 9, 0.4);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  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");
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
  width: min(100% - var(--space) * 2, var(--max));
  margin-inline: auto;
}

.top {
  padding-block: var(--space);
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.hero {
  padding: clamp(4rem, 14vh, 8rem) 0 clamp(3rem, 10vh, 6rem);
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

h1 .line {
  display: block;
}

h1 .italic {
  font-style: italic;
  color: color-mix(in srgb, var(--fg) 88%, var(--amber));
}

.sub {
  max-width: 20ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 500;
  font-size: 0.98rem;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 178, 74, 0.45);
  background: linear-gradient(
    180deg,
    rgba(240, 178, 74, 0.16),
    rgba(255, 255, 255, 0.03)
  );
}

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

.foot {
  padding-block: 1.25rem var(--space);
  color: rgba(168, 155, 140, 0.65);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.9s var(--ease) both;
  }

  .hero > *:nth-child(1) {
    animation-delay: 0.04s;
  }
  .hero > *:nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero > *:nth-child(3) {
    animation-delay: 0.2s;
  }
  .hero > *:nth-child(4) {
    animation-delay: 0.28s;
  }

  .orb-1 {
    animation: drift 16s ease-in-out infinite alternate;
  }

  .orb-2 {
    animation: drift 20s ease-in-out infinite alternate-reverse;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 5%, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero > *,
  .orb-1,
  .orb-2 {
    animation: none;
  }
}
