/* 神蒜 AI × 烽火云创 — cinematic brand site */

:root {
  --paper: #f8f0e8;
  --paper-warm: #f8f0e0;
  --paper-muted: #f0e8d8;
  --surface: #fff8ef;
  --ink: #1b211d;
  --ink-2: #5f625a;
  --ink-3: #989088;
  --green: #203830;
  --green-mid: #2f5246;
  --green-soft: #c9d9c7;
  --on-green: #f8f0e8;
  --cinnabar: #a94d3f;
  --gold: #b89a5e;
  --night: #101a17;
  --night-2: #18231f;
  --night-3: #22322c;
  --border-warm: #d0c0b0;
  --border-night: rgba(201, 217, 199, 0.12);

  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;

  --max: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  color: var(--on-green);
  background: var(--night);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* cinematic frame */
.cinematic-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: radial-gradient(
    ellipse 75% 70% at 50% 45%,
    transparent 40%,
    rgba(8, 12, 10, 0.45) 100%
  );
  opacity: 0.7;
}

/* scene rail (film reel index) */
.scene-rail {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  translate: 0 -50%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  pointer-events: none;
}
.scene-rail-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(248, 240, 232, 0.55);
  writing-mode: horizontal-tb;
  text-align: right;
  min-height: 1.2em;
}
body[data-active-scene="product"] .scene-rail-label,
body[data-active-scene="contact"] .scene-rail-label,
body[data-active-scene="legal"] .scene-rail-label {
  color: rgba(27, 33, 29, 0.45);
}
.scene-rail-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(248, 240, 232, 0.22);
  border: 1px solid rgba(248, 240, 232, 0.2);
  transition:
    transform 0.35s var(--ease),
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.scene-dot.is-active {
  transform: scale(1.45);
  background: var(--gold);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(184, 154, 94, 0.55);
}
body[data-active-scene="product"] .scene-dot,
body[data-active-scene="contact"] .scene-dot {
  background: rgba(27, 33, 29, 0.15);
  border-color: rgba(27, 33, 29, 0.2);
}
body[data-active-scene="product"] .scene-dot.is-active,
body[data-active-scene="contact"] .scene-dot.is-active {
  background: var(--green);
  box-shadow: 0 0 12px rgba(32, 56, 48, 0.35);
}

.scene {
  position: relative;
}
.scene-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(16, 26, 23, 0.55) 55%,
    var(--night) 100%
  );
}
.scene-curtain {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(42vh, 320px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    rgba(16, 26, 23, 0.55) 45%,
    transparent 100%
  );
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}

/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(16, 26, 23, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(16, 26, 23, 0.92);
  border-bottom-color: var(--border-night);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(248, 240, 232, 0.12);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-product {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.nav-company {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.nav-link {
  color: rgba(248, 240, 232, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
}
.nav-cta {
  margin-left: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(201, 217, 199, 0.18);
}
.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-night);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1400px;
}

.webgl-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  left: -8%;
  top: 10%;
  background: radial-gradient(circle, rgba(47, 82, 70, 0.7), transparent 70%);
}
.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  right: -5%;
  top: 18%;
  background: radial-gradient(circle, rgba(169, 77, 63, 0.28), transparent 70%);
  animation-delay: -4s;
}
.orb-c {
  width: 50vw;
  height: 30vw;
  max-width: 600px;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(184, 154, 94, 0.18), transparent 70%);
  animation-delay: -7s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, -18px) scale(1.08);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-copy,
.hero-visual {
  will-change: transform, opacity;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow.dark {
  color: var(--cinnabar);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.hero-title .line {
  display: block;
}
.hero-title .accent {
  background: linear-gradient(100deg, #f8f0e8 0%, #c9d9c7 45%, #d5bc7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: rgba(248, 240, 232, 0.72);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-desc strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), filter 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 14px 40px rgba(201, 217, 199, 0.2);
}
.btn-ghost {
  border: 1px solid rgba(248, 240, 232, 0.18);
  color: var(--paper);
  background: rgba(248, 240, 232, 0.04);
}
.btn-ghost:hover {
  background: rgba(248, 240, 232, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 28rem;
}
.hero-stats div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(248, 240, 232, 0.12);
}
.hero-stats dd {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-stats dt {
  font-size: 0.78rem;
  color: rgba(248, 240, 232, 0.48);
  margin-top: 0.2rem;
}

/* mascot stage */
.hero-visual {
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
}
.mascot-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.mascot-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 217, 199, 0.35) 0%,
    rgba(32, 56, 48, 0.22) 40%,
    transparent 70%
  );
  filter: blur(10px);
  z-index: 1;
}
.mascot-3d {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
}
.mascot-img {
  position: relative;
  z-index: 2;
  width: min(72vw, 280px);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  user-select: none;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 26, 23, 0.72);
  border: 1px solid rgba(248, 240, 232, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  color: rgba(248, 240, 232, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  will-change: transform, opacity;
  transform: translateZ(40px);
}
.float-chip img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
}
.chip-1 {
  top: 14%;
  right: 0;
  animation-delay: -1s;
}
.chip-2 {
  bottom: 22%;
  left: -4%;
  animation-delay: -2.5s;
}
.chip-3 {
  bottom: 8%;
  right: 6%;
  animation-delay: -4s;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  z-index: 3;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(248, 240, 232, 0.25);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-soft);
  animation: cue-bounce 1.6s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

/* sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--paper);
}
.section-title.dark {
  color: var(--ink);
}
.section-sub {
  color: rgba(248, 240, 232, 0.58);
  font-size: 1.02rem;
}
.section-sub.dark {
  color: var(--ink-2);
}

/* product */
.product-section {
  background: var(--paper);
  color: var(--ink);
  border-radius: 2.75rem 2.75rem 0 0;
  margin-top: -2.5rem;
  z-index: 3;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.product-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
  perspective: 1400px;
  /* 不要人为撑出大片空白；内容自然高度即可 */
  min-height: 0;
}

.phone-scene {
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, #2a3630, #121a17);
  box-shadow:
    0 40px 80px rgba(27, 33, 29, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(32, 56, 48, 0.25);
  transform-style: preserve-3d;
  will-change: transform;
  /* 防止 GSAP 未跑完时完全看不见 */
  opacity: 1;
  visibility: visible;
}

.product-copy {
  opacity: 1;
  visibility: visible;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  width: 36%;
  height: 18px;
  background: #0a100e;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  border-radius: 1.7rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--paper-muted);
}
.phone-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.02);
}
.phone-glare {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 2.2rem;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 3;
}

.product-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}
.product-copy > p {
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(208, 192, 176, 0.55);
}
.feature-list .fi {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--on-green);
  background: var(--green);
}
.feature-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.feature-list span:last-child {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: var(--green);
  color: var(--on-green);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), filter 0.2s ease, opacity 0.2s ease;
}
.store-btn:not(.is-disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.store-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #3a4a43;
}
.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-btn small {
  font-size: 0.7rem;
  opacity: 0.7;
}
.store-btn b {
  font-size: 0.92rem;
  font-weight: 700;
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  perspective: 1200px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  background: var(--night-2);
  border: 1px solid rgba(27, 33, 29, 0.08);
  box-shadow: 0 16px 40px rgba(27, 33, 29, 0.08);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: box-shadow 0.3s var(--ease);
}
.bento-card:hover {
  box-shadow: 0 24px 50px rgba(27, 33, 29, 0.16);
}
.bento-wide {
  grid-row: span 2;
  min-height: 460px;
}
.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.bento-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(16, 26, 23, 0.88));
  color: var(--paper);
}
.bento-cap h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.bento-cap p {
  font-size: 0.88rem;
  color: rgba(248, 240, 232, 0.72);
}
.bento-mascot {
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #243830 0%, #101a17 70%);
}
.bento-mascot-img {
  /* 与其它 bento 一致铺满，避免旧 cheer 素材破边 + 中间小贴纸感 */
  object-fit: cover !important;
  object-position: center 28%;
  padding: 0;
  filter: none;
}

/* about */
.about-section {
  background: linear-gradient(180deg, var(--night) 0%, #0c1412 100%);
  color: var(--paper);
  z-index: 2;
  /* subtle vertical shift driven by --scene-shift if set */
  transform: translate3d(0, calc(var(--scene-shift, 0) * 1px), 0);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.about-lead {
  color: rgba(248, 240, 232, 0.68);
  margin: 0.5rem 0 1.5rem;
  max-width: 34rem;
}
.mission-row {
  display: grid;
  gap: 0.85rem;
}
.mission-card {
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(248, 240, 232, 0.04);
  border: 1px solid var(--border-night);
}
.mission-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.mission-card p {
  color: var(--paper);
  font-weight: 500;
}

.about-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--border-night);
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(16, 26, 23, 0.78);
  border: 1px solid rgba(248, 240, 232, 0.1);
  backdrop-filter: blur(12px);
}
.about-badge img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.about-badge strong {
  display: block;
  font-size: 0.95rem;
}
.about-badge small {
  color: rgba(248, 240, 232, 0.55);
  font-size: 0.75rem;
}

/* services */
.services-section {
  background: var(--night-2);
  z-index: 2;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  perspective: 1200px;
}
.service-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(16, 26, 23, 0.55);
  border: 1px solid var(--border-night);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.service-card:hover {
  border-color: rgba(201, 217, 199, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.service-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.9rem;
  color: var(--paper);
}
.service-card li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.45rem;
  color: rgba(248, 240, 232, 0.58);
  font-size: 0.9rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-soft);
}

/* contact */
.contact-section {
  background: var(--paper);
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  perspective: 1200px;
}
.contact-card,
.wechat-card {
  background: var(--surface);
  border: 1px solid rgba(208, 192, 176, 0.65);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transform-style: preserve-3d;
  will-change: transform;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.contact-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.contact-list span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}
.contact-list a {
  color: var(--green);
  font-weight: 700;
  word-break: break-all;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact-list em {
  font-style: normal;
  color: var(--ink);
}
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.contact-tags span {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--paper-muted);
  color: var(--ink-2);
}
.contact-mascot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(208, 192, 176, 0.55);
}
.contact-mascot img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--night-2);
}
.contact-mascot p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.wechat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 56, 48, 0.08), transparent 55%),
    var(--surface);
}
.wechat-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.wechat-qr-wrap {
  width: min(100%, 240px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(208, 192, 176, 0.7);
  background: #fff;
  box-shadow: 0 16px 40px rgba(27, 33, 29, 0.08);
}
.wechat-qr {
  width: 100%;
  height: auto;
}
.wechat-hint {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* legal */
.legal-section {
  background: var(--paper-muted);
  color: var(--ink);
  padding-bottom: 4.5rem;
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.legal-grid article {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(208, 192, 176, 0.55);
}
.legal-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}
.legal-grid p {
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* footer */
.site-footer {
  background: #0a100e;
  color: rgba(248, 240, 232, 0.65);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(201, 217, 199, 0.08);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand img {
  border-radius: 10px;
}
.footer-name {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
}
.footer-tag {
  font-size: 0.82rem;
  color: rgba(248, 240, 232, 0.42);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(248, 240, 232, 0.58);
}
.footer-links a:hover {
  color: #fff;
}
.footer-meta {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 240, 232, 0.08);
}
.footer-copy {
  font-size: 0.84rem;
  color: rgba(248, 240, 232, 0.38);
}
.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
}
.footer-beian a {
  color: rgba(248, 240, 232, 0.42);
}
.footer-beian a:hover {
  color: rgba(248, 240, 232, 0.85);
}
.footer-beian img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}
.beian-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* GSAP will drive visibility; keep fallback visible if JS fails late */
[data-hero-item],
[data-hero-visual],
[data-reveal],
[data-bento-card],
[data-service-card] {
  /* intentional: GSAP sets initial state */
}

.btn.magnetic {
  will-change: transform;
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid,
  .product-showcase,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 280px;
  }
  .hero-visual {
    order: -1;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
  }
  .webgl-hero {
    opacity: 0.75;
  }
}

@media (max-width: 900px) {
  .scene-rail {
    right: 0.65rem;
  }
  .scene-rail-label {
    display: none;
  }
  .cinematic-vignette {
    opacity: 0.45;
  }
  .product-showcase {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .scene-rail {
    display: none;
  }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(16, 26, 23, 0.96);
    border-bottom: 1px solid var(--border-night);
    backdrop-filter: blur(16px);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-link,
  .nav-cta {
    padding: 0.9rem 0.5rem;
    margin: 0;
    border-radius: 10px;
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero-stats,
  .service-grid,
  .legal-grid,
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: auto;
  }
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .section {
    padding: 4rem 0;
  }
  .chip-2 {
    left: 0;
  }
  .float-chip {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orb,
  .scroll-cue span {
    animation: none !important;
  }
  .webgl-hero {
    display: none !important;
  }
  [data-hero-item],
  [data-hero-visual],
  [data-reveal],
  [data-bento-card],
  [data-service-card] {
    opacity: 1 !important;
    transform: none !important;
  }
}
