:root {
  --nx-head: "Syne", sans-serif;
  --nx-sans: "Outfit", -apple-system, sans-serif;
  --nx-mono: "Fira Code", monospace;
  --nx-bg: #06060A;
  --nx-panel: #0E0E16;
  --nx-card: #141421;
  --nx-ink: #F8FAFC;
  --nx-sub: #94A3B8;
  --nx-aqua: #38BDF8;
  --nx-violet: #A855F7;
  --nx-silver: #E2E8F0;
  --nx-green: #2DD4BF;
  --nx-border: rgba(168, 85, 247, 0.25);
  --nx-border-hi: rgba(56, 189, 248, 0.6);
  --nx-wrap: 1260px;
  --nx-pad: clamp(1.2rem, 4vw, 2.6rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--nx-bg); color: var(--nx-ink); color-scheme: dark; overflow-x: clip; }
body {
  margin: 0; font-family: var(--nx-sans); font-size: 16px; line-height: 1.6;
  background: radial-gradient(circle at 75% 5%, rgba(168, 85, 247, 0.18), transparent 42%),
              radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.14), transparent 45%),
              var(--nx-bg);
  color: var(--nx-ink); overflow-x: clip; padding-bottom: 4.8rem;
}
@media (max-width: 480px) {
  .nx-brand-sub { display: none; }
  .nx-brand-name { font-size: 1.1rem; }
  .nx-hdr .nx-btn { padding: 0 0.7rem; font-size: 0.7rem; min-height: 36px; }
}
@media (min-width: 1080px) { body { padding-bottom: 0; } }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.nx-wrap { width: 100%; max-width: var(--nx-wrap); margin-inline: auto; padding-inline: var(--nx-pad); }

.nx-topbar {
  background: #030306; border-bottom: 1px solid var(--nx-border);
  font-family: var(--nx-mono); font-size: 0.73rem; padding: 0.5rem var(--nx-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.nx-top-grp { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; color: var(--nx-sub); }
.nx-top-grp strong { color: var(--nx-aqua); }

.nx-hdr {
  position: sticky; top: 0; z-index: 60; background: rgba(10, 10, 18, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nx-border); padding: 0.7rem var(--nx-pad);
}
.nx-hdr-in { max-width: var(--nx-wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nx-brand { display: flex; align-items: center; gap: 0.75rem; }
.nx-brand img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--nx-aqua); object-fit: cover; box-shadow: 0 0 16px rgba(56, 189, 248, 0.45); }
.nx-brand-name { font-family: var(--nx-head); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; background: linear-gradient(90deg, #fff, var(--nx-aqua), var(--nx-violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nx-brand-sub { display: block; font-family: var(--nx-mono); font-size: 0.66rem; color: var(--nx-sub); letter-spacing: 0.1em; }
.nx-nav { display: none; gap: 1.25rem; font-size: 0.88rem; font-weight: 600; color: var(--nx-sub); }
.nx-nav a:hover { color: var(--nx-aqua); }
@media (min-width: 1024px) { .nx-nav { display: flex; } }

.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.3rem; border-radius: 99px;
  font-family: var(--nx-mono); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 180ms ease; white-space: nowrap;
}
.nx-btn-cyber { background: linear-gradient(135deg, var(--nx-aqua), var(--nx-violet)); color: #fff; box-shadow: 0 10px 28px -6px rgba(168, 85, 247, 0.65); }
.nx-btn-silver { background: var(--nx-silver); color: #090910; }
.nx-btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--nx-border); color: var(--nx-ink); }
.nx-btn-ghost:hover { border-color: var(--nx-aqua); color: var(--nx-aqua); }

.nx-hero { padding: clamp(2.2rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--nx-border); }
.nx-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1040px) { .nx-hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 3.5rem; } }

.nx-tag {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.38rem 0.85rem;
  border-radius: 99px; background: rgba(56, 189, 248, 0.12); border: 1px solid var(--nx-border-hi);
  font-family: var(--nx-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nx-aqua); margin-bottom: 0.9rem;
}
.nx-hero h1 { font-family: var(--nx-head); font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; margin: 0; font-weight: 800; }
.nx-tagline { font-family: var(--nx-head); font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: #D8B4FE; margin: 0.65rem 0 1rem; font-weight: 700; }
.nx-cabox {
  background: linear-gradient(155deg, rgba(20, 20, 33, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid var(--nx-border-hi); border-radius: 16px; padding: 1.15rem; max-width: 610px; min-width: 0;
  box-shadow: 0 20px 50px -15px rgba(168, 85, 247, 0.35);
}
.nx-cabox-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-family: var(--nx-mono); font-size: 0.72rem; color: var(--nx-aqua); margin-bottom: 0.6rem; }
.nx-cabox-row { display: flex; align-items: center; gap: 0.6rem; background: #050509; border: 1px solid rgba(255,255,255,0.14); padding: 0.5rem 0.75rem; border-radius: 10px; }
.nx-ca-str { font-family: var(--nx-mono); font-size: clamp(0.72rem, 2vw, 0.86rem); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; user-select: all; }
.nx-ca-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
@media (min-width: 600px) { .nx-ca-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nx-ca-badge { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 0.45rem 0.6rem; border-radius: 8px; font-family: var(--nx-mono); font-size: 0.68rem; }
.nx-ca-badge span { display: block; color: var(--nx-sub); font-size: 0.62rem; }
.nx-ca-badge strong { color: var(--nx-green); }
.nx-prism { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.nx-prism-frame {
  position: relative; width: min(100%, 450px); aspect-ratio: 1 / 1;
  border-radius: 26px; overflow: hidden; border: 2px solid var(--nx-aqua);
  background: var(--nx-card); box-shadow: 0 28px 70px rgba(0,0,0,0.85), 0 0 45px rgba(56, 189, 248, 0.25);
}
.nx-prism-frame img { width: 100%; height: 100%; object-fit: cover; }
.nx-prism-chip {
  position: absolute; top: 12px; left: 12px; background: rgba(6, 6, 10, 0.88);
  border: 1px solid var(--nx-aqua); padding: 0.35rem 0.8rem; border-radius: 99px;
  font-family: var(--nx-mono); font-size: 0.7rem; color: var(--nx-aqua);
}
.nx-prism-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 1.05rem; }
.nx-mode {
  padding: 0.4rem 0.85rem; border-radius: 99px; background: var(--nx-card);
  border: 1px solid var(--nx-border); font-family: var(--nx-mono); font-size: 0.72rem; color: var(--nx-sub);
}
.nx-mode.active, .nx-mode:hover { background: linear-gradient(135deg, var(--nx-aqua), var(--nx-violet)); color: #fff; border-color: transparent; font-weight: 700; }
.nx-sec { padding: clamp(4rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--nx-border); }
.nx-sec-head { max-width: 48rem; margin-bottom: 2.4rem; }
.nx-sec-title { font-family: var(--nx-head); font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; margin: 0.3rem 0 0.7rem; font-weight: 800; }
.nx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.2rem; }
.nx-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.15rem; }
.nx-card {
  background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 16px;
  padding: 1.45rem; min-width: 0; overflow-wrap: anywhere; word-break: break-word;
}
.nx-card h3 { font-family: var(--nx-head); font-size: 1.25rem; color: var(--nx-aqua); margin: 0 0 0.45rem; }
.nx-card p { margin: 0; font-size: 0.9rem; color: var(--nx-sub); overflow-wrap: anywhere; }
.nx-card code {
  display: inline-block; max-width: 100%; font-family: var(--nx-mono); font-size: 0.74rem;
  color: var(--nx-aqua); background: #050509; border: 1px solid var(--nx-border-hi);
  padding: 0.2rem 0.45rem; border-radius: 6px; word-break: break-all; overflow-wrap: anywhere;
}
.nx-media-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.nx-media-sq { aspect-ratio: 1 / 1; background: #050509; }
.nx-media-sq img { width: 100%; height: 100%; object-fit: cover; }
.nx-media-916 { aspect-ratio: 9 / 16; max-height: 450px; background: #050509; }
.nx-media-916 video { width: 100%; height: 100%; object-fit: cover; }
.nx-media-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; justify-content: space-between; }
.nx-ba { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 1 / 1; max-width: 500px; margin-inline: auto; width: 100%; border: 2px solid var(--nx-aqua); user-select: none; touch-action: pan-y; }
.nx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nx-ba-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.nx-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--nx-aqua); pointer-events: none; }
.nx-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.nx-footer { padding: 3.5rem 0 6rem; background: #030306; border-top: 1px solid var(--nx-border); font-size: 0.85rem; color: var(--nx-sub); }
.nx-mob-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90; background: rgba(6,6,10,0.95);
  border-top: 1px solid var(--nx-border-hi); padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 0.45rem;
}
@media (min-width: 1080px) { .nx-mob-bar { display: none; } }
.nx-toast {
  position: fixed; bottom: 5.2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--nx-aqua), var(--nx-violet)); color: #fff; font-family: var(--nx-mono); font-weight: 700; font-size: 0.8rem;
  padding: 0.6rem 1.2rem; border-radius: 99px; opacity: 0; pointer-events: none; transition: all 200ms; z-index: 120;
}
.nx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nx-lead { color: var(--nx-sub); font-size: 1.02rem; margin: 0 0 1.35rem; max-width: 54ch; }
