/* ══════════════════════════════════════════════════════════════
   nexum Hero —— 设计令牌
   暗色电影感 + 玻璃拟态 + 响应式配色翻转
   ══════════════════════════════════════════════════════════════ */

:root {
  /* 小屏文字色(视频较亮区域) */
  --nx-ink:        #010101;
  --nx-ink-80:     rgba(1, 1, 1, 0.80);
  --nx-ink-70:     rgba(1, 1, 1, 0.70);
  --nx-ink-60:     rgba(1, 1, 1, 0.60);

  /* 大屏文字色(视频较暗区域) */
  --nx-white:      #ffffff;
  --nx-white-80:   rgba(255, 255, 255, 0.80);
  --nx-white-70:   rgba(255, 255, 255, 0.70);
  --nx-white-60:   rgba(255, 255, 255, 0.60);

  /* 玻璃层 */
  --nx-glass:      rgba(255, 255, 255, 0.10);   /* bg-white/10 */
  --nx-glass-hover:rgba(255, 255, 255, 0.10);
  --nx-overlay:    rgba(0, 0, 0, 0.80);          /* bg-black/80 */
  --nx-drawer:     rgba(0, 0, 0, 0.90);          /* bg-black/90 */

  /* CTA 渐变 */
  --nx-grad: linear-gradient(to bottom, #2B2B2B, #101010);

  /* 字体 */
  --nx-font:  'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --nx-mono:  'Silkscreen', cursive;

  --nx-radius-full: 9999px;
  --nx-radius-2xl:  16px;
  --nx-radius-xl:   12px;

  --nx-ease-drawer: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════════════════════
   nexum Hero —— 样式
   ══════════════════════════════════════════════════════════════ */

/* ── 字体 ── */
@font-face { font-family: 'Geist'; src: url('/fonts/nx/Geist-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/nx/Geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/nx/Geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/nx/Geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/nx/Geist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/nx/Silkscreen-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/nx/Silkscreen-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ══ ① 外层 ══ */
.nx {
  position: relative;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--nx-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nx__video {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  object-fit: cover;
  z-index: 0;
}
.nx__layer {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  height: 100%;
}

/* ══ ② 导航栏 ══ */
.nx-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
  flex: 0 0 auto;
}
@media (min-width: 640px) { .nx-nav { padding: 24px 32px; } }
@media (min-width: 1024px) { .nx-nav { padding: 24px 48px; } }

/* Logo + 词标 */
.nx-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nx-logo svg { width: 24px; height: 24px; flex: 0 0 auto; }
.nx-logo svg path { fill: var(--nx-ink); }
@media (min-width: 1024px) { .nx-logo svg path { fill: #fff; } }
.nx-logo span {
  font-family: var(--nx-font);
  font-size: 18px; font-weight: 600;
  color: var(--nx-ink);
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .nx-logo span { color: #fff; } }

/* 桌面导航区(仅 md+) */
.nx-nav__desktop { display: none; align-items: center; gap: 12px; }
@media (min-width: 768px) { .nx-nav__desktop { display: flex; } }

/* 玻璃药丸集群 */
.nx-glass-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--nx-radius-full);
  background: var(--nx-glass);
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nx-glass-pill a {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--nx-radius-full);
  padding: 6px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--nx-white-80);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nx-glass-pill a:hover { background: var(--nx-glass-hover); color: #fff; }
.nx-glass-pill a svg { width: 14px; height: 14px; }

/* CTA 渐变药丸 */
.nx-cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: stretch;
  border-radius: var(--nx-radius-full);
  padding: 0 20px;
  font-family: var(--nx-font);
  font-size: 14px; font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: var(--nx-grad);
  transition: opacity .2s ease;
  white-space: nowrap;
}
.nx-cta:hover { opacity: .90; }

/* 移动端汉堡按钮 */
.nx-burger {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; width: 40px;
  border-radius: var(--nx-radius-full);
  background: var(--nx-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0; cursor: pointer;
  color: var(--nx-ink);
  position: relative; z-index: 50;
  padding: 0;
}
@media (min-width: 1024px) { .nx-burger { color: #fff; } }
@media (min-width: 768px) { .nx-burger { display: none; } }
.nx-burger svg { position: absolute; transition: all .3s ease; }
.nx-burger__menu { transform: rotate(0) scale(1); opacity: 1; }
.nx-burger__close { transform: rotate(-90deg) scale(0); opacity: 0; }
.nx-burger.is-open .nx-burger__menu  { transform: rotate(90deg) scale(0); opacity: 0; }
.nx-burger.is-open .nx-burger__close { transform: rotate(0) scale(1); opacity: 1; }

/* ══ ③ 移动端抽屉 + 遮罩 ══ */
.nx-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: var(--nx-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nx-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nx-drawer {
  position: fixed; right: 0; top: 0; z-index: 40;
  height: 100%; width: 288px;
  background: var(--nx-drawer);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--nx-ease-drawer);
}
.nx-drawer.is-open { transform: translateX(0); }
.nx-drawer__links { display: flex; flex-direction: column; gap: 8px; padding: 96px 24px 0; }
.nx-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--nx-radius-xl);
  padding: 14px 16px;
  font-size: 16px; font-weight: 500;
  color: var(--nx-white-80);
  text-decoration: none;
  opacity: 0; transform: translateX(24px);
  transition: opacity .4s ease, transform .4s ease, background .2s ease, color .2s ease;
}
.nx-drawer__link:hover { background: var(--nx-glass-hover); color: #fff; }
.nx-drawer.is-open .nx-drawer__link { opacity: 1; transform: translateX(0); }
/* 逐个错开 60ms */
.nx-drawer.is-open .nx-drawer__link:nth-child(1) { transition-delay: 60ms; }
.nx-drawer.is-open .nx-drawer__link:nth-child(2) { transition-delay: 120ms; }
.nx-drawer.is-open .nx-drawer__link:nth-child(3) { transition-delay: 180ms; }
.nx-drawer.is-open .nx-drawer__link:nth-child(4) { transition-delay: 240ms; }
.nx-drawer__link svg { width: 16px; height: 16px; }

.nx-drawer__foot { margin-top: auto; padding: 0 24px 40px; }
.nx-drawer__foot .nx-cta {
  width: 100%; padding: 14px 20px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.nx-drawer.is-open .nx-drawer__foot .nx-cta { opacity: 1; transform: translateY(0); transition-delay: 300ms; }

/* ══ ④ 主内容(底部锚定)══ */
.nx-main {
  margin-top: auto;
  display: flex; flex-direction: column;
  gap: 24px;
  padding: 0 20px 32px;
}
@media (min-width: 640px) { .nx-main { gap: 32px; padding: 0 32px 48px; } }
@media (min-width: 1024px) {
  .nx-main { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 0 48px 64px; }
}

/* 左:标题 + 邮箱 CTA */
.nx-left { flex: 1 1 auto; }
.nx-h1 {
  margin: 0;
  max-width: 576px;
  font-family: var(--nx-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
}
@media (min-width: 640px) { .nx-h1 { font-size: 36px; } }
@media (min-width: 1024px) { .nx-h1 { font-size: 3.5rem; color: #fff; } }

/* 邮箱 CTA */
.nx-email { margin-top: 24px; }
@media (min-width: 640px) { .nx-email { margin-top: 32px; } }

.nx-email__form {
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) {
  .nx-email__form {
    display: inline-flex; flex-direction: row; align-items: center;
    border-radius: var(--nx-radius-full);
    background: #fff; padding: 6px;
  }
}
.nx-email__input {
  border: 0; outline: none;
  border-radius: var(--nx-radius-full);
  background: #fff;
  color: #111827;
  font-family: var(--nx-font);
  font-size: 14px;
  padding: 12px 20px;
}
.nx-email__input::placeholder { color: #9ca3af; }
@media (min-width: 640px) {
  .nx-email__input {
    width: 256px;
    border-radius: 0;
    background: transparent;
    padding: 8px 16px;
  }
}
.nx-email__btn {
  border-radius: var(--nx-radius-full);
  padding: 12px 24px;
  font-family: var(--nx-font);
  font-size: 14px; font-weight: 500;
  color: #fff;
  background: var(--nx-grad);
  border: 0; cursor: pointer;
  transition: opacity .2s ease;
}
@media (min-width: 640px) { .nx-email__btn { padding: 10px 24px; } }
.nx-email__btn:hover { opacity: .90; }

/* 右:两张玻璃卡 */
.nx-cards {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
}
@media (min-width: 640px) { .nx-cards { flex-direction: row; } }
@media (min-width: 1024px) { .nx-cards { width: auto; gap: 20px; } }

.nx-card {
  border-radius: var(--nx-radius-2xl);
  background: var(--nx-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .nx-card { padding: 24px; width: 256px; } }

/* 统计卡 */
.nx-stat__num {
  font-family: var(--nx-mono);
  font-size: 30px; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
  line-height: 1.1;
}
@media (min-width: 640px) { .nx-stat__num { font-size: 36px; } }
@media (min-width: 1024px) { .nx-stat__num { color: #fff; } }
.nx-stat__body {
  margin: 12px 0 0;
  font-size: 14px; line-height: 1.65;
  color: var(--nx-ink-70);
}
@media (min-width: 640px) { .nx-stat__body { margin-top: 16px; } }
@media (min-width: 1024px) { .nx-stat__body { color: var(--nx-white-70); } }

/* 证言卡 */
.nx-quote__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
@media (min-width: 640px) { .nx-quote__head { margin-bottom: 16px; } }
.nx-quote__badge {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex: 0 0 auto;
}
.nx-quote__brand { font-size: 14px; font-weight: 600; color: var(--nx-ink); }
@media (min-width: 1024px) { .nx-quote__brand { color: #fff; } }
.nx-quote__text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--nx-ink-80); }
@media (min-width: 1024px) { .nx-quote__text { color: var(--nx-white-80); } }
.nx-quote__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .nx-quote__foot { margin-top: 20px; } }
.nx-quote__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: rgba(255,255,255,0.20);
  flex: 0 0 auto;
}
.nx-quote__name { font-size: 14px; font-weight: 600; color: var(--nx-ink); }
@media (min-width: 1024px) { .nx-quote__name { color: #fff; } }
.nx-quote__role { font-size: 12px; color: var(--nx-ink-60); }
@media (min-width: 1024px) { .nx-quote__role { color: var(--nx-white-60); } }

/* ══ ⑤ 无障碍 ══ */
.nx-cta:focus-visible, .nx-burger:focus-visible, .nx-email__btn:focus-visible,
.nx-glass-pill a:focus-visible, .nx-drawer__link:focus-visible {
  outline: 2px solid #fff; outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .nx-drawer, .nx-backdrop, .nx-burger svg, .nx-drawer__link { transition: none; }
}