:root {
  --bg: #0b0c10;
  --bg2: #07080b;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);

  --a: #00e5ff;
  --b: #8cff00;
  --c: #ff2bd6;
  --d: #ffb000;

  --pad: clamp(18px, 2.8vw, 30px);
  --max: 1240px;

  --title: "Fraunces", ui-serif, "Iowan Old Style", "Apple Garamond", serif;
  --body: "Spline Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* 指针驱动的背景光晕位置（由 JS 更新） */
  --mx: 50%;
  --my: 28%;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image: radial-gradient(
      1400px 720px at var(--mx) var(--my),
      rgba(0, 229, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1000px 620px at 85% 20%,
      rgba(255, 43, 214, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 560px at 18% 88%,
      rgba(140, 255, 0, 0.1),
      transparent 62%
    ),
    radial-gradient(
      520px 280px at 16% 18%,
      rgba(255, 176, 0, 0.1),
      transparent 72%
    ),
    radial-gradient(
      720px 440px at 84% 22%,
      rgba(255, 43, 214, 0.08),
      transparent 76%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

/* 轻微噪点层：避免“纯黑大面积”的数码感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("./texture-noise.svg");
  background-repeat: repeat;
  background-size: 220px 220px;
  z-index: 3;
}

::selection {
  background: rgba(0, 229, 255, 0.22);
}

main {
  position: relative;
  z-index: 1;
}

.frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  min-height: calc(100svh - (var(--pad) * 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 4.6vh, 44px);
  padding-top: clamp(22px, 3.2vw, 42px);
  padding-bottom: clamp(18px, 3vw, 34px);
}

.eyebrow {
  position: relative;
  z-index: 1;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--title);
  font-weight: 680;
  font-size: clamp(48px, 5.8vw, 90px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: balance;
  max-width: min(26ch, 100%);
  padding-bottom: 0.06em;
}

.word {
  display: inline-block;
  padding-right: 0.08em;
  padding-bottom: 0.06em;
}

.word--lighter {
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word--faster {
  color: rgba(255, 255, 255, 0.6);
}

.word--control {
  background: linear-gradient(90deg, var(--c), var(--d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal：极简首屏加载动效（支持 prefers-reduced-motion） */
.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.js body.is-ready .reveal {
  animation: reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js body.is-ready .r1 {
  animation-delay: 80ms;
}

.js body.is-ready .r2 {
  animation-delay: 180ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }
}

@media (max-width: 880px) {
  .hero__title {
    max-width: 100%;
  }
}
