/* ============================================================
   550W QUANTUM CORE · website visual layer
   This file is loaded after style.css and music.css in the preview.
   It replaces the original skull/photo mood with a quantum-computer
   instrument panel while preserving every existing layout class.
   ============================================================ */

:root {
  --red: #ff5c48;
  --cyan: #67e8f9;
  --green: #8fffd0;
  --amber: #ffbf69;
  --dim: #7f96a9;
  --bg: #02060b;
  --bg-soft: #07111c;
  --line: #143346;
  --line-2: #24516a;
  --text: #c9dce8;
  --text-hi: #edfaff;
  --glass-bg: rgba(5, 18, 29, .58);
  --glass-bg-hi: rgba(7, 27, 42, .78);
  --glass-line: rgba(103, 232, 249, .23);
  --glass-line-2: rgba(143, 255, 208, .48);
  --glass-blur: 12px;
  --quantum-grid: rgba(103, 232, 249, .055);
  --quantum-panel: rgba(4, 15, 25, .76);
  --quantum-panel-strong: rgba(3, 12, 21, .92);
}

html {
  background: #02060b;
  --blur-amt: 0px;
  --blur-live: 0px;
  --blur-layer: 0px;
}

body {
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: .01em;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 14%, rgba(31, 151, 181, .12), transparent 34%),
    radial-gradient(circle at 12% 72%, rgba(50, 209, 157, .07), transparent 36%),
    linear-gradient(140deg, #02060b 0%, #06111a 46%, #02060b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .56;
  background:
    linear-gradient(var(--quantum-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--quantum-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .08;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(176, 244, 255, .17) 4px
  );
  mix-blend-mode: screen;
}

#quantum-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

#quantum-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quantum-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 40%, transparent 0 17%, rgba(2,6,11,.20) 35%, rgba(2,6,11,.70) 78%),
    linear-gradient(90deg, rgba(2,6,11,.92) 0%, rgba(2,6,11,.74) 42%, rgba(2,6,11,.20) 74%, rgba(2,6,11,.52) 100%);
}

#bgimg, #bgblur, #bgfx, .bgscrim { display: none !important; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav.glass.top {
  background: rgba(2, 8, 14, .78);
  border: 0;
  border-bottom: 1px solid rgba(103, 232, 249, .20);
  box-shadow: 0 9px 32px rgba(0,0,0,.38);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.nav-in {
  max-width: 1180px;
  padding: 13px 24px;
}

.brand {
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 8%, var(--cyan) 9% 18%, transparent 19%),
    conic-gradient(from 40deg, transparent, var(--cyan), transparent 35%, var(--green), transparent 72%);
  border: 1px solid rgba(103,232,249,.55);
  box-shadow: 0 0 16px rgba(103,232,249,.55), inset 0 0 9px rgba(103,232,249,.25);
}

.brand b {
  color: var(--text-hi);
  font: 700 19px/1 "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  letter-spacing: .14em;
  text-shadow: 0 0 15px rgba(103,232,249,.40);
}

.brand span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .20em;
}

.brand i {
  color: var(--dim);
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.nav-links {
  gap: 23px;
}

.nav-links a {
  position: relative;
  color: #829aab;
  font-size: 13px;
  letter-spacing: .08em;
  border-bottom: 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  transition: right .22s ease;
}

.nav-links a:hover::after,
.nav-links a.on::after { right: 0; }
.nav-links a.on { color: var(--cyan); }

.nav-clock {
  border-left-color: rgba(103,232,249,.18);
}

.nav-clock .lc-time {
  color: var(--green);
  text-shadow: 0 0 12px rgba(143,255,208,.28);
}

.wrap { max-width: 1180px; padding-left: 24px; padding-right: 24px; }

.hero {
  position: relative;
  min-height: 0;
  padding-top: 76px;
  padding-bottom: 46px;
}

.quantum-hero {
  display: block;
  min-height: 620px;
  padding-top: 92px;
  padding-bottom: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  gap: 62px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin-bottom: 20px;
  color: var(--green);
  font: 600 11px/1.4 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: quantumPulse 2.2s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: .035em;
  max-width: 650px;
}

.hero:not(.quantum-hero) h1 {
  max-width: 900px;
  font-size: clamp(42px, 4.4vw, 68px);
}

.hero h1 .hero-word {
  display: block;
  color: transparent;
  background: linear-gradient(92deg, #edfaff 3%, var(--cyan) 58%, #b9fff1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(103,232,249,.22));
}

.hero h1 .hero-sub {
  display: block;
  margin-top: 9px;
  color: var(--text-hi);
  font-size: .43em;
  letter-spacing: .12em;
}

.hero .sub {
  max-width: 650px;
  margin-top: 26px;
  color: #91a8b8;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero .tagrow { margin-top: 25px; }

.tag {
  border-radius: 2px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: rgba(4,17,28,.72);
  letter-spacing: .06em;
}

.tag.ok, .tag.cy, .tag.re, .tag.am {
  background: rgba(4,17,28,.72);
}

.btn {
  border-radius: 3px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: rgba(6,21,33,.76);
  border-color: rgba(103,232,249,.34);
  letter-spacing: .035em;
  backdrop-filter: blur(10px);
}

.btn primary,
.btn.primary {
  color: #fff;
  border-color: rgba(103,232,249,.70);
  background:
    linear-gradient(120deg, rgba(14,83,105,.90), rgba(9,42,61,.84) 56%, rgba(22,93,75,.66));
  box-shadow: 0 0 26px rgba(103,232,249,.14), inset 0 1px 0 rgba(255,255,255,.12);
}

.btn.primary:hover {
  background:
    linear-gradient(120deg, rgba(18,111,136,.95), rgba(10,52,74,.92) 56%, rgba(31,123,98,.76));
  box-shadow: 0 0 35px rgba(103,232,249,.23);
}

.btn.cy { color: var(--green); border-color: rgba(143,255,208,.45); }
.btn small { color: rgba(222,248,255,.72); }

/* Hero quantum instrument */
.quantum-stage {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  isolation: isolate;
}

.quantum-stage::before,
.quantum-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.quantum-stage::before {
  inset: 7%;
  background: radial-gradient(circle, rgba(103,232,249,.18) 0, rgba(103,232,249,.05) 35%, transparent 67%);
  filter: blur(18px);
}

.quantum-stage::after {
  inset: 2%;
  border: 1px solid rgba(103,232,249,.17);
  box-shadow: inset 0 0 55px rgba(103,232,249,.09), 0 0 70px rgba(103,232,249,.07);
}

.q-ring {
  position: absolute;
  inset: var(--inset, 14%);
  border: 1px solid var(--ring, rgba(103,232,249,.38));
  border-radius: 50%;
  transform: rotate(var(--tilt, 0deg));
  animation: quantumSpin var(--speed, 22s) linear infinite;
}

.q-ring::before,
.q-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--cyan));
  box-shadow: 0 0 13px var(--dot, var(--cyan));
}

.q-ring::before { top: -4px; left: 50%; }
.q-ring::after { bottom: -4px; right: 26%; }

.q-ring:nth-child(1) { --inset: 7%; --speed: 28s; --tilt: 15deg; }
.q-ring:nth-child(2) { --inset: 17%; --speed: 20s; --tilt: -28deg; --ring: rgba(143,255,208,.42); --dot: var(--green); }
.q-ring:nth-child(3) { --inset: 27%; --speed: 16s; --tilt: 52deg; --ring: rgba(255,191,105,.30); --dot: var(--amber); }

.q-axis {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  border: 1px dashed rgba(103,232,249,.20);
  transform: rotate(-36deg) scaleY(.55);
}

.q-axis::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(143,255,208,.15);
  transform: rotate(72deg);
}

.q-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 164px;
  height: 164px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(103,232,249,.54);
  background:
    radial-gradient(circle at 40% 35%, rgba(223,251,255,.30), transparent 18%),
    radial-gradient(circle, rgba(17,116,144,.38), rgba(2,12,21,.94) 68%);
  box-shadow:
    0 0 22px rgba(103,232,249,.30),
    inset 0 0 35px rgba(103,232,249,.18);
  animation: coreBreathe 2.8s ease-in-out infinite;
}

.q-core b {
  color: var(--text-hi);
  font: 700 35px/1 "Bahnschrift", sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 0 16px rgba(103,232,249,.55);
}

.q-core span {
  margin-top: 9px;
  color: var(--green);
  font: 600 9px/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .19em;
}

.q-hud {
  position: absolute;
  padding: 8px 10px;
  color: #a7c8d6;
  background: rgba(2,12,20,.64);
  border-left: 1px solid var(--cyan);
  font: 9px/1.55 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

.q-hud b { color: var(--green); font-weight: 500; }
.q-hud.h1 { left: 0; top: 22%; }
.q-hud.h2 { right: 0; top: 20%; }
.q-hud.h3 { right: 2%; bottom: 19%; }

.q-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(103,232,249,.50), transparent);
  animation: quantumSpin 9s linear infinite;
}

section {
  position: relative;
  padding: 62px 0;
  border-top-color: rgba(103,232,249,.10);
}

h1, h2, h3 { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
h2 {
  position: relative;
  padding-left: 18px;
  font-size: 24px;
  letter-spacing: .055em;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: linear-gradient(var(--cyan), transparent);
  box-shadow: 0 0 13px rgba(103,232,249,.45);
}

.lead { color: #849cad; }

.glass {
  border-radius: 4px;
  border-color: rgba(103,232,249,.19);
  background:
    linear-gradient(135deg, rgba(12,36,51,.62), rgba(3,13,22,.76));
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(181,245,255,.04);
}

.glass:hover {
  border-color: rgba(103,232,249,.38);
  box-shadow:
    0 22px 54px rgba(0,0,0,.42),
    0 0 26px rgba(103,232,249,.08);
}

.glass::before {
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,0%),
    rgba(103,232,249,.13), transparent 70%);
}

.card,
.kv,
.term,
.ann-item,
.cs-card {
  position: relative;
  border-radius: 4px;
}

.card::after,
.kv::after,
.term::after,
.ann-item::after,
.cs-card::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-top: 1px solid rgba(103,232,249,.50);
  border-right: 1px solid rgba(103,232,249,.50);
}

.card {
  min-height: 185px;
  padding: 24px 22px;
  background:
    linear-gradient(145deg, rgba(10,31,45,.78), rgba(3,13,22,.80));
}

.card:hover { transform: translateY(-3px); }
.card .no {
  color: var(--green);
  font: 600 10px/1.5 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .16em;
}
.card h3 {
  margin-top: 12px;
  color: var(--text-hi);
  font-size: 18px;
}

.kv {
  background: rgba(3,13,22,.74);
}
.kv .row {
  border-bottom-color: rgba(103,232,249,.09);
}
.kv .k {
  color: #6f899b;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .05em;
}
.kv .v { color: #cfe6ef; }

.term {
  background:
    linear-gradient(180deg, rgba(4,18,29,.94), rgba(2,9,16,.94));
  border-color: rgba(143,255,208,.22);
}

.term::before {
  content: "QUANTUM LINK // TELEMETRY";
  display: block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: .16em;
}

pre {
  border-radius: 3px;
  background: #020a11;
  border-color: #173648;
}
code {
  border-radius: 2px;
  background: #061620;
  border-color: #174155;
  color: var(--green);
}

.note {
  border-left-color: var(--cyan);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(11,57,72,.65), rgba(4,19,29,.54));
  color: #a8c4d1;
}
.note.warn { border-left-color: var(--amber); background: rgba(58,37,8,.50); }
.note.bad { border-left-color: var(--red); background: rgba(54,13,13,.50); }

.steps li::before {
  border-radius: 2px;
  background: #061522;
  border-color: var(--line-2);
  color: var(--green);
  font-family: Consolas, monospace;
}

.tl { border-left-color: rgba(103,232,249,.24); }
.tl .item::before {
  border-radius: 1px;
  background: #02060b;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(103,232,249,.55);
}
.tl .item.latest::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 14px rgba(143,255,208,.65);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(103,232,249,.14);
  background: rgba(3,13,22,.65);
}
th { background: rgba(11,36,50,.72); color: var(--green); font-family: Consolas, monospace; letter-spacing: .08em; }
td { border-bottom-color: rgba(103,232,249,.09); }

.ann-item {
  border-left-color: var(--green);
  background: linear-gradient(100deg, rgba(9,47,42,.72), rgba(4,17,27,.70));
}

.nav.glass,
.nav.glass:hover {
  border-radius: 0;
}

footer {
  border-top-color: rgba(103,232,249,.13);
  background: rgba(2,8,14,.65);
}

.mc-player {
  border-radius: 3px;
  border-color: rgba(103,232,249,.28);
  background: rgba(3,14,23,.93);
}
.mc-player__icon:hover,
.mc-player__track:hover {
  background: rgba(103,232,249,.09);
}
.mc-player__play {
  background: rgba(103,232,249,.11);
  border-color: rgba(103,232,249,.35);
}

@keyframes quantumSpin { to { transform: rotate(360deg); } }
@keyframes coreBreathe {
  0%,100% { box-shadow: 0 0 22px rgba(103,232,249,.28), inset 0 0 35px rgba(103,232,249,.16); }
  50% { box-shadow: 0 0 38px rgba(103,232,249,.46), inset 0 0 43px rgba(143,255,208,.19); }
}
@keyframes quantumPulse {
  0%,100% { opacity: .55; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .quantum-stage { width: min(380px, 88vw); margin: 16px auto 0; }
  .q-hud.h2 { display: none; }
}

@media (max-width: 640px) {
  .nav-in { padding: 11px 16px; gap: 14px; }
  .brand span { display: none; }
  .brand i { margin-left: 2px; }
  .nav-clock { display: none; }
  .nav-links {
    width: 100%;
    margin-left: 0;
    gap: 15px;
    padding: 3px 0 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: auto; padding-top: 54px; }
  .quantum-hero { padding-top: 58px; }
  .hero h1 { font-size: 48px; }
  .hero h1 .hero-sub { font-size: .46em; }
  .quantum-stage { width: 320px; }
  .q-core { width: 126px; height: 126px; }
  .q-core b { font-size: 27px; }
  .q-hud { font-size: 8px; }
  section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .q-ring, .q-beam, .q-core, .eyebrow::before { animation: none !important; }
}
