:root {
  --ink: #0d0d0f;
  --muted: #5f6368;
  --line: #e6e6e3;
  --stage: #0b0b0c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Helvetica Neue", "Inter", ui-sans-serif, -apple-system, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 24px 72px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  transition: opacity .25s linear;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 21px;
  height: 21px;
  display: block;
}

.title {
  margin: 0;
  max-width: 11.2em;
  font-size: clamp(38px, 6.6vw, 88px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.cta {
  margin-top: 40px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #111114;
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 34px;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.8,.2,1),
              box-shadow .28s cubic-bezier(.2,.8,.2,1),
              background .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .38);
  background: #000;
}

.cta:active { transform: translateY(0); }

.cta:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 20px;
  height: 31px;
  margin-left: -10px;
  border: 1.5px solid #dcdcd8;
  border-radius: 999px;
  z-index: 2;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #b9b9b3;
  animation: hint 2.2s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: .2; }
  45%      { transform: translateY(9px); opacity: 1; }
  80%      { transform: translateY(12px); opacity: 0; }
}

/* ---------- stage ---------- */

.stage-section {
  padding: 9vh 0 15vh;
  background: #fff;
}

.stage {
  position: relative;
  width: min(1100px, 92vw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--stage);
  box-shadow: 0 40px 110px -30px rgba(0, 0, 0, .45);
  isolation: isolate;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

.stage-video.is-ready { opacity: 1; }

.stage-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity .7s ease;
}

.stage-placeholder.is-hidden { opacity: 0; }

.blob {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .38;
  will-change: transform;
}

.blob.b1 {
  left: 6%;
  top: 8%;
  background: radial-gradient(circle at 50% 50%, #2b6ef2 0%, rgba(43,110,242,0) 68%);
  animation: drift1 19s ease-in-out infinite alternate;
}

.blob.b2 {
  right: 4%;
  top: 18%;
  background: radial-gradient(circle at 50% 50%, #ff5d5d 0%, rgba(255,93,93,0) 68%);
  animation: drift2 23s ease-in-out infinite alternate;
}

.blob.b3 {
  left: 30%;
  bottom: -8%;
  background: radial-gradient(circle at 50% 50%, #ffb444 0%, rgba(255,180,68,0) 68%);
  animation: drift3 27s ease-in-out infinite alternate;
}

.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  opacity: .9;
  box-shadow: 0 0 26px 9px rgba(255, 255, 255, .28);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes drift1 {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to   { transform: translate3d(12%, 10%, 0) scale(1.14); }
}

@keyframes drift2 {
  from { transform: translate3d(8%, 6%, 0) scale(1.06); }
  to   { transform: translate3d(-10%, -6%, 0) scale(.94); }
}

@keyframes drift3 {
  from { transform: translate3d(-8%, 6%, 0) scale(.96); }
  to   { transform: translate3d(10%, -8%, 0) scale(1.12); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .35; }
  50%      { transform: scale(1.5); opacity: .95; }
}

/* ---------- footer ---------- */

footer {
  padding: 0 24px 34px;
  text-align: center;
  font-size: 12.5px;
  color: #9aa0a6;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero {
    min-height: 44svh;
    padding: 48px 20px 10px;
  }
  .brand { margin-bottom: 22px; font-size: 12.5px; }
  .title { letter-spacing: -0.03em; }
  .cta { margin-top: 26px; padding: 13px 26px; font-size: 14.5px; }
  .stage-section { padding: 0 0 5vh; }
  .stage { border-radius: 18px; width: 94vw; }
  .blob { filter: blur(44px); width: 60%; }
  .scroll-hint { display: none; }
  footer { padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .pulse, .scroll-hint span { animation: none; }
  .cta { transition: none; }
}
