/*
 * 首页视觉系统
 * 深色主题固定，哑光金为唯一主强调色，薰衣草紫只用于层次与正文。
 */
:root {
  color-scheme: dark;
  --ink: #080712;
  --ink-soft: #111022;
  --violet-deep: #17122c;
  --gold: #d8bd7a;
  --gold-bright: #f0d99b;
  --gold-line: rgba(216, 189, 122, 0.32);
  --lavender: #c7bedc;
  --text: #f3eff8;
  --text-muted: #aaa2bb;
  --danger: #ffc4b8;
  --glass: rgba(19, 16, 37, 0.72);
  --radius: 16px;
  --motion-enter: 720ms;
  --motion-hover: 250ms;
  --motion-flip: 820ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 隐藏桌面内置浏览器的原生滚动条箭头，触摸与滚轮滚动仍然保留。 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 18%, rgba(70, 47, 114, 0.22), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(37, 52, 92, 0.2), transparent 38%),
    var(--ink);
}

button,
textarea {
  font: inherit;
}

button {
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-light {
  position: fixed;
  z-index: 0;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-light--top {
  top: -24vw;
  right: -10vw;
  background: #77539c;
}

.ambient-light--bottom {
  bottom: -28vw;
  left: -12vw;
  background: #314e81;
}

.page-shell {
  --scene-x: 0px;
  --scene-y: 0px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1180px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--safe-top) clamp(18px, 4vw, 48px) var(--safe-bottom);
}

/* 神殿并非一张静态背景，前后拱门与光束以不同速度响应触点。 */
.temple-scene {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-far-x: 0px;
  --scene-far-y: 0px;
  --scene-near-x: 0px;
  --scene-near-y: 0px;
  --scene-beam-x: 0px;
  --scene-beam-y: 0px;
  --scene-column-x: 0px;
  --scene-floor-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  perspective: 900px;
  pointer-events: none;
}

.temple-scene__arch {
  position: absolute;
  left: 50%;
  width: min(66vw, 790px);
  height: 88vh;
  border: 1px solid rgba(216, 189, 122, 0.11);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  box-shadow: inset 0 0 90px rgba(115, 73, 157, 0.045), 0 0 40px rgba(216, 189, 122, 0.025);
}

.temple-scene__arch::before,
.temple-scene__arch::after {
  position: absolute;
  inset: 7% 6% 0;
  border: 1px solid rgba(172, 133, 196, 0.08);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  content: "";
}

.temple-scene__arch::after {
  inset: 13% 12% 0;
  border-color: rgba(216, 189, 122, 0.065);
}

.temple-scene__arch--far {
  bottom: -27vh;
  opacity: 0.58;
  transform: translate3d(calc(-50% + var(--scene-far-x)), var(--scene-far-y), -90px) scale(0.86);
}

.temple-scene__arch--near {
  bottom: -31vh;
  opacity: 0.8;
  transform: translate3d(calc(-50% + var(--scene-near-x)), var(--scene-near-y), 0) scale(1.16);
}

.temple-scene__beam {
  position: absolute;
  top: -20vh;
  left: 50%;
  width: min(38vw, 460px);
  height: 92vh;
  background: linear-gradient(180deg, rgba(235, 209, 148, 0.11), rgba(137, 86, 173, 0.035) 48%, transparent 88%);
  filter: blur(16px);
  opacity: 0.62;
  transform: translate3d(calc(-50% + var(--scene-beam-x)), var(--scene-beam-y), 0) perspective(560px) rotateX(5deg);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.temple-scene__column {
  position: absolute;
  top: 8vh;
  bottom: 0;
  width: min(10vw, 122px);
  opacity: 0.38;
  background: linear-gradient(90deg, transparent, rgba(97, 76, 124, 0.12) 34%, rgba(216, 189, 122, 0.07) 50%, rgba(20, 15, 34, 0.14) 72%, transparent);
  border-inline: 1px solid rgba(216, 189, 122, 0.05);
}

.temple-scene__column--left { left: 4vw; transform: translateX(var(--scene-column-x)); }
.temple-scene__column--right { right: 4vw; transform: translateX(var(--scene-column-x)); }

.temple-scene__floor {
  position: absolute;
  right: -12vw;
  bottom: -24vh;
  left: -12vw;
  height: 48vh;
  opacity: 0.33;
  background: repeating-linear-gradient(90deg, transparent 0 8vw, rgba(216, 189, 122, 0.055) 8.05vw 8.12vw), linear-gradient(rgba(216, 189, 122, 0.07), transparent 1px);
  transform: perspective(420px) rotateX(66deg) translateY(var(--scene-floor-y));
  transform-origin: 50% 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 40px;
  color: var(--gold);
}

.brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  font-size: 12px;
  box-shadow: inset 0 0 14px rgba(216, 189, 122, 0.08);
}

.brand__name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.24em;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 8vw, 100px);
  padding: 26px 0 18px;
}

.hero__copy {
  width: min(100%, 560px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 9em;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.intro {
  margin: 18px 0 24px;
  color: var(--lavender);
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-bottom: 24px;
  padding: 13px 14px 13px 16px;
  border: 0;
  border-left: 1px solid rgba(210, 183, 218, 0.34);
  border-radius: 2px 14px 14px 2px;
  background: linear-gradient(90deg, rgba(104, 70, 135, 0.12), rgba(17, 14, 30, 0.42) 70%, transparent);
  box-shadow:
    inset 18px 0 34px rgba(128, 83, 157, 0.035),
    0 16px 50px rgba(7, 5, 17, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.notice__icon {
  padding-top: 1px;
  color: rgba(216, 189, 122, 0.68);
  font-size: 15px;
}

.notice p {
  margin: 0;
  color: #eee6d1;
  font-size: 13px;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.question-form {
  display: grid;
  gap: 10px;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.field-heading label {
  color: var(--text);
  font-size: 14px;
  font-weight: 580;
  letter-spacing: 0.025em;
}

.char-count {
  flex: none;
  color: var(--text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.char-count.is-near-limit {
  color: var(--gold-bright);
}

.input-wrap {
  --field-x: 50%;
  --field-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(201, 186, 224, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at var(--field-x) var(--field-y), rgba(125, 86, 164, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(26, 21, 45, 0.82), rgba(9, 9, 20, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 -24px 60px rgba(4, 3, 11, 0.24), 0 20px 58px rgba(2, 1, 8, 0.18);
  transition: border-color 320ms ease, box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrap::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 190deg at var(--field-x) var(--field-y), transparent 0 28%, rgba(210, 180, 222, 0.42) 38%, rgba(233, 210, 152, 0.5) 43%, transparent 54% 100%);
  content: "";
  opacity: 0;
  transition: opacity 360ms ease;
}

.input-wrap::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(25, 20, 43, 0.96), rgba(8, 8, 18, 0.97));
  content: "";
}

.input-wrap:focus-within {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(200, 166, 214, 0.07),
    0 22px 60px rgba(4, 2, 13, 0.4),
    0 0 46px rgba(99, 65, 142, 0.1);
  transform: translateY(-2px) scale(1.004);
}

.input-wrap:focus-within::before { opacity: 1; }

.input-wrap__aura {
  position: absolute;
  z-index: 1;
  right: -20%;
  bottom: -70%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(127, 78, 171, 0.13);
  filter: blur(32px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 360ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrap:focus-within .input-wrap__aura { opacity: 0.9; transform: translate(-12%, -12%) scale(1.15); }

.input-wrap__glyph {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 17px;
  color: rgba(216, 189, 122, 0.28);
  font-size: 10px;
  pointer-events: none;
  transition: color 300ms ease, filter 300ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrap:focus-within .input-wrap__glyph { color: var(--gold-bright); filter: drop-shadow(0 0 8px rgba(216, 189, 122, 0.55)); transform: rotate(45deg) scale(1.12); }

textarea {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 98px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 18px 44px 7px 18px;
  color: var(--text);
  caret-color: var(--gold);
  background: transparent;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.input-wrap__meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 17px 13px 18px;
  color: rgba(199, 190, 220, 0.58);
  font-size: 10px;
  letter-spacing: 0.045em;
}

textarea::placeholder {
  color: #8f879f;
  opacity: 1;
}

.field-error {
  min-height: 17px;
  margin: -2px 2px 0;
  font-size: 11px;
  line-height: 1.5;
}

.field-error {
  display: none;
  color: var(--danger);
}

.question-form.has-error .field-error {
  display: block;
}

.question-form.has-error .input-wrap {
  border-color: rgba(255, 196, 184, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 196, 184, 0.08), 0 18px 44px rgba(8, 4, 18, 0.3);
}

.primary-button {
  --button-x: 50%;
  --button-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border: 1px solid #e5cc8c;
  border-radius: var(--radius);
  padding: 0 20px;
  color: #171120;
  background: linear-gradient(135deg, #f0dda8, #c9aa62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 14px 36px rgba(149, 113, 48, 0.18);
  cursor: pointer;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button::before {
  position: absolute;
  top: var(--button-y);
  left: var(--button-x);
  z-index: 0;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 250, 224, 0.72);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.primary-button > span {
  position: relative;
  z-index: 1;
}

.primary-button.is-rippling::before {
  animation: button-ripple 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 42px rgba(181, 142, 68, 0.25);
}

/* 全站统一轻提示：不会打断用户，也不会触发浏览器原生弹窗。 */
.site-toast {
  position: fixed;
  right: 18px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 30;
  width: fit-content;
  max-width: min(88vw, 430px);
  margin: 0 auto;
  border: 1px solid rgba(228, 199, 132, 0.42);
  border-radius: 14px;
  padding: 12px 17px;
  color: #f1dba3;
  background: rgba(13, 10, 25, 0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 54px rgba(2,1,8,0.5), 0 0 30px rgba(180,136,61,0.08);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 260ms ease, transform 380ms var(--ease-enter);
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.settings-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 8;
}

.settings-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(225, 195, 128, 0.38);
  border-radius: 50%;
  color: #ecd399;
  background: rgba(12, 9, 23, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 38px rgba(2,1,8,0.45);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  cursor: pointer;
  font-size: 17px;
  transition: transform var(--motion-hover) var(--ease-enter), border-color var(--motion-hover) ease, box-shadow var(--motion-hover) ease;
}

.settings-button:hover,
.settings-button[aria-expanded="true"] {
  border-color: rgba(240, 215, 154, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 42px rgba(2,1,8,0.5), 0 0 24px rgba(216,189,122,0.15);
  transform: translateY(-2px) rotate(12deg);
}

.settings-button:active { transform: translateY(1px) scale(0.96); }

.settings-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(272px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(225, 195, 128, 0.32);
  border-radius: 20px 20px 8px 20px;
  padding: 15px;
  color: #eee7f5;
  background: linear-gradient(145deg, rgba(29,22,48,0.93), rgba(9,8,19,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 64px rgba(2,1,8,0.6);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  transform-origin: 100% 100%;
}

.settings-panel:not([hidden]) { animation: settings-enter 360ms var(--ease-enter) both; }
.settings-panel__heading { display:flex; align-items:baseline; justify-content:space-between; margin: 0 2px 10px; }
.settings-panel__heading span { color:#f0d99b; font-size:13px; font-weight:650; letter-spacing:.08em; }
.settings-panel__heading small { color:#8f879e; font-size:9px; }

.setting-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(216,189,122,.11);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .03em;
}

.setting-row input { position:absolute; width:1px; height:1px; opacity:0; }
.setting-row i {
  position: relative;
  width: 40px;
  height: 23px;
  border: 1px solid rgba(216,189,122,.24);
  border-radius: 14px;
  background: rgba(7,6,15,.72);
  transition: background 240ms ease, border-color 240ms ease;
}
.setting-row i::after {
  position:absolute;
  top:3px;
  left:3px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:#8f879e;
  box-shadow:0 2px 7px rgba(0,0,0,.35);
  content:"";
  transition:transform 260ms var(--ease-enter), background 240ms ease, box-shadow 240ms ease;
}
.setting-row input:checked + i { border-color:rgba(234,205,139,.58); background:rgba(164,123,52,.3); }
.setting-row input:checked + i::after { background:#efd897; box-shadow:0 0 10px rgba(216,189,122,.36); transform:translateX(17px); }
.setting-row input:focus-visible + i { outline:2px solid var(--gold-bright); outline-offset:3px; }

.page-transition {
  position:fixed;
  inset:0;
  z-index:25;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:16px;
  visibility:hidden;
  color:#efd897;
  background:rgba(7,5,14,.93);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  opacity:0;
  pointer-events:none;
  transition:opacity 360ms ease, visibility 360ms ease;
}
.page-transition.is-visible { visibility:visible; opacity:1; pointer-events:auto; }
.page-transition span { width:38px; height:38px; border:1px solid rgba(216,189,122,.18); border-top-color:#e9cf92; border-radius:50%; animation:quiet-spin 1.3s linear infinite; }
.page-transition p { margin:0; font-size:12px; letter-spacing:.12em; }

.particles-off .starfield { display:none !important; }
.motion-off *,
.motion-off *::before,
.motion-off *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }

@keyframes settings-enter { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes quiet-spin { to { transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .site-toast,.settings-panel { transition-duration:.01ms; animation:none !important; }
}

/* 一次性测试码入口：独立浮层避免改动主页设计稿布局。 */
.access-gate {
  position:fixed;
  inset:0;
  z-index:24;
  display:grid;
  place-items:center;
  padding:max(22px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom));
  background:radial-gradient(circle at 50% 28%,rgba(92,58,122,.22),transparent 40%),rgba(5,4,12,.82);
  -webkit-backdrop-filter:blur(18px) saturate(118%);
  backdrop-filter:blur(18px) saturate(118%);
  opacity:1;
  transition:opacity 360ms ease,visibility 360ms ease;
}
.access-gate[hidden] { display:none !important; }
.access-gate.is-approved { visibility:hidden; opacity:0; pointer-events:none; }
.access-gate__halo {
  position:absolute;
  width:min(72vw,380px);
  aspect-ratio:1;
  border:1px solid rgba(216,189,122,.13);
  border-radius:50%;
  box-shadow:0 0 90px rgba(108,69,142,.18),inset 0 0 70px rgba(216,189,122,.035);
  pointer-events:none;
}
.access-gate__halo::before,
.access-gate__halo::after { position:absolute; inset:10%; border:1px solid rgba(216,189,122,.08); border-radius:50%; content:""; }
.access-gate__halo::after { inset:25%; border-style:dashed; }
.access-card {
  position:relative;
  width:min(100%,420px);
  overflow:hidden;
  border:1px solid rgba(230,201,138,.4);
  border-radius:26px;
  padding:clamp(26px,6vw,38px);
  color:var(--text);
  background:linear-gradient(145deg,rgba(31,24,51,.94),rgba(8,7,18,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 32px 86px rgba(2,1,8,.68),0 0 44px rgba(216,189,122,.07);
  -webkit-backdrop-filter:blur(24px) saturate(125%);
  backdrop-filter:blur(24px) saturate(125%);
  animation:access-enter 720ms var(--ease-enter) both;
}
.access-card::before { position:absolute; inset:-40% -70%; background:linear-gradient(112deg,transparent 43%,rgba(255,236,184,.08) 49%,transparent 55%); content:""; transform:translateX(-28%); animation:access-glare 5.8s 1.1s ease-in-out infinite; pointer-events:none; }
.access-card__symbol { display:grid; width:42px; height:42px; place-items:center; margin:0 auto 14px; border:1px solid rgba(216,189,122,.3); border-radius:50%; color:var(--gold-bright); box-shadow:inset 0 0 18px rgba(216,189,122,.07); }
.access-card__kicker { margin:0 0 8px; color:var(--gold); font-size:10px; letter-spacing:.18em; text-align:center; }
.access-card h2 { margin:0; font-size:clamp(28px,7vw,38px); letter-spacing:-.04em; text-align:center; }
.access-card__copy { margin:13px auto 22px; max-width:29em; color:#bdb4ca; font-size:13px; line-height:1.75; text-align:center; }
.access-card label { display:block; margin:0 0 8px; color:#e7deec; font-size:12px; font-weight:600; }
.access-card input {
  width:100%;
  min-height:52px;
  border:1px solid rgba(216,189,122,.28);
  border-radius:14px;
  outline:0;
  padding:0 15px;
  color:#f5e6bd;
  background:rgba(7,6,16,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  font:600 16px/1.2 ui-monospace,"SFMono-Regular",Consolas,monospace;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
  transition:border-color 250ms ease,box-shadow 250ms ease;
}
.access-card input:focus { border-color:rgba(240,217,155,.78); box-shadow:0 0 0 3px rgba(216,189,122,.08),0 0 24px rgba(216,189,122,.1); }
.access-card__error { min-height:20px; margin:8px 2px 2px; color:#ffc4b8; font-size:11px; line-height:1.5; text-align:center; }
.access-card__button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:52px;
  border:1px solid #e6cc89;
  border-radius:14px;
  padding:0 18px;
  color:#191222;
  background:linear-gradient(135deg,#f0dda7,#c5a45a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.46),0 16px 38px rgba(155,116,48,.2);
  cursor:pointer;
  font-size:14px;
  font-weight:720;
  letter-spacing:.08em;
  transition:transform 250ms var(--ease-enter),box-shadow 250ms ease,opacity 250ms ease;
}
.access-card__button:hover { transform:translateY(-3px); box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 20px 44px rgba(174,132,58,.3),0 0 24px rgba(216,189,122,.14); }
.access-card__button:active { transform:translateY(1px) scale(.988); }
.access-card__button:disabled { cursor:wait; opacity:.68; }
.access-card__button.is-loading span:last-child { animation:quiet-spin 1.1s linear infinite; }
.access-card small { display:block; margin:16px auto 0; color:#8f879e; font-size:9px; line-height:1.55; text-align:center; }
@keyframes access-enter { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes access-glare { 0%,58% { opacity:0; transform:translateX(-28%); } 68% { opacity:1; } 82%,100% { opacity:0; transform:translateX(28%); } }

.primary-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
  opacity: 0.78;
}

.primary-button__arrow {
  font-size: 22px;
  font-weight: 420;
  transition: transform 180ms ease;
}

.primary-button:hover .primary-button__arrow {
  transform: translateX(3px);
}

.hero__visual {
  --halo-x: 0px;
  --shadow-x: 0px;
  --card-shadow-x: 0px;
  position: relative;
  display: grid;
  width: min(100%, 390px);
  aspect-ratio: 0.8;
  place-items: center;
  justify-self: center;
}

.hero-card-stage {
  position: relative;
  z-index: 2;
  display: block;
  width: min(72%, 270px);
  perspective: 1000px;
  transform-origin: 50% 54%;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.hero-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 34%;
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(var(--card-shadow-x) 28px 40px rgba(3, 2, 10, 0.62));
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-card-stage.is-tracking .hero-card {
  transition-duration: 90ms;
  transition-timing-function: linear;
}

.hero-card-stage.is-held .hero-card {
  filter: drop-shadow(var(--card-shadow-x) 38px 48px rgba(3, 2, 10, 0.68));
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(22px) scale(1.025);
  transition-duration: 150ms;
}

.hero-card__media,
.hero-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-card__media {
  overflow: hidden;
  background: #171026;
  box-shadow: inset 0 0 0 1px rgba(244, 220, 158, 0.22);
}

.hero-card__sheen,
.hero-card__edge {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-card__sheen {
  z-index: 3;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 241, 198, 0.34), rgba(216, 189, 122, 0.08) 18%, transparent 46%),
    linear-gradient(112deg, transparent 32%, rgba(255, 237, 186, 0.12) 47%, transparent 61%);
  mix-blend-mode: screen;
  opacity: 0.42;
  transform: translateZ(2px);
  transition: opacity 260ms ease;
}

.hero-card-stage.is-tracking .hero-card__sheen,
.hero-card-stage.is-held .hero-card__sheen {
  opacity: 0.82;
}

.hero-card__edge {
  z-index: 4;
  border: 1px solid rgba(248, 224, 164, 0.38);
  box-shadow:
    inset 1px 1px 0 rgba(255, 247, 222, 0.16),
    inset -2px -3px 5px rgba(2, 1, 8, 0.42);
  transform: translateZ(4px);
}

.card-halo {
  position: absolute;
  z-index: 1;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(116, 78, 158, 0.22);
  filter: blur(42px);
  transform: translateX(var(--halo-x)) scale(1);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}

.card-pedestal {
  position: absolute;
  bottom: 5%;
  left: 50%;
  z-index: 1;
  width: 72%;
  height: 14%;
  border: 1px solid rgba(216, 189, 122, 0.2);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(54, 43, 73, 0.7), rgba(8, 7, 18, 0.96) 54%);
  box-shadow: inset 0 6px 18px rgba(216, 189, 122, 0.06), 0 28px 40px rgba(2, 1, 7, 0.48);
  transform: translateX(calc(-50% + var(--shadow-x))) perspective(400px) rotateX(62deg);
  transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-pedestal span {
  position: absolute;
  inset: 22% 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(216, 189, 122, 0.2), rgba(21, 14, 33, 0.2) 42%, transparent 72%);
  filter: blur(6px);
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(216, 189, 122, 0.17);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216, 189, 122, 0.5);
  content: "";
}

.orbit--outer {
  width: 94%;
  aspect-ratio: 1;
  transform: rotate(-18deg);
}

.orbit--inner {
  width: 73%;
  aspect-ratio: 1;
  transform: rotate(29deg);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 189, 122, 0.13);
  color: #8f879e;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.page-footer span:nth-child(2) {
  color: var(--gold);
  font-size: 9px;
}

.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  visibility: hidden;
  color: var(--gold-bright);
  background: rgba(8, 7, 18, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease, visibility 340ms ease;
}

.transition-layer__door {
  position: absolute;
  inset-block: 0;
  width: 52%;
  background:
    linear-gradient(90deg, rgba(216, 189, 122, 0.045) 1px, transparent 1px) 0 0 / 48px 100%,
    linear-gradient(135deg, #0d0a19, #171027 52%, #080712);
  box-shadow: inset 0 0 90px rgba(95, 57, 131, 0.12);
  transform: scaleX(0);
  transition: transform 680ms cubic-bezier(0.65, 0, 0.35, 1);
}

.transition-layer__door--left { left: 0; transform-origin: 0 50%; }
.transition-layer__door--right { right: 0; transform-origin: 100% 50%; }

.transition-layer.is-visible .transition-layer__door { transform: scaleX(1); }

.transition-layer.is-visible {
  visibility: visible;
  opacity: 1;
}

.transition-layer__symbol {
  position: relative;
  z-index: 1;
  font-size: 24px;
}

.transition-layer p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.transition-layer__spinner {
  position:relative;
  z-index:1;
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border:1px solid rgba(216,189,122,.2);
  border-radius:50%;
  box-shadow:inset 0 0 20px rgba(216,189,122,.05),0 0 26px rgba(216,189,122,.08);
  animation:quiet-spin 1.5s linear infinite;
}
.transition-layer__spinner::before,
.transition-layer__spinner::after {
  position:absolute;
  border-radius:50%;
  content:"";
}
.transition-layer__spinner::before { inset:7px; border:1px solid transparent; border-top-color:rgba(240,217,155,.86); border-right-color:rgba(199,164,92,.28); }
.transition-layer__spinner::after { width:5px; height:5px; background:#efd897; box-shadow:0 0 14px rgba(239,216,151,.72); }

@media (prefers-reduced-motion: no-preference) {
  .brand {
    animation: reveal-copy 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero__copy > * {
    animation: reveal-copy 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero__copy > :nth-child(1) { animation-delay: 70ms; }
  .hero__copy > :nth-child(2) { animation-delay: 130ms; }
  .hero__copy > :nth-child(3) { animation-delay: 200ms; }
  .hero__copy > :nth-child(4) { animation-delay: 270ms; }
  .hero__copy > :nth-child(5) { animation-delay: 340ms; }

  .temple-scene {
    animation: temple-arrive 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero__visual {
    animation: reveal-card 880ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-card-stage {
    animation: card-breathe 6.8s 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  .card-halo {
    animation: halo-breathe 4.8s 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  }

  .orbit--outer {
    animation: orbit-clockwise 26s linear infinite;
  }

  .orbit--inner {
    animation: orbit-counter 19s linear infinite;
  }

  .transition-layer.is-visible .transition-layer__symbol {
    animation: transition-pulse 900ms ease-in-out infinite alternate;
  }

  .hero-card-stage.is-listening {
    animation-play-state: paused;
    transform: translateY(-9px) scale(1.018);
  }

  .hero-card-stage.is-departing {
    animation: card-depart 720ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }
}

@keyframes reveal-copy {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-card {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes temple-arrive {
  from { opacity: 0; filter: blur(14px); transform: scale(1.035); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes card-breathe {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateZ(0.7deg); }
  24% { transform: translateY(-5px) rotateY(-2deg) rotateZ(0.2deg); }
  50% { transform: translateY(-9px) rotateY(8deg) rotateZ(-0.65deg); }
  76% { transform: translateY(-4px) rotateY(2deg) rotateZ(-0.15deg); }
}

@keyframes halo-breathe {
  to { opacity: 0.72; filter: blur(48px); }
}

@keyframes orbit-clockwise {
  to { transform: rotate(342deg); }
}

@keyframes orbit-counter {
  to { transform: rotate(-331deg); }
}

@keyframes transition-pulse {
  to { opacity: 0.55; transform: scale(0.82); }
}

@keyframes button-ripple {
  0% { opacity: 0.72; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(34); }
}

@keyframes card-depart {
  0% { opacity: 1; transform: translateY(-7px) scale(1.02); filter: blur(0); }
  45% { opacity: 1; transform: translateY(-25px) scale(1.055); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-90px) scale(0.72); filter: blur(7px); }
}

/* 小屏优先保证表单与主按钮在首屏内可见。 */
@media (max-width: 767px) {
  .page-shell {
    padding-inline: clamp(17px, 5vw, 24px);
  }

  .brand {
    min-height: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
    padding: 12px 0 14px;
  }

  .hero__copy {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  h1 {
    max-width: none;
    font-size: clamp(36px, 11vw, 49px);
    line-height: 1.02;
  }

  h1 br {
    display: none;
  }

  .intro {
    margin: 10px 0 13px;
    font-size: 13px;
  }

  .notice {
    margin-bottom: 14px;
    padding: 11px 12px;
  }

  .notice p {
    font-size: 11px;
    line-height: 1.55;
  }

  .question-form {
    gap: 8px;
  }

  .field-heading label {
    font-size: 13px;
  }

  textarea {
    min-height: 72px;
    padding: 14px 40px 5px 15px;
    font-size: 14px;
  }

  .input-wrap { border-radius: 19px; }
  .input-wrap::after { border-radius: 18px; }
  .input-wrap__meta { padding: 6px 14px 11px 15px; }

  .primary-button {
    min-height: 50px;
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    z-index: 0;
    order: -1;
    width: min(46vw, 178px);
    margin: -4px auto 0;
    opacity: 1;
    transform: none;
  }

  .temple-scene__arch { width: 122vw; height: 76vh; }
  .temple-scene__arch--far { bottom: -26vh; }
  .temple-scene__arch--near { bottom: -30vh; }
  .temple-scene__column { display: none; }
  .temple-scene__beam { width: 74vw; opacity: 0.46; }

  .hero-card-stage {
    width: 68%;
  }

  .card-pedestal {
    bottom: 1%;
    width: 84%;
  }

  .page-footer {
    padding-top: 10px;
  }
}

@media (max-height: 700px) and (max-width: 767px) {
  .brand {
    min-height: 28px;
  }

  .hero {
    padding-block: 6px 8px;
  }

  .hero__visual {
    width: 122px;
    margin-top: -12px;
  }

  .intro {
    display: none;
  }

  .notice {
    margin: 9px 0 10px;
  }

  textarea {
    min-height: 62px;
  }

  .field-error {
    min-height: 14px;
  }
}

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

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .notice {
    background: rgba(24, 20, 45, 0.96);
  }
}

/*
 * 首页 V2：以暗紫神殿参考图为母版。
 * 文字动效参考 React Bits 的 Blur Text / Shiny Text，按钮参考 Specular Button，
 * 均以原生 CSS/JS 重写，避免为首页引入 React 运行时。
 */
body {
  background: #06050d;
}

.temple-scene {
  background:
    linear-gradient(180deg, rgba(4, 4, 11, 0.04) 0%, rgba(5, 4, 12, 0.05) 50%, rgba(5, 4, 12, 0.94) 91%),
    url("assets/temple-background-v2.webp") center top / cover no-repeat;
  contain: paint;
}

.temple-scene::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 34%, transparent 0 20%, rgba(4, 3, 11, 0.12) 48%, rgba(3, 3, 9, 0.64) 100%),
    linear-gradient(90deg, rgba(2, 2, 7, 0.34), transparent 24% 76%, rgba(2, 2, 7, 0.34));
  content: "";
}

.temple-scene__arch,
.temple-scene__column,
.temple-scene__floor {
  opacity: 0.12;
}

.temple-scene__beam {
  top: -18vh;
  left: 42%;
  z-index: 2;
  width: min(34vw, 340px);
  height: 70vh;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(255, 235, 183, 0.34), rgba(196, 165, 205, 0.07) 56%, transparent 92%);
  filter: blur(19px);
  transform-origin: 50% 0;
}

.page-shell {
  width: min(100%, 720px);
  padding-inline: clamp(20px, 6vw, 56px);
}

.brand {
  align-self: center;
  gap: 13px;
  padding-top: 5px;
}

.brand__mark {
  position: relative;
  width: 19px;
  height: 26px;
  border: 1px solid rgba(224, 194, 125, 0.8);
  border-radius: 2px;
  font-size: 0;
  box-shadow: none;
}

.brand__mark::before {
  position: absolute;
  inset: 3px -6px -3px 5px;
  border: 1px solid rgba(224, 194, 125, 0.48);
  border-radius: 2px;
  content: "";
}

.brand__mark::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero {
  grid-template-columns: 1fr;
  gap: 0;
  align-content: start;
  padding: 14px 0 18px;
}

.hero__visual {
  order: -1;
  width: min(58vw, 270px);
  margin: 0 auto 10px;
  contain: paint;
}

.hero-card-stage {
  width: 72%;
}

.card-pedestal {
  display: none;
}

.orbit {
  border-color: rgba(225, 196, 129, 0.12);
}

.hero__copy {
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: #d7b66c;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.eyebrow::before,
.eyebrow::after {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 122, 0.55));
  content: "";
}

.eyebrow::after {
  transform: scaleX(-1);
}

h1 {
  max-width: none;
  color: #f2ecdd;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(46px, 9.2vw, 72px);
  font-weight: 550;
  letter-spacing: 0.05em;
  line-height: 1.02;
  text-shadow: 0 7px 30px rgba(2, 1, 8, 0.58);
}

.title-line {
  display: block;
  white-space: nowrap;
}

.title-char {
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, #f5efe1 0 35%, #c7b893 45%, #fff2c3 50%, #f4eee0 57% 100%) 0 0 / 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.intro {
  margin: 10px 0 15px;
  color: rgba(207, 198, 224, 0.7);
  font-size: 13px;
}

.notice {
  grid-template-columns: 26px 1fr;
  gap: 12px;
  margin: 0 auto 18px;
  padding: 8px 11px 8px 15px;
  border-left: 1px solid rgba(206, 169, 221, 0.5);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(7, 6, 16, 0.76), rgba(15, 11, 27, 0.34) 70%, transparent);
  box-shadow: none;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.notice__icon {
  display: grid;
  width: 24px;
  height: 27px;
  place-items: center;
  color: #d6b76f;
  border: 1px solid rgba(216, 189, 122, 0.54);
  font-size: 11px;
  clip-path: polygon(50% 0, 94% 18%, 84% 78%, 50% 100%, 16% 78%, 6% 18%);
}

.notice p {
  color: rgba(238, 232, 218, 0.88);
  font-size: 12px;
  line-height: 1.7;
}

.question-form {
  gap: 9px;
  text-align: left;
}

.field-heading label {
  color: rgba(230, 220, 204, 0.82);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.input-wrap {
  border: 0;
  border-radius: 28px 15px 25px 17px / 19px 28px 20px 27px;
  background:
    radial-gradient(circle at var(--field-x) var(--field-y), rgba(141, 98, 168, 0.16), transparent 35%),
    linear-gradient(155deg, rgba(28, 22, 43, 0.87), rgba(7, 7, 16, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(236, 218, 255, 0.08),
    inset 0 -30px 70px rgba(2, 2, 8, 0.25),
    0 24px 60px rgba(1, 1, 5, 0.3);
  contain: paint;
}

.input-wrap::before {
  inset: auto 8% 0;
  z-index: 3;
  width: 84%;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(183, 145, 208, 0.3), rgba(220, 190, 131, 0.4), rgba(183, 145, 208, 0.3), transparent);
  opacity: 0.28;
  transform: scaleX(0.45);
  transition: opacity 360ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrap::after {
  display: none;
}

.input-wrap:focus-within {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(236, 218, 255, 0.11),
    inset 0 -32px 76px rgba(2, 2, 8, 0.3),
    0 26px 68px rgba(1, 1, 5, 0.42),
    0 0 44px rgba(104, 68, 137, 0.1);
}

.input-wrap:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.input-wrap__glyph {
  color: rgba(215, 186, 122, 0.18);
}

textarea {
  min-height: 88px;
  padding: 17px 43px 6px 18px;
}

.input-wrap__meta {
  padding: 5px 17px 13px 18px;
}

.primary-button {
  min-height: 58px;
  margin-top: 4px;
  border: 1px solid transparent;
  border-radius: 15px 5px 15px 5px;
  padding-inline: 23px;
  color: #f5e7c0;
  background:
    linear-gradient(118deg, rgba(27, 20, 34, 0.98), rgba(10, 9, 17, 0.98)) padding-box,
    linear-gradient(110deg, rgba(213, 175, 99, 0.72), rgba(156, 117, 177, 0.32), rgba(234, 203, 132, 0.72)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 201, 0.12),
    inset 0 -15px 32px rgba(2, 1, 7, 0.2),
    0 18px 40px rgba(2, 1, 7, 0.38);
  clip-path: polygon(3% 0, 97% 0, 100% 30%, 100% 70%, 97% 100%, 3% 100%, 0 70%, 0 30%);
  text-shadow: 0 1px 12px rgba(238, 208, 142, 0.2);
  contain: paint;
}

.primary-button::before {
  z-index: 1;
  background: rgba(239, 210, 145, 0.42);
}

.primary-button > span {
  z-index: 3;
}

.primary-button__glare {
  position: absolute !important;
  inset: -80% auto -80% -35%;
  z-index: 2 !important;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 184, 0.22), transparent);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transform: rotate(17deg) translateX(-180%);
}

.primary-button__arrow {
  color: #d7ba79;
}

.hero-card__sheen::after {
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(104deg, transparent 43%, rgba(255, 232, 172, 0.06) 47%, rgba(255, 241, 203, 0.82) 49.6%, rgba(201, 157, 216, 0.18) 52%, transparent 57%);
  content: "";
  opacity: 0;
  transform: translateX(-42%) rotate(2deg);
}

@media (prefers-reduced-motion: no-preference) {
  .temple-scene__beam {
    animation: moving-light-beam 7.8s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  }

  .title-char {
    animation:
      title-blur-in 680ms calc(120ms + var(--char-index) * 62ms) cubic-bezier(0.16, 1, 0.3, 1) both,
      title-lustre 6.8s 1.4s ease-in-out infinite;
  }

  .hero-card__sheen::after {
    animation: card-light-pass 6.4s 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  .primary-button__glare {
    animation: button-specular 4.8s 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}

@keyframes title-blur-in {
  from { opacity: 0; filter: blur(12px); transform: translateY(15px) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes title-lustre {
  0%, 58%, 100% { background-position: 0 0; }
  78% { background-position: 100% 0; }
}

@keyframes moving-light-beam {
  0% { opacity: 0.25; transform: translate3d(-64%, -2%, 0) rotate(-7deg) scaleX(0.74); }
  48% { opacity: 0.55; transform: translate3d(-44%, 0, 0) rotate(1deg) scaleX(1.04); }
  100% { opacity: 0.28; transform: translate3d(-21%, 3%, 0) rotate(8deg) scaleX(0.78); }
}

@keyframes card-light-pass {
  0%, 55% { opacity: 0; transform: translateX(-42%) rotate(2deg); }
  63% { opacity: 0.86; }
  76%, 100% { opacity: 0; transform: translateX(42%) rotate(2deg); }
}

@keyframes button-specular {
  0%, 58% { opacity: 0; transform: rotate(17deg) translateX(-180%); }
  66% { opacity: 1; }
  82%, 100% { opacity: 0; transform: rotate(17deg) translateX(720%); }
}

@media (max-width: 767px) {
  .page-shell {
    padding-inline: clamp(18px, 5.5vw, 24px);
  }

  .brand {
    min-height: 36px;
  }

  .brand__name {
    font-size: 12px;
  }

  .hero {
    gap: 0;
    padding-top: 7px;
  }

  .hero__visual {
    width: min(68vw, 245px);
    margin-top: -3px;
    margin-bottom: 7px;
  }

  .hero-card-stage {
    width: 67%;
  }

  h1 {
    font-size: clamp(41px, 13.3vw, 58px);
  }

  .intro {
    margin-block: 8px 12px;
  }

  .notice {
    margin-bottom: 14px;
  }

  .notice p {
    font-size: 11px;
    line-height: 1.62;
  }

  textarea {
    min-height: 73px;
  }
}

@media (max-height: 720px) and (max-width: 767px) {
  .hero__visual {
    width: 146px;
    margin-top: -13px;
    margin-bottom: -3px;
  }

  .eyebrow {
    margin-bottom: 4px;
  }

  h1 {
    font-size: clamp(36px, 11.7vw, 45px);
  }

  .intro {
    display: none;
  }

  .notice {
    margin-block: 8px 10px;
  }

  textarea {
    min-height: 57px;
  }

  .primary-button {
    min-height: 51px;
  }
}
