/* 未登录首页：产品介绍 + 登录注册卡。沿用 theme.css 的暖纸色、赭橙。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
.home-body {
  display: block;
  padding: 0;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 500px at 20% -10%, rgba(255, 250, 240, 0.7), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 128, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #f6efe3 0%, #ead8c0 100%);
}
.home-body a { color: inherit; }

.home-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.home-nav .brand { margin: 0; text-decoration: none; }
.home-nav .brand b { font: 600 15px/1 var(--serif); letter-spacing: 0.12em; color: var(--ink); }
.home-links { display: flex; align-items: center; gap: 4px; }
.home-links a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.home-links a:hover { color: var(--ink); background: rgba(42, 35, 24, 0.06); }
.home-links .home-links-cta { color: var(--accent-deep); font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 56px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
}
.hero-copy { min-width: 0; }
.hero .kicker { margin-bottom: 18px; }
.hero-title {
  margin: 0 0 22px;
  font: 600 52px/1.28 var(--serif);
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding-left: 22px;
}
.hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-lead {
  max-width: 34em;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font: 600 14px/1 var(--sans);
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: 0.16s;
}
.home-body .btn-primary {
  background: linear-gradient(180deg, #c26235, #a44a22);
  border: 1px solid #8c3d1c;
  color: #fffaf3;
}
.home-body .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.home-body .btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--accent-deep);
  background: rgba(255, 250, 243, 0.7);
}
.home-body .btn-ghost:hover { background: #fffaf3; border-color: var(--accent); transform: translateY(-1px); }
.hero-note {
  margin: 0;
  max-width: 32em;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.hero .card { margin: 0; max-width: none; scroll-margin-top: 80px; }
.card-brand { display: none; }
.card-title {
  font: 600 22px/1.35 var(--serif);
  margin: 0 0 18px;
  color: var(--ink);
}
.card.is-flash { animation: card-flash 0.9s ease; }
@keyframes card-flash {
  0% { box-shadow: 0 0 0 0 rgba(180, 86, 43, 0.35), var(--shadow); }
  100% { box-shadow: 0 0 0 14px rgba(180, 86, 43, 0), var(--shadow); }
}

.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 58px;
}
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 30px; }
.section-no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-deep);
  font: 600 14px/1 var(--serif);
  transform: translateY(-3px);
}
.section-head h2 { margin: 0; font: 600 26px/1.4 var(--serif); color: var(--ink); letter-spacing: 0.04em; }
.section-head p { flex-basis: 100%; margin: 4px 0 0 42px; font-size: 14px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 22px;
  box-shadow: var(--shadow);
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #c26235, #8c3d1c);
  border-radius: var(--radius) var(--radius) 0 0;
}
.feature svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font: 600 17px/1.4 var(--serif); color: var(--ink); }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.7);
  box-shadow: var(--shadow);
}
.feature-strip > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.feature-strip > div + div { border-left: 1px solid var(--line); }
.feature-strip b { font: 600 14px/1.4 var(--serif); color: var(--ink); }
.feature-strip span { font-size: 12.5px; line-height: 1.75; color: var(--muted); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c26235, #8c3d1c);
  color: #fffaf3;
  font: 600 15px/1 var(--serif);
  position: relative;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 34px;
  right: 0;
  height: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps b { font: 600 16px/1.4 var(--serif); color: var(--ink); }
.steps span { font-size: 13px; line-height: 1.8; color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 24px 16px 0;
  position: relative;
  font: 600 15px/1.5 var(--serif);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.16s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.home-foot {
  border-top: 1px solid var(--line-strong);
  background: var(--ink);
  color: #d8cbb8;
  padding: 36px max(20px, calc((100% - 1120px) / 2)) 40px;
  font-size: 12.5px;
  line-height: 1.9;
}
.home-foot .brand { margin-bottom: 8px; }
.home-foot .brand svg { color: var(--accent-soft); }
.home-foot .brand b { color: #f6efe3; font: 600 15px/1 var(--serif); letter-spacing: 0.12em; }
.home-foot p { margin: 0; }
.home-foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px !important; }
.home-foot-links a { color: #f3eadc; text-decoration: none; border-bottom: 1px solid rgba(243, 234, 220, 0.35); }
.home-foot-links a:hover { border-bottom-color: #f3eadc; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; padding: 40px 20px 48px; }
  .hero .card { max-width: 460px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 560px) {
  .home-nav { height: 52px; padding: 0 14px; }
  .home-links a:not(.home-links-cta):not(.contact-link) { display: none; }
  .home-links { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .home-links .contact-hover,
  .home-links .checkin-btn { display: inline-flex; }
  .home-nav { height: auto; min-height: 52px; }
  .home-links .contact-link,
  .home-links .checkin-btn { min-height: 40px; font-size: 12.5px; padding: 0 8px; }
  .hero { padding: 32px 14px 40px; gap: 26px; }
  .hero-title { font-size: 34px; padding-left: 16px; margin-bottom: 16px; }
  .hero-title::before { width: 5px; }
  .hero-lead { font-size: 14.5px; margin-bottom: 22px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-ghost { flex: 1 1 0; min-width: 0; padding: 0 12px; letter-spacing: 0.08em; }
  .hero .card { max-width: none; scroll-margin-top: 64px; }
  .home-section { padding: 44px 14px; scroll-margin-top: 52px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { margin-left: 0; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-strip { grid-template-columns: minmax(0, 1fr); }
  .feature-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .steps li { padding: 0 0 0 48px; min-height: 34px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { display: none; }
  .faq details { padding: 0 16px; }
  .home-foot { padding: 28px 14px 32px; }
}

.hero .card .msg:empty { min-height: 0; margin-top: 0; }
.hero .card .foot { margin-top: 18px; }

/* 已登录时右侧卡片：问候、积分、进入书库、退出 */
.signed-in {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.signed-hello {
  margin: 0 0 8px;
  font: 600 22px/1.35 var(--serif);
  color: var(--ink);
}
.signed-credits {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.signed-enter {
  width: 100%;
  min-width: 0;
  height: 44px;
  letter-spacing: 0.12em;
}
.signed-logout {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.signed-logout:hover { color: var(--ink); }

/* discuss39 mobile */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .home-nav { padding-top: env(safe-area-inset-top, 0px); }
  .home-links-cta, .btn-primary, .btn-ghost { min-height: 44px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; }
}

.signed-credits.credit-link { display: inline-block; text-decoration: none; color: inherit; }
.home-links .contact-hover { margin: 0 2px; }
.home-links .checkin-btn { margin-left: 2px; }


/* 2026-12-04 分层首屏：真实文字与按钮，黑底金星铺满视口。不改第一条 [hidden] 规则。 */
@font-face {
  font-family: "MaShanZheng";
  src: url("/static/fonts/MaShanZheng-Regular.woff2?v=20261204-hero5") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html:has(.home-hero-only) {
  height: 100%;
  overflow: hidden;
  background: #030302;
}
.home-body.home-hero-only {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  display: block;
  background: #030302;
  background-image: none;
}

.hero-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #030302;
  color: #f3e6c8;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #030302;
  background-image: url("/static/img/home-hero-stars.webp?v=20261204-hero5");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100%;
  pointer-events: none;
}

/* 超宽屏时把文字和书作为 16:9 一组靠右，间距回到定稿比例；多出的宽度留给左侧星空。 */
.hero-layout {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100vw, calc(100vh * 16 / 9));
  width: min(100vw, calc(100dvh * 16 / 9));
  z-index: 1;
  pointer-events: none;
}

.hero-book {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.hero-glow,
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero-glow {
  mix-blend-mode: screen;
  --mx: 72%;
  --my: 42%;
  --glow-r: 28vmin;
  --glow-a: 0.55;
  --glow-b: 0.22;
  background: radial-gradient(circle var(--glow-r) at var(--mx) var(--my),
    rgba(255, 214, 140, var(--glow-a)) 0%,
    rgba(255, 176, 80, var(--glow-b)) 28%,
    rgba(255, 150, 60, 0.06) 55%,
    rgba(0, 0, 0, 0) 72%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.hero-fx {
  z-index: 3;
  width: 100%;
  height: 100%;
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(52px, 7.4vh, 78px);
  padding: 0 clamp(20px, 3.2vw, 56px);
  gap: clamp(12px, 1.6vw, 28px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f6ead6;
  flex: none;
}
.hero-logo:hover .hero-logo-text { color: #ffe9b8; }
.hero-logo-mark {
  display: grid;
  place-items: center;
  width: clamp(26px, 3.2vh, 36px);
  height: clamp(26px, 3.2vh, 36px);
  border-radius: 7px;
  background: linear-gradient(180deg, #c46832, #a44a22);
  color: #fff7ea;
  font: 600 clamp(13px, 1.6vh, 17px)/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.hero-logo-text {
  font: 600 clamp(15px, 0.7vw + 1.05vh, 22px)/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.16em;
  color: #f6ead6;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.3vw, 8px);
  flex-wrap: nowrap;
  min-width: 0;
}
.hero-links > a,
.hero-nav-label,
.hero-nav .contact-link,
.hero-nav-login,
.hero-nav-member a,
.hero-nav-member button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(34px, 4.5vh, 46px);
  padding: 0 clamp(10px, 0.8vw, 14px);
  border: 0;
  background: transparent;
  color: #f7edd8;
  font: 600 clamp(13px, 0.55vw + 0.95vh, 20px)/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  box-sizing: border-box;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.hero-nav-label {
  cursor: default;
  user-select: none;
}
.hero-links > a:hover,
.hero-links > a:focus-visible,
.hero-nav .contact-link:hover,
.hero-nav .contact-link:focus-visible,
.hero-nav-member a:hover,
.hero-nav-member a:focus-visible,
.hero-nav-member button:hover,
.hero-nav-member button:focus-visible {
  color: #ffe9b8;
  background: rgba(255, 214, 140, 0.14);
  outline: none;
}
.hero-links > a:active,
.hero-nav .contact-link:active,
.hero-nav-member a:active,
.hero-nav-member button:active {
  transform: translateY(1px);
}

.hero-nav-login {
  margin-left: 8px;
  min-width: clamp(72px, 7.5vh, 96px);
  height: clamp(34px, 4.5vh, 46px);
  border: 1px solid #e8d4a0;
  border-radius: 999px;
  color: #fff6de;
  background: rgba(255, 214, 140, 0.12);
}
.hero-nav-login:hover,
.hero-nav-login:focus-visible {
  border-color: #ffe9b8;
  background: rgba(255, 214, 140, 0.16);
  color: #fff6de;
  outline: none;
}
.hero-nav-login:active {
  transform: translateY(1px);
}

.hero-nav-member {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(2px, 0.35vw, 8px);
  margin-left: clamp(6px, 0.8vw, 14px);
}
.hero-nav-member[hidden] { display: none !important; }

.hero-nav-member .checkin-btn,
.hero-nav .checkin-btn {
  min-height: clamp(34px, 4.5vh, 46px);
  padding: 0 clamp(12px, 1vw, 16px);
  border-radius: 999px;
  border: 1px solid #8c3d1c;
  background: linear-gradient(180deg, #c46832, #a44a22);
  color: #fff7ea;
  font: 500 clamp(13px, 0.55vw + 0.95vh, 20px)/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.hero-nav-member .checkin-btn:hover,
.hero-nav-member .checkin-btn:focus-visible,
.hero-nav .checkin-btn:hover,
.hero-nav .checkin-btn:focus-visible {
  filter: brightness(1.08);
  color: #fffaf3;
  background: linear-gradient(180deg, #d0733a, #b05228);
  border-color: #8c3d1c;
  outline: none;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 8.9vh, 96px);
  top: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: clamp(280px, 46%, 720px);
  padding-top: clamp(12px, 2vh, 28px);
  box-sizing: border-box;
  pointer-events: none;
}
.hero-copy a,
.hero-copy button { pointer-events: auto; }

.hero-kicker {
  margin: 0 0 1.1vh;
  font-family: "MaShanZheng", "Ma Shan Zheng", serif;
  font-size: clamp(36px, 7.4vh, 80px);
  font-weight: 400;
  line-height: 1.25;
  color: #f4e6cc;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-zhimeng {
  margin: 0.15vh 0 1.4vh;
  line-height: 0;
}
.hero-zhimeng img {
  display: block;
  width: clamp(240px, 44vh, 540px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-line {
  margin: 0 0 1.05vh;
  font-family: "MaShanZheng", "Ma Shan Zheng", serif;
  font-size: clamp(22px, 4.15vh, 44px);
  font-weight: 400;
  line-height: 1.4;
  color: #f1e2c4;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin: 0 0 4vh;
  font-family: "MaShanZheng", "Ma Shan Zheng", serif;
  font-size: clamp(15px, 2.25vh, 24px);
  font-weight: 400;
  line-height: 1.7;
  color: #f2e4c0;
  letter-spacing: 0.05em;
  max-width: 22em;
}

.hero-punct {
  display: inline-block;
  margin: 0 -0.32em;
}

.hero-ai {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.06em;
  margin: 0 0.07em 0 0.1em;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  pointer-events: auto;
}
.hero-actions[hidden] { display: none !important; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(140px, 20.5vh, 180px);
  height: clamp(44px, 6.4vh, 56px);
  padding: 0 22px;
  border-radius: 10px;
  font: 600 clamp(14px, 2.05vh, 17px)/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: filter 0.16s ease, transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.hero-btn-primary {
  background: linear-gradient(180deg, #c46832, #a44a22);
  border: 1px solid #8c3d1c;
  color: #fffaf3;
  box-shadow: 0 6px 18px rgba(80, 30, 8, 0.35);
}
.hero-btn-primary:hover,
.hero-btn-primary:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(80, 30, 8, 0.45);
  outline: none;
}
.hero-btn-primary:active {
  filter: brightness(0.96);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(80, 30, 8, 0.3);
}
.hero-btn-ghost {
  background: rgba(8, 6, 4, 0.45);
  border: 1px solid rgba(236, 220, 180, 0.55);
  color: #f6ead6;
}
.hero-btn-ghost:hover,
.hero-btn-ghost:focus-visible {
  background: rgba(255, 214, 140, 0.12);
  border-color: #ffe9b8;
  color: #fff6de;
  transform: translateY(-1px);
  outline: none;
}
.hero-btn-ghost:active {
  transform: translateY(1px);
  background: rgba(255, 214, 140, 0.18);
}
.hero-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 140, 0.9);
  outline-offset: 3px;
}

.hero-nav .contact-hover { z-index: 30; margin: 0; }
.hero-nav .contact-link {
  color: #f7edd8;
  min-height: clamp(34px, 4.5vh, 46px);
  padding: 0 clamp(10px, 0.8vw, 14px);
  background: transparent;
}
.hero-nav .contact-link:hover,
.hero-nav .contact-link:focus-visible {
  color: #ffe9b8;
  background: rgba(255, 214, 140, 0.14);
}

.home-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.home-auth-modal[hidden] { display: none !important; }
.home-auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}
.home-auth-modal .card {
  position: relative;
  z-index: 1;
  margin: 0;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.home-auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  padding: 6px 8px;
  background: none;
  color: var(--muted);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.home-auth-close:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-copy { width: min(88vw, 560px); }
  .hero-nav-member { margin-left: 4px; gap: 0; }
  .hero-links > a,
  .hero-nav-label,
  .hero-nav .contact-link,
  .hero-nav-member a,
  .hero-nav-member button { padding: 0 8px; }
}
@media (max-width: 720px) {
  .hero-nav-label { display: none; }
  .hero-btn { min-width: 128px; height: 44px; }
  .home-auth-modal { padding: 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { transition: none; }
  .hero-btn,
  .hero-links > a,
  .hero-nav-login,
  .hero-nav-member a,
  .hero-nav-member button { transition: none; }
}
