:root {
  --harbor: #0a1c2e;
  --harbor-2: #12283c;
  --horizon: #5ec8d8;
  --horizon-dim: #2a7a88;
  --brass: #c9a36a;
  --paper: #e8e4d8;
  --paper-2: #f3efe6;
  --ink: #12202c;
  --ink-soft: #3d4d5c;
  --signal: #2f6b4f;
  --line: rgba(201, 163, 106, 0.45);
  --glass: rgba(10, 28, 46, 0.72);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] .zh { display: none !important; }
html[lang="zh"] .en { display: none !important; }
body {
  margin: 0;
  background: var(--harbor);
  color: var(--paper);
  font-family: "Noto Sans SC", "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { font-family: inherit; cursor: pointer; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* IMEI rail — the page spine */
.rail {
  position: fixed;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--brass) 12%, var(--horizon) 55%, transparent);
  z-index: 40;
  pointer-events: none;
}
.rail::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--horizon);
  box-shadow: 0 0 12px var(--horizon);
  animation: lock 8s linear infinite;
}
@keyframes lock {
  0% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4vw;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 228, 216, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Microsoft YaHei", "微软雅黑", "Noto Sans SC", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--paper);
}
.brand img {
  height: 20px;
  width: auto;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.brand span { white-space: nowrap; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; letter-spacing: 0.08em; }
.nav-links a:hover { color: var(--horizon); }
.lang {
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 0 8vw 10vh 8vw;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(94, 200, 216, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(10, 28, 46, 0.15), rgba(10, 28, 46, 0.88)),
    #07141f;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-media .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(232, 228, 216, 0.28);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.imei-fly {
  position: absolute;
  top: 22%;
  right: 6%;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(18px, 3.4vw, 42px);
  color: rgba(94, 200, 216, 0.35);
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.kicker {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
h1 {
  font-family: "Noto Serif SC", "Big Shoulders Display", serif;
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: 18px; max-width: 34em; color: rgba(232, 228, 216, 0.82); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
}
.btn-brass { background: var(--brass); color: var(--harbor); }
.btn-ghost { border-color: rgba(232, 228, 216, 0.35); color: var(--paper); background: transparent; }
.btn:hover { filter: brightness(1.08); }

/* facts — not fake scale numbers */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(232, 228, 216, 0.1);
  border-bottom: 1px solid rgba(232, 228, 216, 0.1);
}
.fact { padding: 28px 22px; border-right: 1px solid rgba(232, 228, 216, 0.08); }
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-family: "Big Shoulders Display", "Noto Serif SC", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--horizon);
  font-weight: 700;
}
.fact span { color: rgba(232, 228, 216, 0.62); font-size: 13px; }

/* sections */
section { padding: 96px 0; }
.sec-title {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.sec-sub { color: var(--ink-soft); max-width: 40em; margin: 0 0 48px; }
.on-dark .sec-sub { color: rgba(232, 228, 216, 0.62); }

.paper { background: var(--paper-2); color: var(--ink); }
.paper .sec-sub { color: var(--ink-soft); }

.sol-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.sol {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--harbor-2);
  color: var(--paper);
}
.sol:first-child { grid-row: span 2; min-height: 576px; }
.sol .ph, .sol img, .sol video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.sol .ph {
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(232, 228, 216, 0.35);
}
.sol .txt { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.sol h3 { margin: 0 0 8px; font-family: "Noto Serif SC", serif; font-size: 26px; }
.sol p { margin: 0; font-size: 14px; color: rgba(232, 228, 216, 0.75); }

/* factory line */
.stations {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid rgba(18, 32, 44, 0.12);
}
.st {
  padding: 22px 14px;
  border-right: 1px solid rgba(18, 32, 44, 0.1);
  background: #fffdf8;
  min-height: 168px;
}
.st:last-child { border-right: 0; }
.st i {
  display: block;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--horizon-dim);
  margin-bottom: 10px;
}
.st strong { display: block; font-size: 15px; margin-bottom: 6px; }
.st em { font-style: normal; font-size: 12px; color: var(--ink-soft); }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.media-slot {
  position: relative;
  min-height: 340px;
  background: var(--harbor-2);
  overflow: hidden;
}
.media-slot .ph, .media-slot img, .media-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-slot .ph {
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(232, 228, 216, 0.4);
}

.rules { list-style: none; padding: 0; margin: 20px 0 0; }
.rules li {
  padding: 12px 0;
  border-top: 1px solid rgba(18, 32, 44, 0.1);
  font-size: 15px;
}
.rules li b { color: var(--horizon-dim); margin-right: 8px; font-family: "IBM Plex Mono", monospace; font-size: 12px; }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  background: rgba(18, 40, 60, 0.55);
  border: 1px solid rgba(232, 228, 216, 0.08);
  min-height: 320px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.prod .ph {
  position: absolute;
  inset: 0 0 88px 0;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(232, 228, 216, 0.3);
}
.prod h3 { margin: 0 0 6px; font-family: "Noto Serif SC", serif; }
.prod p { margin: 0; font-size: 13px; color: rgba(232, 228, 216, 0.65); }

/* close */
.close {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(94, 200, 216, 0.16), transparent 50%),
    var(--harbor);
  text-align: center;
}
.close h2 { font-size: clamp(32px, 5vw, 64px); }

footer {
  padding: 40px 4vw 48px;
  border-top: 1px solid rgba(232, 228, 216, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(232, 228, 216, 0.55);
}
footer address { font-style: normal; }

@media (max-width: 900px) {
  .rail { display: none; }
  .facts, .stations, .sol-grid, .two, .prod-grid { grid-template-columns: 1fr; }
  .sol:first-child { grid-row: auto; min-height: 300px; }
  .nav-links a:not(.btn) { display: none; }
  .brand span { display: none; }
  .brand img { height: 1em; }
  .st { border-right: 0; border-bottom: 1px solid rgba(18, 32, 44, 0.1); }
  .imei-fly { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rail::after { animation: none; top: 20%; }
  html { scroll-behavior: auto; }
}
