:root {
  color-scheme: dark;
  --space: #050611;
  --space-soft: #0b0d1d;
  --ink: #fff8f4;
  --muted: #b9bed7;
  --rose: #ff6fae;
  --rose-soft: rgba(255, 111, 174, 0.2);
  --aqua: #79f2ff;
  --gold: #ffd88a;
  --mint: #9affd4;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(8, 11, 31, 0.58);
  --panel-strong: rgba(16, 20, 48, 0.8);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DIN Alternate", "Bahnschrift", "Trebuchet MS", var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(5, 6, 17, 0.94), rgba(14, 10, 29, 0.88)),
    var(--space);
  color: var(--ink);
  font-family: var(--font-sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(121, 242, 255, 0.1) 28%, transparent 42%),
    linear-gradient(142deg, transparent 0 52%, rgba(255, 216, 138, 0.1) 64%, transparent 78%),
    linear-gradient(26deg, transparent 0 46%, rgba(255, 111, 174, 0.11) 58%, transparent 72%);
  opacity: 0.9;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 74%);
}

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

button {
  font: inherit;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 18%, #19163a 0, #070711 58%, #030309 100%);
}

.starlight-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(90deg, rgba(121, 242, 255, 0.07), transparent 25% 72%, rgba(255, 111, 174, 0.08));
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 24, 0.62);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.date-pill {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 216, 138, 0.45);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(255, 216, 138, 0.09);
}

.nav-links {
  justify-self: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a {
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.date-pill {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(121, 242, 255, 0.42);
  border-radius: 6px;
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 14px;
  background: rgba(121, 242, 255, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: min(700px, calc(100svh - 118px));
  padding: clamp(42px, 7svh, 82px) 0 clamp(34px, 6svh, 62px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-heading p,
.panel-heading p {
  margin: 0 0 12px;
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(104px, 17vw, 220px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffe7f4 32%, #ff7db7 62%, #79f2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 111, 174, 0.28));
}

.hero-line {
  max-width: 610px;
  margin: 30px 0 0;
  color: #f5edff;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.quiet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-action,
.secondary-action {
  border: 0;
  cursor: pointer;
}

.primary-action {
  min-width: 148px;
  padding: 0 22px;
  color: #170713;
  background: linear-gradient(135deg, #fff2b7, #ff7db7 50%, #79f2ff);
  box-shadow:
    0 0 32px rgba(255, 111, 174, 0.32),
    0 14px 42px rgba(0, 0, 0, 0.3);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.quiet-action {
  min-width: 124px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.quiet-action:hover,
.quiet-action:focus-visible {
  border-color: rgba(121, 242, 255, 0.55);
  background: rgba(121, 242, 255, 0.08);
  outline: none;
}

.signal-panel,
.letter-frame,
.promise-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.signal-panel::before,
.letter-frame::before,
.promise-layout::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(121, 242, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 216, 138, 0.16), transparent 34%);
  opacity: 0.86;
}

.signal-panel > *,
.letter-frame > *,
.promise-layout > * {
  position: relative;
}

.panel-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.pulse-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  aspect-ratio: 1;
  margin: 22px auto;
}

.pulse-orbit::before,
.pulse-orbit::after,
.pulse-orbit span {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.pulse-orbit::before {
  border-top-color: rgba(121, 242, 255, 0.8);
  animation: orbit 9s linear infinite;
}

.pulse-orbit::after {
  inset: 22%;
  border-right-color: rgba(255, 216, 138, 0.85);
  animation: orbit 6s linear infinite reverse;
}

.pulse-orbit span {
  inset: 34%;
  border-color: rgba(255, 111, 174, 0.36);
  background: rgba(255, 111, 174, 0.08);
  animation: pulse 2.8s ease-in-out infinite;
}

.pulse-orbit strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #ffe7f4;
  font-size: 34px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 64%),
    rgba(255, 111, 174, 0.22);
  box-shadow: 0 0 44px rgba(255, 111, 174, 0.5);
}

.signal-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.signal-grid div {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-grid dt {
  color: var(--muted);
  font-size: 14px;
}

.signal-grid dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.letter-section,
.promise-section {
  scroll-margin-top: 100px;
  padding: clamp(36px, 8vw, 76px) 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 720px;
  margin-bottom: 22px;
}

.letter-frame {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(24px, 5vw, 46px);
}

.letter-frame::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: min(34vw, 260px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 216, 138, 0.74));
}

.letter-text {
  max-width: 850px;
  margin: 0;
  color: #fff9f5;
  font-size: clamp(25px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.28;
  opacity: 1;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.letter-text.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.letter-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.dot {
  width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.dot::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
  transform: translateY(-50%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.dot.is-active {
  width: 64px;
}

.dot.is-active::before {
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--aqua));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.promise-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 44px);
}

.promise-copy p {
  max-width: 680px;
  margin: 0;
  color: #f5edff;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.38;
}

.secondary-action {
  min-width: 128px;
  margin-top: 28px;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 111, 174, 0.18);
  border: 1px solid rgba(255, 111, 174, 0.46);
}

.promise-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 216, 138, 0.36);
  border-radius: 8px;
  background: rgba(255, 216, 138, 0.07);
}

.promise-meter span {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  background: rgba(255, 216, 138, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 138, 0.28);
}

.promise-meter strong,
.promise-meter em {
  display: block;
}

.promise-meter strong {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.promise-meter em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.site-shell.is-ignited .primary-action {
  box-shadow:
    0 0 44px rgba(121, 242, 255, 0.36),
    0 0 62px rgba(255, 111, 174, 0.34);
}

.site-shell.is-ignited .pulse-orbit strong {
  animation: heartbeat 760ms ease-in-out infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.56;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
  }
  58% {
    transform: scale(0.98);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 28px, 720px);
    padding-top: 14px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding-top: 42px;
  }

  .signal-panel {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 440px);
  }

  .topbar {
    top: 10px;
    gap: 10px;
    padding: 8px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 32px;
  }

  .date-pill {
    padding: 0 9px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-line {
    margin-top: 22px;
  }

  .hero-actions,
  .letter-controls {
    width: 100%;
  }

  .primary-action,
  .quiet-action,
  .secondary-action {
    width: 100%;
  }

  .signal-panel {
    padding: 18px;
  }

  .pulse-orbit {
    width: min(100%, 190px);
    margin: 16px auto;
  }

  .signal-grid div,
  .promise-layout,
  .promise-meter {
    grid-template-columns: 1fr;
  }

  .signal-grid dd {
    text-align: left;
  }

  .letter-frame {
    min-height: 230px;
  }

  .promise-meter {
    justify-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
