:root {
  --deep: #0d1b2a;
  --mid: #1b3352;
  --ice: #4ea0ff;
  --ice-soft: #d9ebff;
  --mist: #eef3f8;
  --ink: #152033;
  --mute: #5b6b7c;
  --line: #c9d6e5;
  --white: #ffffff;
  --font-display: "Bahnschrift", "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Consolas", "Microsoft YaHei", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(78, 160, 255, 0.18), transparent 42%),
    radial-gradient(ellipse at 90% 10%, rgba(27, 51, 82, 0.12), transparent 40%),
    linear-gradient(180deg, #dfe9f4 0%, var(--mist) 40%, #f7f9fc 100%);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.px-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-layer {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--ice), var(--mid));
  box-shadow: 0 12px 24px rgba(78, 160, 255, 0.28);
  animation: lift 4.5s ease-in-out infinite;
}
.brand b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.nav a {
  color: var(--mute);
  font-size: 0.9rem;
}
.nav a.on, .nav a:hover { color: var(--mid); }
.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero: layered parallax scene */
.hero-px {
  position: relative;
  padding: 1rem 0 1.6rem;
  perspective: 1200px;
}
.px-stage {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #123052, #0d1b2a 55%, #1b3352);
  box-shadow: 0 28px 60px rgba(13, 27, 42, 0.28);
}
.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.layer-back {
  background:
    radial-gradient(circle at 20% 30%, rgba(78,160,255,0.35), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 60% 80%, rgba(78,160,255,0.18), transparent 40%);
  animation: driftA 14s ease-in-out infinite;
}
.layer-mid {
  background:
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  animation: driftB 10s ease-in-out infinite;
}
.layer-orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(78,160,255,0.18);
  filter: blur(2px);
  top: 12%;
  right: 8%;
  left: auto;
  bottom: auto;
  animation: floatY 7s ease-in-out infinite;
}
.layer-orb.alt {
  width: 120px;
  height: 120px;
  top: auto;
  bottom: 18%;
  left: 6%;
  right: auto;
  animation-delay: -2.5s;
}
.px-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: center;
  padding: 2rem 1.5rem;
  min-height: 520px;
  pointer-events: auto;
}
.px-copy { color: #fff; transform-style: preserve-3d; animation: riseIn 0.9s ease both; }
.px-copy .tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(78,160,255,0.2);
  border: 1px solid rgba(78,160,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #b9d8ff;
  margin-bottom: 0.6rem;
}
.px-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0 0 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-fill {
  background: linear-gradient(135deg, var(--ice), #2f7fe0);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 24px rgba(78,160,255,0.35);
}
.btn-line {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-deep {
  background: var(--deep);
  color: #fff;
  border: 0;
}
.btn-ghost {
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--line);
}
.req {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.req p {
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
}
.req b { display: block; color: #fff; margin-bottom: 0.1rem; font-family: var(--font-mono); font-size: 0.74rem; }

.px-media {
  position: relative;
  z-index: 6;
  transform: translateZ(40px);
  animation: floatY 6.5s ease-in-out infinite;
}
.hero-media {
  align-self: center;
  margin: 0;
  padding: 0;
  height: auto;
  overflow: visible;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.hero-media img,
.frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  min-height: 0;
  max-height: none;
  clip-path: none;
  transform: none;
}

@keyframes driftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -14px, 0) scale(1.04); }
}
@keyframes driftB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-22px, 10px, 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.sec { padding: 3rem 0; }
.sec-h {
  margin-bottom: 1.3rem;
  max-width: 40rem;
}
.k {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #2f7fe0;
}
.sec-h h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}
.sec-h p { margin: 0; color: var(--mute); }

/* Download: cascading depth stack — staggered layers */
.cascade {
  position: relative;
  display: grid;
  gap: 0.85rem;
  perspective: 1000px;
}
.pack {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 16px 36px rgba(21, 32, 51, 0.08);
  transform-origin: center left;
  animation: riseIn 0.7s ease both;
}
.pack:nth-child(1) { transform: translateX(0); animation-delay: 0.05s; }
.pack:nth-child(2) { transform: translateX(18px); animation-delay: 0.12s; }
.pack:nth-child(3) { transform: translateX(36px); animation-delay: 0.18s; }
.pack:nth-child(4) { transform: translateX(54px); animation-delay: 0.24s; }
.pack:hover {
  transform: translateX(8px) translateY(-3px);
  box-shadow: 0 22px 44px rgba(78, 160, 255, 0.16);
}
.pack .os {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.pack .meta {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
}
.pack .meta b { color: var(--ink); }
.pack .btn { min-width: 124px; min-height: 42px; padding: 0.5rem 0.85rem; }

/* Features as floating depth tiles */
.depth-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  perspective: 900px;
}
.tile {
  padding: 1.2rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(21, 32, 51, 0.06);
  transform: translateZ(0);
  transition: transform 0.25s ease;
  animation: floatY 7s ease-in-out infinite;
}
.tile:nth-child(2) { animation-delay: -1s; transform: translateY(10px); }
.tile:nth-child(3) { animation-delay: -2s; }
.tile:nth-child(4) { animation-delay: -3s; transform: translateY(8px); }
.tile:nth-child(5) { animation-delay: -4s; }
.tile:hover { transform: translateY(-6px) scale(1.02); }
.tile .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: var(--ice-soft);
  color: #2f7fe0;
  font-family: var(--font-display);
  font-weight: 800;
}
.tile h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.tile p { margin: 0; color: var(--mute); font-size: 0.86rem; }

/* Solution layered panels */
.layers-sol {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}
.sol-copy {
  padding: 1.5rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--deep), var(--mid));
  color: rgba(255,255,255,0.86);
  box-shadow: 0 20px 40px rgba(13, 27, 42, 0.2);
}
.sol-copy .k { color: #9ec8ff; }
.sol-copy h2 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
}
.sol-copy p { margin: 0 0 0.8rem; }
.stack-frames {
  position: relative;
  min-height: 320px;
}
.stack-frames .frame {
  position: absolute;
  width: 72%;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.18);
  animation: floatY 8s ease-in-out infinite;
}
.stack-frames .frame:nth-child(1) { top: 0; left: 0; z-index: 3; width: 78%; }
.stack-frames .frame:nth-child(2) { top: 18%; right: 0; left: auto; z-index: 2; width: 58%; animation-delay: -2s; }
.stack-frames .frame:nth-child(3) { bottom: 0; left: 18%; z-index: 1; width: 55%; animation-delay: -3.5s; }

.trust-px {
  text-align: center;
  padding: 2rem 1.2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(21, 32, 51, 0.06);
}
.trust-px .big {
  margin: 0.3rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
}
.trust-px .big em { font-style: normal; color: #2f7fe0; }
.trust-px p { margin: 0 auto; max-width: 36rem; color: var(--mute); }
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.brands span {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--ice-soft);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.news-px article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.65rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}
.news-px time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #2f7fe0;
}
.news-px h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.news-px p { margin: 0; color: var(--mute); font-size: 0.9rem; }

.help-px {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.help-px details {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}
.help-px summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}
.help-px p {
  margin: 0.4rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.frame {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(21, 32, 51, 0.06);
}

.cta-px {
  margin: 1rem 0 2.3rem;
  padding: 1.7rem 1.4rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--deep), #163456 50%, #1f4b78);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
  align-items: center;
  box-shadow: 0 24px 48px rgba(13, 27, 42, 0.22);
}
.cta-px h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
}
.cta-px p { margin: 0 0 1rem; opacity: 0.85; }
.cta-px .btn-line {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.gains {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.gains li {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
}

.page-hero .px-stage { min-height: 460px; }
.page-hero .px-content { min-height: 460px; }

.foot {
  padding: 1.2rem 0 2rem;
  color: var(--mute);
  font-size: 0.88rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
}
.foot a { color: #2f7fe0; font-weight: 700; }

@media (max-width: 980px) {
  .px-content, .layers-sol, .cta-px, .help-px, .news-px article, .media-row, .pack, .depth-grid { grid-template-columns: 1fr; }
  .pack:nth-child(n) { transform: none; }
  .stack-frames { min-height: 0; display: grid; gap: 0.7rem; }
  .stack-frames .frame { position: relative; width: 100% !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; }
  .nav { display: none; }
  .px-media { animation: none; }
}
@media (max-width: 640px) {
  .req { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .depth-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .layer-back, .layer-mid, .layer-orb, .brand-layer, .px-media, .tile, .stack-frames .frame, .pack {
    animation: none !important;
  }
  .btn:hover, .tile:hover, .pack:hover { transform: none; }
}

/* Hero final overrides */
.hero-px .px-content { align-items: center; }
.hero-media,
.frame {
  align-self: center;
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  overflow: visible;
}
.hero-media img,
.frame img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  clip-path: none !important;
  transform: none !important;
}
.btn {
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
}
