/* ============================================================
   银翼未来 WINGFUTURE — style.css
   深空 × 冷白银 — monochrome sci-fi. One material: chrome.
   ============================================================ */

:root {
  --bg: #060709;
  --bg-2: #0a0c0f;
  --text: #e8eaed;
  --t2: #828a94;
  --t3: #4c545e;
  --silver: #c9ced6;
  --white: #ffffff;
  --acc: #ff6a1a;
  --acc-2: #ff8c42;
  --acc-glow: rgba(255, 106, 26, 0.35);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006));
  --container: min(1200px, 90vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", -apple-system,
          BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--acc); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2126; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #32383f; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
section { scroll-margin-top: 70px; }
:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }

/* ============ Fixed layers ============ */
#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  background-size: 180px 180px;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
}
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--acc); }
main, .footer, .nav { position: relative; z-index: 2; }

/* ============ HUD frame ============ */
.hud { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.hud-corner {
  position: absolute; width: 20px; height: 20px;
  border-color: rgba(255, 255, 255, 0.28); border-style: solid; border-width: 0;
}
.hud-corner.tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }
.hud-telemetry {
  position: absolute; left: 30px; bottom: 24px;
  font-size: 9px; letter-spacing: 0.2em; color: var(--t3);
}
.hud-tag {
  position: absolute; right: 30px; bottom: 24px;
  font-size: 9px; letter-spacing: 0.2em; color: var(--t3);
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 9, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 17px 0;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon { width: 24px; height: 24px; color: var(--text); }
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.logo-mono {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--t3);
  padding-left: 12px; margin-left: 1px;
  border-left: 1px solid var(--line-2);
}
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 13px; letter-spacing: 0.1em; }
.nav-links a { color: var(--t2); position: relative; transition: color 0.2s var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--white);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--acc); }
.nav-links a.active::after { width: 100%; background: var(--acc); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 2px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  border: 1px solid var(--line-2); color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--acc); color: var(--bg); border-color: var(--acc);
  transform: translateY(-1px);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 2px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary { background: var(--acc); color: var(--bg); }
.btn-primary:hover {
  background: var(--acc-2);
  box-shadow: 0 12px 44px var(--acc-glow);
  transform: translateY(-2px);
}
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  width: var(--container); margin: 0 auto;
  padding: 130px 0 110px;
  position: relative;
}
.hero-bgword {
  position: absolute; top: 16%; left: -3%; z-index: 0;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(80px, 13vw, 190px);
  letter-spacing: 0.06em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  user-select: none; pointer-events: none;
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(3vw); } }
.hero-inner { position: relative; z-index: 2; }
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.26em;
  color: var(--t2);
  margin-bottom: 46px;
  opacity: 0; animation: fade-up 1s var(--ease) 0.15s forwards;
}
.blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc-glow);
  animation: blink 2s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
.hero-title {
  font-size: clamp(44px, 7.6vw, 100px);
  font-weight: 800; line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: rise-up 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.13s; }
.hero-title .hl {
  font-style: normal; color: var(--acc);
  text-shadow: 0 0 34px var(--acc-glow);
}
@keyframes rise-up { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-sub {
  font-size: 15.5px; color: var(--t2);
  line-height: 2.05; max-width: 480px;
  margin-bottom: 52px;
  opacity: 0; animation: fade-up 1s var(--ease) 0.38s forwards;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fade-up 1s var(--ease) 0.52s forwards;
}
.hero-readout {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin-top: 64px;
  font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--t3);
  opacity: 0; animation: fade-up 1s var(--ease) 0.68s forwards;
}
.hero-readout span { border-left: 1px solid var(--line-2); padding-left: 12px; }
.hero-hint {
  position: absolute; bottom: 42px; left: 0;
  display: flex; align-items: center; gap: 14px;
  font-size: 9px; letter-spacing: 0.3em; color: var(--t3);
  opacity: 0; animation: fade-up 1.2s var(--ease) 0.9s forwards;
}
.hero-hint i {
  display: block; width: 56px; height: 1px;
  background: var(--line-2); position: relative; overflow: hidden;
}
.hero-hint i::after {
  content: ""; position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%; background: var(--acc);
  animation: scan 2.2s var(--ease) infinite;
}
@keyframes scan { to { left: 110%; } }

/* ============ Sections common ============ */
.section { padding: clamp(110px, 15vh, 180px) 0; position: relative; overflow: hidden; }
.section-inner { width: var(--container); margin: 0 auto; position: relative; z-index: 2; }
.section-bgword {
  position: absolute; top: 54px; right: -1.5vw; z-index: 1;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(64px, 9vw, 140px);
  letter-spacing: 0.05em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  user-select: none; pointer-events: none;
}
.section-tag {
  font-size: 10px; letter-spacing: 0.26em;
  color: var(--acc);
  margin-bottom: 30px;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800; line-height: 1.2; letter-spacing: 0;
}
.title-code {
  display: inline-block; vertical-align: middle;
  margin-left: 18px; padding: 7px 13px;
  font-size: 10px; letter-spacing: 0.18em; font-weight: 400;
  color: var(--acc);
  border: 1px solid rgba(255, 106, 26, 0.45); border-radius: 2px;
  transform: translateY(-5px);
}
.section-head { margin-bottom: 64px; }
.section-desc { font-size: 15.5px; line-height: 2.05; max-width: 600px; color: var(--t2); }
.section-desc.wide { max-width: 700px; margin-bottom: 72px; }

/* ============ Company ============ */
.mission {
  font-size: clamp(25px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.55;
  margin-bottom: 44px; max-width: 880px;
  letter-spacing: 0.01em;
}
.mission em { font-style: normal; color: var(--acc); }
.panel-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 76px;
}
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 26px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.panel:hover { border-color: rgba(255, 106, 26, 0.4); transform: translateY(-4px); }
.panel-corner { position: absolute; top: 0; left: 0; width: 11px; height: 11px; }
.panel-corner::before, .panel-corner::after {
  content: ""; position: absolute; background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s var(--ease);
}
.panel-corner::before { top: 0; left: 0; width: 100%; height: 1px; }
.panel-corner::after { top: 0; left: 0; width: 1px; height: 100%; }
.panel:hover .panel-corner::before, .panel:hover .panel-corner::after { background: var(--acc); }
.panel-label {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 20px;
}
.panel-value { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; }
.panel-sub { font-size: 12px; color: var(--t2); letter-spacing: 0.05em; }
.contact-value { font-size: 15.5px; font-weight: 500; line-height: 1.75; margin-bottom: 12px; word-break: break-word; }
.tel { transition: color 0.2s var(--ease); }
.tel:hover { color: var(--acc); }

/* ============ Product ============ */
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 64px;
  perspective: 1400px;
}
.spec {
  min-height: 320px;
  padding: 40px 38px;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s var(--ease);
}
.spec::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.055), transparent 65%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.spec:hover::after { opacity: 1; }
.spec-idx {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--t3); margin-bottom: 34px;
  transform: translateZ(18px);
  transition: color 0.25s var(--ease);
}
.spec:hover .spec-idx { color: var(--acc); }
.spec-icon {
  width: 34px; height: 34px; color: var(--silver);
  margin-bottom: 26px;
  transform: translateZ(30px);
  transition: color 0.25s var(--ease);
}
.spec:hover .spec-icon { color: var(--acc); }
.spec h3 {
  font-size: 25px; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 12px;
  transform: translateZ(24px);
}
.spec p { font-size: 14px; color: var(--t2); line-height: 1.9; max-width: 420px; transform: translateZ(12px); }
.flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-bottom: 68px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t2);
}
.flow i { color: var(--t3); font-style: normal; }
.flow .end { color: var(--acc); }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
  border-top: 1px solid var(--line);
  padding-top: 44px; margin-bottom: 52px;
}
.stat-num {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600; line-height: 1.05;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12.5px; color: var(--t2); margin-top: 14px; letter-spacing: 0.05em; }
.stat-label::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; margin-right: 10px;
  background: var(--acc);
  transform: translateY(-1px);
}
.product-chips {
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--t3);
  margin-bottom: 48px;
}

/* ============ Tech ============ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.cap {
  border-top: 1px solid var(--line-2);
  padding-top: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cap:hover { transform: translateY(-5px); border-top-color: var(--acc); }
.cap-num {
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--acc); margin-bottom: 24px;
  transition: color 0.25s var(--ease);
}
.cap:hover .cap-num { color: var(--acc-2); }
.cap h3 { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 14px; }
.cap p { font-size: 14px; color: var(--t2); line-height: 1.95; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-grid .panel { padding: 34px 30px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 60px 0 42px; background: rgba(6, 7, 9, 0.6); }
.footer-inner { width: var(--container); margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 38px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
}
.footer-slogan { font-size: 9.5px; letter-spacing: 0.3em; color: var(--t3); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 9.5px; letter-spacing: 0.08em; color: var(--t3);
}
.icp { transition: color 0.2s var(--ease); }
.icp:hover { color: var(--acc); }

/* ============ Reveal ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; perspective: none; }
  .spec { min-height: 0; transform: none !important; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hud { display: none; }
  .hero { padding: 116px 0 100px; }
  .hero-hint { display: none; }
  .hero-bgword { font-size: 60px; top: 12%; }
  .stat-grid { grid-template-columns: 1fr; gap: 30px; }
  .panel-grid { grid-template-columns: 1fr; }
  .section { padding: 96px 0; }
  .section-bgword { font-size: 54px; top: 30px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .logo-mono { display: none; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .hero-meta, .hero-sub, .hero-cta, .hero-readout, .hero-hint { opacity: 1; }
}
