/* ============================================================
   MZ Nova Tech - mzadnova.com
   Dark charcoal + brand gold. Single committed dark theme.
   Radius system: containers 16px, interactive elements 12px.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101216;
  --bg-raise: #171a20;
  --bg-cell: #14171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f2f3f5;
  --text-dim: #a9afba;
  --text-faint: #7c828f;
  --gold: #e8a33d;
  --gold-bright: #f3b653;
  --gold-soft: rgba(232, 163, 61, 0.12);
  --ink-on-gold: #1b1204;
  --radius-box: 16px;
  --radius-ui: 12px;
  --font: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Latin display tracking; reset for CJK so hanzi are not squeezed */
h1, h2 { letter-spacing: -0.025em; }
:root[lang^="zh"] h1,
:root[lang^="zh"] h2 { letter-spacing: 0; }

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
}

h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }

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

.gold { color: var(--gold); }
.dim { color: var(--text-faint); font-weight: 400; }

/* ---------------- Reveal on scroll (JS + motion-safe only) --- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------------- Nav ---------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 18, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: auto; }
.brand-word { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.brand-word .dim { font-weight: 400; }
.brand-word.small { font-size: 0.92rem; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--gold-bright); }

.lang-toggle {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  padding: 6px 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover { border-color: var(--gold); background: var(--gold-soft); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s;
}
.nav-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------- Buttons ------------------------------------ */
.btn {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-ui);
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink-on-gold);
}
.btn-primary:hover { background: linear-gradient(180deg, #f7c168, var(--gold-bright)); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-center { justify-content: center; }

/* ---------------- Hero --------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 64% at 82% 30%, rgba(46, 60, 105, 0.30), transparent 70%),
    radial-gradient(40% 48% at 8% 88%, rgba(232, 163, 61, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.hero-copy .lead {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 34rem;
}
.hero-copy .cta-row { margin-top: 32px; }

.hero-media {
  position: relative;
  border-radius: var(--radius-box);
  border: 1px solid rgba(232, 163, 61, 0.28);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.hero-media img { width: 100%; height: auto; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

/* ---------------- Works with --------------------------------- */
.workswith { border-block: 1px solid var(--line-soft); }
.workswith-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: 26px;
}
.workswith-label { font-size: 0.9rem; color: var(--text-faint); }
.workswith-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap;
}
.workswith-logos img {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.workswith-logos li:hover img { opacity: 0.95; }

/* ---------------- Sections ----------------------------------- */
.section { padding-block: 88px; }
.section-line { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 40rem; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--text-dim); }

/* ---------------- Bento -------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.cell {
  background: var(--bg-cell);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.cell:hover { border-color: rgba(232, 163, 61, 0.35); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .cell:hover { transform: none; }
}
.cell p { color: var(--text-dim); font-size: 0.97rem; }

.cell-pos { grid-column: span 7; grid-row: span 2; }
.cell-tint {
  grid-column: span 5;
  background: linear-gradient(150deg, rgba(232, 163, 61, 0.15), rgba(232, 163, 61, 0.03) 65%), var(--bg-cell);
}
.cell:nth-child(3) { grid-column: span 5; }
.cell-wide {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(60% 150% at 96% 50%, rgba(232, 163, 61, 0.10), transparent 70%),
    linear-gradient(90deg, var(--bg-cell), var(--bg-raise));
}
.cell-wide-copy { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.cell-wide-icon { color: rgba(232, 163, 61, 0.45); flex-shrink: 0; padding-right: 16px; }

.chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 6px;
}

.cell-shot {
  margin: 22px -70px -78px 20px;
  border-radius: 12px 0 0 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: -18px -14px 50px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.cell-shot img { width: 100%; height: auto; }

/* ---------------- Why ----------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.why-item { border-top: 1px solid var(--line); padding-top: 22px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--text-dim); font-size: 0.97rem; max-width: 34rem; }

/* ---------------- Steps --------------------------------------- */
.steps {
  list-style: none;
  max-width: 46rem;
  position: relative;
}
.step {
  position: relative;
  padding: 0 0 40px 40px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -2px;
  width: 1px;
  background: rgba(232, 163, 61, 0.28);
}
.step:last-child::before { display: none; }
.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------------- Contact ------------------------------------- */
.contact { padding-block: 100px; }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.contact-phone {
  margin-top: 34px;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--gold-bright); }

.contact-email {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.contact-email:hover { color: var(--text); }

.contact .cta-row { margin-top: 34px; }
.contact-note { margin-top: 22px; font-size: 0.92rem; color: var(--text-faint); }

/* ---------------- Footer -------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner {
  padding-block: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .brand img { width: 26px; }
.footer-links { display: flex; gap: 22px; margin-inline: auto; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--text-faint); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.88rem; color: var(--text-faint); }

/* ---------------- Responsive ---------------------------------- */
@media (max-width: 1023px) {
  .nav-phone { display: none; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(16, 18, 22, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-btn { display: flex; }

  .hero { padding-block: 48px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy .lead { font-size: 1.05rem; }

  .section { padding-block: 64px; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell-pos, .cell-tint, .cell:nth-child(3), .cell-wide { grid-column: span 1; grid-row: auto; }
  .cell-shot { margin: 18px -48px -56px 8px; }
  .cell-wide { flex-direction: column; align-items: flex-start; }
  .cell-wide-icon svg { width: 56px; height: 56px; }

  .why-grid { grid-template-columns: 1fr; gap: 30px; }

  .contact { padding-block: 72px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin-inline: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .cta-row .btn { flex: 1; text-align: center; }
}
