:root {
  --black: #0f0d0b;
  --coffee: #2b1f19;
  --wood: #5b3a29;
  --gold: #d6b36a;
  --red: #8b2e1e;
  --warm: #f4d28c;
  --ink: #17110d;
  --text: #f8ead0;
  --muted: rgba(248, 234, 208, 0.68);
  --line: rgba(214, 179, 106, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 15%, rgba(139, 46, 30, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 28%, rgba(214, 179, 106, 0.12), transparent 25rem),
    var(--black);
  color: var(--text);
  font-family:
    "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", ui-serif, Georgia,
    serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: 30px 20px 44px;
  isolation: isolate;
  overflow: hidden;
}

.cosmic-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cosmic-field::before {
  position: absolute;
  inset: 8%;
  content: "";
  background:
    radial-gradient(circle, rgba(246, 210, 140, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(214, 179, 106, 0.14) 0 1px, transparent 2px);
  background-position: 0 0, 26px 28px;
  background-size: 78px 78px, 112px 112px;
  opacity: 0.46;
  animation: particleFloat 18s ease-in-out infinite alternate;
}

/* Mobile-first structure; desktop becomes the requested 35 / 30 / 35 hero split. */
.hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
  max-width: 1440px;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
}

.brand-panel,
.hero-copy,
.beast-stage {
  position: relative;
}

.brand-panel {
  padding-top: 8px;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(244, 210, 140, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 210, 140, 0.28), transparent 35%),
    radial-gradient(circle at 28% 18%, rgba(246, 210, 140, 0.35), transparent 34%),
    linear-gradient(135deg, var(--red), var(--wood) 42%, var(--coffee) 70%, #140d0a);
  box-shadow:
    inset 0 1px 2px rgba(255, 245, 215, 0.25),
    inset 0 -24px 52px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(214, 179, 106, 0.22);
  animation: logoGlow 6s ease-in-out infinite;
  overflow: hidden;
}

.logo-mark::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  content: "";
  background:
    repeating-linear-gradient(
      108deg,
      transparent 0 8px,
      rgba(244, 210, 140, 0.07) 9px 11px,
      transparent 12px 19px
    );
  mix-blend-mode: screen;
}

.logo-core {
  position: relative;
  color: var(--warm);
  font-size: 2.45rem;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(244, 210, 140, 0.55);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 14px;
  font-size: clamp(3rem, 16vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 10vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.brand-subtitle {
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 1.2rem;
}

.brand-copy,
.hero-copy p,
.section-heading p,
.cta-band p,
.story-block p,
.site-footer p {
  color: var(--muted);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
}

.hero-copy {
  padding-bottom: 8px;
}

.hero-copy h2 {
  max-width: 9.5ch;
}

.hero-copy p {
  max-width: 35rem;
  font-size: 1.02rem;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 210, 140, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 46, 30, 0.92), rgba(214, 179, 106, 0.24)),
    #21120d;
  box-shadow: 0 0 42px rgba(214, 179, 106, 0.16);
  color: #fff7df;
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  animation: buttonGlow 5.8s ease-in-out infinite;
}

.primary-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-115%);
  transition: transform 0.7s ease;
}

.primary-button:hover::before {
  transform: translateX(115%);
}

.guardian-guide {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: 26px;
}

.guide-avatar {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, rgba(244, 210, 140, 0.2), rgba(31, 22, 16, 0.9));
  box-shadow: 0 0 34px rgba(214, 179, 106, 0.18);
  overflow: hidden;
}

.guide-avatar img {
  width: 82px;
  max-width: none;
  transform: translateY(12px);
}

.guide-bubble {
  padding: 16px;
  border: 1px solid rgba(214, 179, 106, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 179, 106, 0.14), transparent 42%),
    rgba(15, 13, 11, 0.72);
}

.guide-bubble p {
  margin-bottom: 12px;
  color: rgba(255, 243, 210, 0.86);
  font-size: 0.92rem;
  line-height: 1.65;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-actions a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(214, 179, 106, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(244, 210, 140, 0.92);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.78rem;
}

.beast-stage {
  display: grid;
  min-height: 430px;
  place-items: center;
}

.beast-stage::before {
  position: absolute;
  width: min(80vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(244, 210, 140, 0.17), transparent 61%),
    conic-gradient(from 20deg, rgba(91, 58, 41, 0), rgba(214, 179, 106, 0.42), rgba(139, 46, 30, 0.34), rgba(91, 58, 41, 0));
  filter: blur(4px);
  opacity: 0.72;
  animation: starRotate 35s linear infinite;
}

.beast-image {
  position: relative;
  z-index: 3;
  width: min(82vw, 520px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 30px rgba(214, 179, 106, 0.16));
  animation: beastFloat 7s ease-in-out infinite;
}

.beast-photo {
  width: min(76vw, 360px);
  max-height: min(78vh, 680px);
  border: 1px solid rgba(214, 179, 106, 0.28);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 42px rgba(214, 179, 106, 0.14);
}

.beast-video {
  width: min(76vw, 360px);
  max-height: min(78vh, 680px);
  border: 1px solid rgba(214, 179, 106, 0.28);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 42px rgba(214, 179, 106, 0.14);
}

.constellation {
  position: absolute;
  width: min(78vw, 530px);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: starRotate 48s linear infinite reverse;
}

/* The 28 stars are positioned by JS through --i. */
.constellation span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(244, 210, 140, 0.58);
  font-size: 0.68rem;
  transform: rotate(calc(var(--i) * 12.857deg)) translateY(-245px)
    rotate(calc(var(--i) * -12.857deg));
}

.star-ring {
  position: absolute;
  width: min(70vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(214, 179, 106, 0.1);
}

.star-ring-a {
  animation: starRotate 28s linear infinite;
}

.star-ring-b {
  width: min(58vw, 340px);
  border-color: rgba(139, 46, 30, 0.34);
  animation: starRotate 24s linear infinite reverse;
}

.eye-glow {
  position: absolute;
  z-index: 4;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 18px var(--warm), 0 0 34px rgba(214, 179, 106, 0.6);
  opacity: 0.72;
  animation: logoGlow 4.5s ease-in-out infinite;
}

.eye-left {
  transform: translate(-34px, -28px);
}

.eye-right {
  transform: translate(36px, -30px);
}

.smoke {
  position: absolute;
  width: 52vw;
  height: 24vh;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(246, 232, 200, 0.08), transparent 68%);
  filter: blur(18px);
  opacity: 0.6;
  animation: smokeFlow 18s ease-in-out infinite alternate;
}

.smoke-a {
  left: -12%;
  top: 17%;
}

.smoke-b {
  right: -16%;
  top: 48%;
  animation-delay: -5s;
}

.smoke-c {
  left: 20%;
  bottom: 3%;
  animation-delay: -9s;
}

.energy-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 62vmin;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 179, 106, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: energyRotate 42s linear infinite;
}

.ring-b {
  width: 78vmin;
  border-color: rgba(139, 46, 30, 0.16);
  animation-direction: reverse;
}

.section {
  padding: 86px 20px;
}

.section-heading,
.cta-band,
.story-block,
.ai-oracle,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.story-block h2,
.cta-band h2,
.oracle-copy h2 {
  max-width: 12ch;
}

.element-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 14px;
}

/* Cards keep a restrained boutique glow instead of bright metallic gold. */
.element-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 210, 140, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(43, 31, 25, 0.92), rgba(15, 13, 11, 0.9));
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.element-card::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: radial-gradient(circle at 30% 0%, rgba(214, 179, 106, 0.22), transparent 36%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.element-card:hover {
  border-color: rgba(244, 210, 140, 0.42);
  box-shadow: 0 30px 92px rgba(214, 179, 106, 0.13);
  transform: translateY(-5px);
}

.element-card:hover::before {
  opacity: 1;
}

.element-card > * {
  position: relative;
}

.element-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
  color: #fff3ca;
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.wood {
  background: #355744;
}

.fire {
  background: #8b2e1e;
}

.earth {
  background: #6d5636;
}

.metal {
  background: #7d7667;
}

.water {
  background: #223f4f;
}

.wood-name {
  margin-bottom: 18px;
  color: var(--gold);
}

.element-card p:last-child {
  color: var(--muted);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.bazi-section {
  position: relative;
  background:
    radial-gradient(circle at 18% 8%, rgba(53, 87, 68, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(214, 179, 106, 0.12), transparent 32rem),
    linear-gradient(180deg, rgba(12, 10, 9, 0.92), rgba(31, 22, 16, 0.78));
}

.poster-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(53, 87, 68, 0.16), transparent 26rem),
    radial-gradient(circle at 80% 20%, rgba(139, 46, 30, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(15, 13, 11, 0.2), rgba(43, 31, 25, 0.54));
}

.poster-layout {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 30px;
  align-items: center;
}

.poster-copy h2 {
  max-width: 11ch;
}

.poster-copy p {
  max-width: 38rem;
  color: var(--muted);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
}

.poster-frame {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(214, 179, 106, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 210, 140, 0.14), transparent 34%),
    rgba(7, 6, 5, 0.64);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 42px rgba(214, 179, 106, 0.12);
}

.poster-frame img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.bazi-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 210, 140, 0.08), transparent 32%),
    rgba(15, 13, 11, 0.82);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.bazi-heading {
  padding: 32px 24px 24px;
  border-bottom: 1px solid rgba(214, 179, 106, 0.16);
  background: linear-gradient(180deg, rgba(43, 31, 25, 0.82), rgba(15, 13, 11, 0.18));
}

.bazi-heading h2 {
  max-width: 14ch;
}

.bazi-heading p,
.bazi-form label,
.result-copy,
.result-panel p,
.result-empty p {
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.bazi-heading p {
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.8;
}

.bazi-grid {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.bazi-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.calendar-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}

.calendar-switch label {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.2);
  border-radius: 8px;
  background: rgba(7, 6, 5, 0.56);
  cursor: pointer;
}

.calendar-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-switch span {
  color: rgba(248, 234, 208, 0.72);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.calendar-switch input:checked + span {
  color: var(--warm);
}

.calendar-switch label:has(input:checked) {
  border-color: rgba(244, 210, 140, 0.54);
  background:
    linear-gradient(135deg, rgba(139, 46, 30, 0.58), rgba(214, 179, 106, 0.14)),
    rgba(15, 13, 11, 0.82);
  box-shadow: 0 0 26px rgba(214, 179, 106, 0.12);
}

.calendar-panel {
  display: none;
}

.calendar-panel.is-active {
  display: grid;
  gap: 12px;
}

.lunar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr;
  gap: 8px;
}

.inline-check {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(7, 6, 5, 0.46);
  cursor: pointer;
}

.inline-check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.bazi-form label {
  color: rgba(248, 234, 208, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.bazi-form input,
.bazi-form select {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(7, 6, 5, 0.74);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bazi-form input:focus,
.bazi-form select:focus {
  border-color: rgba(244, 210, 140, 0.62);
  box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.12);
}

.calendar-switch input {
  width: 100%;
  min-height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.inline-check input {
  width: 16px;
  min-height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
}

.bazi-button {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.bazi-result {
  min-height: 360px;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 179, 106, 0.16), transparent 35%),
    rgba(7, 6, 5, 0.55);
  overflow: hidden;
}

.result-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 26px;
  text-align: center;
}

.result-sigil {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.34);
  border-radius: 50%;
  color: var(--warm);
  font-size: 2.2rem;
  box-shadow: 0 0 42px rgba(214, 179, 106, 0.16);
}

.result-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.result-main {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(214, 179, 106, 0.16);
  text-align: center;
}

.result-element {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: clamp(2.2rem, 11vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.result-meta {
  margin-bottom: 12px;
  color: rgba(244, 210, 140, 0.74);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.88rem;
}

.result-copy {
  margin-bottom: 0;
  color: rgba(248, 234, 208, 0.82);
  line-height: 1.75;
}

.result-panels {
  display: grid;
  gap: 12px;
}

.result-panel {
  padding: 18px;
  border: 1px solid rgba(214, 179, 106, 0.16);
  border-radius: 8px;
  background: rgba(31, 22, 16, 0.62);
}

.result-panel h3 {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.02rem;
}

.result-panel p {
  margin-bottom: 0;
  color: rgba(248, 234, 208, 0.74);
  line-height: 1.7;
}

.wood-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wood-stack span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(214, 179, 106, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(15, 13, 11, 0.66);
  color: rgba(255, 243, 210, 0.9);
  font-size: 0.86rem;
}

.ai-section {
  background:
    radial-gradient(circle at 30% 0%, rgba(214, 179, 106, 0.12), transparent 34rem),
    linear-gradient(180deg, transparent, rgba(43, 31, 25, 0.44), transparent);
}

.ai-oracle {
  display: grid;
  gap: 28px;
  align-items: center;
}

.chat-shell {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 210, 140, 0.16), transparent 32%),
    rgba(20, 14, 11, 0.78);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  animation: logoGlow 7s ease-in-out infinite;
}

.chat-shell p {
  position: relative;
  margin-bottom: 10px;
  color: rgba(255, 243, 210, 0.88);
  font-size: clamp(1.05rem, 5vw, 1.7rem);
  line-height: 1.7;
}

.ai-concierge {
  display: grid;
  gap: 14px;
}

.concierge-answer {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(214, 179, 106, 0.14), transparent 40%),
    rgba(7, 6, 5, 0.42);
}

.concierge-answer p {
  margin-bottom: 0;
  font-size: clamp(1.02rem, 3.5vw, 1.28rem);
}

.concierge-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.concierge-actions button {
  min-height: 44px;
  border: 1px solid rgba(214, 179, 106, 0.2);
  border-radius: 8px;
  background: rgba(7, 6, 5, 0.58);
  color: rgba(255, 243, 210, 0.86);
  font: inherit;
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.concierge-actions button:hover,
.concierge-actions button.is-active {
  border-color: rgba(244, 210, 140, 0.54);
  background:
    linear-gradient(135deg, rgba(139, 46, 30, 0.58), rgba(214, 179, 106, 0.16)),
    rgba(15, 13, 11, 0.82);
  color: var(--warm);
}

.concierge-line {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(214, 179, 106, 0.14);
  border-radius: 8px;
  background: rgba(7, 6, 5, 0.32);
}

.concierge-line span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 179, 106, 0.14);
  color: var(--warm);
  font-weight: 700;
}

.concierge-line p {
  margin-bottom: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.chat-light {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 22px var(--warm);
}

.cta-band,
.story-block {
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(43, 31, 25, 0.7), rgba(15, 13, 11, 0.2));
}

.story-section {
  background:
    radial-gradient(circle at 76% 24%, rgba(139, 46, 30, 0.16), transparent 28rem),
    #0c0a09;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(214, 179, 106, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(43, 31, 25, 0.68);
  color: rgba(248, 234, 208, 0.84);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.86rem;
}

.site-footer {
  padding: 46px 20px 34px;
  background: #070605;
  border-top: 1px solid rgba(214, 179, 106, 0.13);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 1.35rem;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: rgba(244, 210, 140, 0.82);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoGlow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 2px rgba(255, 245, 215, 0.2),
      0 0 26px rgba(214, 179, 106, 0.12);
  }
  50% {
    box-shadow:
      inset 0 1px 2px rgba(255, 245, 215, 0.28),
      0 0 48px rgba(214, 179, 106, 0.28);
  }
}

@keyframes beastFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.015);
  }
}

@keyframes smokeFlow {
  from {
    transform: translate3d(-6%, 3%, 0) scale(1);
  }
  to {
    transform: translate3d(8%, -4%, 0) scale(1.12);
  }
}

@keyframes particleFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -24px, 0);
  }
}

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

@keyframes energyRotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 32px rgba(214, 179, 106, 0.14);
  }
  50% {
    box-shadow: 0 0 54px rgba(214, 179, 106, 0.28);
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 42px 34px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 35%) minmax(300px, 30%) minmax(0, 35%);
    gap: 22px;
  }

  .brand-panel {
    padding-left: 12px;
  }

  .hero-copy {
    justify-self: end;
    padding-right: 12px;
  }

  .element-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bazi-heading {
    padding: 42px 42px 30px;
  }

  .bazi-grid {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    padding: 36px;
  }

  .result-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-oracle {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .poster-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  }

  .footer-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1120px) {
  h1 {
    font-size: 5.35rem;
  }

  .hero-copy h2 {
    font-size: 4.5rem;
  }
}

@media (max-width: 719px) {
  .constellation span {
    transform: rotate(calc(var(--i) * 12.857deg)) translateY(-180px)
      rotate(calc(var(--i) * -12.857deg));
  }

  .beast-stage {
    min-height: 380px;
  }

  .hero-copy h2,
  .section-heading h2,
  .story-block h2,
  .cta-band h2,
  .oracle-copy h2,
  .bazi-heading h2 {
    max-width: 11ch;
  }

  .bazi-grid,
  .bazi-heading,
  .result-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .concierge-actions {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    width: min(360px, 100%);
  }
}

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