:root {
  --bg: #000;
  --panel: #111;
  --panel-2: #171717;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f5f5f5;
  --muted: #9a9a9a;
  --soft: #6e6e6e;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #000;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #070707;
  background-image:
    linear-gradient(rgba(190, 190, 190, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 190, 190, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(160, 160, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 160, 160, 0.08) 1px, transparent 1px);
  background-size:
    16px 16px,
    16px 16px,
    4px 4px,
    4px 4px;
  background-position: center top;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(700px 420px at 85% 30%, rgba(255, 255, 255, 0.03), transparent 55%),
    radial-gradient(640px 380px at 10% 70%, rgba(255, 255, 255, 0.025), transparent 50%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  /* dark site: keep brand teal readable */
  filter: brightness(1.35) saturate(1.05);
}
.logo-text {
  line-height: 1;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-primary a,
.nav-primary button {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav-primary a:hover,
.nav-primary a.on,
.nav-primary button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.nav-tiers {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.nav-tiers a {
  min-width: 52px;
  padding: 7px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-tiers a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.nav-tiers a.on {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.top-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: .18s transform, .18s background, .18s color, .18s border-color;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost:hover { background: rgba(255,255,255,0.05); }
.btn.white {
  background: #fff;
  color: #000;
}
.btn.white:hover { background: #eaeaea; }
.btn.dark {
  background: #1c1c1c;
  color: #fff;
  border: 1px solid var(--line);
}
.btn.dark:hover { background: #262626; }
.btn.split span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.75rem;
}
.btn.block { width: 100%; }
.text-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.text-link:hover { color: var(--ink); }

.hero {
  text-align: center;
  padding: 88px 24px 48px;
  max-width: 820px;
  margin: 0 auto;
}
.badge {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.badge span { opacity: 0.45; margin: 0 6px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #d8d8d8;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: #fff;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-line {
  height: 1px;
  background: var(--line);
  width: min(920px, 100%);
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.feature.reverse { grid-template-columns: 1.15fr 1fr; }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-panel { order: 1; }
.feature-copy h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.feature-copy .ico {
  color: var(--soft);
  font-size: 1.2rem;
}
.feature-copy > p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 28rem;
}
.feature-copy ul {
  list-style: none;
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}
.feature-copy li {
  color: #bdbdbd;
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7d7d7d;
  font-size: 0.85rem;
}
.feature-panel {
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  min-height: 360px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 50px rgba(0,0,0,0.35);
}
.feature-panel.soft {
  background: #121212;
  padding: 14px;
}

.chat {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #121212 0%, #0c0c0c 100%);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6dffa8;
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(109,255,168,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(109,255,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(109,255,168,0); }
}
.chat-stream {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.bubble {
  max-width: 88%;
  padding: 11px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: bubble-in .32s cubic-bezier(.2,.8,.2,1) forwards;
}
.bubble.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
  border-radius: 4px 16px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background .2s, border-color .2s;
}
.bubble.bot:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}
.bubble.me {
  align-self: flex-end;
  background: #ececec;
  color: #141414;
  border: none;
  border-radius: 16px 16px 4px 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.65) inset,
    0 6px 18px rgba(0,0,0,0.28);
  font-weight: 500;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.bubble.me:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 10px 24px rgba(0,0,0,0.34);
}
.bubble a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bubble.bot a { color: #fff; }
.bubble.me a { color: #111; font-weight: 700; }
@keyframes bubble-in {
  to { opacity: 1; transform: none; }
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: typing 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}
.chat-suggest button {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 600;
  transition: .18s background, .18s border-color, .18s color, .18s transform;
}
.chat-suggest button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
}
.chat-suggest button:active { transform: scale(0.97); }
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within {
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 3px rgba(255,255,255,0.05);
}
.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #eee;
  font-size: 0.88rem;
  padding: 6px 0;
}
.composer input::placeholder { color: rgba(255,255,255,0.34); }
.composer .send {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ececec;
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  transition: transform .15s, filter .15s;
}
.composer .send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.composer .send:active { transform: scale(0.97); }
.composer .send:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-grid a {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  aspect-ratio: 16 / 11;
}
.mini-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.custom-tile {
  position: relative;
}
.custom-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.custom-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.more {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.more h2, .start h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.more .sub, .start .sub {
  color: var(--muted);
  margin-bottom: 28px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.more-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0a0a;
}
.more-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.more-grid p { color: var(--muted); font-size: 0.92rem; }

.pricing {
  padding: 80px 0 90px;
  border-top: 1px solid var(--line);
}
.pricing h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}
.pricing .sub {
  color: var(--muted);
  margin: 0 auto 28px;
  text-align: center;
  max-width: 560px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}
.price-card.featured {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #141414, #0a0a0a);
}
.price-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #050505;
  border-bottom: 1px solid var(--line);
}
.price-visual a {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
}
.price-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.custom-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
    #050505;
}
.custom-mark {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: #fff;
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.custom-visual p {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}
.price-body {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.price-tier {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.price-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.price-num {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.price-num span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.price-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  flex: 1;
}
.price-body li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.price-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.price-body .btn {
  width: 100%;
}
.price-note {
  text-align: center;
  color: var(--soft);
  font-size: 0.82rem;
  margin-top: 18px;
}

.start {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  margin-bottom: 28px;
}
.steps article {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}
.steps span {
  display: block;
  color: var(--soft);
  font-size: 0.85rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  margin-bottom: 28px;
}
.contact-grid article {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}
.contact-grid span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.contact-grid h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.contact-grid p { color: var(--muted); font-size: 0.92rem; }
.start-cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* cases page */
.cases-main { padding-bottom: 80px; }
.cases-hero {
  text-align: center;
  padding: 64px 24px 28px;
}
.cases-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 10px;
}
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}
.gtab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.gtab.on, .gtab:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.gallery-count {
  color: var(--soft);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tpl {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  transition: .2s transform, .2s border-color;
}
.tpl:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.28);
}
.tpl-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #151515;
}
.tpl-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.tpl-meta {
  padding: 14px 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tpl-meta strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.tpl-meta span {
  color: var(--muted);
  font-size: 0.72rem;
}
.chip {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cfcfcf;
  font-size: 0.68rem;
  font-weight: 600;
  height: fit-content;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.mask.open { opacity: 1; pointer-events: auto; }
.login.hidden { display: none; }
.login {
  --field-h: 48px;
  --field-radius: 12px;
  --field-pad-x: 14px;
  --field-fs: 0.95rem;
  width: min(420px, 100%);
  background: #111;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
.login-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--soft);
  margin-bottom: 6px;
  font-weight: 600;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.login-top h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.login-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 1rem;
}
.login-close:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.28);
}
.login-sub { color: var(--muted); margin-bottom: 18px; font-size: 0.9rem; line-height: 1.55; }
.login label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
/* 登录 / 注册 / 找回：统一输入框（宽满、高 48、同圆角同字号） */
.login form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: var(--field-h);
  min-height: var(--field-h);
  max-height: var(--field-h);
  box-sizing: border-box;
  margin: 0;
  padding: 0 var(--field-pad-x);
  border-radius: var(--field-radius);
  border: 1px solid var(--line);
  background: #0a0a0a;
  outline: none;
  color: var(--ink);
  caret-color: var(--ink);
  color-scheme: dark;
  font-size: var(--field-fs);
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}
.login form input:not([type="checkbox"])::placeholder {
  color: rgba(255,255,255,0.34);
  line-height: normal;
  opacity: 1;
}
.login form input:not([type="checkbox"]):focus {
  border-color: rgba(255,255,255,0.35);
}
.login form input:not([type="checkbox"]):-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #0a0a0a inset;
  transition: background-color 99999s ease-out;
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 10px;
}
.login .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.login .check input {
  accent-color: #fff;
  width: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  padding: 0;
  line-height: normal;
  appearance: auto;
  -webkit-appearance: checkbox;
  color-scheme: dark;
}
.linkish {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover { color: #fff; }
.err { color: #ff8d8d; min-height: 1.2em; font-size: 0.85rem; margin-bottom: 8px; }
.login-foot {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.login-foot button {
  background: none;
  border: 0;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 0 0 4px;
  font-size: inherit;
  cursor: pointer;
}
.login-legal {
  margin-top: 12px;
  text-align: center;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.5;
}
.login-legal a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }

.forgot-hint {
  min-height: 1.2em;
  margin: -4px 0 12px;
  color: var(--soft);
  font-size: 0.75rem;
  line-height: 1.4;
}
/* 验证码行：输入框与「获取验证码」同高，与登录框一致 */
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.code-row > label {
  margin-bottom: 0;
  min-width: 0;
}
.code-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 118px;
  height: var(--field-h);
  min-height: var(--field-h);
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: var(--field-radius);
  white-space: nowrap;
  font-size: 0.88rem;
}
.login form .btn.block,
.login form .btn.white.block,
.login form .btn.ghost.code-btn {
  height: var(--field-h);
  min-height: var(--field-h);
  box-sizing: border-box;
  border-radius: var(--field-radius);
}
.btn.block { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.foot-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}
.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.foot-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 4px;
}
.foot-col a,
.foot-col button {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.foot-col a:hover,
.foot-col button:hover { color: #fff; }

.promo-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.promo-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.promo-box strong { color: #fff; letter-spacing: 0.04em; }
.promo-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--soft);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
}
.promo-box .btn {
  justify-self: start;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.promo-modal,
.promo-modal-guest {
  display: grid;
  gap: 12px;
}
.promo-modal[hidden],
.promo-modal-guest[hidden] {
  display: none !important;
}
.promo-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0a0a;
}
.promo-code-row span {
  color: var(--muted);
  font-size: 0.85rem;
}
.promo-code-row strong {
  color: #fff;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.promo-modal label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.promo-modal input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.promo-hint,
.promo-guest-tip {
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1.55;
}
.promo-modal-guest .btn.ghost.block {
  justify-content: center;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-bottom p,
.foot-note {
  color: var(--soft);
  font-size: 0.8rem;
  margin: 0;
}
.contact-mail {
  color: inherit;
  text-decoration: none;
}
.contact-mail:hover { text-decoration: underline; }
.contact-form {
  margin-top: 28px;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 12px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--ink);
  outline: none;
  font: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.34); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.35);
}
.site-notices {
  margin-top: 28px;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.notice-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.notice-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0a;
  margin-bottom: 10px;
}
.notice-item strong { display: block; margin-bottom: 6px; }
.notice-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }
@media (max-width: 560px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}


.wechat-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 48px 0 80px;
}
.wechat-card {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.85);
  text-align: center;
}
.wechat-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--soft);
  font-weight: 600;
}
.wechat-card h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.wechat-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.wechat-ids {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.wechat-ids article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0a;
  text-align: left;
}
.wechat-ids span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.wechat-ids strong {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  user-select: all;
}
.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legal { padding: 48px 0 80px; }
.legal-inner { max-width: 760px; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 12px 0 8px;
  font-weight: 600;
}
.legal-meta {
  color: var(--soft);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.legal article h2 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}
.legal article p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-primary { display: none; }
  .nav { flex: 0; justify-content: flex-end; gap: 0; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-copy, .feature.reverse .feature-panel { order: initial; }
  .more-grid, .steps, .contact-grid, .price-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .feature-panel { min-height: 0; }
  .chat { min-height: 0; }
  .chat-stream { max-height: 260px; min-height: 140px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-tiers { display: none; }
  .top-actions .btn.ghost { display: none; }
  .top-cta {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .top-cta.split span { display: none; }
}

/* ===== Mobile ===== */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 35;
  padding: 14px 16px 18px;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 6px;
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a,
.mobile-nav > button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  border: 1px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav > button:hover,
.mobile-nav > button:active {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
}
.mobile-nav-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 10px;
}
.mobile-nav-tiers a {
  text-align: center;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }

  .wrap {
    width: min(100% - 24px, 1360px);
  }
  .top {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }
  .logo { gap: 8px; font-size: 1.2rem; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text { letter-spacing: 0.08em; }
  .top-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 56px 16px 36px;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .badge { font-size: 0.82rem; margin-bottom: 16px; }
  .lead {
    font-size: 0.95rem;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }
  .hero-cta .btn,
  .hero-cta .text-link {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .feature {
    width: min(100% - 24px, 1120px);
    padding: 40px 0;
    gap: 18px;
  }
  .feature-copy h2 {
    font-size: 1.55rem;
  }
  .feature-copy > p,
  .feature-copy li {
    font-size: 0.92rem;
  }
  .feature-panel {
    min-height: 0;
    border-radius: 16px;
  }
  .feature-panel.soft {
    padding: 8px;
  }
  .chat {
    border-radius: 16px;
    min-height: 0;
    padding: 14px 12px 12px;
  }
  .chat-stream {
    max-height: 200px;
    min-height: 120px;
  }
  .chat-suggest {
    flex-wrap: wrap;
  }
  .chat-suggest button {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
  .composer {
    gap: 8px;
  }
  .composer input {
    font-size: 16px; /* iOS zoom prevent */
  }

  .more, .pricing, .start, .contact {
    padding: 48px 0;
  }
  .more h2, .start h2, .pricing h2, .contact h2 {
    font-size: 1.55rem;
  }
  .more .sub, .start .sub, .pricing .sub, .contact .sub {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .more-grid,
  .steps,
  .contact-grid,
  .price-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .more-grid article,
  .steps article,
  .contact-grid article {
    padding: 16px;
    border-radius: 14px;
  }
  .price-card { border-radius: 14px; }
  .price-body { padding: 16px; }
  .price-visual {
    height: auto;
    padding: 8px;
    gap: 5px;
  }
  .custom-visual { min-height: 0; padding: 14px; }
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mini-grid a {
    border-radius: 12px;
    aspect-ratio: 16 / 11;
  }
  .custom-tile span { font-size: 0.68rem; padding: 5px 8px; }

  .cases-hero {
    padding: 48px 16px 20px;
  }
  .cases-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .case-marquee {
    padding: 12px 0;
    margin: 4px 0 10px;
  }
  .mq-item {
    font-size: 0.72rem;
    padding: 0 14px;
    letter-spacing: 0.04em;
  }
  .gallery-tabs {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .gtab {
    flex-shrink: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tpl {
    border-radius: 14px;
    min-width: 0;
  }
  .tpl-cover {
    aspect-ratio: 4 / 3;
  }
  .tpl-meta {
    padding: 8px 10px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .tpl-meta strong { font-size: 0.82rem; }
  .tpl-meta span { font-size: 0.68rem; }
  .tpl-meta .chip {
    align-self: flex-start;
    font-size: 0.65rem;
  }

  .foot {
    padding: 36px 0 28px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .foot-col {
    display: grid;
    gap: 8px;
  }

  .mask {
    align-items: flex-end;
    padding: 0;
  }
  .login {
    width: 100%;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .login form input:not([type="checkbox"]) {
    font-size: 16px; /* 避免 iOS 聚焦放大 */
  }
  .login form .btn.block,
  .login .code-btn {
    min-height: var(--field-h);
    height: var(--field-h);
  }
  .code-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 380px) {
  .top-cta { display: none; }
  .hero h1 { font-size: 1.85rem; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { gap: 8px; }
  .tpl-meta strong { font-size: 0.78rem; }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1201px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== Interactions (refined) ===== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, #fff, #9a9a9a);
  box-shadow: 0 0 12px rgba(255,255,255,0.45);
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity .85s cubic-bezier(.16,1,.3,1) var(--d, 0ms),
    transform .85s cubic-bezier(.16,1,.3,1) var(--d, 0ms),
    filter .85s cubic-bezier(.16,1,.3,1) var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero h1 span,
.hero h1 em span,
.cases-hero h1 span {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition:
    opacity .65s cubic-bezier(.16,1,.3,1),
    filter .65s cubic-bezier(.16,1,.3,1),
    transform .65s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 32ms + 40ms);
}
.hero h1.hero-ready span,
.hero h1.hero-ready em span,
.cases-hero h1.hero-ready span {
  opacity: 1;
  filter: none;
  transform: none;
}

.magnet {
  will-change: transform;
  transition: transform .14s ease-out, background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.spot-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  transition: border-color .25s, box-shadow .25s, transform .25s ease;
}
.spot-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  background: radial-gradient(
    480px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.16),
    transparent 48%
  );
  z-index: 3;
}
.spot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 68%
  );
  background-size: 180% 180%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: screen;
  z-index: 3;
}
.spot-card:hover::before,
.spot-card:hover::after {
  opacity: 1;
}
.spot-card:hover {
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  transform: translateY(-4px);
}
.spot-card > * {
  position: relative;
  z-index: 1;
}

/* Premium slow marquee */
.case-marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 18px 0;
  margin: 8px 0 12px;
}
.case-marquee::before,
.case-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(120px, 12vw);
  z-index: 2;
  pointer-events: none;
}
.case-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #000, transparent);
}
.case-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #000, transparent);
}
.case-marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-slow 90s linear infinite;
  will-change: transform;
}
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  transition: color .35s ease;
}
.mq-item i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.case-marquee:hover .case-marquee-track {
  animation-play-state: paused;
}
.case-marquee:hover .mq-item {
  color: rgba(255,255,255,0.72);
}
@keyframes marquee-slow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav-primary a,
.nav-primary button {
  position: relative;
}
.nav-primary a::after,
.nav-primary button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.28s width, 0.28s left;
}
.nav-primary a.nav-hot::after,
.nav-primary a.on::after,
.nav-primary a:hover::after,
.nav-primary button:hover::after {
  width: calc(100% - 24px);
  left: 12px;
}

.spark-host { position: relative; overflow: hidden; }
.click-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  background: #fff;
  box-shadow:
    0 0 0 0 rgba(255,255,255,0.5),
    14px -12px 0 -2px rgba(255,255,255,0.55),
    -14px -8px 0 -2px rgba(255,255,255,0.4),
    12px 14px 0 -2px rgba(255,255,255,0.45);
  animation: spark .5s ease-out forwards;
  z-index: 5;
}
.click-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.55);
  animation: ripple .55s ease-out forwards;
  z-index: 4;
}
@keyframes spark {
  to {
    opacity: 0;
    transform: scale(1.8);
    box-shadow:
      0 0 0 12px rgba(255,255,255,0),
      24px -20px 0 -2px rgba(255,255,255,0),
      -24px -14px 0 -2px rgba(255,255,255,0),
      20px 24px 0 -2px rgba(255,255,255,0);
  }
}
@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(14);
  }
}

.badge {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.badge.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: shimmer 2.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes shimmer {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .case-marquee, .scroll-progress { display: none !important; }
  [data-reveal],
  .hero h1 span,
  .hero h1 em span,
  .cases-hero h1 span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .badge.shimmer::after,
  .click-spark,
  .click-ripple { display: none !important; }
  .case-marquee-track { animation: none !important; }
}
