:root {
  color-scheme: dark;
  --night: #07090d;
  --paper: #f3f5f8;
  --muted: #a2aab5;
  --blue: #0872f9;
  --blue-light: #80bdff;
  --red: #d36c73;
  font-family: "Avenir Next", Avenir, "Segoe UI", "Noto Sans SC", sans-serif;
  font-synthesis: weight style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--night); }
body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: inherit; }

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(31, 43, 59, .22), transparent 52%),
    linear-gradient(180deg, #080a0e 0%, #0a0c10 60%, #07090d 100%);
}
.landing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .13;
  background-image: radial-gradient(rgba(220, 232, 247, .28) .55px, transparent .8px);
  background-size: 5px 5px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}
.ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 85%, rgba(10, 83, 184, .15), transparent 43%);
}
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  width: min(100%, 1580px);
  margin-inline: auto;
  overflow: hidden;
}

/* The source is square, but its subject sits at x≈74%. Align that visual
   center—not the empty left half of the file—to the center of the stage. */
.portrait {
  position: absolute;
  z-index: 1;
  top: 1%;
  left: calc(50% - min(86vw, 599px));
  width: min(118vw, 820px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, #000 0%, #000 67%, rgba(0,0,0,.72) 79%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, #000 0%, #000 67%, rgba(0,0,0,.72) 79%, transparent 98%);
  mask-composite: intersect;
}
.portrait-wash {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,9,13,.06) 0%, transparent 36%, rgba(7,9,13,.12) 56%, #07090d 93%),
    linear-gradient(90deg, rgba(7,9,13,.2), transparent 27%, transparent 73%, rgba(7,9,13,.2));
}

.brand {
  position: absolute;
  z-index: 2;
  top: clamp(42px, 8.3vh, 88px);
  left: 50%;
  width: min(88%, 900px);
  text-align: center;
  transform: translateX(-50%);
  animation: arrive .75s cubic-bezier(.2,.72,.2,1) both;
}
.brand h1 {
  margin: 0;
  color: #f6f7fa;
  font-size: clamp(76px, 12vw, 158px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: .105em;
  padding-left: .105em;
  text-shadow: 0 3px 36px rgba(0,0,0,.5);
}
.brand-subtitle {
  margin: 14px 0 0;
  color: rgba(229, 234, 241, .78);
  font: 500 clamp(10px, 1.15vw, 14px)/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .47em;
  padding-left: .47em;
}
.brand-description {
  margin: 17px 0 0;
  color: #bec5cf;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 550;
  letter-spacing: .17em;
}
.brand-description span { padding-inline: 3px; color: var(--blue-light); }

.actions {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(78px, 11.8vh, 128px);
  width: min(76%, 490px);
  transform: translateX(-50%);
  animation: arrive .8s .12s cubic-bezier(.2,.72,.2,1) both;
}
.action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.action--primary {
  min-height: 96px;
  border: 1px solid rgba(148, 202, 255, .96);
  border-radius: 13px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.1), transparent 48%),
    linear-gradient(145deg, #0c79ff 0%, #1267f5 57%, #0751d9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 35px rgba(0,82,220,.24);
  animation: button-breathe 5.8s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .3s ease, filter .3s ease;
}
.action--primary::after {
  position: absolute;
  inset: -1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 29%, rgba(255,255,255,.23) 49%, transparent 67%);
  transform: translateX(-125%);
  animation: sheen 6.4s 1.1s ease-in-out infinite;
}
.action-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(25px, 3.25vw, 38px);
  font-weight: 900;
  -webkit-text-stroke: .45px currentColor;
  letter-spacing: .13em;
  padding-left: .13em;
  text-shadow: 0 1px 1px rgba(0,0,0,.16);
}
.action-arrow { font: 700 .82em/1 "Avenir Next", Avenir, sans-serif; }
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.action--secondary {
  min-height: 66px;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(224, 230, 239, .68);
  border-radius: 11px;
  background: rgba(8, 10, 14, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(9px);
  font-family: "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 800;
  -webkit-text-stroke: .35px currentColor;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.action-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-icon--group { fill: currentColor; stroke: none; }
.secondary-arrow {
  position: absolute;
  top: 8px;
  right: 10px;
  color: rgba(236,242,250,.68);
  font: 12px/1 sans-serif;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .2s ease, transform .2s ease;
}
.action:focus-visible { outline: 2px solid #a5d1ff; outline-offset: 4px; }
.action--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 16px 42px rgba(0,93,244,.32);
}
.action--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 199, 255, .9);
  background: rgba(16, 28, 45, .82);
}
.action--secondary:hover .secondary-arrow { opacity: 1; transform: translate(0,0); }
.action:active { transform: translateY(1px); }

.signature {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(215, 223, 233, .48);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .42em;
  transform: translateX(-50%);
}
.signature i { color: #628fc7; font-style: normal; }

.circle-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  --cycle: 8.96s;
}
.circle-field::before,
.circle-field::after {
  position: absolute;
  left: 50%;
  content: "";
  border: 1px solid rgba(111, 159, 214, .16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .42;
  mask-image: linear-gradient(90deg, transparent, #000 19%, #000 81%, transparent);
}
.circle-field::before {
  bottom: -48px;
  width: min(70vw, 620px);
  height: 88px;
}
.circle-field::after {
  bottom: -64px;
  width: min(84vw, 760px);
  height: 108px;
  opacity: .24;
}
.disc {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  isolation: isolate;
  display: grid;
  width: var(--size, 44px);
  height: var(--size, 44px);
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(8, 10, 14, .46);
  font-family: "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: var(--dim, .14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
  /* 28 × .32s; the three-step trail wraps seamlessly with the sequence. */
  animation: disc-sequence var(--cycle) linear infinite;
  animation-delay: var(--delay, 0s);
}
.disc[aria-hidden="true"] {
  --echo: .28;
}
.disc::before {
  position: absolute;
  z-index: -1;
  inset: -4px;
  border: 0;
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(.84);
  pointer-events: none;
  animation: halo-sequence var(--cycle) linear infinite;
  animation-delay: var(--delay, 0s);
}
.disc--red {
  color: rgba(224, 111, 119, .95);
  --halo: rgba(206, 65, 75, .44);
}
.disc--blue {
  color: rgba(116, 181, 250, .98);
  --halo: rgba(49, 128, 230, .48);
}
.disc::after {
  position: absolute;
  z-index: -2;
  inset: -8px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, var(--halo), transparent 70%);
  opacity: 0;
  transform: scale(.72);
  pointer-events: none;
  animation: glow-sequence var(--cycle) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes arrive {
  from { opacity: 0; translate: 0 13px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes disc-sequence {
  0%, 100% { opacity: .74; scale: 1.04; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 16px color-mix(in srgb, currentColor 28%, transparent); }
  3.571% { opacity: .48; scale: 1.02; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 8px color-mix(in srgb, currentColor 17%, transparent); }
  7.143% { opacity: .25; scale: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 4px color-mix(in srgb, currentColor 8%, transparent); }
  10.714%, 96.429% { opacity: var(--dim, .14); scale: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
}
@keyframes halo-sequence {
  0%, 100% { opacity: 0; transform: scale(1.04); }
  3.571%, 7.143%, 10.714%, 96.429% { opacity: 0; transform: scale(.9); }
}
@keyframes glow-sequence {
  0%, 100% { opacity: calc(.14 * var(--echo, 1)); transform: scale(.9); }
  3.571% { opacity: calc(.08 * var(--echo, 1)); transform: scale(.85); }
  7.143% { opacity: calc(.03 * var(--echo, 1)); transform: scale(.8); }
  10.714%, 96.429% { opacity: 0; transform: scale(.72); }
}
@keyframes button-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 35px rgba(0,82,220,.21); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.57), inset 0 0 0 1px rgba(255,255,255,.13), 0 12px 39px rgba(0,91,239,.37); }
}
@keyframes sheen {
  0%, 12% { transform: translateX(-125%); }
  38%, 100% { transform: translateX(125%); }
}

@media (min-width: 700px) {
  .portrait {
    top: 23%;
    left: calc(50% - min(76vh, 818px));
    width: min(104vh, 1120px);
    transform: none;
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, transparent 0%, #000 8%, #000 72%, rgba(0,0,0,.7) 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, transparent 0%, #000 8%, #000 72%, rgba(0,0,0,.7) 84%, transparent 100%);
    mask-composite: intersect;
  }
  .portrait-wash {
    background: linear-gradient(180deg, rgba(7,9,13,.18), transparent 28%, transparent 64%, #07090d 98%),
      linear-gradient(90deg, rgba(7,9,13,.14), transparent 25%, transparent 75%, rgba(7,9,13,.14));
  }
  .brand { top: clamp(36px, 7vh, 72px); }
  .actions { bottom: clamp(112px, 14vh, 136px); }
  .disc { width: var(--size, 44px); height: var(--size, 44px); font-size: 14px; }
}
@media (max-width: 699px) {
  .brand {
    top: clamp(32px, 6.2vh, 58px);
    width: 95%;
  }
  .brand h1 {
    font-size: clamp(69px, 16.5vw, 82px);
    letter-spacing: .09em;
    padding-left: .09em;
  }
  .brand-subtitle { margin-top: 10px; font-size: 10px; letter-spacing: .4em; padding-left: .4em; }
  .brand-description { margin-top: 11px; font-size: 13px; letter-spacing: .13em; }
  .portrait {
    top: 22%;
    left: calc(50% - 100.74vw);
    width: 138vw;
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, #000 0%, #000 59%, rgba(0,0,0,.82) 70%, transparent 91%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 54%), linear-gradient(180deg, #000 0%, #000 59%, rgba(0,0,0,.82) 70%, transparent 91%);
    mask-composite: intersect;
  }
  .portrait-wash {
    background: linear-gradient(180deg, rgba(7,9,13,.02), transparent 35%, rgba(7,9,13,.14) 54%, #07090d 92%);
  }
  .actions {
    bottom: max(124px, calc(14svh + env(safe-area-inset-bottom)));
    width: 78%;
  }
  .action--primary { min-height: 78px; border-radius: 12px; }
  .action-label { font-size: clamp(23px, 6.2vw, 29px); letter-spacing: .1em; padding-left: .1em; gap: 8px; }
  .secondary-actions { gap: 9px; margin-top: 9px; }
  .action--secondary { min-height: 58px; padding-inline: 6px; gap: 7px; border-radius: 10px; font-size: clamp(12px, 3.6vw, 15px); }
  .action-icon { width: 19px; height: 19px; }
  .signature { bottom: max(20px, env(safe-area-inset-bottom)); font-size: 8px; }
  .disc { width: min(calc(var(--size, 40px) * .8), 36px); height: min(calc(var(--size, 40px) * .8), 36px); font-size: 11px; }
}
@media (max-width: 370px) {
  .brand h1 { font-size: 64px; }
  .actions { width: 78%; bottom: max(116px, calc(13svh + env(safe-area-inset-bottom))); }
  .action--primary { min-height: 72px; }
  .action--secondary { min-height: 54px; font-size: 11.5px; gap: 5px; }
  .action-icon { width: 17px; height: 17px; }
}
@media (max-height: 680px) and (max-width: 699px) {
  .brand { top: 25px; }
  .brand h1 { font-size: clamp(58px, 14vw, 68px); }
  .brand-subtitle { margin-top: 7px; }
  .brand-description { margin-top: 8px; }
  .actions { bottom: max(105px, calc(13svh + env(safe-area-inset-bottom))); }
  .action--primary { min-height: 66px; }
  .secondary-actions { margin-top: 7px; }
  .action--secondary { min-height: 50px; }
}
@media (max-height: 680px) and (max-width: 699px) {
  .disc {
    top: calc(5% + var(--y) * .68);
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .disc { animation: none !important; scale: 1; opacity: max(var(--dim, .14), .3); }
  .disc::before, .disc::after { opacity: 0; }
}
