:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b9c6e6;
  --line: rgba(101, 210, 255, 0.28);
  --card: rgba(5, 14, 47, 0.9);
  --cyan: #28d8ff;
  --blue: #247df5;
  --green: #20ba64;
  --gold: #ffc84a;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body { color: var(--ink); background: #03091f; }

.page-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(1, 5, 26, 0.32), rgba(1, 4, 24, 0.84)),
    url("./assets/hgi-background-final.jpg") center center / cover no-repeat;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 12%, rgba(36, 125, 245, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(2, 5, 27, 0.55), transparent 26% 74%, rgba(2, 5, 27, 0.55));
}

.promo-card {
  width: min(100%, 470px);
  padding: 26px clamp(18px, 5.5vw, 34px) 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(8, 23, 67, 0.94), var(--card));
  box-shadow:
    0 30px 90px rgba(0, 0, 20, 0.58),
    0 0 44px rgba(31, 155, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.hero { text-align: center; }

.anniversary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 200, 74, 0.44);
  border-radius: 999px;
  color: #ffe8a0;
  background: rgba(255, 174, 24, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 24px 0 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.message-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(91, 196, 255, 0.28);
  border-radius: 20px;
  color: #edf5ff;
  background: rgba(2, 10, 39, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.7;
}

.message-box p { margin: 0 0 14px; }
.message-box p:last-child { margin-bottom: 0; }
.message-box strong { color: #ffffff; }

.message-link {
  display: block;
  margin-top: 5px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.message-terms {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f9bbb;
  font-size: 11px;
}

.copy-action {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  border: 0;
  border-radius: 17px;
  color: white;
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  box-shadow: 0 15px 34px rgba(30, 145, 245, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.copy-action:hover { filter: brightness(1.05); }
.copy-action:active { transform: scale(0.985); }
.copy-action.is-copied { background: linear-gradient(100deg, #159d52, #25d366); }

.copy-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
}

.share-hint {
  margin: 14px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 12, 36, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .promo-card { padding: 22px 15px 20px; border-radius: 24px; }
  .message-box { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
